Lines Matching refs:Cache
13 % MagickCore Pixel Cache Methods %
47 #include "MagickCore/cache.h"
48 #include "MagickCore/cache-private.h"
52 #include "MagickCore/distribute-cache-private.h"
108 static Cache
179 % AcquirePixelCache() acquires a pixel cache.
183 % Cache AcquirePixelCache(const size_t number_threads)
190 MagickPrivate Cache AcquirePixelCache(const size_t number_threads)
228 return((Cache ) cache_info);
303 % o length: the pixel cache length.
318 assert(image->cache != (Cache) NULL);
319 cache_info=(CacheInfo *) image->cache;
340 % CacheComponentGenesis() instantiates the cache component.
366 % CacheComponentTerminus() destroys the cache component.
395 % ClonePixelCache() clones a pixel cache.
399 % Cache ClonePixelCache(const Cache cache)
403 % o cache: the pixel cache.
406 MagickPrivate Cache ClonePixelCache(const Cache cache)
414 assert(cache != NULL);
415 cache_info=(const CacheInfo *) cache;
421 Cache) NULL)
422 return((Cache) NULL);
424 return((Cache ) clone_info);
439 % ClonePixelCacheMethods() clones the pixel cache methods from one cache to
444 % void ClonePixelCacheMethods(Cache clone,const Cache cache)
448 % o clone: Specifies a pointer to a Cache structure.
450 % o cache: the pixel cache.
453 MagickPrivate void ClonePixelCacheMethods(Cache clone,const Cache cache)
459 assert(clone != (Cache) NULL);
465 assert(cache != (Cache) NULL);
466 cache_info=(CacheInfo *) cache;
482 % ClonePixelCacheRepository() clones the source pixel cache to the destination
483 % cache.
492 % o cache_info: the pixel cache.
494 % o source_info: the source pixel cache.
519 Clone pixel cache on disk with identifcal morphology.
586 Identical pixel cache morphology.
607 Mismatched pixel cache morphology.
780 % DestroyImagePixelCache() deallocates memory associated with the pixel cache.
797 if (image->cache == (void *) NULL)
799 image->cache=DestroyPixelCache(image->cache);
814 % DestroyImagePixels() deallocates memory associated with the pixel cache.
834 assert(image->cache != (Cache) NULL);
835 cache_info=(CacheInfo *) image->cache;
842 image->cache=DestroyPixelCache(image->cache);
857 % DestroyPixelCache() deallocates memory associated with the pixel cache.
861 % Cache DestroyPixelCache(Cache cache)
865 % o cache: the pixel cache.
940 MagickPrivate Cache DestroyPixelCache(Cache cache)
945 assert(cache != (Cache) NULL);
946 cache_info=(CacheInfo *) cache;
956 return((Cache) NULL);
983 cache=(Cache) NULL;
984 return(cache);
999 % DestroyPixelCacheNexus() destroys a pixel cache nexus.
1017 (void) RelinquishAlignedMemory(nexus_info->cache);
1019 (void) UnmapBlob(nexus_info->cache,(size_t) nexus_info->length);
1020 nexus_info->cache=(Quantum *) NULL;
1036 if (nexus_info[i]->cache != (Quantum *) NULL)
1080 assert(image->cache != (Cache) NULL);
1081 cache_info=(CacheInfo *) image->cache;
1132 assert(image->cache != (Cache) NULL);
1133 cache_info=(CacheInfo *) image->cache;
1179 cache_info=(CacheInfo *) image->cache;
1213 % disk pixel cache as defined by the geometry parameters. A pointer to the
1230 % o nexus_info: the cache nexus to return.
1247 Transfer pixels from the cache.
1255 cache_info=(CacheInfo *) image->cache;
1301 assert(image->cache != (Cache) NULL);
1302 cache_info=(CacheInfo *) image->cache;
1343 assert(image->cache != (Cache) NULL);
1344 cache_info=(CacheInfo *) image->cache;
1414 assert(image->cache != (Cache) NULL);
1415 cache_info=(CacheInfo *) image->cache;
1442 % GetAuthenticPixelsCache() gets pixels from the in-memory or disk pixel cache
1477 assert(image->cache != (Cache) NULL);
1478 cache_info=(CacheInfo *) image->cache;
1479 if (cache_info == (Cache) NULL)
1524 assert(image->cache != (Cache) NULL);
1525 cache_info=(CacheInfo *) image->cache;
1544 % pixel cache to be modified, updating the provided cache pointer to point to
1545 % a clone of the original pixel cache if necessary.
1549 % Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
1556 % o clone: any value other than MagickFalse clones the cache pixels.
1573 Does the image match the pixel cache morphology?
1575 cache_info=(CacheInfo *) image->cache;
1593 static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
1630 assert(image->cache != (Cache) NULL);
1631 cache_info=(CacheInfo *) image->cache;
1648 Clone pixel cache.
1653 clone_image.cache=ClonePixelCache(cache_info);
1654 clone_info=(CacheInfo *) clone_image.cache;
1666 image->cache=clone_image.cache;
1678 Ensure the image matches the pixel cache morphology.
1684 cache_info=(CacheInfo *) image->cache;
1691 return((Cache) NULL);
1692 return(image->cache);
1707 % GetImagePixelCacheType() returns the pixel cache type: UndefinedCache,
1726 assert(image->cache != (Cache) NULL);
1727 cache_info=(CacheInfo *) image->cache;
1802 assert(image->cache != (Cache) NULL);
1803 cache_info=(CacheInfo *) image->cache;
1860 assert(image->cache != (Cache) NULL);
1861 cache_info=(CacheInfo *) image->cache;
1916 assert(image->cache != (Cache) NULL);
1917 cache_info=(CacheInfo *) image->cache;
1980 assert(image->cache != (Cache) NULL);
1981 cache_info=(CacheInfo *) image->cache;
2040 assert(image->cache != (Cache) NULL);
2041 cache_info=(CacheInfo *) image->cache;
2065 % GetPixelCacheColorspace() returns the class type of the pixel cache.
2069 % Colorspace GetPixelCacheColorspace(Cache cache)
2073 % o cache: the pixel cache.
2076 MagickPrivate ColorspaceType GetPixelCacheColorspace(const Cache cache)
2081 assert(cache != (Cache) NULL);
2082 cache_info=(CacheInfo *) cache;
2151 % MagickSizeType GetPixelCacheNexusExtent(const Cache cache,
2159 MagickPrivate MagickSizeType GetPixelCacheNexusExtent(const Cache cache,
2168 assert(cache != NULL);
2169 cache_info=(CacheInfo *) cache;
2200 % o length: the pixel cache length.
2213 assert(image->cache != (Cache) NULL);
2217 cache_info=(CacheInfo *) image->cache;
2238 % GetPixelCacheStorageClass() returns the class type of the pixel cache.
2242 % ClassType GetPixelCacheStorageClass(Cache cache)
2248 % o cache: the pixel cache.
2251 MagickPrivate ClassType GetPixelCacheStorageClass(const Cache cache)
2256 assert(cache != (Cache) NULL);
2257 cache_info=(CacheInfo *) cache;
2277 % GetPixelCacheTileSize() returns the pixel cache tile size.
2288 % o width: the optimize cache tile width in pixels.
2290 % o height: the optimize cache tile height in pixels.
2303 cache_info=(CacheInfo *) image->cache;
2324 % pixel cache. A virtual pixel is any pixel access that is outside the
2325 % boundaries of the image cache.
2343 assert(image->cache != (Cache) NULL);
2344 cache_info=(CacheInfo *) image->cache;
2386 assert(image->cache != (Cache) NULL);
2387 cache_info=(CacheInfo *) image->cache;
2408 % cache nexus.
2412 % const void *GetVirtualMetacontentFromNexus(const Cache cache,
2417 % o cache: the pixel cache.
2419 % o nexus_info: the cache nexus to return the meta-content.
2422 MagickPrivate const void *GetVirtualMetacontentFromNexus(const Cache cache,
2428 assert(cache != (Cache) NULL);
2429 cache_info=(CacheInfo *) cache;
2474 assert(image->cache != (Cache) NULL);
2475 cache_info=(CacheInfo *) image->cache;
2499 % pixel cache as defined by the geometry parameters. A pointer to the pixels
2518 % o nexus_info: the cache nexus to acquire.
2663 assert(image->cache != (Cache) NULL);
2664 cache_info=(CacheInfo *) image->cache;
2690 Pixel request is inside cache extents.
2706 Pixel request is outside cache extents.
3022 % cache as defined by the geometry parameters. A pointer to the pixels
3059 assert(image->cache != (Cache) NULL);
3060 cache_info=(CacheInfo *) image->cache;
3102 assert(image->cache != (Cache) NULL);
3103 cache_info=(CacheInfo *) image->cache;
3176 assert(image->cache != (Cache) NULL);
3177 cache_info=(CacheInfo *) image->cache;
3223 assert(image->cache != (Cache) NULL);
3224 cache_info=(CacheInfo *) image->cache;
3227 return(GetVirtualPixelsNexus(image->cache,cache_info->nexus_info[id]));
3243 % cache nexus.
3247 % const Quantum *GetVirtualPixelsNexus(const Cache cache,
3252 % o cache: the pixel cache.
3254 % o nexus_info: the cache nexus to return the colormap pixels.
3257 MagickPrivate const Quantum *GetVirtualPixelsNexus(const Cache cache,
3263 assert(cache != (Cache) NULL);
3264 cache_info=(CacheInfo *) cache;
3283 % OpenPixelCache() allocates the pixel cache. This includes defining the cache
3285 % metacontent, and memory mapping the cache if it is disk based. The cache
3325 Open pixel cache on disk.
3328 return(MagickTrue); /* cache already open and in the proper mode */
3411 cache_info=(CacheInfo *) image->cache;
3477 assert(image->cache != (Cache) NULL);
3482 cache_info=(CacheInfo *) image->cache;
3541 Create memory pixel cache.
3576 Create pixel cache on disk.
3599 Create a distributed pixel cache.
3686 Create file-backed memory-mapped pixel cache.
3756 % PersistPixelCache() attaches to or initializes a persistent pixel cache. A
3757 % persistent pixel cache is one that resides on disk and is not destroyed
3770 % o filename: the persistent pixel cache filename.
3772 % o attach: A value other than zero initializes the persistent pixel cache.
3775 % cache.
3777 % o offset: the offset in the persistent cache to store pixels.
3803 assert(image->cache != (void *) NULL);
3807 cache_info=(CacheInfo *) image->cache;
3815 Attach existing persistent pixel cache.
3819 "attach persistent cache");
3839 Usurp existing persistent pixel cache.
3851 "Usurp resident persistent cache");
3858 Clone persistent pixel cache.
3861 clone_info=(CacheInfo *) clone_image.cache;
3862 image->cache=ClonePixelCache(cache_info);
3863 cache_info=(CacheInfo *) ReferencePixelCache(image->cache);
3867 cache_info=(CacheInfo *) image->cache;
3890 % region is subsequently transferred from the pixel cache with
3908 % o nexus_info: the cache nexus to set.
3910 % o clone: clone the pixel cache.
3935 Validate pixel cache geometry.
3939 assert(image->cache != (Cache) NULL);
3941 if (cache_info == (Cache) NULL)
3960 Return pixel cache.
3985 % region is subsequently transferred from the pixel cache with
4020 assert(image->cache != (Cache) NULL);
4021 cache_info=(CacheInfo *) image->cache;
4101 assert(image->cache != (Cache) NULL);
4102 cache_info=(CacheInfo *) image->cache;
4130 % the pixel cache.
4139 % o cache_info: the pixel cache.
4141 % o nexus_info: the cache nexus to read the metacontent.
4282 Read metacontent from distributed cache.
4337 % cache.
4346 % o cache_info: the pixel cache.
4348 % o nexus_info: the cache nexus to read the pixels.
4457 Read pixels from distributed cache.
4512 % pixel cache returning a pointer to the cache.
4516 % Cache ReferencePixelCache(Cache cache_info)
4520 % o cache_info: the pixel cache.
4523 MagickPrivate Cache ReferencePixelCache(Cache cache)
4528 assert(cache != (Cache *) NULL);
4529 cache_info=(CacheInfo *) cache;
4549 % ResetPixelCacheEpoch() resets the pixel cache epoch.
4577 % SetPixelCacheMethods(Cache *,CacheMethods *cache_methods)
4581 % o cache: the pixel cache.
4586 MagickPrivate void SetPixelCacheMethods(Cache cache,CacheMethods *cache_methods)
4598 Set cache pixel methods.
4600 assert(cache != (Cache) NULL);
4602 cache_info=(CacheInfo *) cache;
4663 % SetPixelCacheNexusPixels() defines the region of the cache for the
4664 % specified cache nexus.
4674 % o cache_info: the pixel cache.
4679 % region of this particular cache nexus.
4681 % o nexus_info: the cache nexus to set.
4694 nexus_info->cache=(Quantum *) MagickAssumeAligned(AcquireAlignedMemory(1,
4696 if (nexus_info->cache == (Quantum *) NULL)
4699 nexus_info->cache=(Quantum *) MapBlob(-1,IOMode,0,(size_t)
4702 if (nexus_info->cache == (Quantum *) NULL)
4723 Does nexus pixels point directly to in-core cache pixels or is it buffered?
4796 Pixels are stored in a staging region until they are synced to the cache.
4803 if (nexus_info->cache == (Quantum *) NULL)
4825 nexus_info->pixels=nexus_info->cache;
4849 % pixel cache and returns the previous setting. A virtual pixel is any pixel
4850 % access that is outside the boundaries of the image cache.
4886 assert(image->cache != (Cache) NULL);
4887 cache_info=(CacheInfo *) image->cache;
4936 assert(image->cache != (Cache) NULL);
4937 cache_info=(CacheInfo *) image->cache;
5012 cache_info=(CacheInfo *) image->cache;
5030 % in-memory or disk cache. The method returns MagickTrue if the pixel region
5042 % o nexus_info: the cache nexus to sync.
5057 Transfer pixels to the cache.
5061 if (image->cache == (Cache) NULL)
5063 cache_info=(CacheInfo *) image->cache;
5095 % or disk cache. The method returns MagickTrue if the pixel region is synced,
5124 assert(image->cache != (Cache) NULL);
5125 cache_info=(CacheInfo *) image->cache;
5145 % SyncAuthenticPixels() saves the image pixels to the in-memory or disk cache.
5175 assert(image->cache != (Cache) NULL);
5176 cache_info=(CacheInfo *) image->cache;
5203 % SyncImagePixelCache() saves the image pixels to the in-memory or disk cache.
5244 % of the pixel cache.
5253 % o cache_info: the pixel cache.
5255 % o nexus_info: the cache nexus to write the meta-content.
5360 Write metacontent to distributed cache.
5415 % pixel cache.
5424 % o cache_info: the pixel cache.
5426 % o nexus_info: the cache nexus to write the pixels.
5528 Write pixels to distributed cache.