Lines Matching refs:clone_info
508 *magick_restrict clone_info; in ClonePixelCache() local
519 clone_info=(CacheInfo *) AcquirePixelCache(cache_info->number_threads); in ClonePixelCache()
520 clone_info->virtual_pixel_method=cache_info->virtual_pixel_method; in ClonePixelCache()
521 return((Cache ) clone_info); in ClonePixelCache()
597 CacheInfo *magick_restrict cache_info,CacheInfo *magick_restrict clone_info) in ClonePixelCacheOnDisk() argument
618 (OpenPixelCacheOnDisk(clone_info,IOMode) == MagickFalse)) in ClonePixelCacheOnDisk()
621 (lseek(clone_info->file,0,SEEK_SET) < 0)) in ClonePixelCacheOnDisk()
629 count=sendfile(clone_info->file,cache_info->file,(off_t *) NULL, in ClonePixelCacheOnDisk()
634 (lseek(clone_info->file,0,SEEK_SET) < 0)) in ClonePixelCacheOnDisk()
649 number_bytes=write(clone_info->file,buffer,(size_t) count); in ClonePixelCacheOnDisk()
661 CacheInfo *magick_restrict clone_info,CacheInfo *magick_restrict cache_info, in ClonePixelCacheRepository() argument
687 assert(clone_info != (CacheInfo *) NULL); in ClonePixelCacheRepository()
692 if ((cache_info->storage_class == clone_info->storage_class) && in ClonePixelCacheRepository()
693 (cache_info->colorspace == clone_info->colorspace) && in ClonePixelCacheRepository()
694 (cache_info->alpha_trait == clone_info->alpha_trait) && in ClonePixelCacheRepository()
695 (cache_info->channels == clone_info->channels) && in ClonePixelCacheRepository()
696 (cache_info->columns == clone_info->columns) && in ClonePixelCacheRepository()
697 (cache_info->rows == clone_info->rows) && in ClonePixelCacheRepository()
698 (cache_info->number_channels == clone_info->number_channels) && in ClonePixelCacheRepository()
699 (memcmp(cache_info->channel_map,clone_info->channel_map,length) == 0) && in ClonePixelCacheRepository()
700 (cache_info->metacontent_extent == clone_info->metacontent_extent)) in ClonePixelCacheRepository()
707 ((clone_info->type == MemoryCache) || (clone_info->type == MapCache))) in ClonePixelCacheRepository()
709 (void) memcpy(clone_info->pixels,cache_info->pixels, in ClonePixelCacheRepository()
713 (clone_info->metacontent_extent != 0)) in ClonePixelCacheRepository()
714 (void) memcpy(clone_info->metacontent,cache_info->metacontent, in ClonePixelCacheRepository()
716 clone_info->metacontent_extent*sizeof(unsigned char)); in ClonePixelCacheRepository()
719 if ((cache_info->type == DiskCache) && (clone_info->type == DiskCache)) in ClonePixelCacheRepository()
720 return(ClonePixelCacheOnDisk(cache_info,clone_info)); in ClonePixelCacheRepository()
726 clone_nexus=AcquirePixelCacheNexus(clone_info->number_threads); in ClonePixelCacheRepository()
728 optimize=(cache_info->number_channels == clone_info->number_channels) && in ClonePixelCacheRepository()
729 (memcmp(cache_info->channel_map,clone_info->channel_map,length) == 0) ? in ClonePixelCacheRepository()
732 clone_info->number_channels*clone_info->columns); in ClonePixelCacheRepository()
736 cache_number_threads(cache_info,clone_info,cache_info->rows,1) in ClonePixelCacheRepository()
751 if (y >= (ssize_t) clone_info->rows) in ClonePixelCacheRepository()
760 pixels=SetPixelCacheNexusPixels(clone_info,WriteMode,0,y, in ClonePixelCacheRepository()
761 clone_info->columns,1,MagickFalse,clone_nexus[id],exception); in ClonePixelCacheRepository()
786 if (x == (ssize_t) clone_info->columns) in ClonePixelCacheRepository()
788 for (i=0; i < (ssize_t) clone_info->number_channels; i++) in ClonePixelCacheRepository()
796 channel=clone_info->channel_map[i].channel; in ClonePixelCacheRepository()
805 status=WritePixelCachePixels(clone_info,clone_nexus[id],exception); in ClonePixelCacheRepository()
808 (clone_info->metacontent_extent != 0)) in ClonePixelCacheRepository()
814 clone_info->metacontent_extent); in ClonePixelCacheRepository()
817 cache_number_threads(cache_info,clone_info,cache_info->rows,1) in ClonePixelCacheRepository()
829 if (y >= (ssize_t) clone_info->rows) in ClonePixelCacheRepository()
838 pixels=SetPixelCacheNexusPixels(clone_info,WriteMode,0,y, in ClonePixelCacheRepository()
839 clone_info->columns,1,MagickFalse,clone_nexus[id],exception); in ClonePixelCacheRepository()
846 status=WritePixelCacheMetacontent(clone_info,clone_nexus[id],exception); in ClonePixelCacheRepository()
849 clone_nexus=DestroyPixelCacheNexus(clone_nexus,clone_info->number_threads); in ClonePixelCacheRepository()
858 CommandOptionToMnemonic(MagickCacheOptions,(ssize_t) clone_info->type)); in ClonePixelCacheRepository()
1731 *clone_info; in GetImagePixelCache() local
1743 clone_info=(CacheInfo *) clone_image.cache; in GetImagePixelCache()
1746 clone_info=(CacheInfo *) DestroyPixelCache(clone_info); in GetImagePixelCache()
1750 status=ClonePixelCacheRepository(clone_info,cache_info, in GetImagePixelCache()
1753 clone_info=(CacheInfo *) DestroyPixelCache(clone_info); in GetImagePixelCache()
1757 image->cache=clone_info; in GetImagePixelCache()
4038 *magick_restrict clone_info; in PersistPixelCache() local
4086 clone_info=(CacheInfo *) ClonePixelCache(cache_info); in PersistPixelCache()
4087 clone_info->type=DiskCache; in PersistPixelCache()
4088 (void) CopyMagickString(clone_info->cache_filename,filename,MagickPathExtent); in PersistPixelCache()
4089 clone_info->file=(-1); in PersistPixelCache()
4090 clone_info->storage_class=cache_info->storage_class; in PersistPixelCache()
4091 clone_info->colorspace=cache_info->colorspace; in PersistPixelCache()
4092 clone_info->alpha_trait=cache_info->alpha_trait; in PersistPixelCache()
4093 clone_info->channels=cache_info->channels; in PersistPixelCache()
4094 clone_info->columns=cache_info->columns; in PersistPixelCache()
4095 clone_info->rows=cache_info->rows; in PersistPixelCache()
4096 clone_info->number_channels=cache_info->number_channels; in PersistPixelCache()
4097 clone_info->metacontent_extent=cache_info->metacontent_extent; in PersistPixelCache()
4098 clone_info->mode=PersistMode; in PersistPixelCache()
4099 clone_info->length=cache_info->length; in PersistPixelCache()
4100 (void) memcpy(clone_info->channel_map,cache_info->channel_map, in PersistPixelCache()
4102 clone_info->offset=(*offset); in PersistPixelCache()
4103 status=ClonePixelCacheRepository(clone_info,cache_info,exception); in PersistPixelCache()
4105 clone_info=(CacheInfo *) DestroyPixelCache(clone_info); in PersistPixelCache()