• Home
  • Raw
  • Download

Lines Matching refs:cache_info

201 static inline void RelinquishStreamPixels(CacheInfo *cache_info)  in RelinquishStreamPixels()  argument
203 assert(cache_info != (CacheInfo *) NULL); in RelinquishStreamPixels()
204 if (cache_info->pixels != (Quantum *) NULL) in RelinquishStreamPixels()
206 if (cache_info->mapped == MagickFalse) in RelinquishStreamPixels()
207 (void) RelinquishAlignedMemory(cache_info->pixels); in RelinquishStreamPixels()
209 (void) UnmapBlob(cache_info->pixels,(size_t) cache_info->length); in RelinquishStreamPixels()
211 cache_info->pixels=(Quantum *) NULL; in RelinquishStreamPixels()
212 cache_info->metacontent=(void *) NULL; in RelinquishStreamPixels()
213 cache_info->length=0; in RelinquishStreamPixels()
214 cache_info->mapped=MagickFalse; in RelinquishStreamPixels()
220 *cache_info; in DestroyPixelStream() local
229 cache_info=(CacheInfo *) image->cache; in DestroyPixelStream()
230 assert(cache_info->signature == MagickCoreSignature); in DestroyPixelStream()
232 LockSemaphoreInfo(cache_info->semaphore); in DestroyPixelStream()
233 cache_info->reference_count--; in DestroyPixelStream()
234 if (cache_info->reference_count == 0) in DestroyPixelStream()
236 UnlockSemaphoreInfo(cache_info->semaphore); in DestroyPixelStream()
239 RelinquishStreamPixels(cache_info); in DestroyPixelStream()
240 if (cache_info->nexus_info != (NexusInfo **) NULL) in DestroyPixelStream()
241 cache_info->nexus_info=DestroyPixelCacheNexus(cache_info->nexus_info, in DestroyPixelStream()
242 cache_info->number_threads); in DestroyPixelStream()
243 if (cache_info->file_semaphore != (SemaphoreInfo *) NULL) in DestroyPixelStream()
244 RelinquishSemaphoreInfo(&cache_info->file_semaphore); in DestroyPixelStream()
245 if (cache_info->semaphore != (SemaphoreInfo *) NULL) in DestroyPixelStream()
246 RelinquishSemaphoreInfo(&cache_info->semaphore); in DestroyPixelStream()
247 cache_info=(CacheInfo *) RelinquishAlignedMemory(cache_info); in DestroyPixelStream()
322 *cache_info; in GetAuthenticMetacontentFromStream() local
328 cache_info=(CacheInfo *) image->cache; in GetAuthenticMetacontentFromStream()
329 assert(cache_info->signature == MagickCoreSignature); in GetAuthenticMetacontentFromStream()
330 return(cache_info->metacontent); in GetAuthenticMetacontentFromStream()
406 *cache_info; in GetAuthenticPixelsFromStream() local
412 cache_info=(CacheInfo *) image->cache; in GetAuthenticPixelsFromStream()
413 assert(cache_info->signature == MagickCoreSignature); in GetAuthenticPixelsFromStream()
414 return(cache_info->pixels); in GetAuthenticPixelsFromStream()
600 *cache_info; in GetVirtualPixelsStream() local
606 cache_info=(CacheInfo *) image->cache; in GetVirtualPixelsStream()
607 assert(cache_info->signature == MagickCoreSignature); in GetVirtualPixelsStream()
608 return(cache_info->pixels); in GetVirtualPixelsStream()
638 *cache_info; in GetVirtualMetacontentFromStream() local
644 cache_info=(CacheInfo *) image->cache; in GetVirtualMetacontentFromStream()
645 assert(cache_info->signature == MagickCoreSignature); in GetVirtualMetacontentFromStream()
646 return(cache_info->metacontent); in GetVirtualMetacontentFromStream()
685 static inline MagickBooleanType AcquireStreamPixels(CacheInfo *cache_info, in AcquireStreamPixels() argument
688 if (cache_info->length != (MagickSizeType) ((size_t) cache_info->length)) in AcquireStreamPixels()
710 cache_info->filename); in AcquireStreamPixels()
717 cache_info->mapped=MagickFalse; in AcquireStreamPixels()
718 cache_info->pixels=(Quantum *) MagickAssumeAligned( in AcquireStreamPixels()
719 AcquireAlignedMemory(1,(size_t) cache_info->length)); in AcquireStreamPixels()
723 cache_info->mapped=MagickTrue; in AcquireStreamPixels()
724 cache_info->pixels=(Quantum *) MapBlob(-1,IOMode,0,(size_t) in AcquireStreamPixels()
725 cache_info->length); in AcquireStreamPixels()
727 if (cache_info->pixels == (Quantum *) NULL) in AcquireStreamPixels()
731 cache_info->filename); in AcquireStreamPixels()
743 *cache_info; in GetVirtualPixelStream() local
772 cache_info=(CacheInfo *) image->cache; in GetVirtualPixelStream()
773 assert(cache_info->signature == MagickCoreSignature); in GetVirtualPixelStream()
778 length=(size_t) number_pixels*cache_info->number_channels*sizeof(Quantum); in GetVirtualPixelStream()
779 if (cache_info->number_channels == 0) in GetVirtualPixelStream()
781 if (cache_info->metacontent_extent != 0) in GetVirtualPixelStream()
782 length+=number_pixels*cache_info->metacontent_extent; in GetVirtualPixelStream()
783 if (cache_info->pixels == (Quantum *) NULL) in GetVirtualPixelStream()
785 cache_info->length=length; in GetVirtualPixelStream()
786 status=AcquireStreamPixels(cache_info,exception); in GetVirtualPixelStream()
789 cache_info->length=0; in GetVirtualPixelStream()
794 if (cache_info->length < length) in GetVirtualPixelStream()
796 RelinquishStreamPixels(cache_info); in GetVirtualPixelStream()
797 cache_info->length=length; in GetVirtualPixelStream()
798 status=AcquireStreamPixels(cache_info,exception); in GetVirtualPixelStream()
801 cache_info->length=0; in GetVirtualPixelStream()
805 cache_info->metacontent=(void *) NULL; in GetVirtualPixelStream()
806 if (cache_info->metacontent_extent != 0) in GetVirtualPixelStream()
807 cache_info->metacontent=(void *) (cache_info->pixels+number_pixels* in GetVirtualPixelStream()
808 cache_info->number_channels); in GetVirtualPixelStream()
809 return(cache_info->pixels); in GetVirtualPixelStream()
889 *magick_restrict cache_info; in ValidatePixelCacheMorphology() local
898 cache_info=(CacheInfo *) image->cache; in ValidatePixelCacheMorphology()
900 q=cache_info->channel_map; in ValidatePixelCacheMorphology()
901 if ((image->storage_class != cache_info->storage_class) || in ValidatePixelCacheMorphology()
902 (image->colorspace != cache_info->colorspace) || in ValidatePixelCacheMorphology()
903 (image->alpha_trait != cache_info->alpha_trait) || in ValidatePixelCacheMorphology()
904 (image->channels != cache_info->channels) || in ValidatePixelCacheMorphology()
905 (image->columns != cache_info->columns) || in ValidatePixelCacheMorphology()
906 (image->rows != cache_info->rows) || in ValidatePixelCacheMorphology()
907 (image->number_channels != cache_info->number_channels) || in ValidatePixelCacheMorphology()
909 (image->metacontent_extent != cache_info->metacontent_extent) || in ValidatePixelCacheMorphology()
910 (cache_info->nexus_info == (NexusInfo **) NULL)) in ValidatePixelCacheMorphology()
920 *cache_info; in QueueAuthenticPixelsStream() local
954 cache_info=(CacheInfo *) image->cache; in QueueAuthenticPixelsStream()
955 assert(cache_info->signature == MagickCoreSignature); in QueueAuthenticPixelsStream()
958 if (cache_info->storage_class == UndefinedClass) in QueueAuthenticPixelsStream()
960 cache_info->columns); in QueueAuthenticPixelsStream()
961 cache_info->storage_class=image->storage_class; in QueueAuthenticPixelsStream()
962 cache_info->colorspace=image->colorspace; in QueueAuthenticPixelsStream()
963 cache_info->alpha_trait=image->alpha_trait; in QueueAuthenticPixelsStream()
964 cache_info->channels=image->channels; in QueueAuthenticPixelsStream()
965 cache_info->columns=image->columns; in QueueAuthenticPixelsStream()
966 cache_info->rows=image->rows; in QueueAuthenticPixelsStream()
967 cache_info->number_channels=image->number_channels; in QueueAuthenticPixelsStream()
970 image->cache=cache_info; in QueueAuthenticPixelsStream()
975 cache_info->columns=columns; in QueueAuthenticPixelsStream()
976 cache_info->rows=rows; in QueueAuthenticPixelsStream()
978 length=(size_t) number_pixels*cache_info->number_channels*sizeof(Quantum); in QueueAuthenticPixelsStream()
979 if (cache_info->number_channels == 0) in QueueAuthenticPixelsStream()
981 if (cache_info->metacontent_extent != 0) in QueueAuthenticPixelsStream()
982 length+=number_pixels*cache_info->metacontent_extent; in QueueAuthenticPixelsStream()
983 if (cache_info->pixels == (Quantum *) NULL) in QueueAuthenticPixelsStream()
985 cache_info->length=length; in QueueAuthenticPixelsStream()
986 status=AcquireStreamPixels(cache_info,exception); in QueueAuthenticPixelsStream()
989 cache_info->length=0; in QueueAuthenticPixelsStream()
994 if (cache_info->length < length) in QueueAuthenticPixelsStream()
996 RelinquishStreamPixels(cache_info); in QueueAuthenticPixelsStream()
997 cache_info->length=length; in QueueAuthenticPixelsStream()
998 status=AcquireStreamPixels(cache_info,exception); in QueueAuthenticPixelsStream()
1001 cache_info->length=0; in QueueAuthenticPixelsStream()
1005 cache_info->metacontent=(void *) NULL; in QueueAuthenticPixelsStream()
1006 if (cache_info->metacontent_extent != 0) in QueueAuthenticPixelsStream()
1007 cache_info->metacontent=(void *) (cache_info->pixels+number_pixels* in QueueAuthenticPixelsStream()
1008 cache_info->number_channels); in QueueAuthenticPixelsStream()
1009 return(cache_info->pixels); in QueueAuthenticPixelsStream()
1248 *cache_info; in WriteStreamImage() local
1276 cache_info=(CacheInfo *) image->cache; in WriteStreamImage()
1277 assert(cache_info->signature == MagickCoreSignature); in WriteStreamImage()
1279 length=packet_size*cache_info->columns*cache_info->rows; in WriteStreamImage()
2785 *cache_info; in SyncAuthenticPixelsStream() local
2797 cache_info=(CacheInfo *) image->cache; in SyncAuthenticPixelsStream()
2798 assert(cache_info->signature == MagickCoreSignature); in SyncAuthenticPixelsStream()
2806 length=stream_handler(image,cache_info->pixels,(size_t) cache_info->columns); in SyncAuthenticPixelsStream()
2807 return(length == cache_info->columns ? MagickTrue : MagickFalse); in SyncAuthenticPixelsStream()