• Home
  • Raw
  • Download

Lines Matching refs:nexus_info

210   cache_info->nexus_info=AcquirePixelCacheNexus(cache_info->number_threads);  in AcquirePixelCache()
211 if (cache_info->nexus_info == (NexusInfo **) NULL) in AcquirePixelCache()
258 **magick_restrict nexus_info; in AcquirePixelCacheNexus() local
263 nexus_info=(NexusInfo **) MagickAssumeAligned(AcquireAlignedMemory( in AcquirePixelCacheNexus()
264 number_threads,sizeof(*nexus_info))); in AcquirePixelCacheNexus()
265 if (nexus_info == (NexusInfo **) NULL) in AcquirePixelCacheNexus()
267 nexus_info[0]=(NexusInfo *) AcquireQuantumMemory(number_threads, in AcquirePixelCacheNexus()
268 sizeof(**nexus_info)); in AcquirePixelCacheNexus()
269 if (nexus_info[0] == (NexusInfo *) NULL) in AcquirePixelCacheNexus()
271 (void) memset(nexus_info[0],0,number_threads*sizeof(**nexus_info)); in AcquirePixelCacheNexus()
274 nexus_info[i]=(&nexus_info[0][i]); in AcquirePixelCacheNexus()
275 nexus_info[i]->signature=MagickCoreSignature; in AcquirePixelCacheNexus()
277 return(nexus_info); in AcquirePixelCacheNexus()
409 NexusInfo *nexus_info,ExceptionInfo *exception) in ClipPixelCacheNexus() argument
438 p=GetAuthenticPixelCacheNexus(image,nexus_info->region.x,nexus_info->region.y, in ClipPixelCacheNexus()
439 nexus_info->region.width,nexus_info->region.height,image_nexus[0], in ClipPixelCacheNexus()
441 q=nexus_info->pixels; in ClipPixelCacheNexus()
442 number_pixels=(MagickSizeType) nexus_info->region.width* in ClipPixelCacheNexus()
443 nexus_info->region.height; in ClipPixelCacheNexus()
1062 if (cache_info->nexus_info != (NexusInfo **) NULL) in DestroyPixelCache()
1063 cache_info->nexus_info=DestroyPixelCacheNexus(cache_info->nexus_info, in DestroyPixelCache()
1103 static inline void RelinquishCacheNexusPixels(NexusInfo *nexus_info) in RelinquishCacheNexusPixels() argument
1105 if (nexus_info->mapped == MagickFalse) in RelinquishCacheNexusPixels()
1106 (void) RelinquishAlignedMemory(nexus_info->cache); in RelinquishCacheNexusPixels()
1108 (void) UnmapBlob(nexus_info->cache,(size_t) nexus_info->length); in RelinquishCacheNexusPixels()
1109 nexus_info->cache=(Quantum *) NULL; in RelinquishCacheNexusPixels()
1110 nexus_info->pixels=(Quantum *) NULL; in RelinquishCacheNexusPixels()
1111 nexus_info->metacontent=(void *) NULL; in RelinquishCacheNexusPixels()
1112 nexus_info->length=0; in RelinquishCacheNexusPixels()
1113 nexus_info->mapped=MagickFalse; in RelinquishCacheNexusPixels()
1116 MagickPrivate NexusInfo **DestroyPixelCacheNexus(NexusInfo **nexus_info, in DestroyPixelCacheNexus() argument
1122 assert(nexus_info != (NexusInfo **) NULL); in DestroyPixelCacheNexus()
1125 if (nexus_info[i]->cache != (Quantum *) NULL) in DestroyPixelCacheNexus()
1126 RelinquishCacheNexusPixels(nexus_info[i]); in DestroyPixelCacheNexus()
1127 nexus_info[i]->signature=(~MagickCoreSignature); in DestroyPixelCacheNexus()
1129 nexus_info[0]=(NexusInfo *) RelinquishMagickMemory(nexus_info[0]); in DestroyPixelCacheNexus()
1130 nexus_info=(NexusInfo **) RelinquishAlignedMemory(nexus_info); in DestroyPixelCacheNexus()
1131 return(nexus_info); in DestroyPixelCacheNexus()
1182 return(cache_info->nexus_info[id]->metacontent); in GetAuthenticMetacontent()
1223 return(cache_info->nexus_info[id]->metacontent); in GetAuthenticMetacontentFromCache()
1327 const ssize_t y,const size_t columns,const size_t rows,NexusInfo *nexus_info, in GetAuthenticPixelCacheNexus() argument
1342 nexus_info,exception); in GetAuthenticPixelCacheNexus()
1347 if (nexus_info->authentic_pixel_cache != MagickFalse) in GetAuthenticPixelCacheNexus()
1349 if (ReadPixelCachePixels(cache_info,nexus_info,exception) == MagickFalse) in GetAuthenticPixelCacheNexus()
1352 if (ReadPixelCacheMetacontent(cache_info,nexus_info,exception) == MagickFalse) in GetAuthenticPixelCacheNexus()
1394 return(cache_info->nexus_info[id]->pixels); in GetAuthenticPixelsFromCache()
1438 return(cache_info->nexus_info[id]->pixels); in GetAuthenticPixelQueue()
1513 cache_info->nexus_info[id],exception); in GetAuthenticPixels()
1570 cache_info->nexus_info[id],exception); in GetAuthenticPixelsCache()
1613 return(GetPixelCacheNexusExtent(cache_info,cache_info->nexus_info[id])); in GetImageExtent()
1671 (cache_info->nexus_info == (NexusInfo **) NULL)) in ValidatePixelCacheMorphology()
1948 q=GetAuthenticPixelCacheNexus(image,x,y,1UL,1UL,cache_info->nexus_info[id], in GetOneAuthenticPixelFromCache()
2008 1UL,1UL,cache_info->nexus_info[id],exception); in GetOneVirtualPixel()
2067 cache_info->nexus_info[id],exception); in GetOneVirtualPixelFromCache()
2126 cache_info->nexus_info[id],exception); in GetOneVirtualPixelInfo()
2273 NexusInfo *magick_restrict nexus_info) in GetPixelCacheNexusExtent() argument
2284 extent=(MagickSizeType) nexus_info->region.width*nexus_info->region.height; in GetPixelCacheNexusExtent()
2498 cache_info->nexus_info[id]); in GetVirtualMetacontentFromCache()
2529 NexusInfo *magick_restrict nexus_info) in GetVirtualMetacontentFromNexus() argument
2539 return(nexus_info->metacontent); in GetVirtualMetacontentFromNexus()
2587 cache_info->nexus_info[id]); in GetVirtualMetacontent()
2717 const size_t columns,const size_t rows,NexusInfo *nexus_info, in GetVirtualPixelCacheNexus() argument
2782 nexus_info,exception); in GetVirtualPixelCacheNexus()
2786 offset=(MagickOffsetType) nexus_info->region.y*cache_info->columns+ in GetVirtualPixelCacheNexus()
2787 nexus_info->region.x; in GetVirtualPixelCacheNexus()
2788 length=(MagickSizeType) (nexus_info->region.height-1L)*cache_info->columns+ in GetVirtualPixelCacheNexus()
2789 nexus_info->region.width-1L; in GetVirtualPixelCacheNexus()
2801 if (nexus_info->authentic_pixel_cache != MagickFalse) in GetVirtualPixelCacheNexus()
2803 status=ReadPixelCachePixels(cache_info,nexus_info,exception); in GetVirtualPixelCacheNexus()
2808 status=ReadPixelCacheMetacontent(cache_info,nexus_info,exception); in GetVirtualPixelCacheNexus()
2817 s=(unsigned char *) nexus_info->metacontent; in GetVirtualPixelCacheNexus()
3164 cache_info->nexus_info[id],exception); in GetVirtualPixelCache()
3208 return(GetVirtualPixelsNexus(cache_info,cache_info->nexus_info[id])); in GetVirtualPixelQueue()
3283 columns,rows,cache_info->nexus_info[id],exception); in GetVirtualPixels()
3324 return(GetVirtualPixelsNexus(image->cache,cache_info->nexus_info[id])); in GetVirtualPixelsCache()
3354 NexusInfo *magick_restrict nexus_info) in GetVirtualPixelsNexus() argument
3364 return((const Quantum *) nexus_info->pixels); in GetVirtualPixelsNexus()
3410 static MagickBooleanType MaskPixelCacheNexus(Image *image,NexusInfo *nexus_info, in MaskPixelCacheNexus() argument
3440 p=GetAuthenticPixelCacheNexus(image,nexus_info->region.x,nexus_info->region.y, in MaskPixelCacheNexus()
3441 nexus_info->region.width,nexus_info->region.height,image_nexus[0], in MaskPixelCacheNexus()
3443 q=nexus_info->pixels; in MaskPixelCacheNexus()
3444 number_pixels=(MagickSizeType) nexus_info->region.width* in MaskPixelCacheNexus()
3445 nexus_info->region.height; in MaskPixelCacheNexus()
4141 const MagickBooleanType clone,NexusInfo *nexus_info,ExceptionInfo *exception) in QueueAuthenticPixelCacheNexus() argument
4193 nexus_info,exception); in QueueAuthenticPixelCacheNexus()
4250 cache_info->nexus_info[id],exception); in QueueAuthenticPixelsCache()
4337 cache_info->nexus_info[id],exception); in QueueAuthenticPixels()
4405 CacheInfo *magick_restrict cache_info,NexusInfo *magick_restrict nexus_info, in ReadPixelCacheMetacontent() argument
4427 if (nexus_info->authentic_pixel_cache != MagickFalse) in ReadPixelCacheMetacontent()
4429 offset=(MagickOffsetType) nexus_info->region.y*cache_info->columns+ in ReadPixelCacheMetacontent()
4430 nexus_info->region.x; in ReadPixelCacheMetacontent()
4431 length=(MagickSizeType) nexus_info->region.width* in ReadPixelCacheMetacontent()
4433 extent=length*nexus_info->region.height; in ReadPixelCacheMetacontent()
4434 rows=nexus_info->region.height; in ReadPixelCacheMetacontent()
4436 q=(unsigned char *) nexus_info->metacontent; in ReadPixelCacheMetacontent()
4448 if ((cache_info->columns == nexus_info->region.width) && in ReadPixelCacheMetacontent()
4460 q+=cache_info->metacontent_extent*nexus_info->region.width; in ReadPixelCacheMetacontent()
4477 if ((cache_info->columns == nexus_info->region.width) && in ReadPixelCacheMetacontent()
4492 q+=cache_info->metacontent_extent*nexus_info->region.width; in ReadPixelCacheMetacontent()
4508 region=nexus_info->region; in ReadPixelCacheMetacontent()
4509 if ((cache_info->columns != nexus_info->region.width) || in ReadPixelCacheMetacontent()
4523 q+=cache_info->metacontent_extent*nexus_info->region.width; in ReadPixelCacheMetacontent()
4539 (CacheTick(nexus_info->region.y,cache_info->rows) != MagickFalse)) in ReadPixelCacheMetacontent()
4542 nexus_info->region.width,(double) nexus_info->region.height,(double) in ReadPixelCacheMetacontent()
4543 nexus_info->region.x,(double) nexus_info->region.y); in ReadPixelCacheMetacontent()
4576 CacheInfo *magick_restrict cache_info,NexusInfo *magick_restrict nexus_info, in ReadPixelCachePixels() argument
4597 if (nexus_info->authentic_pixel_cache != MagickFalse) in ReadPixelCachePixels()
4599 offset=(MagickOffsetType) nexus_info->region.y*cache_info->columns; in ReadPixelCachePixels()
4600 if ((ssize_t) (offset/cache_info->columns) != nexus_info->region.y) in ReadPixelCachePixels()
4602 offset+=nexus_info->region.x; in ReadPixelCachePixels()
4604 length=(MagickSizeType) number_channels*nexus_info->region.width* in ReadPixelCachePixels()
4606 if ((length/number_channels/sizeof(Quantum)) != nexus_info->region.width) in ReadPixelCachePixels()
4608 rows=nexus_info->region.height; in ReadPixelCachePixels()
4613 q=nexus_info->pixels; in ReadPixelCachePixels()
4625 if ((cache_info->columns == nexus_info->region.width) && in ReadPixelCachePixels()
4636 q+=cache_info->number_channels*nexus_info->region.width; in ReadPixelCachePixels()
4653 if ((cache_info->columns == nexus_info->region.width) && in ReadPixelCachePixels()
4666 q+=cache_info->number_channels*nexus_info->region.width; in ReadPixelCachePixels()
4682 region=nexus_info->region; in ReadPixelCachePixels()
4683 if ((cache_info->columns != nexus_info->region.width) || in ReadPixelCachePixels()
4697 q+=cache_info->number_channels*nexus_info->region.width; in ReadPixelCachePixels()
4713 (CacheTick(nexus_info->region.y,cache_info->rows) != MagickFalse)) in ReadPixelCachePixels()
4716 nexus_info->region.width,(double) nexus_info->region.height,(double) in ReadPixelCachePixels()
4717 nexus_info->region.x,(double) nexus_info->region.y); in ReadPixelCachePixels()
4968 NexusInfo *nexus_info,ExceptionInfo *exception) in AcquireCacheNexusPixels() argument
4977 nexus_info->length=0; in AcquireCacheNexusPixels()
4978 nexus_info->mapped=MagickFalse; in AcquireCacheNexusPixels()
4981 nexus_info->cache=(Quantum *) MagickAssumeAligned(AcquireAlignedMemory(1, in AcquireCacheNexusPixels()
4983 if (nexus_info->cache != (Quantum *) NULL) in AcquireCacheNexusPixels()
4984 (void) memset(nexus_info->cache,0,(size_t) length); in AcquireCacheNexusPixels()
4988 nexus_info->cache=(Quantum *) MapBlob(-1,IOMode,0,(size_t) length); in AcquireCacheNexusPixels()
4989 if (nexus_info->cache != (Quantum *) NULL) in AcquireCacheNexusPixels()
4990 nexus_info->mapped=MagickTrue; in AcquireCacheNexusPixels()
4992 if (nexus_info->cache == (Quantum *) NULL) in AcquireCacheNexusPixels()
4999 nexus_info->length=length; in AcquireCacheNexusPixels()
5003 static inline void PrefetchPixelCacheNexusPixels(const NexusInfo *nexus_info, in PrefetchPixelCacheNexusPixels() argument
5006 if (nexus_info->length < CACHE_LINE_SIZE) in PrefetchPixelCacheNexusPixels()
5010 MagickCachePrefetch((unsigned char *) nexus_info->pixels+CACHE_LINE_SIZE, in PrefetchPixelCacheNexusPixels()
5014 MagickCachePrefetch((unsigned char *) nexus_info->pixels+CACHE_LINE_SIZE,1,1); in PrefetchPixelCacheNexusPixels()
5019 const MagickBooleanType buffered,NexusInfo *nexus_info, in SetPixelCacheNexusPixels() argument
5033 (void) memset(&nexus_info->region,0,sizeof(nexus_info->region)); in SetPixelCacheNexusPixels()
5040 assert(nexus_info->signature == MagickCoreSignature); in SetPixelCacheNexusPixels()
5062 nexus_info->pixels=cache_info->pixels+cache_info->number_channels* in SetPixelCacheNexusPixels()
5064 nexus_info->metacontent=(void *) NULL; in SetPixelCacheNexusPixels()
5066 nexus_info->metacontent=(unsigned char *) cache_info->metacontent+ in SetPixelCacheNexusPixels()
5068 nexus_info->region=(*region); in SetPixelCacheNexusPixels()
5069 nexus_info->authentic_pixel_cache=MagickTrue; in SetPixelCacheNexusPixels()
5070 PrefetchPixelCacheNexusPixels(nexus_info,mode); in SetPixelCacheNexusPixels()
5071 return(nexus_info->pixels); in SetPixelCacheNexusPixels()
5077 if (((region->x != (ssize_t) nexus_info->region.width) || in SetPixelCacheNexusPixels()
5078 (region->y != (ssize_t) nexus_info->region.height)) && in SetPixelCacheNexusPixels()
5088 cache_info->number_channels*sizeof(*nexus_info->pixels); in SetPixelCacheNexusPixels()
5092 if (nexus_info->cache == (Quantum *) NULL) in SetPixelCacheNexusPixels()
5093 status=AcquireCacheNexusPixels(cache_info,length,nexus_info,exception); in SetPixelCacheNexusPixels()
5095 if (nexus_info->length < length) in SetPixelCacheNexusPixels()
5097 RelinquishCacheNexusPixels(nexus_info); in SetPixelCacheNexusPixels()
5098 status=AcquireCacheNexusPixels(cache_info,length,nexus_info,exception); in SetPixelCacheNexusPixels()
5102 nexus_info->pixels=nexus_info->cache; in SetPixelCacheNexusPixels()
5103 nexus_info->metacontent=(void *) NULL; in SetPixelCacheNexusPixels()
5105 nexus_info->metacontent=(void *) (nexus_info->pixels+ in SetPixelCacheNexusPixels()
5107 nexus_info->region=(*region); in SetPixelCacheNexusPixels()
5108 nexus_info->authentic_pixel_cache=cache_info->type == PingCache ? in SetPixelCacheNexusPixels()
5110 PrefetchPixelCacheNexusPixels(nexus_info,mode); in SetPixelCacheNexusPixels()
5111 return(nexus_info->pixels); in SetPixelCacheNexusPixels()
5324 NexusInfo *magick_restrict nexus_info,ExceptionInfo *exception) in SyncAuthenticPixelCacheNexus() argument
5346 (ClipPixelCacheNexus(image,nexus_info,exception) == MagickFalse)) in SyncAuthenticPixelCacheNexus()
5349 (MaskPixelCacheNexus(image,nexus_info,exception) == MagickFalse)) in SyncAuthenticPixelCacheNexus()
5352 if (nexus_info->authentic_pixel_cache != MagickFalse) in SyncAuthenticPixelCacheNexus()
5358 status=WritePixelCachePixels(cache_info,nexus_info,exception); in SyncAuthenticPixelCacheNexus()
5360 (WritePixelCacheMetacontent(cache_info,nexus_info,exception) == MagickFalse)) in SyncAuthenticPixelCacheNexus()
5412 status=SyncAuthenticPixelCacheNexus(image,cache_info->nexus_info[id], in SyncAuthenticPixelsCache()
5468 status=SyncAuthenticPixelCacheNexus(image,cache_info->nexus_info[id], in SyncAuthenticPixels()
5541 NexusInfo *magick_restrict nexus_info,ExceptionInfo *exception) in WritePixelCacheMetacontent() argument
5562 if (nexus_info->authentic_pixel_cache != MagickFalse) in WritePixelCacheMetacontent()
5564 offset=(MagickOffsetType) nexus_info->region.y*cache_info->columns+ in WritePixelCacheMetacontent()
5565 nexus_info->region.x; in WritePixelCacheMetacontent()
5566 length=(MagickSizeType) nexus_info->region.width* in WritePixelCacheMetacontent()
5568 extent=(MagickSizeType) length*nexus_info->region.height; in WritePixelCacheMetacontent()
5569 rows=nexus_info->region.height; in WritePixelCacheMetacontent()
5571 p=(unsigned char *) nexus_info->metacontent; in WritePixelCacheMetacontent()
5583 if ((cache_info->columns == nexus_info->region.width) && in WritePixelCacheMetacontent()
5594 p+=nexus_info->region.width*cache_info->metacontent_extent; in WritePixelCacheMetacontent()
5612 if ((cache_info->columns == nexus_info->region.width) && in WritePixelCacheMetacontent()
5626 p+=cache_info->metacontent_extent*nexus_info->region.width; in WritePixelCacheMetacontent()
5643 region=nexus_info->region; in WritePixelCacheMetacontent()
5644 if ((cache_info->columns != nexus_info->region.width) || in WritePixelCacheMetacontent()
5658 p+=cache_info->metacontent_extent*nexus_info->region.width; in WritePixelCacheMetacontent()
5674 (CacheTick(nexus_info->region.y,cache_info->rows) != MagickFalse)) in WritePixelCacheMetacontent()
5677 nexus_info->region.width,(double) nexus_info->region.height,(double) in WritePixelCacheMetacontent()
5678 nexus_info->region.x,(double) nexus_info->region.y); in WritePixelCacheMetacontent()
5711 CacheInfo *magick_restrict cache_info,NexusInfo *magick_restrict nexus_info, in WritePixelCachePixels() argument
5731 if (nexus_info->authentic_pixel_cache != MagickFalse) in WritePixelCachePixels()
5733 offset=(MagickOffsetType) nexus_info->region.y*cache_info->columns+ in WritePixelCachePixels()
5734 nexus_info->region.x; in WritePixelCachePixels()
5735 length=(MagickSizeType) cache_info->number_channels*nexus_info->region.width* in WritePixelCachePixels()
5737 extent=length*nexus_info->region.height; in WritePixelCachePixels()
5738 rows=nexus_info->region.height; in WritePixelCachePixels()
5740 p=nexus_info->pixels; in WritePixelCachePixels()
5752 if ((cache_info->columns == nexus_info->region.width) && in WritePixelCachePixels()
5762 p+=cache_info->number_channels*nexus_info->region.width; in WritePixelCachePixels()
5780 if ((cache_info->columns == nexus_info->region.width) && in WritePixelCachePixels()
5793 p+=cache_info->number_channels*nexus_info->region.width; in WritePixelCachePixels()
5810 region=nexus_info->region; in WritePixelCachePixels()
5811 if ((cache_info->columns != nexus_info->region.width) || in WritePixelCachePixels()
5825 p+=cache_info->number_channels*nexus_info->region.width; in WritePixelCachePixels()
5841 (CacheTick(nexus_info->region.y,cache_info->rows) != MagickFalse)) in WritePixelCachePixels()
5844 nexus_info->region.width,(double) nexus_info->region.height,(double) in WritePixelCachePixels()
5845 nexus_info->region.x,(double) nexus_info->region.y); in WritePixelCachePixels()