#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/list.h"#include "magick/log.h"#include "magick/magick.h"#include "magick/memory_.h"#include "magick/pixel-private.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/thread-private.h"#include "magick/utility.h"
Go to the source code of this file.
Data Structures | |
| struct | _MagickModulo |
| struct | _NexusInfo |
Typedefs | |
| typedef struct _MagickModulo | MagickModulo |
Functions | |
| static const IndexPacket * | GetVirtualIndexesFromCache (const Image *) |
| static const PixelPacket * | GetVirtualPixelCache (const Image *, const VirtualPixelMethod, const long, const long, const unsigned long, const unsigned long, ExceptionInfo *) |
| static const PixelPacket ** | GetVirtualPixelsCache (const Image *) |
| static MagickBooleanType | GetOneAuthenticPixelFromCache (Image *, const long, const long, PixelPacket *, ExceptionInfo *) |
| static MagickBooleanType | GetOneVirtualPixelFromCache (const Image *, const VirtualPixelMethod, const long, const long, 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 long, const long, const unsigned long, const unsigned long, ExceptionInfo *) |
| static PixelPacket ** | QueueAuthenticPixelsCache (Image *, const long, const long, const unsigned long, const unsigned long, ExceptionInfo *) |
| static PixelPacket *** | SetPixelCacheNexusPixels (const Image *, const RectangleInfo *, NexusInfo *, ExceptionInfo *) |
| MagickExport Cache | AcquirePixelCache (const unsigned long number_threads) |
| MagickExport NexusInfo ** | AcquirePixelCacheNexus (const unsigned long number_threads) |
| 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 unsigned long 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 long x, const long y, const unsigned long columns, const unsigned long rows, NexusInfo *nexus_info, ExceptionInfo *exception) |
| static PixelPacket * | GetAuthenticPixelsFromCache (const Image *image) |
| MagickExport PixelPacket * | GetAuthenticPixelQueue (const Image *image) |
| MagickExport PixelPacket * | GetAuthenticPixels (Image *image, const long x, const long y, const unsigned long columns, const unsigned long 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 long x, const long y, PixelPacket *pixel, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | GetOneVirtualMagickPixel (const Image *image, const long x, const long y, MagickPixelPacket *pixel, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | GetOneVirtualMethodPixel (const Image *image, const VirtualPixelMethod virtual_pixel_method, const long x, const long y, PixelPacket *pixel, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | GetOneVirtualPixel (const Image *image, const long x, const long 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 ClassType | GetPixelCacheStorageClass (const Cache cache) |
| MagickExport void | GetPixelCacheTileSize (const Image *image, unsigned long *width, unsigned long *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 long | DitherX (const unsigned long columns, const long x) |
| static long | DitherY (const unsigned long rows, const long y) |
| static long | EdgeX (const unsigned long columns, const long x) |
| static long | EdgeY (const unsigned long rows, const long y) |
| static long | RandomX (const unsigned long columns, RandomInfo *random_info) |
| static long | RandomY (const unsigned long rows, RandomInfo *random_info) |
| static MagickModulo | VirtualPixelModulo (const long offset, const unsigned long extent) |
| MagickExport const PixelPacket * | GetVirtualPixelsFromNexus (const Image *image, const VirtualPixelMethod virtual_pixel_method, const long x, const long y, const unsigned long columns, const unsigned long rows, NexusInfo *nexus_info, ExceptionInfo *exception) |
| MagickExport const PixelPacket * | GetVirtualPixelQueue (const Image *image) |
| MagickExport const PixelPacket * | GetVirtualPixels (const Image *image, const long x, const long y, const unsigned long columns, const unsigned long 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 | AcquirePixelCachePixels (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 long x, const long y, const unsigned long columns, const unsigned long rows, NexusInfo *nexus_info, ExceptionInfo *exception) |
| MagickExport PixelPacket * | QueueAuthenticPixels (Image *image, const long x, const long y, const unsigned long columns, const unsigned long 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 time_t | cache_timer = 0 |
| static long | DitherMatrix [64] |
| typedef struct _MagickModulo MagickModulo |
| static MagickBooleanType AcquireCacheNexusPixels | ( | CacheInfo * | cache_info, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) | [inline, static] |
Definition at line 500 of file cache.c.
References AcquireMagickMemory(), _NexusInfo::cache, _CacheInfo::filename, GetMagickModule, IOMode, _NexusInfo::length, MagickFalse, MagickTrue, MapBlob(), _NexusInfo::mapped, ResourceLimitError, and ThrowMagickException().
Referenced by ClonePixelCacheNexus(), and SetPixelCacheNexusPixels().
| MagickExport Cache AcquirePixelCache | ( | const unsigned long | number_threads | ) |
Definition at line 177 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, IOMode, IsEventLogging(), LockSemaphoreInfo(), MagickFalse, MagickSignature, MagickTrue, _CacheInfo::methods, _CacheInfo::mode, NewSplayTree(), _CacheInfo::nexus_info, _CacheInfo::number_threads, _CacheInfo::reference_count, ResetMagickMemory(), ResourceLimitFatalError, RGBColorspace, _CacheInfo::semaphore, _CacheInfo::signature, ThrowFatalException, _CacheInfo::type, UndefinedCache, and UnlockSemaphoreInfo().
| MagickExport NexusInfo** AcquirePixelCacheNexus | ( | const unsigned long | number_threads | ) |
Definition at line 244 of file cache.c.
References AcquireAlignedMemory(), MagickSignature, ResetMagickMemory(), ResourceLimitFatalError, _NexusInfo::signature, and ThrowFatalException.
| static void AcquirePixelCachePixels | ( | CacheInfo * | cache_info | ) | [inline, static] |
Definition at line 3866 of file cache.c.
References AcquireMagickMemory(), IOMode, _CacheInfo::length, MagickFalse, MagickTrue, MapBlob(), _CacheInfo::mapped, and _CacheInfo::pixels.
Referenced by OpenPixelCache().
| MagickExport MagickBooleanType CacheComponentGenesis | ( | void | ) |
Definition at line 286 of file cache.c.
References AcquireSemaphoreInfo(), cache_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
| MagickExport void CacheComponentTerminus | ( | void | ) |
Definition at line 310 of file cache.c.
References AcquireSemaphoreInfo(), cache_resources, cache_semaphore, DestroySemaphoreInfo(), DestroySplayTree(), instantiate_cache, LockSemaphoreInfo(), MagickFalse, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
| static MagickBooleanType ClipPixelCacheNexus | ( | Image * | image, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 351 of file cache.c.
References AcquirePixelCacheNexus(), _CacheInfo::active_index_channel, _Image::cache, CacheError, _Image::clip_mask, _Image::debug, DestroyPixelCacheNexus(), _Image::filename, GetAuthenticPixelCacheNexus(), GetImagePixelCache(), GetMagickModule, GetPixelCacheNexusIndexes(), GetVirtualPixelsFromNexus(), _RectangleInfo::height, _NexusInfo::indexes, LogMagickEvent(), MagickFalse, MagickTrue, MaskVirtualPixelMethod, PixelIntensityToQuantum(), _NexusInfo::pixels, QuantumRange, _NexusInfo::region, 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 814 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(), _CacheInfo::rows, ThrowFileException, ThrowMagickException(), and WritePixelCacheRegion().
Referenced by ClonePixelCachePixels().
| static MagickBooleanType CloneDiskToMemoryPixelCache | ( | CacheInfo * | clone_info, | |
| CacheInfo * | cache_info, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 980 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(), _CacheInfo::rows, ThrowFileException, and ThrowMagickException().
Referenced by ClonePixelCachePixels().
| static MagickBooleanType CloneMemoryToDiskPixelCache | ( | CacheInfo * | clone_info, | |
| CacheInfo * | cache_info, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 1092 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(), _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 1246 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(), and _CacheInfo::rows.
Referenced by ClonePixelCachePixels().
Definition at line 450 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 1373 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 524 of file cache.c.
References AcquireCacheNexusPixels(), _NexusInfo::cache, CopyMagickMemory(), _RectangleInfo::height, _NexusInfo::indexes, _NexusInfo::length, MagickFalse, MagickTrue, _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 1336 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 598 of file cache.c.
References close, _CacheInfo::disk_semaphore, _CacheInfo::file, FileResource, LockSemaphoreInfo(), MagickFalse, MagickTrue, RelinquishMagickResource(), and UnlockSemaphoreInfo().
Referenced by LimitPixelCacheDescriptors(), OpenPixelCache(), and RelinquishPixelCachePixels().
| static void DestroyImagePixelCache | ( | Image * | image | ) | [static] |
Definition at line 1413 of file cache.c.
References _Image::cache, _Image::debug, DestroyPixelCache(), _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, and TraceEvent.
Referenced by GetPixelCacheMethods().
| MagickExport void DestroyImagePixels | ( | Image * | image | ) |
Definition at line 1446 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 1522 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, MapCache, 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 unsigned long | number_threads | |||
| ) |
Definition at line 1615 of file cache.c.
References MagickSignature, RelinquishAlignedMemory(), RelinquishCacheNexusPixels(), and _NexusInfo::signature.
Referenced by ClipPixelCacheNexus(), DestroyCacheView(), DestroyPixelCache(), DestroyPixelStream(), GetVirtualPixelsFromNexus(), and MaskPixelCacheNexus().
| static long DitherX | ( | const unsigned long | columns, | |
| const long | x | |||
| ) | [inline, static] |
Definition at line 3061 of file cache.c.
References DitherMatrix.
Referenced by GetVirtualPixelsFromNexus().
| static long DitherY | ( | const unsigned long | rows, | |
| const long | y | |||
| ) | [inline, static] |
Definition at line 3074 of file cache.c.
References DitherMatrix.
Referenced by GetVirtualPixelsFromNexus().
| static long EdgeX | ( | const unsigned long | columns, | |
| const long | x | |||
| ) | [inline, static] |
Definition at line 3087 of file cache.c.
Referenced by GetVirtualPixelsFromNexus().
| static long EdgeY | ( | const unsigned long | rows, | |
| const long | y | |||
| ) | [inline, static] |
Definition at line 3096 of file cache.c.
Referenced by GetVirtualPixelsFromNexus().
| static MagickBooleanType ExtendCache | ( | Image * | image, | |
| MagickSizeType | length | |||
| ) | [static] |
Definition at line 3879 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 1656 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, GetOpenMPThreadId(), GetPixelCacheNexusIndexes(), LogMagickEvent(), MagickFalse, _CacheInfo::nexus_info, _CacheInfo::number_threads, and TraceEvent.
Referenced by GetPixelCacheMethods().
| MagickExport IndexPacket* GetAuthenticIndexQueue | ( | const Image * | image | ) |
Definition at line 1701 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, _CacheMethods::get_authentic_indexes_from_handler, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ConsolidateCMYKImages(), FloodfillPaintImage(), GetIndexes(), HuffmanDecodeImage(), ImportImagePixels(), ImportQuantumPixels(), RandomChannelThresholdImage(), ScaleImage(), SetImage(), StreamImagePixels(), ThresholdImage(), ThresholdImageChannel(), UniqueColorsToImage(), XGetWindowImage(), and XMakeStandardColormap().
| MagickExport PixelPacket* GetAuthenticPixelCacheNexus | ( | Image * | image, | |
| const long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1767 of file cache.c.
References _CacheInfo::active_index_channel, _Image::cache, _Image::debug, _Image::filename, GetMagickModule, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickSignature, QueueAuthenticNexus(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), _CacheInfo::signature, _Image::signature, and TraceEvent.
| MagickExport PixelPacket* GetAuthenticPixelQueue | ( | const Image * | image | ) |
Definition at line 1865 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, _CacheMethods::get_authentic_pixels_from_handler, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ExportQuantumPixels(), GetPixels(), ImportQuantumPixels(), and StreamImagePixels().
| MagickExport PixelPacket* GetAuthenticPixels | ( | Image * | image, | |
| const long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1929 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, _CacheMethods::get_authentic_pixels_handler, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, _Image::signature, and TraceEvent.
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 long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 1985 of file cache.c.
References GetAuthenticPixelCacheNexus(), GetImagePixelCache(), GetOpenMPThreadId(), MagickTrue, _CacheInfo::nexus_info, and _CacheInfo::number_threads.
Referenced by GetOneAuthenticPixelFromCache(), and GetPixelCacheMethods().
| static PixelPacket* GetAuthenticPixelsFromCache | ( | const Image * | image | ) | [static] |
Definition at line 1822 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, GetOpenMPThreadId(), GetPixelCacheNexusPixels(), LogMagickEvent(), MagickFalse, _CacheInfo::nexus_info, _CacheInfo::number_threads, and TraceEvent.
Referenced by GetPixelCacheMethods().
| MagickExport MagickSizeType GetImageExtent | ( | const Image * | image | ) |
Definition at line 2031 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 2104 of file cache.c.
References _Image::cache, cache_timer, ClonePixelCache(), ClonePixelCacheNexus(), ClonePixelCachePixels(), _Image::colorspace, _Image::debug, DestroyPixelCache(), _Image::filename, GetMagickModule, GetMagickResourceLimit(), GRAYColorspace, IOMode, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickResourceInfinity, MagickTrue, _CacheInfo::mode, OpenPixelCache(), ReadMode, _CacheInfo::reference_count, ResourceLimitFatalError, RGBColorspace, _CacheInfo::semaphore, _Image::semaphore, _Image::taint, ThrowFatalException, TimeResource, TraceEvent, _Image::type, UndefinedType, UnlockSemaphoreInfo(), and ValidatePixelCacheMorphology().
| MagickExport MagickBooleanType GetOneAuthenticPixel | ( | Image * | image, | |
| const long | x, | |||
| const long | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2212 of file cache.c.
References _Image::background_color, _Image::cache, _Image::debug, _Image::filename, _CacheMethods::get_one_authentic_pixel_from_handler, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by GetOnePixel().
| static MagickBooleanType GetOneAuthenticPixelFromCache | ( | Image * | image, | |
| const long | x, | |||
| const long | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 2272 of file cache.c.
References _Image::background_color, _Image::debug, _Image::filename, GetAuthenticPixelsCache(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickTrue, and TraceEvent.
Referenced by GetPixelCacheMethods().
| MagickExport MagickBooleanType GetOneVirtualMagickPixel | ( | const Image * | image, | |
| const long | x, | |||
| const long | y, | |||
| MagickPixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2320 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 long | x, | |||
| const long | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2382 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 long | x, | |||
| const long | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2442 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 long | x, | |||
| const long | y, | |||
| PixelPacket * | pixel, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 2504 of file cache.c.
References _Image::background_color, GetVirtualPixelCache(), MagickFalse, and MagickTrue.
Referenced by GetPixelCacheMethods().
| MagickExport ColorspaceType GetPixelCacheColorspace | ( | const Cache | cache | ) |
Definition at line 2541 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 2577 of file cache.c.
References _CacheMethods::destroy_pixel_handler, DestroyImagePixelCache(), _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, GetAuthenticIndexesFromCache(), GetAuthenticPixelsCache(), GetAuthenticPixelsFromCache(), GetOneAuthenticPixelFromCache(), GetOneVirtualPixelFromCache(), GetVirtualIndexesFromCache(), GetVirtualPixelCache(), GetVirtualPixelsCache(), _CacheMethods::queue_authentic_pixels_handler, QueueAuthenticPixelsCache(), ResetMagickMemory(), _CacheMethods::sync_authentic_pixels_handler, and SyncAuthenticPixelsCache().
| MagickExport MagickSizeType GetPixelCacheNexusExtent | ( | const Cache | cache, | |
| NexusInfo * | nexus_info | |||
| ) |
Definition at line 2620 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 2665 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 2706 of file cache.c.
References _CacheInfo::debug, _CacheInfo::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _NexusInfo::pixels, _CacheInfo::signature, _CacheInfo::storage_class, TraceEvent, and UndefinedClass.
Definition at line 2748 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, | |
| unsigned long * | width, | |||
| unsigned long * | height | |||
| ) |
Definition at line 2789 of file cache.c.
References _Image::cache, _Image::debug, DiskCache, _Image::filename, GetMagickModule, GetPixelCacheType(), LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::signature, _Image::signature, and TraceEvent.
Definition at line 2830 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::signature, _Image::signature, TraceEvent, and _CacheInfo::type.
Referenced by GetPixelCacheTileSize().
| MagickExport VirtualPixelMethod GetPixelCacheVirtualMethod | ( | const Image * | image | ) |
Definition at line 2869 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 GetImageVirtualPixelMethod(), GetOneVirtualMagickPixel(), GetOneVirtualPixel(), and GetVirtualPixels().
| static const IndexPacket * GetVirtualIndexesFromCache | ( | const Image * | image | ) | [static] |
Definition at line 2907 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, GetOpenMPThreadId(), GetVirtualIndexesFromNexus(), LogMagickEvent(), MagickFalse, _CacheInfo::nexus_info, _CacheInfo::number_threads, and TraceEvent.
Referenced by GetPixelCacheMethods().
| MagickExport const IndexPacket* GetVirtualIndexesFromNexus | ( | const Cache | cache, | |
| NexusInfo * | nexus_info | |||
| ) |
Definition at line 2953 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 2993 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, _CacheMethods::get_virtual_indexes_from_handler, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by AcquireIndexes(), CompareImageBounds(), EqualizeImageChannel(), ExportImagePixels(), ExportQuantumPixels(), FloodfillPaintImage(), GetImageChannelKurtosis(), GetImageChannelMean(), GetImageChannelRange(), GetImageChannelStatistics(), GetOneVirtualMagickPixel(), IdentifyImage(), InterpolatePixelColor(), InterpolateResampleFilter(), ScaleImage(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
| static const PixelPacket * GetVirtualPixelCache | ( | const Image * | image, | |
| const VirtualPixelMethod | virtual_pixel_method, | |||
| const long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 3479 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, GetOpenMPThreadId(), GetVirtualPixelsFromNexus(), LogMagickEvent(), MagickFalse, _CacheInfo::nexus_info, _CacheInfo::number_threads, and TraceEvent.
Referenced by GetOneVirtualMagickPixel(), GetOneVirtualPixelFromCache(), and GetPixelCacheMethods().
| MagickExport const PixelPacket* GetVirtualPixelQueue | ( | const Image * | image | ) |
Definition at line 3525 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, _CacheMethods::get_virtual_pixels_handler, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by AcquirePixels(), and ExportQuantumPixels().
| MagickExport const PixelPacket* GetVirtualPixels | ( | const Image * | image, | |
| const long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 3591 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, _CacheMethods::get_virtual_pixel_handler, GetMagickModule, GetPixelCacheVirtualMethod(), LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by AcquireImagePixels(), ColorFloodfillImage(), CompareImageBounds(), ConsolidateCMYKImages(), EqualizeImageChannel(), ExportImagePixels(), FloodfillPaintImage(), GetImageChannelKurtosis(), GetImageChannelMean(), GetImageChannelRange(), GetImageChannelStatistics(), GetImageDynamicThreshold(), HuffmanEncodeImage(), IdentifyImage(), InitializeHistogram(), InterpolatePixelColor(), IsBoundsCleared(), LinearStretchImage(), MatteFloodfillImage(), ScaleImage(), StereoAnaglyphImage(), XDitherImage(), XMakeImageLSBFirst(), and XMakeImageMSBFirst().
| static const PixelPacket * GetVirtualPixelsCache | ( | const Image * | image | ) |
Definition at line 3639 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, GetOpenMPThreadId(), GetVirtualPixelsNexus(), LogMagickEvent(), MagickFalse, _CacheInfo::nexus_info, _CacheInfo::number_threads, and TraceEvent.
Referenced by GetPixelCacheMethods().
| MagickExport const PixelPacket* GetVirtualPixelsFromNexus | ( | const Image * | image, | |
| const VirtualPixelMethod | virtual_pixel_method, | |||
| const long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 3135 of file cache.c.
References AcquirePixelCacheNexus(), AcquireRandomInfo(), _Image::background_color, BackgroundVirtualPixelMethod, BlackVirtualPixelMethod, _PixelPacket::blue, _Image::cache, CacheError, CheckerTileVirtualPixelMethod, CMYKColorspace, _CacheInfo::colorspace, _CacheInfo::columns, ConstantVirtualPixelMethod, CopyMagickMemory(), _Image::debug, DestroyPixelCacheNexus(), DitherVirtualPixelMethod, DitherX(), DitherY(), EdgeVirtualPixelMethod, EdgeX(), EdgeY(), _Image::filename, GetMagickModule, GetPixelCacheNexusIndexes(), GetVirtualIndexesFromNexus(), GetVirtualPixelsFromNexus(), GrayVirtualPixelMethod, _PixelPacket::green, _RectangleInfo::height, HorizontalTileEdgeVirtualPixelMethod, HorizontalTileVirtualPixelMethod, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickMin(), MaskVirtualPixelMethod, MirrorVirtualPixelMethod, _PixelPacket::opacity, OpaqueOpacity, PseudoClass, QuantumRange, _MagickModulo::quotient, _CacheInfo::random_info, RandomVirtualPixelMethod, RandomX(), RandomY(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), _PixelPacket::red, _MagickModulo::remainder, _CacheInfo::rows, SetPixelCacheNexusPixels(), _CacheInfo::storage_class, ThrowMagickException(), TileVirtualPixelMethod, TraceEvent, 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 3685 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 1754 of file cache.c.
References _CacheInfo::columns, MagickFalse, MagickTrue, _CacheInfo::pixels, _NexusInfo::pixels, _NexusInfo::region, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetAuthenticPixelCacheNexus(), GetVirtualPixelsFromNexus(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), SyncAuthenticPixelCacheNexus(), WritePixelCacheIndexes(), and WritePixelCachePixels().
| static void LimitPixelCacheDescriptors | ( | void | ) | [static] |
Definition at line 611 of file cache.c.
References cache_resources, cache_semaphore, ClosePixelCacheOnDisk(), DiskCache, _CacheInfo::file, FileResource, GetMagickResource(), GetMagickResourceLimit(), GetNextKeyInSplayTree(), _CacheInfo::id, IsMagickThreadEqual(), LockSemaphoreInfo(), MagickFalse, ResetSplayTreeIterator(), _CacheInfo::timestamp, _CacheInfo::type, and UnlockSemaphoreInfo().
Referenced by OpenPixelCacheOnDisk().
| static MagickSizeType MagickMax | ( | const MagickSizeType | x, | |
| const MagickSizeType | y | |||
| ) | [inline, static] |
Definition at line 654 of file cache.c.
Referenced by CloneDiskToDiskPixelCache(), CloneDiskToMemoryPixelCache(), and CloneMemoryToDiskPixelCache().
| static MagickSizeType MagickMin | ( | const MagickSizeType | x, | |
| const MagickSizeType | y | |||
| ) | [inline, static] |
Definition at line 662 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 3730 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 3751 of file cache.c.
References AcquirePixelCacheNexus(), _CacheInfo::active_index_channel, _MagickPixelPacket::blue, _Image::cache, CacheError, _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, RoundToQuantum(), 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 3914 of file cache.c.
References AcquireMagickResource(), AcquirePixelCachePixels(), _CacheInfo::active_index_channel, AreaResource, _Image::cache, _CacheInfo::cache_filename, CacheError, CacheEvent, ClonePixelCachePixels(), ClosePixelCacheOnDisk(), CMYKColorspace, _CacheInfo::colorspace, _Image::colorspace, _CacheInfo::columns, _Image::columns, _Image::debug, DiskCache, 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(), _CacheInfo::pixels, PseudoClass, 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 670 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 4141 of file cache.c.
References _Image::cache, _CacheInfo::cache_filename, CacheEvent, ClonePixelCache(), ClonePixelCacheNexus(), ClonePixelCachePixels(), CopyMagickString(), _Image::debug, DestroyPixelCache(), DiskCache, _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 long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4273 of file cache.c.
References _Image::cache, CacheError, _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 long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4435 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheMethods::queue_authentic_pixels_handler, _CacheInfo::signature, _Image::signature, and TraceEvent.
Referenced by ConsolidateCMYKImages(), HuffmanDecodeImage(), PlasmaImageProxy(), ScaleImage(), SetImage(), SetImagePixels(), StereoAnaglyphImage(), UniqueColorsToImage(), XDrawImage(), XGetWindowImage(), and XMakeStandardColormap().
| static PixelPacket * QueueAuthenticPixelsCache | ( | Image * | image, | |
| const long | x, | |||
| const long | y, | |||
| const unsigned long | columns, | |||
| const unsigned long | rows, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4356 of file cache.c.
References GetImagePixelCache(), GetOpenMPThreadId(), MagickFalse, _CacheInfo::nexus_info, _CacheInfo::number_threads, and QueueAuthenticNexus().
Referenced by GetPixelCacheMethods().
| static long RandomX | ( | const unsigned long | columns, | |
| RandomInfo * | random_info | |||
| ) | [inline, static] |
Definition at line 3105 of file cache.c.
References GetPseudoRandomValue().
Referenced by GetVirtualPixelsFromNexus().
| static long RandomY | ( | const unsigned long | rows, | |
| RandomInfo * | random_info | |||
| ) | [inline, static] |
Definition at line 3110 of file cache.c.
References GetPseudoRandomValue().
Referenced by GetVirtualPixelsFromNexus().
| static MagickBooleanType ReadPixelCacheIndexes | ( | CacheInfo * | cache_info, | |
| NexusInfo * | nexus_info, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 4488 of file cache.c.
References _CacheInfo::active_index_channel, _CacheInfo::cache_filename, CacheError, CacheEvent, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, DiskCache, _CacheInfo::filename, FileOpenError, GetMagickModule, _RectangleInfo::height, _CacheInfo::indexes, _NexusInfo::indexes, IOMode, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickTrue, MapCache, MemoryCache, _CacheInfo::offset, OpenPixelCacheOnDisk(), QuantumTick(), ReadPixelCacheRegion(), _NexusInfo::region, _CacheInfo::rows, ThrowFileException, TraceEvent, _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 4615 of file cache.c.
References _CacheInfo::cache_filename, CacheError, CacheEvent, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, DiskCache, _CacheInfo::filename, FileOpenError, GetMagickModule, _RectangleInfo::height, IOMode, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickTrue, MapCache, MemoryCache, _CacheInfo::offset, OpenPixelCacheOnDisk(), _CacheInfo::pixels, _NexusInfo::pixels, QuantumTick(), ReadPixelCacheRegion(), _NexusInfo::region, _CacheInfo::rows, ThrowFileException, TraceEvent, _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 726 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 4734 of file cache.c.
References _CacheInfo::debug, _CacheInfo::filename, GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::reference_count, _CacheInfo::semaphore, _CacheInfo::signature, TraceEvent, and UnlockSemaphoreInfo().
Referenced by CloneImage(), CloneImageInfo(), and PersistPixelCache().
| static void RelinquishCacheNexusPixels | ( | NexusInfo * | nexus_info | ) | [inline, static] |
Definition at line 1602 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 1486 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, UndefinedCache, and UnmapBlob().
Referenced by DestroyPixelCache(), and OpenPixelCache().
| MagickExport void SetPixelCacheMethods | ( | Cache | cache, | |
| CacheMethods * | cache_methods | |||
| ) |
Definition at line 4775 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 4872 of file cache.c.
References AcquireCacheNexusPixels(), _CacheInfo::active_index_channel, _NexusInfo::cache, _Image::cache, _Image::clip_mask, _CacheInfo::columns, _Image::debug, DiskCache, _Image::filename, GetMagickModule, _RectangleInfo::height, _CacheInfo::indexes, _NexusInfo::indexes, _NexusInfo::length, LogMagickEvent(), MagickFalse, MagickSignature, _Image::mask, _CacheInfo::pixels, _NexusInfo::pixels, _NexusInfo::region, RelinquishCacheNexusPixels(), _CacheInfo::rows, _CacheInfo::signature, TraceEvent, _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 4990 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 5040 of file cache.c.
References _CacheInfo::active_index_channel, _Image::cache, CacheError, _Image::clip_mask, ClipPixelCacheNexus(), _Image::debug, _Image::filename, GetMagickModule, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::mask, MaskPixelCacheNexus(), _CacheInfo::signature, _Image::signature, ThrowBinaryException, TraceEvent, _CacheInfo::type, UndefinedCache, WritePixelCacheIndexes(), and WritePixelCachePixels().
Referenced by SyncAuthenticPixelsCache(), and SyncCacheViewAuthenticPixels().
| MagickExport MagickBooleanType SyncAuthenticPixels | ( | Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5151 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheInfo::methods, _CacheInfo::signature, _Image::signature, _CacheMethods::sync_authentic_pixels_handler, and TraceEvent.
Referenced by ClearBounds(), ColorFloodfillImage(), ConsolidateCMYKImages(), FloodfillPaintImage(), HuffmanDecodeImage(), ImportImagePixels(), MatteFloodfillImage(), OpaqueImage(), PlasmaImageProxy(), RandomChannelThresholdImage(), ScaleImage(), SetImage(), SteganoImage(), StereoAnaglyphImage(), SyncImagePixels(), ThresholdImage(), ThresholdImageChannel(), TransparentImage(), UniqueColorsToImage(), XAnnotateImage(), XDrawImage(), XGetWindowImage(), and XMakeStandardColormap().
| static MagickBooleanType SyncAuthenticPixelsCache | ( | Image * | image, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 5104 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), _CacheInfo::nexus_info, _CacheInfo::number_threads, and SyncAuthenticPixelCacheNexus().
Referenced by GetPixelCacheMethods().
| static MagickBooleanType ValidatePixelCacheMorphology | ( | const Image * | image | ) | [inline, static] |
Definition at line 2085 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 long | offset, | |
| const unsigned long | extent | |||
| ) | [inline, static] |
Definition at line 3122 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 5198 of file cache.c.
References _CacheInfo::active_index_channel, _CacheInfo::cache_filename, CacheError, CacheEvent, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, DiskCache, _CacheInfo::filename, FileOpenError, GetMagickModule, _RectangleInfo::height, _CacheInfo::indexes, _NexusInfo::indexes, IOMode, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickTrue, MapCache, MemoryCache, _CacheInfo::offset, OpenPixelCacheOnDisk(), QuantumTick(), _NexusInfo::region, _CacheInfo::rows, ThrowFileException, TraceEvent, _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 5326 of file cache.c.
References _CacheInfo::cache_filename, CacheError, CacheEvent, _CacheInfo::columns, CopyMagickMemory(), _CacheInfo::debug, DiskCache, _CacheInfo::filename, FileOpenError, GetMagickModule, _RectangleInfo::height, IOMode, IsNexusInCore(), LogMagickEvent(), MagickFalse, MagickTrue, MapCache, MemoryCache, _CacheInfo::offset, OpenPixelCacheOnDisk(), _CacheInfo::pixels, _NexusInfo::pixels, QuantumTick(), _NexusInfo::region, _CacheInfo::rows, ThrowFileException, TraceEvent, _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 770 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 150 of file cache.c.
Referenced by AcquirePixelCache(), CacheComponentTerminus(), DestroyPixelCache(), and LimitPixelCacheDescriptors().
SemaphoreInfo* cache_semaphore = (SemaphoreInfo *) NULL [static] |
Definition at line 147 of file cache.c.
Referenced by AcquirePixelCache(), CacheComponentGenesis(), CacheComponentTerminus(), and LimitPixelCacheDescriptors().
time_t cache_timer = 0 [static] |
Definition at line 153 of file cache.c.
Referenced by GetImagePixelCache().
long 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 144 of file cache.c.
Referenced by AcquirePixelCache(), and CacheComponentTerminus().
1.6.1