/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % G e t C a c h e V i e w A u t h e n t i c I n d e x Q u e u e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % GetCacheViewAuthenticIndexQueue() returns the indexes associated with the % last call to SetCacheViewIndexes() or GetCacheViewAuthenticIndexQueue(). The % indexes are authentic and can be updated. % % The format of the GetCacheViewAuthenticIndexQueue() method is: % % IndexPacket *GetCacheViewAuthenticIndexQueue(CacheView *cache_view) % % A description of each parameter follows: % % o cache_view: the cache view. % */ MagickExport IndexPacket *GetCacheViewAuthenticIndexQueue(CacheView *cache_view) { const int id = GetOpenMPThreadId(); assert(cache_view != (CacheView *) NULL); assert(cache_view->signature == MagickSignature); assert(cache_view->image->cache != (Cache) NULL); assert(id < (int) cache_view->number_threads); return(GetPixelCacheNexusIndexes(cache_view->image->cache, cache_view->nexus_info[id])); }
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % % G e t C a c h e V i e w A u t h e n t i c I n d e x Q u e u e % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % GetCacheViewAuthenticIndexQueue() returns the indexes associated with the % last call to SetCacheViewIndexes() or GetCacheViewAuthenticIndexQueue(). The % indexes are authentic and can be updated. % % The format of the GetCacheViewAuthenticIndexQueue() method is: % % IndexPacket *GetCacheViewAuthenticIndexQueue(CacheView *cache_view) % % A description of each parameter follows: % % o cache_view: the cache view. % */ MagickExport IndexPacket *GetCacheViewAuthenticIndexQueue(CacheView *cache_view) { IndexPacket *indexes; ssize_t id; assert(cache_view != (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); indexes=GetPixelCacheNexusIndexes(cache_view->image->cache, cache_view->nexus_info[id]); return(indexes); }