|
MagickCore
6.9.1
|
#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/colorspace.h"#include "magick/colorspace-private.h"#include "magick/composite-private.h"#include "magick/distribute-cache-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/memory-private.h"#include "magick/nt-base-private.h"#include "magick/option.h"#include "magick/pixel.h"#include "magick/pixel-accessor.h"#include "magick/pixel-private.h"#include "magick/policy.h"#include "magick/quantum.h"#include "magick/random_.h"#include "magick/registry.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"#include "magick/utility-private.h"
Go to the source code of this file.
Data Structures | |
| struct | _MagickModulo |
Macros | |
| #define | CacheTick(offset, extent) QuantumTick((MagickOffsetType) offset,extent) |
| #define | IsFileDescriptorLimitExceeded() |
| #define | MaxCacheThreads 2 |
| #define | cache_threads(source, destination, chunk) |
Typedefs | |
| typedef struct _MagickModulo | MagickModulo |
Variables | |
| static ssize_t | DitherMatrix [64] |
| #define cache_threads | ( | source, | |
| destination, | |||
| chunk | |||
| ) |
| #define CacheTick | ( | offset, | |
| extent | |||
| ) | QuantumTick((MagickOffsetType) offset,extent) |
Definition at line 85 of file cache.c.
Referenced by ReadPixelCacheIndexes(), ReadPixelCachePixels(), WritePixelCacheIndexes(), and WritePixelCachePixels().
| #define IsFileDescriptorLimitExceeded | ( | ) |
Definition at line 86 of file cache.c.
Referenced by ReadPixelCacheIndexes(), ReadPixelCachePixels(), WritePixelCacheIndexes(), and WritePixelCachePixels().
| #define MaxCacheThreads 2 |
Referenced by ClonePixelCacheRepository().
| typedef struct _MagickModulo MagickModulo |
|
inlinestatic |
Definition at line 4639 of file cache.c.
References AcquireAlignedMemory(), _NexusInfo::cache, GetMagickModule, IOMode, _NexusInfo::length, MagickAssumeAligned, MagickFalse, MagickTrue, MapBlob(), _NexusInfo::mapped, ResourceLimitError, and ThrowMagickException().
Referenced by SetPixelCacheNexusPixels().
| MagickExport NexusInfo** AcquirePixelCacheNexus | ( | const size_t | number_threads | ) |
Definition at line 238 of file cache.c.
References AcquireAlignedMemory(), AcquireQuantumMemory(), MagickAssumeAligned, MagickSignature, ResetMagickMemory(), ResourceLimitFatalError, and ThrowFatalException.
Referenced by ClipPixelCacheNexus(), ClonePixelCacheRepository(), GetVirtualPixelsFromNexus(), and MaskPixelCacheNexus().
| MagickExport const void* AcquirePixelCachePixels | ( | const Image * | image, |
| MagickSizeType * | length, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 291 of file cache.c.
References _Image::cache, MagickSignature, MapCache, MemoryCache, _ExceptionInfo::signature, and _Image::signature.
|
inlinestatic |
Definition at line 3313 of file cache.c.
References AcquireAlignedMemory(), IOMode, _CacheInfo::length, MagickAssumeAligned, MagickFalse, MagickTrue, MapBlob(), _CacheInfo::mapped, and _CacheInfo::pixels.
Referenced by OpenPixelCache().
| MagickExport MagickBooleanType CacheComponentGenesis | ( | void | ) |
Definition at line 330 of file cache.c.
References AllocateSemaphoreInfo(), and MagickTrue.
Referenced by MagickCoreGenesis().
| MagickExport void CacheComponentTerminus | ( | void | ) |
Definition at line 355 of file cache.c.
References ActivateSemaphoreInfo(), DestroySemaphoreInfo(), LockSemaphoreInfo(), MagickFalse, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
Definition at line 394 of file cache.c.
References AcquirePixelCacheNexus(), _Image::cache, CacheError, _Image::clip_mask, _Image::debug, DestroyPixelCacheNexus(), _Image::filename, GetAuthenticPixelCacheNexus(), GetMagickModule, GetPixelBlue, GetPixelGreen, GetPixelIndex, GetPixelIntensity(), GetPixelOpacity, GetPixelRed, GetVirtualPixelsFromNexus(), _RectangleInfo::height, _NexusInfo::indexes, LogMagickEvent(), MagickFalse, MagickTrue, MaskVirtualPixelMethod, _NexusInfo::pixels, PseudoClass, QuantumRange, _NexusInfo::region, SetPixelBlue, SetPixelGreen, SetPixelIndex, SetPixelOpacity, SetPixelRed, _Image::storage_class, ThrowBinaryException, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by SyncAuthenticPixelCacheNexus().
| MagickExport Cache ClonePixelCache | ( | const Cache | cache | ) |
Definition at line 494 of file cache.c.
References AcquirePixelCache(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, and TraceEvent.
Referenced by GetImagePixelCache(), and PersistPixelCache().
| MagickExport void ClonePixelCacheMethods | ( | Cache | clone, |
| const Cache | cache | ||
| ) |
Definition at line 540 of file cache.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, and TraceEvent.
|
static |
Definition at line 586 of file cache.c.
References AcquirePixelCacheNexus(), CacheEvent, CommandOptionToMnemonic(), DestroyPixelCacheNexus(), FormatLocaleString(), GetMagickModule, GetOpenMPThreadId(), _RectangleInfo::height, LogMagickEvent(), MagickCacheOptions, MagickFalse, MagickMin, MagickTrue, MapCache, MaxCacheThreads, MaxTextExtent, MemoryCache, PingCache, ReadMode, ReadPixelCacheIndexes(), ReadPixelCachePixels(), ResetMagickMemory(), ResourceLimitFatalError, SetPixelCacheNexusPixels(), ThrowFatalException, _RectangleInfo::width, WriteMode, WritePixelCacheIndexes(), WritePixelCachePixels(), _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetImagePixelCache(), OpenPixelCache(), and PersistPixelCache().
|
static |
Definition at line 842 of file cache.c.
References _CacheInfo::file, FileResource, MagickFalse, MagickTrue, and RelinquishMagickResource().
Referenced by GetImagePixelCache(), OpenPixelCache(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), RelinquishPixelCachePixels(), WritePixelCacheIndexes(), and WritePixelCachePixels().
|
static |
Definition at line 766 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 799 of file cache.c.
References _Image::cache, _Image::debug, DestroyPixelCache(), _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, and TraceEvent.
Referenced by DestroyImage().
| MagickExport Cache DestroyPixelCache | ( | Cache | cache | ) |
Definition at line 908 of file cache.c.
References CacheEvent, DestroyDistributeCacheInfo(), DestroyPixelCacheNexus(), DestroyRandomInfo(), DestroySemaphoreInfo(), FormatLocaleString(), GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MaxTextExtent, RelinquishMagickMemory(), RelinquishPixelCachePixels(), TraceEvent, and UnlockSemaphoreInfo().
Referenced by DestroyImagePixelCache(), DestroyImagePixels(), GetImagePixelCache(), and PersistPixelCache().
| MagickExport NexusInfo** DestroyPixelCacheNexus | ( | NexusInfo ** | nexus_info, |
| const size_t | number_threads | ||
| ) |
Definition at line 994 of file cache.c.
References MagickSignature, RelinquishAlignedMemory(), RelinquishCacheNexusPixels(), RelinquishMagickMemory(), and _NexusInfo::signature.
Referenced by ClipPixelCacheNexus(), ClonePixelCacheRepository(), DestroyCacheView(), DestroyPixelCache(), DestroyPixelStream(), GetVirtualPixelsFromNexus(), and MaskPixelCacheNexus().
|
inlinestatic |
Definition at line 2471 of file cache.c.
References DitherMatrix.
Referenced by GetVirtualPixelsFromNexus().
|
inlinestatic |
Definition at line 2484 of file cache.c.
References DitherMatrix.
Referenced by GetVirtualPixelsFromNexus().
|
inlinestatic |
Definition at line 2497 of file cache.c.
Referenced by GetVirtualPixelsFromNexus().
|
inlinestatic |
Definition at line 2506 of file cache.c.
Referenced by GetVirtualPixelsFromNexus().
|
static |
Definition at line 1035 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), MagickSignature, and _Image::signature.
Referenced by GetPixelCacheMethods().
| MagickExport IndexPacket* GetAuthenticIndexQueue | ( | const Image * | image | ) |
Definition at line 1077 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), MagickSignature, and _Image::signature.
Referenced by GetIndexes(), ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportQuantumPixels(), ImportShortPixel(), RandomChannelThresholdImage(), SetImage(), ThresholdImage(), ThresholdImageChannel(), and WriteDistributeCacheIndexes().
| 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 1132 of file cache.c.
References _NexusInfo::authentic_pixel_cache, _Image::cache, MagickFalse, MagickSignature, MagickTrue, QueueAuthenticPixelCacheNexus(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), and _Image::signature.
Referenced by ClipPixelCacheNexus(), GetAuthenticPixels(), GetAuthenticPixelsCache(), GetOneAuthenticPixelFromCache(), and MaskPixelCacheNexus().
| MagickExport PixelPacket* GetAuthenticPixelQueue | ( | const Image * | image | ) |
Definition at line 1226 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), MagickSignature, 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 1292 of file cache.c.
References _Image::cache, GetAuthenticPixelCacheNexus(), GetOpenMPThreadId(), MagickSignature, and _Image::signature.
Referenced by ClearBounds(), ColorFloodfillImage(), GetImagePixels(), ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportShortPixel(), MatteFloodfillImage(), OpaqueImage(), RandomChannelThresholdImage(), ThresholdImage(), ThresholdImageChannel(), TransparentImage(), WriteDistributeCacheIndexes(), and WriteDistributeCachePixels().
|
static |
Definition at line 1347 of file cache.c.
References _Image::cache, GetAuthenticPixelCacheNexus(), GetOpenMPThreadId(), MagickSignature, and _Image::signature.
Referenced by GetOneAuthenticPixel(), and GetPixelCacheMethods().
|
static |
Definition at line 1186 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), MagickSignature, and _Image::signature.
Referenced by GetPixelCacheMethods().
| MagickExport MagickSizeType GetImageExtent | ( | const Image * | image | ) |
Definition at line 1392 of file cache.c.
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, GetOpenMPThreadId(), GetPixelCacheNexusExtent(), LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, and TraceEvent.
Referenced by ExportQuantumPixels(), ImportQuantumPixels(), and StreamImagePixels().
|
static |
Definition at line 107 of file cache.c.
Referenced by QueueAuthenticPixelCacheNexus(), and SyncImagePixelCache().
|
static |
Definition at line 1461 of file cache.c.
References AllocateSemaphoreInfo(), _Image::cache, ClonePixelCache(), ClonePixelCacheRepository(), ClosePixelCacheOnDisk(), DestroyPixelCache(), DestroySemaphoreInfo(), DiskCache, GetMagickResourceLimit(), IOMode, LockSemaphoreInfo(), MagickDelay(), MagickFalse, MagickResourceInfinity, MagickTrue, OpenPixelCache(), ReadMode, _Image::reference_count, ResourceLimitFatalError, _Image::semaphore, ThrottleResource, ThrowFatalException, TimeResource, _Image::type, UndefinedType, UnlockSemaphoreInfo(), and ValidatePixelCacheMorphology().
| MagickExport CacheType GetImagePixelCacheType | ( | const Image * | image | ) |
Definition at line 1592 of file cache.c.
References _Image::cache, MagickSignature, and _Image::signature.
Referenced by GetPixelCacheTileSize(), and GetPixelCacheType().
| MagickExport MagickBooleanType GetOneAuthenticPixel | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| PixelPacket * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1635 of file cache.c.
References _Image::background_color, _Image::cache, GetAuthenticPixelsCache(), MagickFalse, MagickSignature, MagickTrue, and _Image::signature.
Referenced by GetOnePixel().
|
static |
Definition at line 1692 of file cache.c.
References _Image::background_color, _Image::cache, GetAuthenticPixelCacheNexus(), GetOpenMPThreadId(), MagickFalse, MagickSignature, MagickTrue, and _Image::signature.
Referenced by GetPixelCacheMethods().
| MagickExport MagickBooleanType GetOneVirtualMagickPixel | ( | const Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| MagickPixelPacket * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1751 of file cache.c.
References _Image::cache, GetMagickPixelPacket(), GetOpenMPThreadId(), GetPixelCacheVirtualMethod(), GetVirtualIndexesFromNexus(), GetVirtualPixelsFromNexus(), MagickFalse, MagickSignature, MagickTrue, SetMagickPixelPacket(), and _Image::signature.
Referenced by AcquireOneMagickPixel(), CompositeImageChannel(), and DrawPrimitive().
| 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 1818 of file cache.c.
References _Image::background_color, _Image::cache, GetOpenMPThreadId(), GetVirtualPixelsFromNexus(), MagickFalse, MagickSignature, MagickTrue, 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 1881 of file cache.c.
References _Image::background_color, _Image::cache, GetOpenMPThreadId(), GetPixelCacheVirtualMethod(), GetVirtualPixelsFromNexus(), MagickFalse, MagickSignature, MagickTrue, and _Image::signature.
Referenced by AcquireOnePixel(), and PlasmaImageProxy().
|
static |
Definition at line 1946 of file cache.c.
References _Image::background_color, _Image::cache, GetOpenMPThreadId(), GetVirtualPixelsFromNexus(), MagickFalse, MagickSignature, MagickTrue, and _Image::signature.
Referenced by GetPixelCacheMethods().
| MagickExport size_t GetPixelCacheChannels | ( | const Cache | cache | ) |
Definition at line 1999 of file cache.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, and TraceEvent.
Referenced by GetCacheViewChannels().
| MagickExport ColorspaceType GetPixelCacheColorspace | ( | const Cache | cache | ) |
Definition at line 2035 of file cache.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, and TraceEvent.
Referenced by GetCacheViewColorspace(), and QueueAuthenticPixelsStream().
| MagickExport void GetPixelCacheMethods | ( | CacheMethods * | cache_methods | ) |
Definition at line 2071 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 2114 of file cache.c.
References _RectangleInfo::height, MagickSignature, _NexusInfo::region, and _RectangleInfo::width.
Referenced by GetCacheViewExtent(), and GetImageExtent().
| MagickExport void* GetPixelCachePixels | ( | Image * | image, |
| MagickSizeType * | length, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 2159 of file cache.c.
References _Image::cache, MagickSignature, MapCache, MemoryCache, _ExceptionInfo::signature, and _Image::signature.
| MagickExport ClassType GetPixelCacheStorageClass | ( | const Cache | cache | ) |
Definition at line 2205 of file cache.c.
References GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, and TraceEvent.
Referenced by GetCacheViewStorageClass(), and QueueAuthenticPixelsStream().
| MagickExport void GetPixelCacheTileSize | ( | const Image * | image, |
| size_t * | width, | ||
| size_t * | height | ||
| ) |
Definition at line 2246 of file cache.c.
References _Image::debug, DiskCache, _Image::filename, GetImagePixelCacheType(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::signature, and TraceEvent.
| MagickExport CacheType GetPixelCacheType | ( | const Image * | image | ) |
Definition at line 1587 of file cache.c.
References GetImagePixelCacheType().
| MagickExport VirtualPixelMethod GetPixelCacheVirtualMethod | ( | const Image * | image | ) |
Definition at line 2283 of file cache.c.
References _Image::cache, MagickSignature, and _Image::signature.
Referenced by GetImageVirtualPixelMethod(), GetOneVirtualMagickPixel(), GetOneVirtualPixel(), and GetVirtualPixels().
|
static |
Definition at line 2319 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetVirtualIndexesFromNexus(), MagickSignature, and _Image::signature.
Referenced by GetPixelCacheMethods().
| MagickExport const IndexPacket* GetVirtualIndexesFromNexus | ( | const Cache | cache, |
| NexusInfo * | nexus_info | ||
| ) |
Definition at line 2362 of file cache.c.
References _NexusInfo::indexes, MagickSignature, and UndefinedClass.
Referenced by GetCacheViewVirtualIndexQueue(), GetOneVirtualMagickPixel(), GetVirtualIndexesFromCache(), GetVirtualIndexQueue(), and GetVirtualPixelsFromNexus().
| MagickExport const IndexPacket* GetVirtualIndexQueue | ( | const Image * | image | ) |
Definition at line 2401 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetVirtualIndexesFromNexus(), MagickSignature, and _Image::signature.
Referenced by AcquireIndexes(), CompareImageBounds(), ExportCharPixel(), ExportDoublePixel(), ExportFloatPixel(), ExportIntegerPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportQuantumPixels(), ExportShortPixel(), GetImageChannelKurtosis(), GetImageChannelMoments(), GetImageChannelRange(), GetImageChannelStatistics(), GetLocationStatistics(), IdentifyImage(), InterpolateMagickPixelPacket(), InterpolatePixelColor(), ReadDistributeCacheIndexes(), StatisticsComponentsStatistics(), and StreamImagePixels().
|
static |
Definition at line 2931 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetVirtualPixelsFromNexus(), MagickSignature, and _Image::signature.
Referenced by GetPixelCacheMethods().
| MagickExport const PixelPacket* GetVirtualPixelQueue | ( | const Image * | image | ) |
Definition at line 2974 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetVirtualPixelsNexus(), MagickSignature, 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 3042 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetPixelCacheVirtualMethod(), GetVirtualPixelsFromNexus(), MagickSignature, and _Image::signature.
Referenced by AcquireImagePixels(), ColorFloodfillImage(), CompareImageBounds(), ExportCharPixel(), ExportDoublePixel(), ExportFloatPixel(), ExportIntegerPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportShortPixel(), GetImageChannelKurtosis(), GetImageChannelMoments(), GetImageChannelRange(), GetImageChannelStatistics(), GetImageDynamicThreshold(), GetLocationStatistics(), HuffmanEncodeImage(), IdentifyImage(), InitializeHistogram(), InterpolatePixelColor(), IsBoundsCleared(), LinearStretchImage(), MatteFloodfillImage(), PrintChannelLocations(), ReadDistributeCacheIndexes(), ReadDistributeCachePixels(), and StereoAnaglyphImage().
|
static |
Definition at line 3089 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), GetVirtualPixelsNexus(), MagickSignature, and _Image::signature.
Referenced by GetPixelCacheMethods().
| 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 2545 of file cache.c.
References AcquirePixelCacheNexus(), AcquireRandomInfo(), _NexusInfo::authentic_pixel_cache, _Image::background_color, BackgroundVirtualPixelMethod, BlackVirtualPixelMethod, _Image::cache, CacheError, CheckerTileVirtualPixelMethod, _Image::clip_mask, CMYKColorspace, ConstantVirtualPixelMethod, DestroyPixelCacheNexus(), DitherVirtualPixelMethod, DitherX(), DitherY(), EdgeVirtualPixelMethod, EdgeX(), EdgeY(), _Image::filename, GetMagickModule, GetVirtualIndexesFromNexus(), GrayVirtualPixelMethod, _RectangleInfo::height, HorizontalTileEdgeVirtualPixelMethod, HorizontalTileVirtualPixelMethod, _NexusInfo::indexes, MagickFalse, MagickMin, MagickSignature, MagickTrue, _Image::mask, MaskVirtualPixelMethod, MirrorVirtualPixelMethod, OpaqueOpacity, PseudoClass, QuantumRange, _MagickModulo::quotient, RandomVirtualPixelMethod, RandomX(), RandomY(), ReadMode, ReadPixelCacheIndexes(), ReadPixelCachePixels(), _NexusInfo::region, _MagickModulo::remainder, SetPixelBlue, SetPixelCacheNexusPixels(), SetPixelGreen, SetPixelOpacity, SetPixelRed, _Image::signature, ThrowMagickException(), TileVirtualPixelMethod, TransparentOpacity, TransparentVirtualPixelMethod, UndefinedCache, UndefinedVirtualPixelMethod, VerticalTileEdgeVirtualPixelMethod, VerticalTileVirtualPixelMethod, VirtualPixelModulo(), WhiteVirtualPixelMethod, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by ClipPixelCacheNexus(), GetOneVirtualMagickPixel(), GetOneVirtualMethodPixel(), GetOneVirtualPixel(), GetOneVirtualPixelFromCache(), GetVirtualPixelCache(), GetVirtualPixels(), and MaskPixelCacheNexus().
| MagickExport const PixelPacket* GetVirtualPixelsNexus | ( | const Cache | cache, |
| NexusInfo * | nexus_info | ||
| ) |
Definition at line 3132 of file cache.c.
References MagickSignature, _NexusInfo::pixels, and UndefinedClass.
Referenced by GetCacheViewVirtualPixelQueue(), GetVirtualPixelQueue(), and GetVirtualPixelsCache().
|
inlinestatic |
Definition at line 4664 of file cache.c.
References MagickFalse, MagickTrue, and PingCache.
Referenced by SetPixelCacheNexusPixels().
|
inlinestatic |
Definition at line 3176 of file cache.c.
References _MagickPixelPacket::blue, CMYKColorspace, _MagickPixelPacket::colorspace, _MagickPixelPacket::green, _MagickPixelPacket::index, MagickOver_(), PerceptibleReciprocal(), QuantumScale, _MagickPixelPacket::red, and TransparentOpacity.
Referenced by MaskPixelCacheNexus().
|
static |
Definition at line 3197 of file cache.c.
References AcquirePixelCacheNexus(), _MagickPixelPacket::blue, _Image::cache, CacheError, ClampToQuantum(), _Image::debug, DestroyPixelCacheNexus(), _Image::exception, _Image::filename, GetAuthenticPixelCacheNexus(), GetMagickModule, GetMagickPixelPacket(), GetPixelIndex, GetPixelIntensity(), GetVirtualPixelsFromNexus(), _MagickPixelPacket::green, _RectangleInfo::height, _NexusInfo::indexes, LogMagickEvent(), MagickFalse, MagickPixelCompositeMask(), MagickTrue, _Image::mask, MaskVirtualPixelMethod, _MagickPixelPacket::opacity, _NexusInfo::pixels, PseudoClass, _MagickPixelPacket::red, _NexusInfo::region, SetMagickPixelPacket(), SetPixelBlue, SetPixelGreen, SetPixelIndex, SetPixelOpacity, SetPixelRed, _Image::storage_class, ThrowBinaryException, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by SyncAuthenticPixelCacheNexus().
|
static |
Definition at line 3464 of file cache.c.
References AcquireDistributeCacheInfo(), AcquireMagickResource(), AllocatePixelCachePixels(), AreaResource, _Image::cache, CacheError, CacheEvent, _Image::channels, ClonePixelCacheRepository(), ClosePixelCacheOnDisk(), CMYKColorspace, _Image::colorspace, _Image::columns, CommandOptionToMnemonic(), _Image::debug, DestroyDistributeCacheInfo(), DiskCache, DiskResource, DistributedCache, _Image::filename, FormatLocaleString(), FormatMagickSize(), GetDistributeCacheFile(), GetDistributeCacheHostname(), GetDistributeCachePort(), GetImageIndexInList(), GetMagickModule, HeightResource, LogMagickEvent(), MagickCacheOptions, MagickFalse, MagickSignature, MagickTrue, MapBlob(), MapCache, MapResource, MaxTextExtent, MemoryCache, MemoryResource, _Image::offset, OpenDistributePixelCache(), OpenPixelCacheOnDisk(), _Image::ping, PingCache, PseudoClass, ReadMode, RelinquishMagickResource(), RelinquishPixelCachePixels(), ResourceLimitError, _Image::rows, SetPixelCacheExtent(), _Image::signature, _Image::storage_class, ThrowBinaryException, ThrowFileException, ThrowMagickException(), TraceEvent, UndefinedCache, UndefinedClass, and WidthResource.
Referenced by GetImagePixelCache(), and PersistPixelCache().
|
static |
Definition at line 3341 of file cache.c.
References AcquireMagickResource(), AcquireUniqueFileResource(), _CacheInfo::cache_filename, _CacheInfo::file, FileResource, IOMode, MagickFalse, MagickTrue, _CacheInfo::mode, O_BINARY, open_utf8(), ReadMode, S_MODE, and WriteMode.
Referenced by OpenPixelCache(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), WritePixelCacheIndexes(), and WritePixelCachePixels().
| MagickExport MagickBooleanType PersistPixelCache | ( | Image * | image, |
| const char * | filename, | ||
| const MagickBooleanType | attach, | ||
| MagickOffsetType * | offset, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 3779 of file cache.c.
References _Image::cache, CacheEvent, ClonePixelCache(), ClonePixelCacheRepository(), CopyMagickString(), _Image::debug, DestroyPixelCache(), DiskCache, _Image::exception, _Image::filename, GetMagickModule, GetMagickPageSize(), IOMode, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxTextExtent, MemoryCache, OpenPixelCache(), ReadMode, ReferencePixelCache(), rename_utf8(), _Image::signature, TraceEvent, and UnlockSemaphoreInfo().
|
inlinestatic |
Definition at line 4685 of file cache.c.
References magick_unreferenced, MagickCachePrefetch, _NexusInfo::pixels, and ReadMode.
Referenced by SetPixelCacheNexusPixels().
| MagickExport PixelPacket* QueueAuthenticPixel | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| const MagickBooleanType | clone, | ||
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 3910 of file cache.c.
References QueueAuthenticPixelCacheNexus().
| MagickExport PixelPacket* QueueAuthenticPixelCacheNexus | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | columns, | ||
| const size_t | rows, | ||
| const MagickBooleanType | clone, | ||
| NexusInfo * | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 3919 of file cache.c.
References _Image::cache, CacheError, _Image::clip_mask, _Image::filename, GetImagePixelCache(), GetMagickModule, _RectangleInfo::height, MagickFalse, MagickSignature, MagickTrue, _Image::mask, SetPixelCacheNexusPixels(), _Image::signature, ThrowMagickException(), _RectangleInfo::width, WriteMode, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by GetAuthenticPixelCacheNexus(), QueueAuthenticPixel(), QueueAuthenticPixels(), 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 4085 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), MagickFalse, MagickSignature, QueueAuthenticPixelCacheNexus(), and _Image::signature.
Referenced by SetImage(), SetImagePixels(), and StereoAnaglyphImage().
|
static |
Definition at line 4009 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), MagickFalse, MagickSignature, QueueAuthenticPixelCacheNexus(), and _Image::signature.
Referenced by GetPixelCacheMethods().
|
inlinestatic |
Definition at line 2515 of file cache.c.
References GetPseudoRandomValue().
Referenced by GetVirtualPixelsFromNexus().
|
inlinestatic |
Definition at line 2520 of file cache.c.
References GetPseudoRandomValue().
Referenced by GetVirtualPixelsFromNexus().
|
static |
Definition at line 4172 of file cache.c.
References CacheError, CacheEvent, CacheTick, ClosePixelCacheOnDisk(), DiskCache, DistributedCache, FileOpenError, GetMagickModule, _RectangleInfo::height, IOMode, IsFileDescriptorLimitExceeded, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, OpenPixelCacheOnDisk(), ReadDistributePixelCacheIndexes(), ReadPixelCacheRegion(), ThrowFileException, UnlockSemaphoreInfo(), and _RectangleInfo::y.
Referenced by ClonePixelCacheRepository(), GetAuthenticPixelCacheNexus(), and GetVirtualPixelsFromNexus().
|
static |
Definition at line 4339 of file cache.c.
References CacheError, CacheEvent, CacheTick, ClosePixelCacheOnDisk(), DiskCache, DistributedCache, FileOpenError, GetMagickModule, _RectangleInfo::height, IOMode, IsFileDescriptorLimitExceeded, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, OpenPixelCacheOnDisk(), ReadDistributePixelCachePixels(), ReadPixelCacheRegion(), ThrowFileException, UnlockSemaphoreInfo(), and _RectangleInfo::y.
Referenced by ClonePixelCacheRepository(), GetAuthenticPixelCacheNexus(), and GetVirtualPixelsFromNexus().
|
inlinestatic |
Definition at line 4138 of file cache.c.
References MagickMin.
Referenced by ReadPixelCacheIndexes(), and ReadPixelCachePixels().
| MagickExport Cache ReferencePixelCache | ( | Cache | cache | ) |
Definition at line 4498 of file cache.c.
References LockSemaphoreInfo(), MagickSignature, and UnlockSemaphoreInfo().
Referenced by CloneImage(), CloneImageInfo(), and PersistPixelCache().
|
inlinestatic |
Definition at line 981 of file cache.c.
References _NexusInfo::cache, _NexusInfo::indexes, _NexusInfo::length, MagickFalse, _NexusInfo::mapped, _NexusInfo::pixels, RelinquishAlignedMemory(), and UnmapBlob().
Referenced by DestroyPixelCacheNexus(), and SetPixelCacheNexusPixels().
|
inlinestatic |
Definition at line 857 of file cache.c.
References _CacheInfo::cache_filename, ClosePixelCacheOnDisk(), DiskCache, DiskResource, DistributedCache, _CacheInfo::file, _CacheInfo::indexes, _CacheInfo::length, MagickFalse, MapCache, _CacheInfo::mapped, MapResource, MemoryCache, MemoryResource, _CacheInfo::mode, _CacheInfo::pixels, ReadMode, RelinquishAlignedMemory(), RelinquishDistributePixelCache(), RelinquishMagickResource(), RelinquishUniqueFileResource(), _CacheInfo::server_info, _CacheInfo::type, UndefinedCache, and UnmapBlob().
Referenced by DestroyPixelCache(), and OpenPixelCache().
|
static |
Definition at line 4817 of file cache.c.
References AcquireVirtualCacheView(), _Image::cache, _Image::columns, _Image::debug, DestroyCacheView(), _Image::exception, _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, _Image::rows, _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by SetPixelCacheVirtualMethod().
|
static |
Definition at line 3422 of file cache.c.
References _Image::cache, CacheEvent, _Image::debug, FormatLocaleString(), FormatMagickSize(), GetMagickModule, LogMagickEvent(), MagickFalse, MagickTrue, MaxTextExtent, and WritePixelCacheRegion().
Referenced by OpenPixelCache().
| MagickExport void SetPixelCacheMethods | ( | Cache | cache, |
| CacheMethods * | cache_methods | ||
| ) |
Definition at line 4536 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, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _CacheMethods::queue_authentic_pixels_handler, _CacheMethods::sync_authentic_pixels_handler, and TraceEvent.
Referenced by ReadStream().
|
static |
Definition at line 4699 of file cache.c.
References AcquireCacheNexusPixels(), _CacheInfo::active_index_channel, _NexusInfo::authentic_pixel_cache, _NexusInfo::cache, _CacheInfo::columns, _RectangleInfo::height, _NexusInfo::indexes, _CacheInfo::indexes, IsAuthenticPixelCache(), _NexusInfo::length, MagickFalse, MagickSignature, MapCache, MemoryCache, _NexusInfo::pixels, _CacheInfo::pixels, PrefetchPixelCacheNexusPixels(), _NexusInfo::region, RelinquishCacheNexusPixels(), _CacheInfo::rows, _CacheInfo::signature, _CacheInfo::type, UndefinedCache, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by ClonePixelCacheRepository(), GetVirtualPixelsFromNexus(), and QueueAuthenticPixelCacheNexus().
| MagickExport VirtualPixelMethod SetPixelCacheVirtualMethod | ( | const Image * | image, |
| const VirtualPixelMethod | virtual_pixel_method | ||
| ) |
Definition at line 4874 of file cache.c.
References _Image::background_color, BackgroundVirtualPixelMethod, _Image::cache, _Image::colorspace, _Image::columns, _Image::debug, _Image::filename, GetMagickModule, IsGrayColorspace(), IsPixelGray(), LogMagickEvent(), MagickFalse, MagickSignature, _Image::matte, _PixelPacket::opacity, OpaqueOpacity, _Image::rows, SetCacheAlphaChannel(), SetImageColorspace(), _Image::signature, sRGBColorspace, TraceEvent, and TransparentVirtualPixelMethod.
Referenced by SetImageVirtualPixelMethod().
| MagickExport MagickBooleanType SyncAuthenticPixelCacheNexus | ( | Image * | image, |
| NexusInfo *restrict | nexus_info, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4946 of file cache.c.
References _Image::cache, CacheError, _Image::clip_mask, ClipPixelCacheNexus(), DirectClass, _Image::filename, MagickFalse, MagickSignature, MagickTrue, _Image::mask, MaskPixelCacheNexus(), _Image::signature, _Image::storage_class, _Image::taint, ThrowBinaryException, UndefinedCache, WritePixelCacheIndexes(), and WritePixelCachePixels().
Referenced by SyncAuthenticPixels(), and SyncAuthenticPixelsCache().
| MagickExport MagickBooleanType SyncAuthenticPixels | ( | Image * | image, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 5066 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), MagickSignature, _Image::signature, and SyncAuthenticPixelCacheNexus().
Referenced by ClearBounds(), ColorFloodfillImage(), ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportIntegerPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportShortPixel(), MatteFloodfillImage(), OpaqueImage(), RandomChannelThresholdImage(), SetImage(), StereoAnaglyphImage(), SyncImagePixels(), ThresholdImage(), ThresholdImageChannel(), TransparentImage(), WriteDistributeCacheIndexes(), and WriteDistributeCachePixels().
|
static |
Definition at line 5016 of file cache.c.
References _Image::cache, GetOpenMPThreadId(), MagickSignature, _Image::signature, and SyncAuthenticPixelCacheNexus().
Referenced by GetPixelCacheMethods().
| MagickPrivate MagickBooleanType SyncImagePixelCache | ( | Image * | image, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 5119 of file cache.c.
References GetImagePixelCache(), MagickFalse, and MagickTrue.
Referenced by AcquireAuthenticCacheView(), OpenDistributeCache(), SetImageAlphaChannel(), SetImageColorspace(), SetImageExtent(), SetImageGray(), SetImageMonochrome(), and SetImageStorageClass().
|
inlinestatic |
Definition at line 1441 of file cache.c.
References MagickFalse, and MagickTrue.
Referenced by GetImagePixelCache().
|
inlinestatic |
Definition at line 2532 of file cache.c.
References _MagickModulo::quotient, and _MagickModulo::remainder.
Referenced by GetVirtualPixelsFromNexus().
|
static |
Definition at line 5159 of file cache.c.
References _CacheInfo::active_index_channel, _CacheInfo::cache_filename, CacheError, CacheEvent, CacheTick, ClosePixelCacheOnDisk(), _CacheInfo::columns, _CacheInfo::debug, DiskCache, DistributedCache, _CacheInfo::file_semaphore, _CacheInfo::filename, FileOpenError, GetMagickModule, _RectangleInfo::height, _CacheInfo::indexes, IOMode, IsFileDescriptorLimitExceeded, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, _CacheInfo::offset, OpenPixelCacheOnDisk(), _CacheInfo::rows, _CacheInfo::server_info, ThrowFileException, _CacheInfo::type, UnlockSemaphoreInfo(), WriteDistributePixelCacheIndexes(), WritePixelCacheRegion(), and _RectangleInfo::y.
Referenced by ClonePixelCacheRepository(), and SyncAuthenticPixelCacheNexus().
|
static |
Definition at line 5327 of file cache.c.
References _CacheInfo::cache_filename, CacheError, CacheEvent, CacheTick, ClosePixelCacheOnDisk(), _CacheInfo::columns, _CacheInfo::debug, DiskCache, DistributedCache, _CacheInfo::file_semaphore, _CacheInfo::filename, FileOpenError, GetMagickModule, _RectangleInfo::height, IOMode, IsFileDescriptorLimitExceeded, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, _CacheInfo::offset, OpenPixelCacheOnDisk(), _CacheInfo::pixels, _CacheInfo::rows, _CacheInfo::server_info, ThrowFileException, _CacheInfo::type, UnlockSemaphoreInfo(), WriteDistributePixelCachePixels(), WritePixelCacheRegion(), and _RectangleInfo::y.
Referenced by ClonePixelCacheRepository(), and SyncAuthenticPixelCacheNexus().
|
inlinestatic |
Definition at line 3388 of file cache.c.
References MagickMin.
Referenced by SetPixelCacheExtent(), WritePixelCacheIndexes(), and WritePixelCachePixels().
|
static |