![]() |
MagickCore
7.0.7
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 63 of file cache-private.h.
typedef void*(* GetAuthenticMetacontentFromHandler) (const Image *) |
Definition at line 66 of file cache-private.h.
Definition at line 56 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 52 of file cache-private.h.
typedef MagickBooleanType(* GetOneAuthenticPixelFromHandler) (Image *, const ssize_t, const ssize_t, Quantum *, ExceptionInfo *) |
Definition at line 37 of file cache-private.h.
typedef MagickBooleanType(*)(* GetOneVirtualPixelFromHandler) (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, Quantum *, ExceptionInfo *) |
Definition at line 39 of file cache-private.h.
typedef const void*(* GetVirtualMetacontentFromHandler) (const Image *) |
Definition at line 49 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 44 of file cache-private.h.
Definition at line 46 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 59 of file cache-private.h.
typedef MagickBooleanType(*)(*)(* SyncAuthenticPixelsHandler) (Image *, ExceptionInfo *) |
Definition at line 41 of file cache-private.h.
MagickPrivate Cache AcquirePixelCache | ( | const size_t | ) |
Referenced by AcquireImage(), ClonePixelCache(), 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 ** | , |
const size_t | |||
) |
Definition at line 1012 of file cache.c.
References MagickCoreSignature, RelinquishAlignedMemory(), RelinquishCacheNexusPixels(), RelinquishMagickMemory(), and _NexusInfo::signature.
Referenced by ClonePixelCacheRepository(), DestroyCacheView(), DestroyPixelCache(), DestroyPixelStream(), and GetVirtualPixelsFromNexus().
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 2046 of file cache.c.
References GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, and TraceEvent.
Referenced by GetCacheViewColorspace(), and QueueAuthenticPixelsStream().
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 2252 of file cache.c.
References GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, and TraceEvent.
Referenced by GetCacheViewStorageClass(), and QueueAuthenticPixelsStream().
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* GetVirtualPixelsFromNexus | ( | 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 * | , |
const ssize_t | , | ||
const ssize_t | , | ||
const size_t | , | ||
const size_t | , | ||
const MagickBooleanType | , | ||
NexusInfo * | , | ||
ExceptionInfo * | |||
) |
Definition at line 3922 of file cache.c.
References _Image::cache, CacheError, _Image::filename, GetImagePixelCache(), GetMagickModule, _RectangleInfo::height, magick_restrict, MagickCoreSignature, SetPixelCacheNexusPixels(), _Image::signature, ThrowMagickException(), _RectangleInfo::width, WriteMode, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetAuthenticPixelCacheNexus(), QueueAuthenticPixels(), QueueAuthenticPixelsCache(), and QueueCacheViewAuthenticPixels().
MagickPrivate Cache ReferencePixelCache | ( | Cache | ) |
Definition at line 4525 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 ReadStream().
MagickPrivate void ResetPixelCacheEpoch | ( | void | ) |
Referenced by SetMagickResourceLimit().
MagickPrivate void SetPixelCacheMethods | ( | Cache | , |
CacheMethods * | |||
) |
Definition at line 4644 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, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, _CacheMethods::queue_authentic_pixels_handler, _CacheMethods::sync_authentic_pixels_handler, and TraceEvent.
Referenced by ReadStream().
MagickPrivate VirtualPixelMethod SetPixelCacheVirtualMethod | ( | Image * | , |
const VirtualPixelMethod | , | ||
ExceptionInfo * | |||
) |
Definition at line 4988 of file cache.c.
References _PixelInfo::alpha_trait, _Image::alpha_trait, _Image::background_color, BackgroundVirtualPixelMethod, _Image::cache, _Image::colorspace, _Image::columns, _Image::debug, _Image::filename, GetMagickModule, IsGrayColorspace(), IsPixelInfoGray(), LockSemaphoreInfo(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickPrivate, MemoryCache, OpaqueAlpha, _Image::rows, SetCacheAlphaChannel(), SetImageColorspace(), _Image::signature, sRGBColorspace, TraceEvent, TransparentVirtualPixelMethod, UndefinedPixelTrait, and UnlockSemaphoreInfo().
Referenced by SetImageVirtualPixelMethod().
MagickPrivate MagickBooleanType SyncAuthenticPixelCacheNexus | ( | Image * | , |
NexusInfo * | magick_restrict, | ||
ExceptionInfo * | |||
) |
Referenced by SyncCacheViewAuthenticPixels().
MagickPrivate MagickBooleanType SyncImagePixelCache | ( | Image * | , |
ExceptionInfo * | |||
) |
Definition at line 5280 of file cache.c.
References GetImagePixelCache(), magick_restrict, MagickFalse, and MagickTrue.
Referenced by GetAuthenticMetacontentFromCache(), OpenDistributeCache(), PersistPixelCache(), SetImageAlphaChannel(), SetImageColorspace(), SetImageExtent(), SetImageGray(), SetImageMask(), SetImageMonochrome(), SetImageRegionMask(), SetImageStorageClass(), and SetPixelMetaChannels().