#include "magick/studio.h"#include "magick/blob.h"#include "magick/blob-private.h"#include "magick/cache.h"#include "magick/cache-private.h"#include "magick/color-private.h"#include "magick/composite-private.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/geometry.h"#include "magick/list.h"#include "magick/log.h"#include "magick/magick.h"#include "magick/memory_.h"#include "magick/pixel.h"#include "magick/pixel-private.h"#include "magick/policy.h"#include "magick/quantum.h"#include "magick/random_.h"#include "magick/resource_.h"#include "magick/semaphore.h"#include "magick/splay-tree.h"#include "magick/string_.h"#include "magick/string-private.h"#include "magick/thread-private.h"#include "magick/utility.h"
Go to the source code of this file.
Data Structures | |
| struct | _MagickModulo |
| struct | _NexusInfo |
Defines | |
| #define | CacheTick(offset, extent) QuantumTick((MagickOffsetType) offset,extent) |
Typedefs | |
| typedef struct _MagickModulo | MagickModulo |
Functions | |
| static const IndexPacket * | GetVirtualIndexesFromCache (const Image *) |
| static const PixelPacket * | GetVirtualPixelCache (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) |
| static const PixelPacket ** | GetVirtualPixelsCache (const Image *) |
| static MagickBooleanType | GetOneAuthenticPixelFromCache (Image *, const ssize_t, const ssize_t, PixelPacket *, ExceptionInfo *) |
| static MagickBooleanType | GetOneVirtualPixelFromCache (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, PixelPacket *, ExceptionInfo *) |
| static MagickBooleanType | OpenPixelCache (Image *, const MapMode, ExceptionInfo *) |
| static MagickBooleanType | ReadPixelCacheIndexes (CacheInfo *, NexusInfo *, ExceptionInfo *) |
| static MagickBooleanType | ReadPixelCachePixels (CacheInfo *, NexusInfo *, ExceptionInfo *) |
| static MagickBooleanType | SyncAuthenticPixelsCache (Image *, ExceptionInfo *) |
| static MagickBooleanType | WritePixelCacheIndexes (CacheInfo *, NexusInfo *, ExceptionInfo *) |
| static MagickBooleanType | WritePixelCachePixels (CacheInfo *, NexusInfo *, ExceptionInfo *) |
| static PixelPacket * | GetAuthenticPixelsCache (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) |
| static PixelPacket ** | QueueAuthenticPixelsCache (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *) |
| static PixelPacket *** | SetPixelCacheNexusPixels (const Image *, const RectangleInfo *, NexusInfo *, ExceptionInfo *) |
| MagickExport Cache | AcquirePixelCache (const size_t number_threads) |
| MagickExport NexusInfo ** | AcquirePixelCacheNexus (const size_t number_threads) |
| MagickExport const void * | AcquirePixelCachePixels (const Image *image, MagickSizeType *length, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | CacheComponentGenesis (void) |
| MagickExport void | CacheComponentTerminus (void) |
| static MagickBooleanType | ClipPixelCacheNexus (Image *image, NexusInfo *nexus_info, ExceptionInfo *exception) |
| MagickExport Cache | ClonePixelCache (const Cache cache) |
| static MagickBooleanType | AcquireCacheNexusPixels (CacheInfo *cache_info, NexusInfo *nexus_info, ExceptionInfo *exception) |
| static MagickBooleanType | ClonePixelCacheNexus (CacheInfo *destination, CacheInfo *source, ExceptionInfo *exception) |
| static MagickBooleanType | ClosePixelCacheOnDisk (CacheInfo *cache_info) |
| static void | LimitPixelCacheDescriptors (void) |
| 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 | CloneDiskToDiskPixelCache (CacheInfo *clone_info, CacheInfo *cache_info, ExceptionInfo *exception) |
| static MagickBooleanType | CloneDiskToMemoryPixelCache (CacheInfo *clone_info, CacheInfo *cache_info, ExceptionInfo *exception) |
| static MagickBooleanType | CloneMemoryToDiskPixelCache (CacheInfo *clone_info, CacheInfo *cache_info, ExceptionInfo *exception) |
| static MagickBooleanType | CloneMemoryToMemoryPixelCache (CacheInfo *clone_info, CacheInfo *cache_info, ExceptionInfo *magick_unused(exception)) |
| static MagickBooleanType | ClonePixelCachePixels (CacheInfo *clone_info, CacheInfo *cache_info, ExceptionInfo *exception) |
| MagickExport void | ClonePixelCacheMethods (Cache clone, const Cache cache) |
| static void | DestroyImagePixelCache (Image *image) |
| MagickExport void | DestroyImagePixels (Image *image) |
| static void | RelinquishPixelCachePixels (CacheInfo *cache_info) |
| MagickExport Cache | DestroyPixelCache (Cache cache) |
| static void | RelinquishCacheNexusPixels (NexusInfo *nexus_info) |
| MagickExport NexusInfo ** | DestroyPixelCacheNexus (NexusInfo **nexus_info, const size_t number_threads) |
| static IndexPacket * | GetAuthenticIndexesFromCache (const Image *image) |
| MagickExport IndexPacket * | GetAuthenticIndexQueue (const Image *image) |
| static MagickBooleanType | IsNexusInCore (const CacheInfo *cache_info, NexusInfo *nexus_info) |
| MagickExport PixelPacket * | 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 PixelPacket * | GetAuthenticPixelsFromCache (const Image *image) |
| MagickExport PixelPacket * | GetAuthenticPixelQueue (const Image *image) |
| MagickExport PixelPacket * | 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) |
| MagickExport Cache | GetImagePixelCache (Image *image, const MagickBooleanType clone, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | GetOneAuthenticPixel (Image *image, const ssize_t x, const ssize_t y, PixelPacket *pixel, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | GetOneVirtualMagickPixel (const Image *image, const ssize_t x, const ssize_t y, MagickPixelPacket *pixel, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | GetOneVirtualMethodPixel (const Image *image, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, PixelPacket *pixel, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | GetOneVirtualPixel (const Image *image, const ssize_t x, const ssize_t y, PixelPacket *pixel, ExceptionInfo *exception) |
| MagickExport ColorspaceType | GetPixelCacheColorspace (const Cache cache) |
| MagickExport void | GetPixelCacheMethods (CacheMethods *cache_methods) |
| MagickExport MagickSizeType | GetPixelCacheNexusExtent (const Cache cache, NexusInfo *nexus_info) |
| MagickExport IndexPacket * | GetPixelCacheNexusIndexes (const Cache cache, NexusInfo *nexus_info) |
| MagickExport PixelPacket * | GetPixelCacheNexusPixels (const Cache cache, NexusInfo *nexus_info) |
| MagickExport void * | GetPixelCachePixels (Image *image, MagickSizeType *length, ExceptionInfo *exception) |
| MagickExport ClassType | GetPixelCacheStorageClass (const Cache cache) |
| MagickExport void | GetPixelCacheTileSize (const Image *image, size_t *width, size_t *height) |
| MagickExport CacheType | GetPixelCacheType (const Image *image) |
| MagickExport VirtualPixelMethod | GetPixelCacheVirtualMethod (const Image *image) |
| MagickExport const IndexPacket * | GetVirtualIndexesFromNexus (const Cache cache, NexusInfo *nexus_info) |
| MagickExport const IndexPacket * | GetVirtualIndexQueue (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) |
| MagickExport const PixelPacket * | 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 PixelPacket * | GetVirtualPixelQueue (const Image *image) |
| MagickExport const PixelPacket * | GetVirtualPixels (const Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception) |
| MagickExport const PixelPacket * | GetVirtualPixelsNexus (const Cache cache, NexusInfo *nexus_info) |
| static void | MagickPixelCompositeMask (const MagickPixelPacket *p, const MagickRealType alpha, const MagickPixelPacket *q, const MagickRealType beta, MagickPixelPacket *composite) |
| static MagickBooleanType | MaskPixelCacheNexus (Image *image, NexusInfo *nexus_info, ExceptionInfo *exception) |
| 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) |
| MagickExport PixelPacket * | QueueAuthenticNexus (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, NexusInfo *nexus_info, ExceptionInfo *exception) |
| MagickExport PixelPacket * | QueueAuthenticPixels (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception) |
| MagickExport Cache | ReferencePixelCache (Cache cache) |
| MagickExport void | SetPixelCacheMethods (Cache cache, CacheMethods *cache_methods) |
| MagickExport VirtualPixelMethod | SetPixelCacheVirtualMethod (const Image *image, const VirtualPixelMethod virtual_pixel_method) |
| MagickExport MagickBooleanType | SyncAuthenticPixelCacheNexus (Image *image, NexusInfo *nexus_info, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | SyncAuthenticPixels (Image *image, ExceptionInfo *exception) |
Variables | |
| static volatile MagickBooleanType | instantiate_cache = MagickFalse |
| static SemaphoreInfo * | cache_semaphore = (SemaphoreInfo *) NULL |
| static SplayTreeInfo * | cache_resources = (SplayTreeInfo *) NULL |
| static ssize_t | DitherMatrix [64] |
| #define CacheTick | ( | offset, | ||
| extent | ||||
| ) | QuantumTick((MagickOffsetType) offset,extent) |
Definition at line 76 of file cache.c.
Referenced by ReadPixelCacheIndexes(), ReadPixelCachePixels(), WritePixelCacheIndexes(), and WritePixelCachePixels().
| typedef struct _MagickModulo MagickModulo |
| static MagickBooleanType AcquireCacheNexusPixels | ( | CacheInfo * | cache_info, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) | [inline, static] |
Definition at line 553 of file cache.c.
References AcquireMagickMemory(), _NexusInfo::cache, _CacheInfo::filename, GetMagickModule, IOMode, _NexusInfo::length, MagickFalse, MagickTrue, MapBlob(), _NexusInfo::mapped, and ThrowMagickException().
Referenced by ClonePixelCacheNexus(), and SetPixelCacheNexusPixels().
| MagickExport Cache AcquirePixelCache | ( | const size_t | number_threads | ) |
Definition at line 183 of file cache.c.
References AcquireAlignedMemory(), AcquirePixelCacheNexus(), AcquireSemaphoreInfo(), AddValueToSplayTree(), AllocateSemaphoreInfo(), cache_resources, cache_semaphore, _CacheInfo::colorspace, _CacheInfo::debug, _CacheInfo::disk_semaphore, _CacheInfo::file, GetMagickThreadId(), GetOpenMPMaximumThreads(), GetPixelCacheMethods(), _CacheInfo::id, instantiate_cache, IsEventLogging(), LockSemaphoreInfo(), MagickFalse, _CacheInfo::methods, _CacheInfo::mode, NewSplayTree(), _CacheInfo::nexus_info, _CacheInfo::number_threads, _CacheInfo::reference_count, ResetMagickMemory(), ResourceLimitFatalError, _CacheInfo::semaphore, _CacheInfo::signature, ThrowFatalException, _CacheInfo::type, and UnlockSemaphoreInfo().
| MagickExport NexusInfo** AcquirePixelCacheNexus | ( | const size_t | number_threads | ) |
Definition at line 250 of file cache.c.
References AcquireAlignedMemory(), ResetMagickMemory(), ResourceLimitFatalError, _NexusInfo::signature, and ThrowFatalException.
| MagickExport const void* AcquirePixelCachePixels | ( | const Image * | image, | |
| MagickSizeType * | length, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 301 of file cache.c.
References _Image::cache, _CacheInfo::length, MagickSignature, MemoryCache, _CacheInfo::pixels, _CacheInfo::signature, _ExceptionInfo::signature, _Image::signature, and _CacheInfo::type.
Referenced by AccelerateConvolveImage().
| static void AllocatePixelCachePixels | ( | CacheInfo * | cache_info | ) | [inline, static] |
Definition at line 3990 of file cache.c.
References AcquireMagickMemory(), IOMode, _CacheInfo::length, MapBlob(), _CacheInfo::mapped, and _CacheInfo::pixels.
Referenced by OpenPixelCache().
| MagickExport MagickBooleanType CacheComponentGenesis | ( | void | ) |
Definition at line 339 of file cache.c.
References AcquireSemaphoreInfo(), cache_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
| MagickExport void CacheComponentTerminus | ( | void | ) |
Definition at line 363 of file cache.c.
References AcquireSemaphoreInfo(), cache_resources, cache_semaphore, DestroySemaphoreInfo(), DestroySplayTree(), instantiate_cache, LockSemaphoreInfo(), and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
| static MagickBooleanType ClipPixelCacheNexus | ( | Image * | image, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 404 of file cache.c.
References AcquirePixelCacheNexus(), _CacheInfo::active_index_channel, _Image::cache, CacheError, _Image::clip_mask, _Image::debug, DestroyPixelCacheNexus(), _Image::filename, GetAuthenticPixelCacheNexus(), GetBluePixelComponent, GetGreenPixelComponent, GetImagePixelCache(), GetMagickModule, GetOpacityPixelComponent, GetPixelCacheNexusIndexes(), GetRedPixelComponent, GetVirtualPixelsFromNexus(), _RectangleInfo::height, _NexusInfo::indexes, LogMagickEvent(), MagickFalse, MagickTrue, MaskVirtualPixelMethod, PixelIntensityToQuantum(), _NexusInfo::pixels, QuantumRange, _NexusInfo::region, restrict, SetBluePixelComponent, SetGreenPixelComponent, SetOpacityPixelComponent, SetRedPixelComponent, ThrowBinaryException, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by SyncAuthenticPixelCacheNexus().
| static MagickBooleanType CloneDiskToDiskPixelCache | ( | CacheInfo * | clone_info, | |
| CacheInfo * | cache_info, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 869 of file cache.c.
References AcquireMagickMemory(), _CacheInfo::active_index_channel, _CacheInfo::cache_filename, CacheError, CacheEvent, _CacheInfo::columns, _CacheInfo::debug, FileOpenError, GetMagickModule, IOMode, LogMagickEvent(), MagickFalse, MagickMax(), MagickMin(), MagickTrue, _CacheInfo::offset, OpenPixelCacheOnDisk(), ReadPixelCacheRegion(), RelinquishMagickMemory(), ResetMagickMemory(), restrict, _CacheInfo::rows, ThrowFileException, ThrowMagickException(), and WritePixelCacheRegion().
Referenced by ClonePixelCachePixels().
| static MagickBooleanType CloneDiskToMemoryPixelCache | ( | CacheInfo * | clone_info, | |
| CacheInfo * | cache_info, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 1035 of file cache.c.
References AcquireMagickMemory(), _CacheInfo::active_index_channel, _CacheInfo::cache_filename, CacheError, CacheEvent, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, FileOpenError, GetMagickModule, _CacheInfo::indexes, IOMode, LogMagickEvent(), MagickFalse, MagickMax(), MagickMin(), MagickTrue, _CacheInfo::offset, OpenPixelCacheOnDisk(), _CacheInfo::pixels, ReadPixelCacheRegion(), RelinquishMagickMemory(), ResetMagickMemory(), restrict, _CacheInfo::rows, ThrowFileException, and ThrowMagickException().
Referenced by ClonePixelCachePixels().
| static MagickBooleanType CloneMemoryToDiskPixelCache | ( | CacheInfo * | clone_info, | |
| CacheInfo * | cache_info, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 1147 of file cache.c.
References AcquireMagickMemory(), _CacheInfo::active_index_channel, _CacheInfo::cache_filename, CacheError, CacheEvent, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, FileOpenError, GetMagickModule, _CacheInfo::indexes, IOMode, LogMagickEvent(), MagickFalse, MagickMax(), MagickMin(), MagickTrue, _CacheInfo::offset, OpenPixelCacheOnDisk(), _CacheInfo::pixels, RelinquishMagickMemory(), ResetMagickMemory(), restrict, _CacheInfo::rows, ThrowFileException, ThrowMagickException(), and WritePixelCacheRegion().
Referenced by ClonePixelCachePixels().
| static MagickBooleanType CloneMemoryToMemoryPixelCache | ( | CacheInfo * | clone_info, | |
| CacheInfo * | cache_info, | |||
| ExceptionInfo * | magick_unusedexception | |||
| ) | [static] |
Definition at line 1301 of file cache.c.
References _CacheInfo::active_index_channel, CacheEvent, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, GetMagickModule, _CacheInfo::indexes, LogMagickEvent(), MagickFalse, MagickMin(), MagickTrue, _CacheInfo::pixels, ResetMagickMemory(), restrict, and _CacheInfo::rows.
Referenced by ClonePixelCachePixels().
Definition at line 503 of file cache.c.
References AcquirePixelCache(), _CacheInfo::debug, _CacheInfo::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::number_threads, _CacheInfo::signature, TraceEvent, and _CacheInfo::virtual_pixel_method.
Definition at line 1426 of file cache.c.
References _CacheInfo::debug, _CacheInfo::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, and TraceEvent.
| static MagickBooleanType ClonePixelCacheNexus | ( | CacheInfo * | destination, | |
| CacheInfo * | source, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 577 of file cache.c.
References AcquireCacheNexusPixels(), _NexusInfo::cache, CopyMagickMemory(), _RectangleInfo::height, _NexusInfo::indexes, _NexusInfo::length, MagickFalse, _NexusInfo::mapped, _CacheInfo::nexus_info, _CacheInfo::number_threads, _NexusInfo::pixels, _NexusInfo::region, and _RectangleInfo::width.
Referenced by GetImagePixelCache(), and PersistPixelCache().
| static MagickBooleanType ClonePixelCachePixels | ( | CacheInfo * | clone_info, | |
| CacheInfo * | cache_info, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 1389 of file cache.c.
References CloneDiskToDiskPixelCache(), CloneDiskToMemoryPixelCache(), CloneMemoryToDiskPixelCache(), CloneMemoryToMemoryPixelCache(), DiskCache, and _CacheInfo::type.
Referenced by GetImagePixelCache(), OpenPixelCache(), and PersistPixelCache().
| static MagickBooleanType ClosePixelCacheOnDisk | ( | CacheInfo * | cache_info | ) | [static] |
Definition at line 651 of file cache.c.
References close, _CacheInfo::disk_semaphore, _CacheInfo::file, FileResource, LockSemaphoreInfo(), MagickFalse, MagickTrue, RelinquishMagickResource(), and UnlockSemaphoreInfo().
Referenced by OpenPixelCache(), and RelinquishPixelCachePixels().
| static void DestroyImagePixelCache | ( | Image * | image | ) | [static] |
Definition at line 1466 of file cache.c.
References _Image::cache, _Image::debug, DestroyPixelCache(), _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, and TraceEvent.
| MagickExport void DestroyImagePixels | ( | Image * | image | ) |
Definition at line 1499 of file cache.c.
References _Image::cache, _Image::debug, _CacheMethods::destroy_pixel_handler, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by DestroyImage().
Definition at line 1575 of file cache.c.
References _CacheInfo::cache_filename, cache_resources, CacheEvent, _CacheInfo::debug, DeleteNodeByValueFromSplayTree(), DestroyPixelCacheNexus(), DestroyRandomInfo(), DestroySemaphoreInfo(), _CacheInfo::disk_semaphore, DiskCache, _CacheInfo::filename, FormatMagickString(), GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MaxTextExtent, _CacheInfo::mode, _CacheInfo::nexus_info, _CacheInfo::number_threads, _CacheInfo::random_info, ReadMode, _CacheInfo::reference_count, RelinquishAlignedMemory(), RelinquishPixelCachePixels(), RelinquishUniqueFileResource(), _CacheInfo::semaphore, _CacheInfo::signature, TraceEvent, _CacheInfo::type, and UnlockSemaphoreInfo().
| MagickExport NexusInfo** DestroyPixelCacheNexus | ( | NexusInfo ** | nexus_info, | |
| const size_t | number_threads | |||
| ) |
Definition at line 1668 of file cache.c.
References RelinquishAlignedMemory(), RelinquishCacheNexusPixels(), and _NexusInfo::signature.
Referenced by ClipPixelCacheNexus(), DestroyCacheView(), DestroyPixelCache(), DestroyPixelStream(), GetVirtualPixelsFromNexus(), and MaskPixelCacheNexus().
| static ssize_t DitherX | ( | const ssize_t | x, | |
| const size_t | columns | |||
| ) | [inline, static] |
Definition at line 3170 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 3183 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 3196 of file cache.c.
Referenced by GetVirtualPixelsFromNexus().
| static ssize_t EdgeY | ( | const ssize_t | y, | |
| const size_t | rows | |||
| ) | [inline, static] |
Definition at line 3205 of file cache.c.
Referenced by GetVirtualPixelsFromNexus().
| static MagickBooleanType ExtendCache | ( | Image * | image, | |
| MagickSizeType | length | |||
| ) | [static] |
Definition at line 4003 of file cache.c.
References _Image::cache, _CacheInfo::cache_filename, CacheEvent, _Image::debug, _CacheInfo::file, _CacheInfo::filename, FormatMagickSize(), FormatMagickString(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickSeek, MagickTrue, MaxTextExtent, and WritePixelCacheRegion().
Referenced by OpenPixelCache().
| static IndexPacket* GetAuthenticIndexesFromCache | ( | const Image * | image | ) | [static] |
Definition at line 1709 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetPixelCacheNexusIndexes(), _CacheInfo::nexus_info, and _CacheInfo::number_threads.
| MagickExport IndexPacket* GetAuthenticIndexQueue | ( | const Image * | image | ) |
Definition at line 1752 of file cache.c.
References _Image::cache, _CacheMethods::get_authentic_indexes_from_handler, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, and _Image::signature.
Referenced by ConsolidateCMYKImages(), FloodfillPaintImage(), GetIndexes(), HuffmanDecodeImage(), ImportImagePixels(), ImportQuantumPixels(), RandomChannelThresholdImage(), ScaleImage(), SetImage(), StreamImagePixels(), ThresholdImage(), ThresholdImageChannel(), UniqueColorsToImage(), XGetWindowImage(), and XMakeStandardColormap().
| MagickExport PixelPacket* 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 1818 of file cache.c.
References _CacheInfo::active_index_channel, _Image::cache, IsNexusInCore(), MagickFalse, MagickSignature, QueueAuthenticNexus(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), _CacheInfo::signature, and _Image::signature.
| MagickExport PixelPacket* GetAuthenticPixelQueue | ( | const Image * | image | ) |
Definition at line 1912 of file cache.c.
References _Image::cache, _CacheMethods::get_authentic_pixels_from_handler, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, and _Image::signature.
Referenced by ExportQuantumPixels(), GetPixels(), ImportQuantumPixels(), and StreamImagePixels().
| MagickExport PixelPacket* GetAuthenticPixels | ( | Image * | image, | |
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| const size_t | columns, | |||
| const size_t | rows, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1974 of file cache.c.
References _Image::cache, _CacheMethods::get_authentic_pixels_handler, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, and _Image::signature.
Referenced by ClearBounds(), ColorFloodfillImage(), ConsolidateCMYKImages(), FloodfillPaintImage(), GetImagePixels(), ImportImagePixels(), MatteFloodfillImage(), OpaqueImage(), RandomChannelThresholdImage(), SteganoImage(), ThresholdImage(), ThresholdImageChannel(), TransparentImage(), XAnnotateImage(), XDrawImage(), and XMakeStandardColormap().
| static PixelPacket * 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 2028 of file cache.c.
References GetAuthenticPixelCacheNexus(), GetImagePixelCache(), GetOpenMPThreadId(), MagickTrue, _CacheInfo::nexus_info, and _CacheInfo::number_threads.
Referenced by GetOneAuthenticPixelFromCache().
| static PixelPacket* GetAuthenticPixelsFromCache | ( | const Image * | image | ) | [static] |
Definition at line 1871 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetPixelCacheNexusPixels(), _CacheInfo::nexus_info, and _CacheInfo::number_threads.
| MagickExport MagickSizeType GetImageExtent | ( | const Image * | image | ) |
Definition at line 2074 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, GetOpenMPThreadId(), GetPixelCacheNexusExtent(), LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::nexus_info, _CacheInfo::number_threads, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ExportQuantumPixels(), ImportQuantumPixels(), and StreamImagePixels().
| MagickExport Cache GetImagePixelCache | ( | Image * | image, | |
| const MagickBooleanType | clone, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2146 of file cache.c.
References AllocateSemaphoreInfo(), _Image::cache, ClonePixelCache(), ClonePixelCacheNexus(), ClonePixelCachePixels(), _Image::colorspace, DestroyPixelCache(), DestroySemaphoreInfo(), DestroyString(), GetEnvironmentValue(), GetMagickResourceLimit(), GetPolicyValue(), GRAYColorspace, IOMode, LockSemaphoreInfo(), MagickDelay(), MagickFalse, MagickResourceInfinity, _CacheInfo::mode, OpenPixelCache(), ReadMode, _Image::reference_count, _CacheInfo::reference_count, ResourceLimitFatalError, _CacheInfo::semaphore, _Image::semaphore, StringToInteger(), _Image::taint, ThrowFatalException, TimeResource, _Image::type, UnlockSemaphoreInfo(), and ValidatePixelCacheMorphology().
| MagickExport MagickBooleanType GetOneAuthenticPixel | ( | Image * | image, | |
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2289 of file cache.c.
References _Image::background_color, _Image::cache, _CacheMethods::get_one_authentic_pixel_from_handler, MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, and _Image::signature.
Referenced by GetOnePixel().
| static MagickBooleanType GetOneAuthenticPixelFromCache | ( | Image * | image, | |
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 2348 of file cache.c.
References _Image::background_color, GetAuthenticPixelsCache(), MagickFalse, and MagickTrue.
| MagickExport MagickBooleanType GetOneVirtualMagickPixel | ( | const Image * | image, | |
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| MagickPixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2394 of file cache.c.
References _Image::cache, GetMagickPixelPacket(), GetPixelCacheVirtualMethod(), GetVirtualIndexQueue(), GetVirtualPixelCache(), MagickFalse, MagickSignature, MagickTrue, SetMagickPixelPacket(), _CacheInfo::signature, and _Image::signature.
Referenced by AcquireOneMagickPixel(), CompositeImageChannel(), DrawPrimitive(), and XMakeMagnifyImage().
| MagickExport MagickBooleanType GetOneVirtualMethodPixel | ( | const Image * | image, | |
| const VirtualPixelMethod | virtual_pixel_method, | |||
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2457 of file cache.c.
References _Image::background_color, _Image::cache, _CacheMethods::get_one_virtual_pixel_from_handler, MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, and _Image::signature.
Referenced by AcquireOneVirtualPixel(), GetFillColor(), and GetStrokeColor().
| MagickExport MagickBooleanType GetOneVirtualPixel | ( | const Image * | image, | |
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2517 of file cache.c.
References _Image::background_color, _Image::cache, _CacheMethods::get_one_virtual_pixel_from_handler, GetPixelCacheVirtualMethod(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, and _Image::signature.
Referenced by AcquireOnePixel(), PlasmaImageProxy(), SteganoImage(), XAnnotateImage(), and XDrawImage().
| static MagickBooleanType GetOneVirtualPixelFromCache | ( | const Image * | image, | |
| const VirtualPixelMethod | virtual_pixel_method, | |||
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2579 of file cache.c.
References _Image::background_color, GetVirtualPixelCache(), MagickFalse, and MagickTrue.
| MagickExport ColorspaceType GetPixelCacheColorspace | ( | const Cache | cache | ) |
Definition at line 2616 of file cache.c.
References _CacheInfo::colorspace, _CacheInfo::debug, _CacheInfo::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::signature, and TraceEvent.
Referenced by QueueAuthenticPixelsStream().
| MagickExport void GetPixelCacheMethods | ( | CacheMethods * | cache_methods | ) |
Definition at line 2652 of file cache.c.
References _CacheMethods::destroy_pixel_handler, _CacheMethods::get_authentic_indexes_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_indexes_from_handler, _CacheMethods::get_virtual_pixel_handler, _CacheMethods::get_virtual_pixels_handler, _CacheMethods::queue_authentic_pixels_handler, ResetMagickMemory(), and _CacheMethods::sync_authentic_pixels_handler.
| MagickExport MagickSizeType GetPixelCacheNexusExtent | ( | const Cache | cache, | |
| NexusInfo * | nexus_info | |||
| ) |
Definition at line 2695 of file cache.c.
References _CacheInfo::columns, _RectangleInfo::height, MagickSignature, _NexusInfo::region, _CacheInfo::rows, _CacheInfo::signature, and _RectangleInfo::width.
Referenced by GetCacheViewExtent(), and GetImageExtent().
| MagickExport IndexPacket* GetPixelCacheNexusIndexes | ( | const Cache | cache, | |
| NexusInfo * | nexus_info | |||
| ) |
Definition at line 2740 of file cache.c.
References _NexusInfo::indexes, MagickSignature, _CacheInfo::signature, _CacheInfo::storage_class, and UndefinedClass.
Referenced by ClipPixelCacheNexus(), GetAuthenticIndexesFromCache(), GetCacheViewAuthenticIndexQueue(), GetVirtualPixelsFromNexus(), and MaskPixelCacheNexus().
| MagickExport PixelPacket* GetPixelCacheNexusPixels | ( | const Cache | cache, | |
| NexusInfo * | nexus_info | |||
| ) |
Definition at line 2781 of file cache.c.
References MagickSignature, _NexusInfo::pixels, _CacheInfo::signature, _CacheInfo::storage_class, and UndefinedClass.
| MagickExport void* GetPixelCachePixels | ( | Image * | image, | |
| MagickSizeType * | length, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2823 of file cache.c.
References _Image::cache, GetImagePixelCache(), _CacheInfo::length, MagickSignature, MagickTrue, MapCache, MemoryCache, _CacheInfo::pixels, _CacheInfo::signature, _Image::signature, and _CacheInfo::type.
Referenced by AccelerateConvolveImage().
Definition at line 2865 of file cache.c.
References _CacheInfo::debug, _CacheInfo::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::signature, _CacheInfo::storage_class, and TraceEvent.
Referenced by QueueAuthenticPixelsStream().
| MagickExport void GetPixelCacheTileSize | ( | const Image * | image, | |
| size_t * | width, | |||
| size_t * | height | |||
| ) |
Definition at line 2906 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, GetPixelCacheType(), LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::signature, _Image::signature, and TraceEvent.
Definition at line 2947 of file cache.c.
References _Image::cache, MagickSignature, _CacheInfo::signature, _Image::signature, and _CacheInfo::type.
Referenced by GetPixelCacheTileSize().
| MagickExport VirtualPixelMethod GetPixelCacheVirtualMethod | ( | const Image * | image | ) |
Definition at line 2984 of file cache.c.
References _Image::cache, MagickSignature, _CacheInfo::signature, _Image::signature, and _CacheInfo::virtual_pixel_method.
Referenced by GetImageVirtualPixelMethod(), GetOneVirtualMagickPixel(), GetOneVirtualPixel(), and GetVirtualPixels().
| static const IndexPacket * GetVirtualIndexesFromCache | ( | const Image * | image | ) | [static] |
Definition at line 3020 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetVirtualIndexesFromNexus(), _CacheInfo::nexus_info, and _CacheInfo::number_threads.
| MagickExport const IndexPacket* GetVirtualIndexesFromNexus | ( | const Cache | cache, | |
| NexusInfo * | nexus_info | |||
| ) |
Definition at line 3064 of file cache.c.
References _NexusInfo::indexes, MagickSignature, _CacheInfo::signature, _CacheInfo::storage_class, and UndefinedClass.
Referenced by GetCacheViewVirtualIndexQueue(), GetVirtualIndexesFromCache(), and GetVirtualPixelsFromNexus().
| MagickExport const IndexPacket* GetVirtualIndexQueue | ( | const Image * | image | ) |
Definition at line 3104 of file cache.c.
References _Image::cache, _CacheMethods::get_virtual_indexes_from_handler, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, and _Image::signature.
Referenced by AcquireIndexes(), CompareImageBounds(), EqualizeImageChannel(), ExportImagePixels(), ExportQuantumPixels(), FloodfillPaintImage(), GetImageChannelKurtosis(), GetImageChannelRange(), GetImageChannelStatistics(), GetOneVirtualMagickPixel(), IdentifyImage(), InterpolatePixelColor(), InterpolateResampleFilter(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
| static const PixelPacket * 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 3611 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetVirtualPixelsFromNexus(), _CacheInfo::nexus_info, and _CacheInfo::number_threads.
Referenced by GetOneVirtualMagickPixel(), and GetOneVirtualPixelFromCache().
| MagickExport const PixelPacket* GetVirtualPixelQueue | ( | const Image * | image | ) |
Definition at line 3655 of file cache.c.
References _Image::cache, _CacheMethods::get_virtual_pixels_handler, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, and _Image::signature.
Referenced by AcquirePixels(), and ExportQuantumPixels().
| MagickExport const PixelPacket* 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 3719 of file cache.c.
References _Image::cache, _CacheMethods::get_virtual_pixel_handler, GetPixelCacheVirtualMethod(), MagickSignature, _CacheInfo::methods, _CacheInfo::signature, and _Image::signature.
Referenced by AcquireImagePixels(), ColorFloodfillImage(), CompareImageBounds(), ConsolidateCMYKImages(), EqualizeImageChannel(), ExportImagePixels(), FloodfillPaintImage(), GetImageChannelKurtosis(), GetImageChannelRange(), GetImageChannelStatistics(), GetImageDynamicThreshold(), HuffmanEncodeImage(), IdentifyImage(), InitializeHistogram(), InterpolatePixelColor(), IsBoundsCleared(), LinearStretchImage(), MatteFloodfillImage(), StereoAnaglyphImage(), XDitherImage(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
| static const PixelPacket * GetVirtualPixelsCache | ( | const Image * | image | ) |
Definition at line 3765 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetVirtualPixelsNexus(), _CacheInfo::nexus_info, and _CacheInfo::number_threads.
| MagickExport const PixelPacket* 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 3244 of file cache.c.
References AcquirePixelCacheNexus(), AcquireRandomInfo(), _Image::background_color, BackgroundVirtualPixelMethod, BlackVirtualPixelMethod, _Image::cache, CheckerTileVirtualPixelMethod, CMYKColorspace, _CacheInfo::colorspace, _CacheInfo::columns, ConstantVirtualPixelMethod, CopyMagickMemory(), DestroyPixelCacheNexus(), DitherVirtualPixelMethod, DitherX(), DitherY(), EdgeVirtualPixelMethod, EdgeX(), EdgeY(), _Image::filename, GetMagickModule, GetPixelCacheNexusIndexes(), GetVirtualIndexesFromNexus(), GetVirtualPixelsFromNexus(), GrayVirtualPixelMethod, _RectangleInfo::height, HorizontalTileEdgeVirtualPixelMethod, HorizontalTileVirtualPixelMethod, IsNexusInCore(), MagickFalse, MagickMin(), MaskVirtualPixelMethod, MirrorVirtualPixelMethod, OpaqueOpacity, PseudoClass, QuantumRange, _MagickModulo::quotient, _CacheInfo::random_info, RandomVirtualPixelMethod, RandomX(), RandomY(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), _NexusInfo::region, _MagickModulo::remainder, restrict, _CacheInfo::rows, SetBluePixelComponent, SetGreenPixelComponent, SetOpacityPixelComponent, SetPixelCacheNexusPixels(), SetRedPixelComponent, _CacheInfo::storage_class, ThrowMagickException(), TileVirtualPixelMethod, TransparentOpacity, TransparentVirtualPixelMethod, _CacheInfo::type, UndefinedCache, VerticalTileEdgeVirtualPixelMethod, VerticalTileVirtualPixelMethod, VirtualPixelModulo(), WhiteVirtualPixelMethod, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
| MagickExport const PixelPacket* GetVirtualPixelsNexus | ( | const Cache | cache, | |
| NexusInfo * | nexus_info | |||
| ) |
Definition at line 3809 of file cache.c.
References MagickSignature, _NexusInfo::pixels, _CacheInfo::signature, _CacheInfo::storage_class, and UndefinedClass.
Referenced by GetCacheViewVirtualPixelQueue(), and GetVirtualPixelsCache().
| static MagickBooleanType IsNexusInCore | ( | const CacheInfo * | cache_info, | |
| NexusInfo * | nexus_info | |||
| ) | [inline, static] |
Definition at line 1803 of file cache.c.
References _CacheInfo::columns, MagickFalse, MagickTrue, PingCache, _CacheInfo::pixels, _NexusInfo::pixels, _NexusInfo::region, _CacheInfo::type, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetAuthenticPixelCacheNexus(), GetVirtualPixelsFromNexus(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), SyncAuthenticPixelCacheNexus(), WritePixelCacheIndexes(), and WritePixelCachePixels().
| static void LimitPixelCacheDescriptors | ( | void | ) | [static] |
Definition at line 666 of file cache.c.
References cache_resources, cache_semaphore, close, DiskCache, _CacheInfo::file, FileResource, GetMagickResource(), GetMagickResourceLimit(), GetNextKeyInSplayTree(), LockSemaphoreInfo(), ResetSplayTreeIterator(), _CacheInfo::timestamp, _CacheInfo::type, and UnlockSemaphoreInfo().
Referenced by OpenPixelCacheOnDisk().
| static MagickSizeType MagickMax | ( | const MagickSizeType | x, | |
| const MagickSizeType | y | |||
| ) | [inline, static] |
Definition at line 709 of file cache.c.
Referenced by CloneDiskToDiskPixelCache(), CloneDiskToMemoryPixelCache(), and CloneMemoryToDiskPixelCache().
| static MagickSizeType MagickMin | ( | const MagickSizeType | x, | |
| const MagickSizeType | y | |||
| ) | [inline, static] |
Definition at line 717 of file cache.c.
Referenced by CloneDiskToDiskPixelCache(), CloneDiskToMemoryPixelCache(), CloneMemoryToDiskPixelCache(), CloneMemoryToMemoryPixelCache(), GetVirtualPixelsFromNexus(), ReadPixelCacheRegion(), and WritePixelCacheRegion().
| static void MagickPixelCompositeMask | ( | const MagickPixelPacket * | p, | |
| const MagickRealType | alpha, | |||
| const MagickPixelPacket * | q, | |||
| const MagickRealType | beta, | |||
| MagickPixelPacket * | composite | |||
| ) | [inline, static] |
Definition at line 3854 of file cache.c.
References _MagickPixelPacket::blue, CMYKColorspace, _MagickPixelPacket::colorspace, _MagickPixelPacket::green, _MagickPixelPacket::index, MagickEpsilon, MagickOver_(), QuantumScale, _MagickPixelPacket::red, and TransparentOpacity.
Referenced by MaskPixelCacheNexus().
| static MagickBooleanType MaskPixelCacheNexus | ( | Image * | image, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 3875 of file cache.c.
References AcquirePixelCacheNexus(), _CacheInfo::active_index_channel, _MagickPixelPacket::blue, _Image::cache, CacheError, ClampToQuantum(), _Image::debug, DestroyPixelCacheNexus(), _Image::exception, _Image::filename, GetAuthenticPixelCacheNexus(), GetImagePixelCache(), GetMagickModule, GetMagickPixelPacket(), GetPixelCacheNexusIndexes(), GetVirtualPixelsFromNexus(), _MagickPixelPacket::green, _RectangleInfo::height, _NexusInfo::indexes, LogMagickEvent(), MagickFalse, MagickPixelCompositeMask(), MagickTrue, _Image::mask, MaskVirtualPixelMethod, _MagickPixelPacket::opacity, PixelIntensityToQuantum(), _NexusInfo::pixels, _MagickPixelPacket::red, _NexusInfo::region, restrict, SetMagickPixelPacket(), ThrowBinaryException, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by SyncAuthenticPixelCacheNexus().
| static MagickBooleanType OpenPixelCache | ( | Image * | image, | |
| const MapMode | mode, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4038 of file cache.c.
References AcquireMagickResource(), _CacheInfo::active_index_channel, AllocatePixelCachePixels(), AreaResource, _Image::cache, _CacheInfo::cache_filename, CacheError, CacheEvent, ClonePixelCachePixels(), ClosePixelCacheOnDisk(), CMYKColorspace, _CacheInfo::colorspace, _Image::colorspace, _CacheInfo::columns, _Image::columns, _Image::debug, DiskResource, ExtendCache(), _CacheInfo::file, _CacheInfo::filename, _Image::filename, FormatMagickSize(), FormatMagickString(), GetImageIndexInList(), GetMagickModule, _CacheInfo::indexes, _CacheInfo::length, LogMagickEvent(), MagickFalse, MagickTrue, MapBlob(), MapCache, _CacheInfo::mapped, MapResource, MaxTextExtent, MemoryCache, MemoryResource, _CacheInfo::mode, _CacheInfo::offset, OpenPixelCacheOnDisk(), _Image::ping, _CacheInfo::pixels, ReadMode, RelinquishMagickResource(), RelinquishPixelCachePixels(), ResourceLimitError, _CacheInfo::rows, _Image::rows, _CacheInfo::storage_class, _Image::storage_class, ThrowBinaryException, ThrowFileException, ThrowMagickException(), TraceEvent, _CacheInfo::type, UndefinedCache, and UndefinedClass.
Referenced by GetImagePixelCache(), and PersistPixelCache().
| static MagickBooleanType OpenPixelCacheOnDisk | ( | CacheInfo * | cache_info, | |
| const MapMode | mode | |||
| ) | [static] |
Definition at line 725 of file cache.c.
References AcquireMagickResource(), AcquireUniqueFileResource(), _CacheInfo::cache_filename, _CacheInfo::disk_semaphore, _CacheInfo::file, FileResource, IOMode, LimitPixelCacheDescriptors(), LockSemaphoreInfo(), MagickFalse, MagickTrue, O_BINARY, open, ReadMode, S_MODE, _CacheInfo::timestamp, UnlockSemaphoreInfo(), and WriteMode.
Referenced by CloneDiskToDiskPixelCache(), CloneDiskToMemoryPixelCache(), CloneMemoryToDiskPixelCache(), OpenPixelCache(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), WritePixelCacheIndexes(), and WritePixelCachePixels().
| MagickExport MagickBooleanType PersistPixelCache | ( | Image * | image, | |
| const char * | filename, | |||
| const MagickBooleanType | attach, | |||
| MagickOffsetType * | offset, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4276 of file cache.c.
References _Image::cache, _CacheInfo::cache_filename, CacheEvent, ClonePixelCache(), ClonePixelCacheNexus(), ClonePixelCachePixels(), CopyMagickString(), _Image::debug, DestroyPixelCache(), _Image::exception, _Image::filename, GetMagickModule, GetMagickPageSize(), IOMode, _CacheInfo::length, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxTextExtent, MemoryCache, _CacheInfo::mode, _CacheInfo::offset, OpenPixelCache(), ReadMode, _CacheInfo::reference_count, ReferencePixelCache(), _CacheInfo::semaphore, _CacheInfo::signature, _Image::signature, TraceEvent, _CacheInfo::type, and UnlockSemaphoreInfo().
| MagickExport PixelPacket* QueueAuthenticNexus | ( | 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 4409 of file cache.c.
References _Image::cache, _CacheInfo::columns, _Image::filename, GetMagickModule, _RectangleInfo::height, _CacheInfo::rows, SetPixelCacheNexusPixels(), ThrowMagickException(), _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetAuthenticPixelCacheNexus(), QueueAuthenticPixelsCache(), and QueueCacheViewAuthenticPixels().
| MagickExport PixelPacket* QueueAuthenticPixels | ( | Image * | image, | |
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| const size_t | columns, | |||
| const size_t | rows, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4571 of file cache.c.
References _Image::cache, MagickSignature, _CacheInfo::methods, _CacheMethods::queue_authentic_pixels_handler, _CacheInfo::signature, and _Image::signature.
Referenced by ConsolidateCMYKImages(), HuffmanDecodeImage(), PlasmaImageProxy(), SetImage(), SetImagePixels(), StereoAnaglyphImage(), UniqueColorsToImage(), XDrawImage(), XGetWindowImage(), and XMakeStandardColormap().
| static PixelPacket * QueueAuthenticPixelsCache | ( | Image * | image, | |
| const ssize_t | x, | |||
| const ssize_t | y, | |||
| const size_t | columns, | |||
| const size_t | rows, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4492 of file cache.c.
References GetImagePixelCache(), GetOpenMPThreadId(), MagickFalse, _CacheInfo::nexus_info, _CacheInfo::number_threads, and QueueAuthenticNexus().
| static ssize_t RandomX | ( | RandomInfo * | random_info, | |
| const size_t | columns | |||
| ) | [inline, static] |
Definition at line 3214 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 3219 of file cache.c.
References GetPseudoRandomValue().
Referenced by GetVirtualPixelsFromNexus().
| static MagickBooleanType ReadPixelCacheIndexes | ( | CacheInfo * | cache_info, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4622 of file cache.c.
References _CacheInfo::active_index_channel, _CacheInfo::cache_filename, CacheError, CacheEvent, CacheTick, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, DiskCache, _CacheInfo::filename, FileOpenError, GetMagickModule, _RectangleInfo::height, _CacheInfo::indexes, _NexusInfo::indexes, IOMode, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, _CacheInfo::offset, OpenPixelCacheOnDisk(), ReadPixelCacheRegion(), _NexusInfo::region, restrict, _CacheInfo::rows, ThrowFileException, _CacheInfo::type, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetAuthenticPixelCacheNexus(), and GetVirtualPixelsFromNexus().
| static MagickBooleanType ReadPixelCachePixels | ( | CacheInfo * | cache_info, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4753 of file cache.c.
References _CacheInfo::cache_filename, CacheError, CacheEvent, CacheTick, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, DiskCache, _CacheInfo::filename, FileOpenError, GetMagickModule, _RectangleInfo::height, IOMode, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, _CacheInfo::offset, OpenPixelCacheOnDisk(), _CacheInfo::pixels, _NexusInfo::pixels, ReadPixelCacheRegion(), _NexusInfo::region, restrict, _CacheInfo::rows, ThrowFileException, _CacheInfo::type, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
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 781 of file cache.c.
References _CacheInfo::disk_semaphore, _CacheInfo::file, LockSemaphoreInfo(), MagickMin(), MagickSeek, read, SSIZE_MAX, _CacheInfo::timestamp, and UnlockSemaphoreInfo().
Referenced by CloneDiskToDiskPixelCache(), CloneDiskToMemoryPixelCache(), ReadPixelCacheIndexes(), and ReadPixelCachePixels().
Definition at line 4876 of file cache.c.
References LockSemaphoreInfo(), MagickSignature, _CacheInfo::reference_count, _CacheInfo::semaphore, _CacheInfo::signature, and UnlockSemaphoreInfo().
Referenced by CloneImage(), CloneImageInfo(), and PersistPixelCache().
| static void RelinquishCacheNexusPixels | ( | NexusInfo * | nexus_info | ) | [inline, static] |
Definition at line 1655 of file cache.c.
References _NexusInfo::cache, _NexusInfo::indexes, _NexusInfo::length, MagickFalse, _NexusInfo::mapped, _NexusInfo::pixels, RelinquishMagickMemory(), and UnmapBlob().
Referenced by DestroyPixelCacheNexus(), and SetPixelCacheNexusPixels().
| static void RelinquishPixelCachePixels | ( | CacheInfo * | cache_info | ) | [inline, static] |
Definition at line 1539 of file cache.c.
References ClosePixelCacheOnDisk(), DiskCache, DiskResource, _CacheInfo::file, _CacheInfo::indexes, _CacheInfo::length, MagickFalse, MapCache, _CacheInfo::mapped, MapResource, MemoryCache, MemoryResource, _CacheInfo::pixels, RelinquishMagickMemory(), RelinquishMagickResource(), _CacheInfo::type, and UnmapBlob().
Referenced by DestroyPixelCache(), and OpenPixelCache().
| MagickExport void SetPixelCacheMethods | ( | Cache | cache, | |
| CacheMethods * | cache_methods | |||
| ) |
Definition at line 4914 of file cache.c.
References _CacheInfo::debug, _CacheMethods::destroy_pixel_handler, _CacheInfo::filename, _CacheMethods::get_authentic_indexes_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_indexes_from_handler, _CacheMethods::get_virtual_pixel_handler, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheMethods::queue_authentic_pixels_handler, _CacheInfo::signature, _CacheMethods::sync_authentic_pixels_handler, and TraceEvent.
Referenced by ReadStream().
| static PixelPacket * SetPixelCacheNexusPixels | ( | const Image * | image, | |
| const RectangleInfo * | region, | |||
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5011 of file cache.c.
References AcquireCacheNexusPixels(), _CacheInfo::active_index_channel, _NexusInfo::cache, _Image::cache, _Image::clip_mask, _CacheInfo::columns, DiskCache, _RectangleInfo::height, _CacheInfo::indexes, _NexusInfo::indexes, _NexusInfo::length, MagickFalse, MagickSignature, _Image::mask, _CacheInfo::pixels, _NexusInfo::pixels, _NexusInfo::region, RelinquishCacheNexusPixels(), _CacheInfo::rows, _CacheInfo::signature, _CacheInfo::type, UndefinedCache, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetVirtualPixelsFromNexus(), and QueueAuthenticNexus().
| MagickExport VirtualPixelMethod SetPixelCacheVirtualMethod | ( | const Image * | image, | |
| const VirtualPixelMethod | virtual_pixel_method | |||
| ) |
Definition at line 5118 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::signature, _Image::signature, TraceEvent, and _CacheInfo::virtual_pixel_method.
Referenced by SetImageVirtualPixelMethod().
| MagickExport MagickBooleanType SyncAuthenticPixelCacheNexus | ( | Image * | image, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5168 of file cache.c.
References _CacheInfo::active_index_channel, _Image::cache, CacheError, _Image::clip_mask, ClipPixelCacheNexus(), _Image::filename, IsNexusInCore(), MagickFalse, MagickSignature, MagickTrue, _Image::mask, MaskPixelCacheNexus(), _CacheInfo::signature, _Image::signature, ThrowBinaryException, _CacheInfo::type, UndefinedCache, WritePixelCacheIndexes(), and WritePixelCachePixels().
Referenced by SyncAuthenticPixelsCache(), and SyncCacheViewAuthenticPixels().
| MagickExport MagickBooleanType SyncAuthenticPixels | ( | Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5277 of file cache.c.
References _Image::cache, MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, _Image::signature, and _CacheMethods::sync_authentic_pixels_handler.
Referenced by ClearBounds(), ColorFloodfillImage(), ConsolidateCMYKImages(), FloodfillPaintImage(), HuffmanDecodeImage(), ImportImagePixels(), MatteFloodfillImage(), OpaqueImage(), PlasmaImageProxy(), RandomChannelThresholdImage(), SetImage(), SteganoImage(), StereoAnaglyphImage(), SyncImagePixels(), ThresholdImage(), ThresholdImageChannel(), TransparentImage(), UniqueColorsToImage(), XAnnotateImage(), XDrawImage(), XGetWindowImage(), and XMakeStandardColormap().
| static MagickBooleanType SyncAuthenticPixelsCache | ( | Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5230 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), _CacheInfo::nexus_info, _CacheInfo::number_threads, and SyncAuthenticPixelCacheNexus().
| static MagickBooleanType ValidatePixelCacheMorphology | ( | const Image * | image | ) | [inline, static] |
Definition at line 2127 of file cache.c.
References _Image::cache, _CacheInfo::colorspace, _Image::colorspace, _CacheInfo::columns, _Image::columns, GetOpenMPMaximumThreads(), MagickFalse, MagickTrue, _CacheInfo::nexus_info, _CacheInfo::number_threads, _CacheInfo::rows, _Image::rows, _CacheInfo::storage_class, and _Image::storage_class.
Referenced by GetImagePixelCache().
| static MagickModulo VirtualPixelModulo | ( | const ssize_t | offset, | |
| const size_t | extent | |||
| ) | [inline, static] |
Definition at line 3231 of file cache.c.
References _MagickModulo::quotient, and _MagickModulo::remainder.
Referenced by GetVirtualPixelsFromNexus().
| static MagickBooleanType WritePixelCacheIndexes | ( | CacheInfo * | cache_info, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5322 of file cache.c.
References _CacheInfo::active_index_channel, _CacheInfo::cache_filename, CacheError, CacheEvent, CacheTick, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, DiskCache, _CacheInfo::filename, FileOpenError, GetMagickModule, _RectangleInfo::height, _CacheInfo::indexes, _NexusInfo::indexes, IOMode, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, _CacheInfo::offset, OpenPixelCacheOnDisk(), _NexusInfo::region, restrict, _CacheInfo::rows, ThrowFileException, _CacheInfo::type, _RectangleInfo::width, WritePixelCacheRegion(), _RectangleInfo::x, and _RectangleInfo::y.
Referenced by SyncAuthenticPixelCacheNexus().
| static MagickBooleanType WritePixelCachePixels | ( | CacheInfo * | cache_info, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5454 of file cache.c.
References _CacheInfo::cache_filename, CacheError, CacheEvent, CacheTick, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, DiskCache, _CacheInfo::filename, FileOpenError, GetMagickModule, _RectangleInfo::height, IOMode, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, _CacheInfo::offset, OpenPixelCacheOnDisk(), _CacheInfo::pixels, _NexusInfo::pixels, _NexusInfo::region, restrict, _CacheInfo::rows, ThrowFileException, _CacheInfo::type, _RectangleInfo::width, WritePixelCacheRegion(), _RectangleInfo::x, and _RectangleInfo::y.
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 825 of file cache.c.
References _CacheInfo::disk_semaphore, _CacheInfo::file, LockSemaphoreInfo(), MagickMin(), MagickSeek, SSIZE_MAX, _CacheInfo::timestamp, UnlockSemaphoreInfo(), and write.
Referenced by CloneDiskToDiskPixelCache(), CloneMemoryToDiskPixelCache(), ExtendCache(), WritePixelCacheIndexes(), and WritePixelCachePixels().
SplayTreeInfo* cache_resources = (SplayTreeInfo *) NULL [static] |
Definition at line 159 of file cache.c.
Referenced by AcquirePixelCache(), CacheComponentTerminus(), DestroyPixelCache(), and LimitPixelCacheDescriptors().
SemaphoreInfo* cache_semaphore = (SemaphoreInfo *) NULL [static] |
Definition at line 156 of file cache.c.
Referenced by AcquirePixelCache(), CacheComponentGenesis(), CacheComponentTerminus(), and LimitPixelCacheDescriptors().
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 153 of file cache.c.
Referenced by AcquirePixelCache(), and CacheComponentTerminus().
1.7.1