/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % G e t C a c h e V i e w V i r t u a l P i x e l Q u e u e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % GetCacheViewVirtualPixelQueue() returns the the pixels associated with % the last call to GetCacheViewVirtualPixels(). The pixels are virtual % and therefore cannot be updated. % % The format of the GetCacheViewVirtualPixelQueue() method is: % % const PixelPacket *GetCacheViewVirtualPixelQueue( % const CacheView *cache_view) % % A description of each parameter follows: % % o cache_view: the cache view. % */ MagickExport const PixelPacket *GetCacheViewVirtualPixelQueue( const CacheView *cache_view) { const int id = GetOpenMPThreadId(); assert(cache_view != (const CacheView *) NULL); assert(cache_view->signature == MagickSignature); assert(cache_view->image->cache != (Cache) NULL); assert(id < (int) cache_view->number_threads); return(GetVirtualPixelsNexus(cache_view->image->cache, cache_view->nexus_info[id])); }
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % G e t C a c h e V i e w V i r t u a l P i x e l Q u e u e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % GetCacheViewVirtualPixelQueue() returns the the pixels associated with % the last call to GetCacheViewVirtualPixels(). The pixels are virtual % and therefore cannot be updated. % % The format of the GetCacheViewVirtualPixelQueue() method is: % % const Quantum *GetCacheViewVirtualPixelQueue( % const CacheView *cache_view) % % A description of each parameter follows: % % o cache_view: the cache view. % */ MagickExport const Quantum *GetCacheViewVirtualPixelQueue( const CacheView *cache_view) { const int id = GetOpenMPThreadId(); const Quantum *magick_restrict pixels; assert(cache_view != (const CacheView *) NULL); assert(cache_view->signature == MagickCoreSignature); assert(cache_view->image->cache != (Cache) NULL); assert(id < (int) cache_view->number_threads); pixels=GetVirtualPixelsNexus(cache_view->image->cache, cache_view->nexus_info[id]); return(pixels); }
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % G e t C a c h e V i e w V i r t u a l P i x e l Q u e u e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % GetCacheViewVirtualPixelQueue() returns the the pixels associated with % the last call to GetCacheViewVirtualPixels(). The pixels are virtual % and therefore cannot be updated. % % The format of the GetCacheViewVirtualPixelQueue() method is: % % const PixelPacket *GetCacheViewVirtualPixelQueue( % const CacheView *cache_view) % % A description of each parameter follows: % % o cache_view: the cache view. % */ MagickExport const PixelPacket *GetCacheViewVirtualPixelQueue( const CacheView *cache_view) { const PixelPacket *pixels; ssize_t id; assert(cache_view != (const CacheView *) NULL); assert(cache_view->signature == MagickSignature); if (cache_view->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", cache_view->image->filename); assert(cache_view->image->cache != (Cache) NULL); id=GetOpenMPThreadId(); assert(id < (ssize_t) cache_view->number_threads); pixels=GetVirtualPixelsNexus(cache_view->image->cache, cache_view->nexus_info[id]); return(pixels); }