| MagickCore 7.1.0
    Convert, Edit, Or Compose Bitmap Images | 
#include "MagickCore/cache.h"#include "MagickCore/distribute-cache.h"#include "MagickCore/opencl-private.h"#include "MagickCore/pixel.h"#include "MagickCore/random_.h"#include "MagickCore/thread-private.h"#include "MagickCore/semaphore.h"Go to the source code of this file.
| Data Structures | |
| struct | _CacheMethods | 
| struct | _NexusInfo | 
| struct | _CacheInfo | 
| Typedefs | |
| typedef void * | Cache | 
| typedef MagickBooleanType(* | GetOneAuthenticPixelFromHandler) (Image *, const ssize_t, const ssize_t, Quantum *, ExceptionInfo *) | 
| typedef MagickBooleanType(*)(* | GetOneVirtualPixelFromHandler) (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, Quantum *, ExceptionInfo *) | 
| typedef MagickBooleanType(*)(*)(* | SyncAuthenticPixelsHandler) (Image *, ExceptionInfo *) | 
| typedef const Quantum *(* | GetVirtualPixelHandler) (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) | 
| typedef const Quantum *(*) *(* | GetVirtualPixelsHandler) (const Image *) | 
| typedef const void *(* | GetVirtualMetacontentFromHandler) (const Image *) | 
| typedef Quantum *(* | GetAuthenticPixelsHandler) (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) | 
| typedef Quantum *(* | GetAuthenticPixelsFromHandler) (const Image *) | 
| typedef Quantum *(* | QueueAuthenticPixelsHandler) (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) | 
| typedef void(* | DestroyPixelHandler) (Image *) | 
| typedef void *(* | GetAuthenticMetacontentFromHandler) (const Image *) | 
| typedef struct _CacheMethods | CacheMethods | 
| typedef struct _NexusInfo | NexusInfo | 
| typedef struct _CacheInfo | CacheInfo | 
| typedef void* Cache | 
Definition at line 34 of file cache-private.h.
| typedef struct _CacheInfo CacheInfo | 
| typedef struct _CacheMethods CacheMethods | 
| typedef void(* DestroyPixelHandler) (Image *) | 
Definition at line 62 of file cache-private.h.
| typedef void *(* GetAuthenticMetacontentFromHandler) (const Image *) | 
Definition at line 65 of file cache-private.h.
Definition at line 55 of file cache-private.h.
| typedef Quantum *(* GetAuthenticPixelsHandler) (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) | 
Definition at line 51 of file cache-private.h.
| typedef MagickBooleanType(* GetOneAuthenticPixelFromHandler) (Image *, const ssize_t, const ssize_t, Quantum *, ExceptionInfo *) | 
Definition at line 36 of file cache-private.h.
| typedef MagickBooleanType(*)(* GetOneVirtualPixelFromHandler) (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, Quantum *, ExceptionInfo *) | 
Definition at line 36 of file cache-private.h.
| typedef const void *(* GetVirtualMetacontentFromHandler) (const Image *) | 
Definition at line 48 of file cache-private.h.
| typedef const Quantum *(* GetVirtualPixelHandler) (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) | 
Definition at line 43 of file cache-private.h.
Definition at line 43 of file cache-private.h.
| typedef struct _NexusInfo NexusInfo | 
| typedef Quantum *(* QueueAuthenticPixelsHandler) (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) | 
Definition at line 58 of file cache-private.h.
| typedef MagickBooleanType(*)(*)(* SyncAuthenticPixelsHandler) (Image *, ExceptionInfo *) | 
Definition at line 36 of file cache-private.h.
| MagickPrivate Cache AcquirePixelCache | ( | const | size_t | ) | 
Referenced by AcquireImage(), and ReadStream().
| MagickPrivate NexusInfo ** AcquirePixelCacheNexus | ( | const | size_t | ) | 
Referenced by AcquireVirtualCacheView(), and CloneCacheView().
| MagickPrivate MagickBooleanType CacheComponentGenesis | ( | void | ) | 
Referenced by MagickCoreGenesis().
| MagickPrivate void CacheComponentTerminus | ( | void | ) | 
Referenced by MagickCoreTerminus().
| MagickPrivate Cache ClonePixelCache | ( | const | Cache | ) | 
Referenced by CloneImage().
| MagickPrivate void ClonePixelCacheMethods | ( | Cache | , | 
| const | Cache | ||
| ) | 
Referenced by AcquireImage().
| MagickPrivate Cache DestroyPixelCache | ( | Cache | ) | 
Referenced by DestroyImageInfo().
| MagickPrivate NexusInfo ** DestroyPixelCacheNexus | ( | NexusInfo ** | nexus_info, | 
| const | size_t | ||
| ) | 
Definition at line 1120 of file cache.c.
References RelinquishAlignedMemory(), RelinquishCacheNexusPixels(), RelinquishMagickMemory(), and _NexusInfo::signature.
Referenced by ClonePixelCacheRepository(), DestroyCacheView(), DestroyPixelCache(), and DestroyPixelStream().
| MagickPrivate Quantum * GetAuthenticPixelCacheNexus | ( | Image * | , | 
| const | ssize_t, | ||
| const | ssize_t, | ||
| const | size_t, | ||
| const | size_t, | ||
| NexusInfo * | , | ||
| ExceptionInfo * | |||
| ) | 
Referenced by GetCacheViewAuthenticPixels(), and GetOneCacheViewAuthenticPixel().
| MagickPrivate size_t GetPixelCacheChannels | ( | const | Cache | ) | 
| MagickPrivate ColorspaceType GetPixelCacheColorspace | ( | const | Cache | ) | 
Definition at line 2161 of file cache.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, and TraceEvent.
Referenced by GetCacheViewColorspace().
| MagickPrivate void GetPixelCacheMethods | ( | CacheMethods * | ) | 
Referenced by ReadStream().
| MagickPrivate MagickSizeType GetPixelCacheNexusExtent | ( | const | Cache, | 
| NexusInfo * | magick_restrict | ||
| ) | 
Referenced by GetCacheViewExtent().
| MagickPrivate ClassType GetPixelCacheStorageClass | ( | const | Cache | ) | 
Definition at line 2366 of file cache.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, and TraceEvent.
Referenced by GetCacheViewStorageClass().
| MagickPrivate void GetPixelCacheTileSize | ( | const Image * | , | 
| size_t * | , | ||
| size_t * | |||
| ) | 
Referenced by IntegralRotateImage().
| MagickPrivate VirtualPixelMethod GetPixelCacheVirtualMethod | ( | const Image * | ) | 
Referenced by GetImageVirtualPixelMethod().
| MagickPrivate const void * GetVirtualMetacontentFromNexus | ( | const | Cache, | 
| NexusInfo * | magick_restrict | ||
| ) | 
Referenced by GetCacheViewVirtualMetacontent().
| MagickPrivate const Quantum * GetVirtualPixelCacheNexus | ( | const Image * | , | 
| const | VirtualPixelMethod, | ||
| const | ssize_t, | ||
| const | ssize_t, | ||
| const | size_t, | ||
| const | size_t, | ||
| NexusInfo * | , | ||
| ExceptionInfo * | |||
| ) | 
| MagickPrivate const Quantum * GetVirtualPixelsNexus | ( | const | Cache, | 
| NexusInfo * | magick_restrict | ||
| ) | 
Referenced by GetCacheViewVirtualPixelQueue().
| MagickPrivate Quantum * QueueAuthenticPixelCacheNexus | ( | Image * | image, | 
| const | ssize_t, | ||
| const | ssize_t, | ||
| const | size_t, | ||
| const | size_t, | ||
| const | MagickBooleanType, | ||
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) | 
Definition at line 4148 of file cache.c.
References _Image::cache, CacheError, _Image::channels, CompositeMaskChannel, _Image::filename, GetImagePixelCache(), GetMagickModule, magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, SetPixelCacheNexusPixels(), _Image::signature, ThrowMagickException(), WriteMaskChannel, and WriteMode.
Referenced by GetAuthenticPixelCacheNexus(), QueueAuthenticPixels(), QueueAuthenticPixelsCache(), and QueueCacheViewAuthenticPixels().
| MagickPrivate Cache ReferencePixelCache | ( | Cache | cache | ) | 
Definition at line 4746 of file cache.c.
References LockSemaphoreInfo(), magick_restrict, MagickCoreSignature, and UnlockSemaphoreInfo().
Referenced by CloneImage(), and CloneImageInfo().
| MagickPrivate void ResetCacheAnonymousMemory | ( | void | ) | 
Referenced by SetMagickSecurityPolicyValue().
| MagickPrivate void ResetPixelCacheChannels | ( | Image * | ) | 
Referenced by QueueAuthenticPixelsStream(), and ReadStream().
| MagickPrivate void ResetPixelCacheEpoch | ( | void | ) | 
Referenced by SetMagickResourceLimit().
| MagickPrivate void SetPixelCacheMethods | ( | Cache | cache, | 
| CacheMethods * | cache_methods | ||
| ) | 
Definition at line 4865 of file cache.c.
References _CacheMethods::destroy_pixel_handler, _CacheMethods::get_authentic_metacontent_from_handler, _CacheMethods::get_authentic_pixels_from_handler, _CacheMethods::get_authentic_pixels_handler, _CacheMethods::get_one_authentic_pixel_from_handler, _CacheMethods::get_one_virtual_pixel_from_handler, _CacheMethods::get_virtual_metacontent_from_handler, _CacheMethods::get_virtual_pixel_handler, GetMagickModule, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, _CacheMethods::queue_authentic_pixels_handler, _CacheMethods::sync_authentic_pixels_handler, and TraceEvent.
Referenced by ReadStream().
| MagickPrivate VirtualPixelMethod SetPixelCacheVirtualMethod | ( | Image * | image, | 
| const | VirtualPixelMethod, | ||
| ExceptionInfo * | exception | ||
| ) | 
Definition at line 5213 of file cache.c.
References _Image::alpha_trait, _PixelInfo::alpha_trait, _Image::background_color, BackgroundVirtualPixelMethod, _Image::cache, _Image::colorspace, _Image::columns, _Image::filename, GetMagickModule, IsEventLogging(), IsGrayColorspace(), IsPixelInfoGray(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, OpaqueAlpha, _Image::rows, SetCacheAlphaChannel(), SetImageColorspace(), _Image::signature, sRGBColorspace, TraceEvent, TransparentVirtualPixelMethod, and UndefinedPixelTrait.
Referenced by SetImageVirtualPixelMethod().
| MagickPrivate MagickBooleanType SyncAuthenticPixelCacheNexus | ( | Image * | , | 
| NexusInfo * | magick_restrict, | ||
| ExceptionInfo * | |||
| ) | 
Referenced by SyncCacheViewAuthenticPixels().
| MagickPrivate MagickBooleanType SyncImagePixelCache | ( | Image * | image, | 
| ExceptionInfo * | exception | ||
| ) | 
Definition at line 5514 of file cache.c.
References GetImagePixelCache(), magick_restrict, MagickFalse, and MagickTrue.
Referenced by SetImageAlphaChannel(), SetImageColorspace(), SetImageExtent(), SetImageGray(), SetImageMask(), SetImageMonochrome(), SetImageRegionMask(), SetImageStorageClass(), and SetPixelMetaChannels().