|
MagickCore
6.7.5
|
#include "MagickCore/studio.h"#include "MagickCore/blob.h"#include "MagickCore/blob-private.h"#include "MagickCore/cache.h"#include "MagickCore/cache-private.h"#include "MagickCore/color-private.h"#include "MagickCore/composite-private.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/geometry.h"#include "MagickCore/list.h"#include "MagickCore/log.h"#include "MagickCore/magick.h"#include "MagickCore/memory_.h"#include "MagickCore/pixel.h"#include "MagickCore/pixel-accessor.h"#include "MagickCore/policy.h"#include "MagickCore/quantum.h"#include "MagickCore/random_.h"#include "MagickCore/resource_.h"#include "MagickCore/semaphore.h"#include "MagickCore/splay-tree.h"#include "MagickCore/string_.h"#include "MagickCore/string-private.h"#include "MagickCore/thread-private.h"#include "MagickCore/utility.h"#include "MagickCore/utility-private.h"
Go to the source code of this file.
Data Structures | |
| struct | _MagickModulo |
| struct | _NexusInfo |
Defines | |
| #define | CacheTick(offset, extent) QuantumTick((MagickOffsetType) offset,extent) |
| #define | IsFileDescriptorLimitExceeded() |
Typedefs | |
| typedef struct _MagickModulo | MagickModulo |
Functions | |
| static const Quantum * | GetVirtualPixelCache (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) |
| static const Quantum * | GetVirtualPixelsCache (const Image *) |
| static const void * | GetVirtualMetacontentFromCache (const Image *) |
| static MagickBooleanType | GetOneAuthenticPixelFromCache (Image *, const ssize_t, const ssize_t, Quantum *, ExceptionInfo *) |
| static MagickBooleanType | GetOneVirtualPixelFromCache (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, Quantum *, ExceptionInfo *) |
| static MagickBooleanType | OpenPixelCache (Image *, const MapMode, ExceptionInfo *) |
| static MagickBooleanType | ReadPixelCacheMetacontent (CacheInfo *, NexusInfo *, ExceptionInfo *) |
| static MagickBooleanType | ReadPixelCachePixels (CacheInfo *, NexusInfo *, ExceptionInfo *) |
| static MagickBooleanType | SyncAuthenticPixelsCache (Image *, ExceptionInfo *) |
| static MagickBooleanType | WritePixelCacheMetacontent (CacheInfo *, NexusInfo *, ExceptionInfo *) |
| static MagickBooleanType | WritePixelCachePixels (CacheInfo *, NexusInfo *, ExceptionInfo *) |
| static Quantum * | GetAuthenticPixelsCache (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) |
| static Quantum * | QueueAuthenticPixelsCache (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) |
| static Quantum * | SetPixelCacheNexusPixels (const Image *, const RectangleInfo *, NexusInfo *, ExceptionInfo *) |
| MagickPrivate Cache | AcquirePixelCache (const size_t number_threads) |
| MagickPrivate NexusInfo ** | AcquirePixelCacheNexus (const size_t number_threads) |
| MagickPrivate const void * | AcquirePixelCachePixels (const Image *image, MagickSizeType *length, ExceptionInfo *exception) |
| MagickPrivate MagickBooleanType | CacheComponentGenesis (void) |
| MagickPrivate void | CacheComponentTerminus (void) |
| MagickPrivate Cache | ClonePixelCache (const Cache cache) |
| static MagickBooleanType | ClosePixelCacheOnDisk (CacheInfo *cache_info) |
| static MagickSizeType | MagickMax (const MagickSizeType x, const MagickSizeType y) |
| static MagickSizeType | MagickMin (const MagickSizeType x, const MagickSizeType y) |
| static MagickBooleanType | OpenPixelCacheOnDisk (CacheInfo *cache_info, const MapMode mode) |
| static MagickOffsetType | ReadPixelCacheRegion (CacheInfo *cache_info, const MagickOffsetType offset, const MagickSizeType length, unsigned char *restrict buffer) |
| static MagickOffsetType | WritePixelCacheRegion (CacheInfo *cache_info, const MagickOffsetType offset, const MagickSizeType length, const unsigned char *restrict buffer) |
| static MagickBooleanType | DiskToDiskPixelCacheClone (CacheInfo *clone_info, CacheInfo *cache_info, ExceptionInfo *exception) |
| static MagickBooleanType | PixelCacheCloneOptimized (CacheInfo *clone_info, CacheInfo *cache_info, ExceptionInfo *exception) |
| static MagickBooleanType | PixelCacheCloneUnoptimized (CacheInfo *clone_info, CacheInfo *cache_info, ExceptionInfo *exception) |
| static MagickBooleanType | ClonePixelCachePixels (CacheInfo *clone_info, CacheInfo *cache_info, ExceptionInfo *exception) |
| MagickPrivate void | ClonePixelCacheMethods (Cache clone, const Cache cache) |
| static void | DestroyImagePixelCache (Image *image) |
| MagickExport void | DestroyImagePixels (Image *image) |
| static void | RelinquishPixelCachePixels (CacheInfo *cache_info) |
| MagickPrivate Cache | DestroyPixelCache (Cache cache) |
| static void | RelinquishCacheNexusPixels (NexusInfo *nexus_info) |
| MagickPrivate NexusInfo ** | DestroyPixelCacheNexus (NexusInfo **nexus_info, const size_t number_threads) |
| MagickExport void * | GetAuthenticMetacontent (const Image *image) |
| static void * | GetAuthenticMetacontentFromCache (const Image *image) |
| static MagickBooleanType | IsPixelAuthentic (const CacheInfo *cache_info, NexusInfo *nexus_info) |
| MagickPrivate Quantum * | GetAuthenticPixelCacheNexus (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, NexusInfo *nexus_info, ExceptionInfo *exception) |
| static Quantum * | GetAuthenticPixelsFromCache (const Image *image) |
| MagickExport Quantum * | GetAuthenticPixelQueue (const Image *image) |
| MagickExport Quantum * | GetAuthenticPixels (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception) |
| MagickExport MagickSizeType | GetImageExtent (const Image *image) |
| static MagickBooleanType | ValidatePixelCacheMorphology (const Image *image) |
| static Cache | GetImagePixelCache (Image *image, const MagickBooleanType clone, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | GetOneAuthenticPixel (Image *image, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | GetOneVirtualPixel (const Image *image, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | GetOneVirtualPixelInfo (const Image *image, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, PixelInfo *pixel, ExceptionInfo *exception) |
| MagickPrivate ColorspaceType | GetPixelCacheColorspace (const Cache cache) |
| MagickPrivate void | GetPixelCacheMethods (CacheMethods *cache_methods) |
| MagickPrivate MagickSizeType | GetPixelCacheNexusExtent (const Cache cache, NexusInfo *nexus_info) |
| MagickPrivate void * | GetPixelCacheNexusMetacontent (const Cache cache, NexusInfo *nexus_info) |
| MagickPrivate Quantum * | GetPixelCacheNexusPixels (const Cache cache, NexusInfo *nexus_info) |
| MagickPrivate void * | GetPixelCachePixels (Image *image, MagickSizeType *length, ExceptionInfo *exception) |
| MagickPrivate ClassType | GetPixelCacheStorageClass (const Cache cache) |
| MagickPrivate void | GetPixelCacheTileSize (const Image *image, size_t *width, size_t *height) |
| MagickPrivate CacheType | GetPixelCacheType (const Image *image) |
| MagickPrivate VirtualPixelMethod | GetPixelCacheVirtualMethod (const Image *image) |
| MagickPrivate const void * | GetVirtualMetacontentFromNexus (const Cache cache, NexusInfo *nexus_info) |
| MagickExport const void * | GetVirtualMetacontent (const Image *image) |
| static ssize_t | DitherX (const ssize_t x, const size_t columns) |
| static ssize_t | DitherY (const ssize_t y, const size_t rows) |
| static ssize_t | EdgeX (const ssize_t x, const size_t columns) |
| static ssize_t | EdgeY (const ssize_t y, const size_t rows) |
| static ssize_t | RandomX (RandomInfo *random_info, const size_t columns) |
| static ssize_t | RandomY (RandomInfo *random_info, const size_t rows) |
| static MagickModulo | VirtualPixelModulo (const ssize_t offset, const size_t extent) |
| MagickPrivate const Quantum * | GetVirtualPixelsFromNexus (const Image *image, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, NexusInfo *nexus_info, ExceptionInfo *exception) |
| MagickExport const Quantum * | GetVirtualPixelQueue (const Image *image) |
| MagickExport const Quantum * | GetVirtualPixels (const Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception) |
| MagickPrivate const Quantum * | GetVirtualPixelsNexus (const Cache cache, NexusInfo *nexus_info) |
| static void | AllocatePixelCachePixels (CacheInfo *cache_info) |
| static MagickBooleanType | ExtendCache (Image *image, MagickSizeType length) |
| MagickExport MagickBooleanType | PersistPixelCache (Image *image, const char *filename, const MagickBooleanType attach, MagickOffsetType *offset, ExceptionInfo *exception) |
| MagickPrivate Quantum * | QueueAuthenticPixelCacheNexus (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, const MagickBooleanType clone, NexusInfo *nexus_info, ExceptionInfo *exception) |
| MagickExport Quantum * | QueueAuthenticPixels (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception) |
| MagickPrivate Cache | ReferencePixelCache (Cache cache) |
| MagickPrivate void | SetPixelCacheMethods (Cache cache, CacheMethods *cache_methods) |
| static MagickBooleanType | AcquireCacheNexusPixels (CacheInfo *cache_info, NexusInfo *nexus_info, ExceptionInfo *exception) |
| MagickPrivate VirtualPixelMethod | SetPixelCacheVirtualMethod (const Image *image, const VirtualPixelMethod virtual_pixel_method) |
| MagickPrivate MagickBooleanType | SyncAuthenticPixelCacheNexus (Image *image, NexusInfo *nexus_info, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | SyncAuthenticPixels (Image *image, ExceptionInfo *exception) |
| MagickPrivate MagickBooleanType | SyncImagePixelCache (Image *image, ExceptionInfo *exception) |
Variables | |
| static volatile MagickBooleanType | instantiate_cache = MagickFalse |
| static SemaphoreInfo * | cache_semaphore = (SemaphoreInfo *) NULL |
| static ssize_t | DitherMatrix [64] |
| #define CacheTick | ( | offset, | |
| extent | |||
| ) | QuantumTick((MagickOffsetType) offset,extent) |
Definition at line 77 of file cache.c.
Referenced by ReadPixelCacheMetacontent(), ReadPixelCachePixels(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
| #define IsFileDescriptorLimitExceeded | ( | ) |
(GetMagickResource(FileResource) > \ GetMagickResourceLimit(FileResource) ? MagickTrue : MagickFalse)
Definition at line 78 of file cache.c.
Referenced by ReadPixelCacheMetacontent(), ReadPixelCachePixels(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
| typedef struct _MagickModulo MagickModulo |
| static MagickBooleanType AcquireCacheNexusPixels | ( | CacheInfo * | cache_info, |
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) | [inline, static] |
Definition at line 4749 of file cache.c.
References _NexusInfo::length, MagickFalse, _NexusInfo::mapped, _NexusInfo::cache, AcquireAlignedMemory(), MagickTrue, MapBlob(), IOMode, ThrowMagickException(), GetMagickModule, ResourceLimitError, and _CacheInfo::filename.
Referenced by SetPixelCacheNexusPixels().
| MagickPrivate Cache AcquirePixelCache | ( | const size_t | number_threads | ) |
Definition at line 183 of file cache.c.
References AcquireQuantumMemory(), ThrowFatalException, ResourceLimitFatalError, ResetMagickMemory(), _CacheInfo::type, UndefinedCache, _CacheInfo::mode, IOMode, _CacheInfo::colorspace, RGBColorspace, _CacheInfo::file, _CacheInfo::id, GetMagickThreadId(), _CacheInfo::number_threads, GetOpenMPMaximumThreads(), _CacheInfo::nexus_info, AcquirePixelCacheNexus(), _CacheInfo::semaphore, AllocateSemaphoreInfo(), _CacheInfo::reference_count, _CacheInfo::disk_semaphore, _CacheInfo::debug, IsEventLogging(), _CacheInfo::signature, and MagickSignature.
| MagickPrivate NexusInfo** AcquirePixelCacheNexus | ( | const size_t | number_threads | ) |
Definition at line 233 of file cache.c.
References AcquireQuantumMemory(), ThrowFatalException, ResourceLimitFatalError, ResetMagickMemory(), _NexusInfo::signature, and MagickSignature.
| MagickPrivate const void* AcquirePixelCachePixels | ( | const Image * | image, |
| MagickSizeType * | length, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 284 of file cache.c.
References _Image::signature, MagickSignature, _ExceptionInfo::signature, _Image::cache, _CacheInfo::signature, _CacheInfo::type, MemoryCache, MapCache, _CacheInfo::length, and _CacheInfo::pixels.
| static void AllocatePixelCachePixels | ( | CacheInfo * | cache_info | ) | [inline, static] |
Definition at line 3666 of file cache.c.
References _CacheInfo::mapped, MagickFalse, _CacheInfo::pixels, AcquireQuantumMemory(), _CacheInfo::length, MagickTrue, MapBlob(), and IOMode.
Referenced by OpenPixelCache().
| MagickPrivate MagickBooleanType CacheComponentGenesis | ( | void | ) |
Definition at line 322 of file cache.c.
References AcquireSemaphoreInfo(), cache_semaphore, and MagickTrue.
| MagickPrivate void CacheComponentTerminus | ( | void | ) |
Definition at line 346 of file cache.c.
References cache_semaphore, AcquireSemaphoreInfo(), LockSemaphoreInfo(), instantiate_cache, MagickFalse, UnlockSemaphoreInfo(), and DestroySemaphoreInfo().
Definition at line 378 of file cache.c.
References _CacheInfo::signature, MagickSignature, _CacheInfo::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _CacheInfo::filename, AcquirePixelCache(), _CacheInfo::number_threads, and _CacheInfo::virtual_pixel_method.
Definition at line 1088 of file cache.c.
References _CacheInfo::signature, MagickSignature, _CacheInfo::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _CacheInfo::filename, and _CacheInfo::methods.
| static MagickBooleanType ClonePixelCachePixels | ( | CacheInfo * | clone_info, |
| CacheInfo * | cache_info, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 1043 of file cache.c.
References _CacheInfo::type, PingCache, MagickTrue, _CacheInfo::channel_map, _CacheInfo::columns, _CacheInfo::rows, _CacheInfo::number_channels, _CacheInfo::metacontent_extent, PixelCacheCloneOptimized(), and PixelCacheCloneUnoptimized().
Referenced by GetImagePixelCache(), OpenPixelCache(), and PersistPixelCache().
| static MagickBooleanType ClosePixelCacheOnDisk | ( | CacheInfo * | cache_info | ) | [static] |
Definition at line 427 of file cache.c.
References LockSemaphoreInfo(), _CacheInfo::disk_semaphore, _CacheInfo::file, RelinquishMagickResource(), FileResource, UnlockSemaphoreInfo(), MagickFalse, and MagickTrue.
Referenced by DiskToDiskPixelCacheClone(), PixelCacheCloneOptimized(), RelinquishPixelCachePixels(), GetImagePixelCache(), OpenPixelCache(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
| static void DestroyImagePixelCache | ( | Image * | image | ) | [static] |
Definition at line 1128 of file cache.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, and DestroyPixelCache().
Referenced by GetPixelCacheMethods().
| MagickExport void DestroyImagePixels | ( | Image * | image | ) |
Definition at line 1161 of file cache.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, _CacheInfo::signature, _CacheInfo::methods, _CacheMethods::destroy_pixel_handler, and DestroyPixelCache().
Referenced by DestroyImage().
Definition at line 1240 of file cache.c.
References _CacheInfo::signature, MagickSignature, _CacheInfo::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _CacheInfo::filename, LockSemaphoreInfo(), _CacheInfo::semaphore, _CacheInfo::reference_count, UnlockSemaphoreInfo(), MaxTextExtent, FormatLocaleString(), CacheEvent, _CacheInfo::mode, ReadMode, _CacheInfo::type, MapCache, DiskCache, RelinquishPixelCachePixels(), RelinquishUniqueFileResource(), _CacheInfo::cache_filename, _CacheInfo::nexus_info, DestroyPixelCacheNexus(), _CacheInfo::number_threads, _CacheInfo::random_info, DestroyRandomInfo(), _CacheInfo::disk_semaphore, DestroySemaphoreInfo(), and RelinquishMagickMemory().
| MagickPrivate NexusInfo** DestroyPixelCacheNexus | ( | NexusInfo ** | nexus_info, |
| const size_t | number_threads | ||
| ) |
Definition at line 1331 of file cache.c.
References RelinquishCacheNexusPixels(), _NexusInfo::signature, MagickSignature, and RelinquishMagickMemory().
Referenced by DestroyCacheView(), DestroyPixelCache(), GetVirtualPixelsFromNexus(), and DestroyPixelStream().
| static MagickBooleanType DiskToDiskPixelCacheClone | ( | CacheInfo * | clone_info, |
| CacheInfo * | cache_info, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 604 of file cache.c.
References _CacheInfo::debug, MagickFalse, LogMagickEvent(), CacheEvent, GetMagickModule, AcquireQuantumMemory(), MagickMaxBufferExtent, ThrowMagickException(), ResourceLimitError, _CacheInfo::filename, OpenPixelCacheOnDisk(), ReadMode, RelinquishMagickMemory(), ThrowFileException, FileOpenError, _CacheInfo::cache_filename, WriteMode, ClosePixelCacheOnDisk(), _CacheInfo::length, ReadPixelCacheRegion(), _CacheInfo::offset, MagickMin(), CacheError, WritePixelCacheRegion(), and MagickTrue.
Referenced by PixelCacheCloneOptimized().
| static ssize_t DitherX | ( | const ssize_t | x, |
| const size_t | columns | ||
| ) | [inline, static] |
Definition at line 2923 of file cache.c.
References DitherMatrix.
Referenced by GetVirtualPixelsFromNexus().
| static ssize_t DitherY | ( | const ssize_t | y, |
| const size_t | rows | ||
| ) | [inline, static] |
Definition at line 2936 of file cache.c.
References DitherMatrix.
Referenced by GetVirtualPixelsFromNexus().
| static ssize_t EdgeX | ( | const ssize_t | x, |
| const size_t | columns | ||
| ) | [inline, static] |
Definition at line 2949 of file cache.c.
Referenced by GetVirtualPixelsFromNexus().
| static ssize_t EdgeY | ( | const ssize_t | y, |
| const size_t | rows | ||
| ) | [inline, static] |
Definition at line 2958 of file cache.c.
Referenced by GetVirtualPixelsFromNexus().
| static MagickBooleanType ExtendCache | ( | Image * | image, |
| MagickSizeType | length | ||
| ) | [static] |
Definition at line 3679 of file cache.c.
References _Image::cache, _Image::debug, MagickFalse, MaxTextExtent, FormatMagickSize(), FormatLocaleString(), _CacheInfo::filename, _CacheInfo::cache_filename, _CacheInfo::file, LogMagickEvent(), CacheEvent, GetMagickModule, MagickTrue, and WritePixelCacheRegion().
Referenced by OpenPixelCache().
| MagickExport void* GetAuthenticMetacontent | ( | const Image * | image | ) |
Definition at line 1373 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::methods, _CacheMethods::get_authentic_metacontent_from_handler, _CacheInfo::number_threads, GetPixelCacheNexusMetacontent(), and _CacheInfo::nexus_info.
| static void* GetAuthenticMetacontentFromCache | ( | const Image * | image | ) | [static] |
Definition at line 1426 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, GetPixelCacheNexusMetacontent(), and _CacheInfo::nexus_info.
Referenced by GetPixelCacheMethods().
| MagickPrivate Quantum* GetAuthenticPixelCacheNexus | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1501 of file cache.c.
References _Image::signature, MagickSignature, QueueAuthenticPixelCacheNexus(), MagickTrue, _Image::cache, _CacheInfo::signature, IsPixelAuthentic(), MagickFalse, ReadPixelCachePixels(), _CacheInfo::metacontent_extent, and ReadPixelCacheMetacontent().
Definition at line 1596 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::methods, _CacheMethods::get_authentic_pixels_from_handler, _CacheInfo::number_threads, GetPixelCacheNexusPixels(), and _CacheInfo::nexus_info.
Referenced by ExportQuantumPixels(), and ImportQuantumPixels().
| MagickExport Quantum* GetAuthenticPixels | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1660 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::methods, _CacheMethods::get_authentic_pixels_handler, _CacheInfo::number_threads, GetAuthenticPixelCacheNexus(), and _CacheInfo::nexus_info.
Referenced by ClearBounds(), ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportLongPixel(), ImportLongLongPixel(), ImportQuantumPixel(), and ImportShortPixel().
| static Quantum * GetAuthenticPixelsCache | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 1722 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, GetAuthenticPixelCacheNexus(), and _CacheInfo::nexus_info.
Referenced by GetOneAuthenticPixel(), and GetPixelCacheMethods().
Definition at line 1555 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, GetPixelCacheNexusPixels(), and _CacheInfo::nexus_info.
Referenced by GetPixelCacheMethods().
| MagickExport MagickSizeType GetImageExtent | ( | const Image * | image | ) |
Definition at line 1771 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, GetPixelCacheNexusExtent(), and _CacheInfo::nexus_info.
Referenced by ExportQuantumPixels(), ImportQuantumPixels(), and StreamImagePixels().
| static Cache GetImagePixelCache | ( | Image * | image, |
| const MagickBooleanType | clone, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 1850 of file cache.c.
References MagickTrue, LockSemaphoreInfo(), _Image::semaphore, MagickResourceInfinity, GetEnvironmentValue(), GetPolicyValue(), StringToInteger(), DestroyString(), MagickDelay(), GetMagickResourceLimit(), TimeResource, ThrowFatalException, ResourceLimitFatalError, _Image::cache, MagickFalse, _CacheInfo::reference_count, _CacheInfo::mode, ReadMode, _CacheInfo::semaphore, AllocateSemaphoreInfo(), _Image::reference_count, ClonePixelCache(), OpenPixelCache(), IOMode, ClonePixelCachePixels(), _CacheInfo::nexus_info, DestroySemaphoreInfo(), UnlockSemaphoreInfo(), DestroyPixelCache(), _Image::taint, _Image::type, UndefinedType, ValidatePixelCacheMorphology(), _CacheInfo::type, DiskCache, and ClosePixelCacheOnDisk().
Referenced by QueueAuthenticPixelCacheNexus(), and SyncImagePixelCache().
| MagickExport MagickBooleanType GetOneAuthenticPixel | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| Quantum * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1993 of file cache.c.
References _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, MaxPixelChannels, _CacheInfo::methods, _CacheMethods::get_one_authentic_pixel_from_handler, GetAuthenticPixelsCache(), RedPixelChannel, ClampToQuantum(), _Image::background_color, _PixelInfo::red, GreenPixelChannel, _PixelInfo::green, BluePixelChannel, _PixelInfo::blue, BlackPixelChannel, _PixelInfo::black, AlphaPixelChannel, _PixelInfo::alpha, MagickFalse, GetPixelChannels(), GetPixelChannelMapChannel(), and MagickTrue.
| static MagickBooleanType GetOneAuthenticPixelFromCache | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| Quantum * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 2067 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, MaxPixelChannels, GetAuthenticPixelCacheNexus(), _CacheInfo::nexus_info, RedPixelChannel, ClampToQuantum(), _Image::background_color, _PixelInfo::red, GreenPixelChannel, _PixelInfo::green, BluePixelChannel, _PixelInfo::blue, BlackPixelChannel, _PixelInfo::black, AlphaPixelChannel, _PixelInfo::alpha, MagickFalse, GetPixelChannels(), GetPixelChannelMapChannel(), and MagickTrue.
Referenced by GetPixelCacheMethods().
| MagickExport MagickBooleanType GetOneVirtualPixel | ( | const Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| Quantum * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 2142 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, MaxPixelChannels, _CacheInfo::methods, _CacheMethods::get_one_virtual_pixel_from_handler, GetPixelCacheVirtualMethod(), _CacheInfo::number_threads, GetVirtualPixelsFromNexus(), _CacheInfo::nexus_info, RedPixelChannel, ClampToQuantum(), _Image::background_color, _PixelInfo::red, GreenPixelChannel, _PixelInfo::green, BluePixelChannel, _PixelInfo::blue, BlackPixelChannel, _PixelInfo::black, AlphaPixelChannel, _PixelInfo::alpha, MagickFalse, GetPixelChannels(), GetPixelChannelMapChannel(), and MagickTrue.
Referenced by CompositeOverImage(), and CompositeImage().
| static MagickBooleanType GetOneVirtualPixelFromCache | ( | const Image * | image, |
| const VirtualPixelMethod | virtual_pixel_method, | ||
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| Quantum * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 2224 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, MaxPixelChannels, GetVirtualPixelsFromNexus(), _CacheInfo::nexus_info, RedPixelChannel, ClampToQuantum(), _Image::background_color, _PixelInfo::red, GreenPixelChannel, _PixelInfo::green, BluePixelChannel, _PixelInfo::blue, BlackPixelChannel, _PixelInfo::black, AlphaPixelChannel, _PixelInfo::alpha, MagickFalse, GetPixelChannels(), GetPixelChannelMapChannel(), and MagickTrue.
Referenced by GetPixelCacheMethods().
| MagickExport MagickBooleanType GetOneVirtualPixelInfo | ( | const Image * | image, |
| const VirtualPixelMethod | virtual_pixel_method, | ||
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| PixelInfo * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 2303 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, GetVirtualPixelsFromNexus(), _CacheInfo::nexus_info, GetPixelInfo(), MagickFalse, GetPixelInfoPixel(), and MagickTrue.
Referenced by GetFillColor(), GetStrokeColor(), and DrawPrimitive().
| MagickPrivate ColorspaceType GetPixelCacheColorspace | ( | const Cache | cache | ) |
Definition at line 2353 of file cache.c.
References _CacheInfo::signature, MagickSignature, _CacheInfo::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _CacheInfo::filename, and _CacheInfo::colorspace.
Referenced by GetCacheViewColorspace(), and QueueAuthenticPixelsStream().
| MagickPrivate void GetPixelCacheMethods | ( | CacheMethods * | cache_methods | ) |
Definition at line 2389 of file cache.c.
References ResetMagickMemory(), _CacheMethods::get_virtual_pixel_handler, GetVirtualPixelCache(), _CacheMethods::get_virtual_pixels_handler, GetVirtualPixelsCache(), _CacheMethods::get_virtual_metacontent_from_handler, GetVirtualMetacontentFromCache(), _CacheMethods::get_one_virtual_pixel_from_handler, GetOneVirtualPixelFromCache(), _CacheMethods::get_authentic_pixels_handler, GetAuthenticPixelsCache(), _CacheMethods::get_authentic_metacontent_from_handler, GetAuthenticMetacontentFromCache(), _CacheMethods::get_authentic_pixels_from_handler, GetAuthenticPixelsFromCache(), _CacheMethods::get_one_authentic_pixel_from_handler, GetOneAuthenticPixelFromCache(), _CacheMethods::queue_authentic_pixels_handler, QueueAuthenticPixelsCache(), _CacheMethods::sync_authentic_pixels_handler, SyncAuthenticPixelsCache(), _CacheMethods::destroy_pixel_handler, and DestroyImagePixelCache().
| MagickPrivate MagickSizeType GetPixelCacheNexusExtent | ( | const Cache | cache, |
| NexusInfo * | nexus_info | ||
| ) |
Definition at line 2434 of file cache.c.
References _CacheInfo::signature, MagickSignature, _NexusInfo::region, _RectangleInfo::width, _RectangleInfo::height, _CacheInfo::columns, and _CacheInfo::rows.
Referenced by GetCacheViewExtent(), and GetImageExtent().
Definition at line 2478 of file cache.c.
References _CacheInfo::signature, MagickSignature, _CacheInfo::storage_class, UndefinedClass, and _NexusInfo::metacontent.
Definition at line 2518 of file cache.c.
References _CacheInfo::signature, MagickSignature, _CacheInfo::storage_class, UndefinedClass, and _NexusInfo::pixels.
| MagickPrivate void* GetPixelCachePixels | ( | Image * | image, |
| MagickSizeType * | length, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 2559 of file cache.c.
References _Image::signature, MagickSignature, _Image::cache, _ExceptionInfo::signature, _CacheInfo::signature, _CacheInfo::type, MemoryCache, MapCache, _CacheInfo::length, and _CacheInfo::pixels.
Definition at line 2604 of file cache.c.
References _CacheInfo::signature, MagickSignature, _CacheInfo::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _CacheInfo::filename, and _CacheInfo::storage_class.
Referenced by GetCacheViewStorageClass(), and QueueAuthenticPixelsStream().
| MagickPrivate void GetPixelCacheTileSize | ( | const Image * | image, |
| size_t * | width, | ||
| size_t * | height | ||
| ) |
Definition at line 2645 of file cache.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, _CacheInfo::signature, _CacheInfo::number_channels, GetPixelCacheType(), and DiskCache.
Definition at line 2685 of file cache.c.
References _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, and _CacheInfo::type.
Referenced by GetPixelCacheTileSize().
| MagickPrivate VirtualPixelMethod GetPixelCacheVirtualMethod | ( | const Image * | image | ) |
Definition at line 2722 of file cache.c.
References _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, and _CacheInfo::virtual_pixel_method.
| MagickExport const void* GetVirtualMetacontent | ( | const Image * | image | ) |
Definition at line 2844 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::methods, _CacheMethods::get_virtual_metacontent_from_handler, _CacheInfo::number_threads, GetVirtualMetacontentFromNexus(), and _CacheInfo::nexus_info.
| static const void * GetVirtualMetacontentFromCache | ( | const Image * | image | ) | [static] |
Definition at line 2758 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, GetVirtualMetacontentFromNexus(), and _CacheInfo::nexus_info.
Referenced by GetPixelCacheMethods().
| MagickPrivate const void* GetVirtualMetacontentFromNexus | ( | const Cache | cache, |
| NexusInfo * | nexus_info | ||
| ) |
Definition at line 2806 of file cache.c.
References _CacheInfo::signature, MagickSignature, _CacheInfo::storage_class, UndefinedClass, and _NexusInfo::metacontent.
Referenced by GetCacheViewVirtualMetacontent(), GetVirtualMetacontentFromCache(), GetVirtualMetacontent(), and GetVirtualPixelsFromNexus().
| static const Quantum * GetVirtualPixelCache | ( | const Image * | image, |
| const VirtualPixelMethod | virtual_pixel_method, | ||
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 3412 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, GetVirtualPixelsFromNexus(), and _CacheInfo::nexus_info.
Referenced by GetPixelCacheMethods().
Definition at line 3459 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::methods, _CacheMethods::get_virtual_pixels_handler, _CacheInfo::number_threads, GetVirtualPixelsNexus(), and _CacheInfo::nexus_info.
Referenced by ExportQuantumPixels(), and StreamImagePixels().
| MagickExport const Quantum* GetVirtualPixels | ( | const Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 3527 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::methods, _CacheMethods::get_virtual_pixel_handler, GetPixelCacheVirtualMethod(), _CacheInfo::number_threads, GetVirtualPixelsFromNexus(), and _CacheInfo::nexus_info.
Referenced by HuffmanEncodeImage(), StereoAnaglyphImage(), IdentifyImage(), IsBoundsCleared(), CompareImagesBounds(), ExportCharPixel(), ExportDoublePixel(), ExportFloatPixel(), ExportLongPixel(), ExportLongLongPixel(), ExportQuantumPixel(), ExportShortPixel(), GetImageDynamicThreshold(), InitializeHistogram(), and GetImageStatistics().
Definition at line 3578 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, GetVirtualPixelsNexus(), and _CacheInfo::nexus_info.
Referenced by GetPixelCacheMethods().
| MagickPrivate const Quantum* GetVirtualPixelsFromNexus | ( | const Image * | image, |
| const VirtualPixelMethod | virtual_pixel_method, | ||
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 2997 of file cache.c.
References CompositePixelChannel, _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::type, UndefinedCache, _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, _RectangleInfo::height, SetPixelCacheNexusPixels(), _NexusInfo::region, _CacheInfo::columns, _CacheInfo::rows, IsPixelAuthentic(), MagickFalse, ReadPixelCachePixels(), _CacheInfo::metacontent_extent, ReadPixelCacheMetacontent(), GetPixelCacheNexusMetacontent(), AcquirePixelCacheNexus(), DestroyPixelCacheNexus(), ThrowMagickException(), GetMagickModule, CacheError, _Image::filename, ResetMagickMemory(), _CacheInfo::number_channels, BackgroundVirtualPixelMethod, BlackVirtualPixelMethod, GrayVirtualPixelMethod, TransparentVirtualPixelMethod, MaskVirtualPixelMethod, WhiteVirtualPixelMethod, EdgeVirtualPixelMethod, CheckerTileVirtualPixelMethod, HorizontalTileVirtualPixelMethod, VerticalTileVirtualPixelMethod, AcquireQuantumMemory(), SetPixelChannel(), SetPixelAlpha(), OpaqueAlpha, QuantumRange, TransparentAlpha, SetPixelRed(), ClampToQuantum(), _Image::background_color, _PixelInfo::red, SetPixelGreen(), _PixelInfo::green, SetPixelBlue(), _PixelInfo::blue, _Image::colorspace, CMYKColorspace, SetPixelBlack(), _PixelInfo::black, _PixelInfo::alpha, MagickMin(), GetVirtualPixelsFromNexus(), EdgeX(), EdgeY(), GetVirtualMetacontentFromNexus(), RandomVirtualPixelMethod, _CacheInfo::random_info, AcquireRandomInfo(), RandomX(), RandomY(), DitherVirtualPixelMethod, DitherX(), DitherY(), TileVirtualPixelMethod, VirtualPixelModulo(), _MagickModulo::remainder, MirrorVirtualPixelMethod, _MagickModulo::quotient, HorizontalTileEdgeVirtualPixelMethod, VerticalTileEdgeVirtualPixelMethod, and RelinquishMagickMemory().
Definition at line 3621 of file cache.c.
References _CacheInfo::signature, MagickSignature, _CacheInfo::storage_class, UndefinedClass, and _NexusInfo::pixels.
Referenced by GetCacheViewVirtualPixelQueue(), GetVirtualPixelQueue(), and GetVirtualPixelsCache().
| static MagickBooleanType IsPixelAuthentic | ( | const CacheInfo * | cache_info, |
| NexusInfo * | nexus_info | ||
| ) | [inline, static] |
Definition at line 1483 of file cache.c.
References _CacheInfo::type, PingCache, MagickTrue, _NexusInfo::region, _RectangleInfo::y, _CacheInfo::columns, _RectangleInfo::x, _NexusInfo::pixels, _CacheInfo::pixels, _CacheInfo::number_channels, and MagickFalse.
Referenced by GetAuthenticPixelCacheNexus(), GetVirtualPixelsFromNexus(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), SyncAuthenticPixelCacheNexus(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
| static MagickSizeType MagickMax | ( | const MagickSizeType | x, |
| const MagickSizeType | y | ||
| ) | [inline, static] |
Definition at line 444 of file cache.c.
Referenced by PixelCacheCloneUnoptimized().
| static MagickSizeType MagickMin | ( | const MagickSizeType | x, |
| const MagickSizeType | y | ||
| ) | [inline, static] |
Definition at line 452 of file cache.c.
Referenced by ReadPixelCacheRegion(), WritePixelCacheRegion(), DiskToDiskPixelCacheClone(), and GetVirtualPixelsFromNexus().
| static MagickBooleanType OpenPixelCache | ( | Image * | image, |
| const MapMode | mode, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 3714 of file cache.c.
References MaxTextExtent, _Image::signature, MagickSignature, _Image::cache, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::columns, _Image::rows, ThrowBinaryException, CacheError, _CacheInfo::signature, _CacheInfo::file, FormatLocaleString(), _CacheInfo::filename, GetImageIndexInList(), _CacheInfo::storage_class, _Image::storage_class, _CacheInfo::colorspace, _Image::colorspace, _CacheInfo::matte, _Image::matte, _CacheInfo::mask, _Image::mask, _CacheInfo::rows, _CacheInfo::columns, InitializePixelChannelMap(), _CacheInfo::number_channels, GetPixelChannels(), _CacheInfo::channel_map, _Image::channel_map, MaxPixelChannels, _CacheInfo::metacontent_extent, _Image::metacontent_extent, _CacheInfo::mode, _Image::ping, _CacheInfo::type, PingCache, _CacheInfo::pixels, _CacheInfo::metacontent, _CacheInfo::length, MagickTrue, ResourceLimitError, UndefinedCache, ClonePixelCachePixels(), AcquireMagickResource(), AreaResource, MemoryResource, MemoryCache, AllocatePixelCachePixels(), FormatMagickSize(), _CacheInfo::mapped, CacheEvent, UndefinedClass, ReadMode, RelinquishPixelCachePixels(), RelinquishMagickResource(), DiskResource, ThrowMagickException(), ClosePixelCacheOnDisk(), _CacheInfo::cache_filename, OpenPixelCacheOnDisk(), ThrowFileException, ExtendCache(), _CacheInfo::offset, DiskCache, MapResource, MapCache, and MapBlob().
Referenced by GetImagePixelCache(), and PersistPixelCache().
| static MagickBooleanType OpenPixelCacheOnDisk | ( | CacheInfo * | cache_info, |
| const MapMode | mode | ||
| ) | [static] |
Definition at line 460 of file cache.c.
References LockSemaphoreInfo(), _CacheInfo::disk_semaphore, _CacheInfo::file, UnlockSemaphoreInfo(), MagickTrue, _CacheInfo::cache_filename, AcquireUniqueFileResource(), ReadMode, open_utf8(), O_BINARY, WriteMode, S_MODE, IOMode, MagickFalse, AcquireMagickResource(), FileResource, _CacheInfo::mode, and _CacheInfo::timestamp.
Referenced by DiskToDiskPixelCacheClone(), PixelCacheCloneOptimized(), PixelCacheCloneUnoptimized(), OpenPixelCache(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
| MagickExport MagickBooleanType PersistPixelCache | ( | Image * | image, |
| const char * | filename, | ||
| const MagickBooleanType | attach, | ||
| MagickOffsetType * | offset, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 3992 of file cache.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, GetMagickPageSize(), _CacheInfo::signature, CacheEvent, CopyMagickString(), _CacheInfo::cache_filename, MaxTextExtent, _CacheInfo::type, DiskCache, _CacheInfo::offset, OpenPixelCache(), ReadMode, _CacheInfo::length, MagickTrue, _CacheInfo::mode, MemoryCache, _CacheInfo::reference_count, LockSemaphoreInfo(), _CacheInfo::semaphore, rename_utf8(), UnlockSemaphoreInfo(), ReferencePixelCache(), ClonePixelCache(), IOMode, ClonePixelCachePixels(), and DestroyPixelCache().
| static MagickBooleanType PixelCacheCloneOptimized | ( | CacheInfo * | clone_info, |
| CacheInfo * | cache_info, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 677 of file cache.c.
References _CacheInfo::type, DiskCache, _CacheInfo::debug, MagickFalse, LogMagickEvent(), CacheEvent, GetMagickModule, _CacheInfo::pixels, _CacheInfo::length, MagickTrue, OpenPixelCacheOnDisk(), ReadMode, ThrowFileException, FileOpenError, _CacheInfo::cache_filename, ReadPixelCacheRegion(), _CacheInfo::offset, ClosePixelCacheOnDisk(), CacheError, WriteMode, WritePixelCacheRegion(), and DiskToDiskPixelCacheClone().
Referenced by ClonePixelCachePixels().
| static MagickBooleanType PixelCacheCloneUnoptimized | ( | CacheInfo * | clone_info, |
| CacheInfo * | cache_info, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 748 of file cache.c.
References _CacheInfo::debug, MagickFalse, _CacheInfo::type, DiskCache, LogMagickEvent(), CacheEvent, GetMagickModule, MagickMax(), _CacheInfo::number_channels, _CacheInfo::metacontent_extent, AcquireQuantumMemory(), ThrowMagickException(), ResourceLimitError, _CacheInfo::filename, ResetMagickMemory(), OpenPixelCacheOnDisk(), ReadMode, RelinquishMagickMemory(), ThrowFileException, FileOpenError, _CacheInfo::cache_filename, _CacheInfo::offset, WriteMode, MagickTrue, _CacheInfo::rows, _CacheInfo::columns, _CacheInfo::pixels, ReadPixelCacheRegion(), _CacheInfo::channel_map, _PixelChannelMap::channel, _PixelChannelMap::traits, UndefinedPixelTrait, _PixelChannelMap::offset, and WritePixelCacheRegion().
Referenced by ClonePixelCachePixels().
| MagickPrivate Quantum* QueueAuthenticPixelCacheNexus | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| const MagickBooleanType | clone, | ||
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4123 of file cache.c.
References _Image::signature, MagickSignature, _Image::cache, GetImagePixelCache(), _CacheInfo::signature, _CacheInfo::columns, _CacheInfo::rows, ThrowMagickException(), GetMagickModule, CacheError, _Image::filename, _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, _RectangleInfo::height, and SetPixelCacheNexusPixels().
Referenced by QueueCacheViewAuthenticPixels(), GetAuthenticPixelCacheNexus(), QueueAuthenticPixelsCache(), and QueueAuthenticPixels().
| MagickExport Quantum* QueueAuthenticPixels | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4292 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::methods, _CacheMethods::queue_authentic_pixels_handler, _CacheInfo::number_threads, QueueAuthenticPixelCacheNexus(), MagickFalse, and _CacheInfo::nexus_info.
Referenced by StereoAnaglyphImage().
| static Quantum * QueueAuthenticPixelsCache | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4212 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, QueueAuthenticPixelCacheNexus(), MagickFalse, and _CacheInfo::nexus_info.
Referenced by GetPixelCacheMethods().
| static ssize_t RandomX | ( | RandomInfo * | random_info, |
| const size_t | columns | ||
| ) | [inline, static] |
Definition at line 2967 of file cache.c.
References GetPseudoRandomValue().
Referenced by GetVirtualPixelsFromNexus().
| static ssize_t RandomY | ( | RandomInfo * | random_info, |
| const size_t | rows | ||
| ) | [inline, static] |
Definition at line 2972 of file cache.c.
References GetPseudoRandomValue().
Referenced by GetVirtualPixelsFromNexus().
| static MagickBooleanType ReadPixelCacheMetacontent | ( | CacheInfo * | cache_info, |
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4351 of file cache.c.
References _CacheInfo::metacontent_extent, MagickFalse, IsPixelAuthentic(), MagickTrue, _NexusInfo::region, _RectangleInfo::y, _CacheInfo::columns, _RectangleInfo::x, _RectangleInfo::width, _RectangleInfo::height, _NexusInfo::metacontent, _CacheInfo::type, MemoryCache, MapCache, _CacheInfo::metacontent, DiskCache, OpenPixelCacheOnDisk(), IOMode, ThrowFileException, FileOpenError, _CacheInfo::cache_filename, MagickMaxBufferExtent, _CacheInfo::rows, ReadPixelCacheRegion(), _CacheInfo::offset, _CacheInfo::number_channels, IsFileDescriptorLimitExceeded, ClosePixelCacheOnDisk(), CacheError, _CacheInfo::debug, CacheTick, LogMagickEvent(), CacheEvent, GetMagickModule, and _CacheInfo::filename.
Referenced by GetAuthenticPixelCacheNexus(), and GetVirtualPixelsFromNexus().
| static MagickBooleanType ReadPixelCachePixels | ( | CacheInfo * | cache_info, |
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4487 of file cache.c.
References IsPixelAuthentic(), MagickFalse, MagickTrue, _NexusInfo::region, _RectangleInfo::y, _CacheInfo::columns, _RectangleInfo::x, _RectangleInfo::width, _CacheInfo::number_channels, _RectangleInfo::height, _NexusInfo::pixels, _CacheInfo::type, MemoryCache, MapCache, _CacheInfo::pixels, DiskCache, OpenPixelCacheOnDisk(), IOMode, ThrowFileException, FileOpenError, _CacheInfo::cache_filename, MagickMaxBufferExtent, ReadPixelCacheRegion(), _CacheInfo::offset, IsFileDescriptorLimitExceeded, ClosePixelCacheOnDisk(), CacheError, _CacheInfo::debug, CacheTick, _CacheInfo::rows, LogMagickEvent(), CacheEvent, GetMagickModule, and _CacheInfo::filename.
Referenced by GetAuthenticPixelCacheNexus(), and GetVirtualPixelsFromNexus().
| static MagickOffsetType ReadPixelCacheRegion | ( | CacheInfo * | cache_info, |
| const MagickOffsetType | offset, | ||
| const MagickSizeType | length, | ||
| unsigned char *restrict | buffer | ||
| ) | [inline, static] |
Definition at line 516 of file cache.c.
References _CacheInfo::timestamp, LockSemaphoreInfo(), _CacheInfo::disk_semaphore, _CacheInfo::file, UnlockSemaphoreInfo(), and MagickMin().
Referenced by DiskToDiskPixelCacheClone(), PixelCacheCloneOptimized(), PixelCacheCloneUnoptimized(), ReadPixelCacheMetacontent(), and ReadPixelCachePixels().
Definition at line 4613 of file cache.c.
References _CacheInfo::signature, MagickSignature, LockSemaphoreInfo(), _CacheInfo::semaphore, _CacheInfo::reference_count, and UnlockSemaphoreInfo().
Referenced by PersistPixelCache(), CloneImage(), and CloneImageInfo().
| static void RelinquishCacheNexusPixels | ( | NexusInfo * | nexus_info | ) | [inline, static] |
Definition at line 1318 of file cache.c.
References _NexusInfo::mapped, MagickFalse, RelinquishAlignedMemory(), _NexusInfo::cache, UnmapBlob(), _NexusInfo::length, _NexusInfo::pixels, and _NexusInfo::metacontent.
Referenced by DestroyPixelCacheNexus(), and SetPixelCacheNexusPixels().
| static void RelinquishPixelCachePixels | ( | CacheInfo * | cache_info | ) | [inline, static] |
Definition at line 1204 of file cache.c.
References _CacheInfo::type, MemoryCache, _CacheInfo::mapped, MagickFalse, _CacheInfo::pixels, RelinquishMagickMemory(), UnmapBlob(), _CacheInfo::length, RelinquishMagickResource(), MemoryResource, MapCache, MapResource, DiskCache, _CacheInfo::file, ClosePixelCacheOnDisk(), DiskResource, UndefinedCache, and _CacheInfo::metacontent.
Referenced by DestroyPixelCache(), and OpenPixelCache().
| MagickPrivate void SetPixelCacheMethods | ( | Cache | cache, |
| CacheMethods * | cache_methods | ||
| ) |
Definition at line 4651 of file cache.c.
References _CacheInfo::signature, MagickSignature, _CacheInfo::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _CacheInfo::filename, _CacheMethods::get_virtual_pixel_handler, _CacheInfo::methods, _CacheMethods::destroy_pixel_handler, _CacheMethods::get_virtual_metacontent_from_handler, _CacheMethods::get_authentic_pixels_handler, _CacheMethods::queue_authentic_pixels_handler, _CacheMethods::sync_authentic_pixels_handler, _CacheMethods::get_authentic_pixels_from_handler, _CacheMethods::get_authentic_metacontent_from_handler, _CacheMethods::get_one_virtual_pixel_from_handler, and _CacheMethods::get_one_authentic_pixel_from_handler.
Referenced by ReadStream().
| static Quantum * SetPixelCacheNexusPixels | ( | const Image * | image, |
| const RectangleInfo * | region, | ||
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4773 of file cache.c.
References _Image::cache, _CacheInfo::signature, MagickSignature, _CacheInfo::type, UndefinedCache, _NexusInfo::region, DiskCache, PingCache, _RectangleInfo::x, _RectangleInfo::width, _RectangleInfo::y, _RectangleInfo::height, _CacheInfo::columns, _CacheInfo::rows, _NexusInfo::pixels, _CacheInfo::pixels, _CacheInfo::number_channels, _NexusInfo::metacontent, _CacheInfo::metacontent_extent, _CacheInfo::metacontent, _NexusInfo::cache, _NexusInfo::length, AcquireCacheNexusPixels(), MagickFalse, and RelinquishCacheNexusPixels().
Referenced by GetVirtualPixelsFromNexus(), and QueueAuthenticPixelCacheNexus().
| MagickPrivate VirtualPixelMethod SetPixelCacheVirtualMethod | ( | const Image * | image, |
| const VirtualPixelMethod | virtual_pixel_method | ||
| ) |
Definition at line 4887 of file cache.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::cache, _CacheInfo::signature, and _CacheInfo::virtual_pixel_method.
Referenced by SetImageVirtualPixelMethod().
| MagickPrivate MagickBooleanType SyncAuthenticPixelCacheNexus | ( | Image * | image, |
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4937 of file cache.c.
References _Image::signature, MagickSignature, _Image::cache, ThrowBinaryException, CacheError, _Image::filename, _CacheInfo::signature, _CacheInfo::type, UndefinedCache, MagickFalse, IsPixelAuthentic(), MagickTrue, WritePixelCachePixels(), _CacheInfo::metacontent_extent, and WritePixelCacheMetacontent().
| MagickExport MagickBooleanType SyncAuthenticPixels | ( | Image * | image, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 5044 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::methods, _CacheMethods::sync_authentic_pixels_handler, _CacheInfo::number_threads, SyncAuthenticPixelCacheNexus(), and _CacheInfo::nexus_info.
Referenced by StereoAnaglyphImage(), ClearBounds(), ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportLongPixel(), ImportLongLongPixel(), ImportQuantumPixel(), and ImportShortPixel().
| static MagickBooleanType SyncAuthenticPixelsCache | ( | Image * | image, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4994 of file cache.c.
References GetOpenMPThreadId(), _Image::signature, MagickSignature, _Image::cache, _CacheInfo::signature, _CacheInfo::number_threads, SyncAuthenticPixelCacheNexus(), and _CacheInfo::nexus_info.
Referenced by GetPixelCacheMethods().
| MagickPrivate MagickBooleanType SyncImagePixelCache | ( | Image * | image, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 5101 of file cache.c.
References GetImagePixelCache(), MagickTrue, and MagickFalse.
Referenced by SetImageColorspace(), SetImageAlphaChannel(), SetImageStorageClass(), and SetImageExtent().
| static MagickBooleanType ValidatePixelCacheMorphology | ( | const Image * | image | ) | [inline, static] |
Definition at line 1820 of file cache.c.
References _Image::cache, _Image::channel_map, _CacheInfo::channel_map, _Image::storage_class, _CacheInfo::storage_class, _Image::colorspace, _CacheInfo::colorspace, _Image::matte, _CacheInfo::matte, _Image::mask, _CacheInfo::mask, _Image::columns, _CacheInfo::columns, _Image::rows, _CacheInfo::rows, _Image::number_channels, _CacheInfo::number_channels, _Image::metacontent_extent, _CacheInfo::metacontent_extent, _CacheInfo::nexus_info, _CacheInfo::number_threads, GetOpenMPMaximumThreads(), MagickFalse, and MagickTrue.
Referenced by GetImagePixelCache().
| static MagickModulo VirtualPixelModulo | ( | const ssize_t | offset, |
| const size_t | extent | ||
| ) | [inline, static] |
Definition at line 2977 of file cache.c.
References _MagickModulo::quotient, and _MagickModulo::remainder.
Referenced by GetVirtualPixelsFromNexus().
| static MagickBooleanType WritePixelCacheMetacontent | ( | CacheInfo * | cache_info, |
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 5141 of file cache.c.
References _CacheInfo::metacontent_extent, MagickFalse, IsPixelAuthentic(), MagickTrue, _NexusInfo::region, _RectangleInfo::y, _CacheInfo::columns, _RectangleInfo::x, _RectangleInfo::width, _RectangleInfo::height, _NexusInfo::metacontent, _CacheInfo::type, MemoryCache, MapCache, _CacheInfo::metacontent, DiskCache, OpenPixelCacheOnDisk(), IOMode, ThrowFileException, FileOpenError, _CacheInfo::cache_filename, MagickMaxBufferExtent, _CacheInfo::rows, WritePixelCacheRegion(), _CacheInfo::offset, _CacheInfo::number_channels, IsFileDescriptorLimitExceeded, ClosePixelCacheOnDisk(), CacheError, _CacheInfo::debug, CacheTick, LogMagickEvent(), CacheEvent, GetMagickModule, and _CacheInfo::filename.
Referenced by SyncAuthenticPixelCacheNexus().
| static MagickBooleanType WritePixelCachePixels | ( | CacheInfo * | cache_info, |
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 5277 of file cache.c.
References IsPixelAuthentic(), MagickFalse, MagickTrue, _NexusInfo::region, _RectangleInfo::y, _CacheInfo::columns, _RectangleInfo::x, _RectangleInfo::width, _CacheInfo::number_channels, _RectangleInfo::height, _NexusInfo::pixels, _CacheInfo::type, MemoryCache, MapCache, _CacheInfo::pixels, DiskCache, OpenPixelCacheOnDisk(), IOMode, ThrowFileException, FileOpenError, _CacheInfo::cache_filename, MagickMaxBufferExtent, WritePixelCacheRegion(), _CacheInfo::offset, IsFileDescriptorLimitExceeded, ClosePixelCacheOnDisk(), CacheError, _CacheInfo::debug, CacheTick, _CacheInfo::rows, LogMagickEvent(), CacheEvent, GetMagickModule, and _CacheInfo::filename.
Referenced by SyncAuthenticPixelCacheNexus().
| static MagickOffsetType WritePixelCacheRegion | ( | CacheInfo * | cache_info, |
| const MagickOffsetType | offset, | ||
| const MagickSizeType | length, | ||
| const unsigned char *restrict | buffer | ||
| ) | [inline, static] |
Definition at line 560 of file cache.c.
References _CacheInfo::timestamp, LockSemaphoreInfo(), _CacheInfo::disk_semaphore, _CacheInfo::file, UnlockSemaphoreInfo(), and MagickMin().
Referenced by DiskToDiskPixelCacheClone(), PixelCacheCloneOptimized(), PixelCacheCloneUnoptimized(), ExtendCache(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
SemaphoreInfo* cache_semaphore = (SemaphoreInfo *) NULL [static] |
Definition at line 159 of file cache.c.
Referenced by CacheComponentGenesis(), and CacheComponentTerminus().
ssize_t DitherMatrix[64] [static] |
{
0, 48, 12, 60, 3, 51, 15, 63,
32, 16, 44, 28, 35, 19, 47, 31,
8, 56, 4, 52, 11, 59, 7, 55,
40, 24, 36, 20, 43, 27, 39, 23,
2, 50, 14, 62, 1, 49, 13, 61,
34, 18, 46, 30, 33, 17, 45, 29,
10, 58, 6, 54, 9, 57, 5, 53,
42, 26, 38, 22, 41, 25, 37, 21
}
volatile MagickBooleanType instantiate_cache = MagickFalse [static] |
Definition at line 156 of file cache.c.
Referenced by CacheComponentTerminus().