MagickCore
7.0.9
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/composite-private.h"
#include "MagickCore/distribute-cache-private.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/list.h"
#include "MagickCore/log.h"
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/nt-base-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/policy.h"
#include "MagickCore/quantum.h"
#include "MagickCore/random_.h"
#include "MagickCore/registry.h"
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/splay-tree.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/timer-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
Data Structures | |
struct | _MagickModulo |
Macros | |
#define | CacheTick(offset, extent) QuantumTick((MagickOffsetType) offset,extent) |
#define | IsFileDescriptorLimitExceeded() |
#define | MaxCacheThreads ((size_t) GetMagickResourceLimit(ThreadResource)) |
#define | cache_number_threads(source, destination, chunk, multithreaded) |
Typedefs | |
typedef struct _MagickModulo | MagickModulo |
Variables | |
static Cache | magick_hot_spot |
static SemaphoreInfo * | cache_semaphore = (SemaphoreInfo *) NULL |
static ssize_t | cache_anonymous_memory = (-1) |
static time_t | cache_epoch = 0 |
static ssize_t | DitherMatrix [64] |
#define cache_number_threads | ( | source, | |
destination, | |||
chunk, | |||
multithreaded | |||
) |
#define CacheTick | ( | offset, | |
extent | |||
) | QuantumTick((MagickOffsetType) offset,extent) |
Referenced by ReadPixelCacheMetacontent(), ReadPixelCachePixels(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
#define IsFileDescriptorLimitExceeded | ( | ) |
Referenced by ReadPixelCacheMetacontent(), ReadPixelCachePixels(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
#define MaxCacheThreads ((size_t) GetMagickResourceLimit(ThreadResource)) |
typedef struct _MagickModulo MagickModulo |
|
inlinestatic |
References AcquireAlignedMemory(), cache_anonymous_memory, GetMagickModule, IOMode, MagickAssumeAligned, MagickFalse, MagickTrue, MapBlob(), ResourceLimitError, and ThrowMagickException().
Referenced by SetPixelCacheNexusPixels().
MagickPrivate Cache AcquirePixelCache | ( | const size_t | number_threads | ) |
References AcquireAlignedMemory(), AcquirePixelCacheNexus(), AcquireSemaphoreInfo(), DestroyString(), GetEnvironmentValue(), GetMagickResourceLimit(), GetMagickThreadId(), GetOpenMPMaximumThreads(), GetPolicyValue(), HeightResource, IOMode, IsEventLogging(), IsStringTrue(), magick_restrict, MagickCoreSignature, ResourceLimitFatalError, sRGBColorspace, ThreadResource, ThrowFatalException, UndefinedCache, and WidthResource.
MagickPrivate NexusInfo** AcquirePixelCacheNexus | ( | const size_t | number_threads | ) |
MagickExport void* AcquirePixelCachePixels | ( | const Image * | image, |
size_t * | length, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, magick_restrict, MagickCoreSignature, MapCache, MemoryCache, _ExceptionInfo::signature, and _Image::signature.
Referenced by ResetImagePixels().
|
inlinestatic |
References ClampToQuantum(), MagickEpsilon, MagickOver_(), OpaqueAlpha, PerceptibleReciprocal(), and QuantumScale.
Referenced by MaskPixelCacheNexus().
MagickPrivate MagickBooleanType CacheComponentGenesis | ( | void | ) |
References AcquireSemaphoreInfo(), cache_semaphore, and MagickTrue.
MagickPrivate void CacheComponentTerminus | ( | void | ) |
References ActivateSemaphoreInfo(), cache_semaphore, and RelinquishSemaphoreInfo().
|
static |
References _Image::cache, _Image::channels, ClampToQuantum(), _Image::debug, _Image::filename, GetAuthenticPixelCacheNexus(), GetMagickModule, GetPixelAlpha(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelWriteMask(), _RectangleInfo::height, LogMagickEvent(), magick_restrict, MagickEpsilon, MagickFalse, MagickOver_(), MagickTrue, _Image::number_channels, _NexusInfo::pixels, QuantumScale, _NexusInfo::region, SetPixelAlpha(), TraceEvent, UpdatePixelTrait, _NexusInfo::virtual_nexus, _RectangleInfo::width, WriteMaskChannel, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by SyncAuthenticPixelCacheNexus().
MagickPrivate Cache ClonePixelCache | ( | const Cache | cache | ) |
References AcquirePixelCache(), GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, and TraceEvent.
MagickPrivate void ClonePixelCacheMethods | ( | Cache | clone, |
const Cache | cache | ||
) |
References GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, and TraceEvent.
|
static |
References AcquireQuantumMemory(), IOMode, MagickFalse, MagickMaxBufferExtent, MagickMin, MagickTrue, OpenPixelCacheOnDisk(), ReadMode, RelinquishMagickMemory(), ResourceLimitFatalError, and ThrowFatalException.
Referenced by ClonePixelCacheRepository().
|
static |
References AcquirePixelCacheNexus(), CacheEvent, ClonePixelCacheOnDisk(), CommandOptionToMnemonic(), DestroyPixelCacheNexus(), DiskCache, FormatLocaleString(), GetMagickModule, GetOpenMPThreadId(), LogMagickEvent(), magick_restrict, MagickCacheOptions, MagickFalse, MagickMin, MagickPathExtent, MagickTrue, MapCache, MemoryCache, PingCache, ReadMode, ReadPixelCacheMetacontent(), ReadPixelCachePixels(), SetPixelCacheNexusPixels(), UndefinedPixelTrait, WriteMode, WritePixelCacheMetacontent(), and WritePixelCachePixels().
Referenced by GetImagePixelCache(), OpenPixelCache(), and PersistPixelCache().
|
static |
References _CacheInfo::file, FileResource, MagickFalse, MagickTrue, and RelinquishMagickResource().
Referenced by GetImagePixelCache(), OpenPixelCache(), OpenPixelCacheOnDisk(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), RelinquishPixelCachePixels(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
|
inlinestatic |
References _PixelInfo::alpha, AlphaPixelChannel, _Image::background_color, _PixelInfo::black, BlackPixelChannel, _PixelInfo::blue, BluePixelChannel, ClampToQuantum(), GetPixelChannelChannel(), GetPixelChannels(), _PixelInfo::green, GreenPixelChannel, MagickFalse, MagickTrue, _PixelInfo::red, and RedPixelChannel.
Referenced by GetOneAuthenticPixel(), GetOneAuthenticPixelFromCache(), GetOneVirtualPixel(), and GetOneVirtualPixelFromCache().
|
static |
References _Image::cache, _Image::debug, DestroyPixelCache(), _Image::filename, GetMagickModule, LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::signature, and TraceEvent.
Referenced by GetPixelCacheMethods().
MagickExport void DestroyImagePixels | ( | Image * | image | ) |
References _Image::cache, _Image::debug, DestroyPixelCache(), _Image::filename, GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, _Image::signature, and TraceEvent.
Referenced by DestroyImage().
MagickPrivate Cache DestroyPixelCache | ( | Cache | cache | ) |
References CacheEvent, DestroyDistributeCacheInfo(), DestroyPixelCacheNexus(), DestroyRandomInfo(), FormatLocaleString(), GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickPathExtent, RelinquishAlignedMemory(), RelinquishPixelCachePixels(), RelinquishSemaphoreInfo(), TraceEvent, and UnlockSemaphoreInfo().
MagickPrivate NexusInfo** DestroyPixelCacheNexus | ( | NexusInfo ** | nexus_info, |
const size_t | number_threads | ||
) |
|
inlinestatic |
References DitherMatrix.
Referenced by GetVirtualPixelCacheNexus().
|
inlinestatic |
References DitherMatrix.
Referenced by GetVirtualPixelCacheNexus().
|
inlinestatic |
Referenced by GetVirtualPixelCacheNexus().
|
inlinestatic |
Referenced by GetVirtualPixelCacheNexus().
MagickExport void* GetAuthenticMetacontent | ( | const Image * | image | ) |
References _Image::cache, GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, and _Image::signature.
|
static |
References _Image::cache, GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by GetPixelCacheMethods().
MagickPrivate Quantum* GetAuthenticPixelCacheNexus | ( | Image * | image, |
const ssize_t | x, | ||
const ssize_t | y, | ||
const size_t | columns, | ||
const size_t | rows, | ||
NexusInfo * | nexus_info, | ||
ExceptionInfo * | exception | ||
) |
MagickExport Quantum* GetAuthenticPixelQueue | ( | const Image * | image | ) |
References _Image::cache, GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by ExportQuantumPixels(), ImportQuantumPixels(), and StreamImagePixels().
MagickExport Quantum* GetAuthenticPixels | ( | Image * | image, |
const ssize_t | x, | ||
const ssize_t | y, | ||
const size_t | columns, | ||
const size_t | rows, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, GetAuthenticPixelCacheNexus(), GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by ClearBounds(), ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportLongLongPixel(), ImportLongPixel(), ImportQuantumPixel(), and ImportShortPixel().
|
static |
References _Image::cache, GetAuthenticPixelCacheNexus(), GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by GetOneAuthenticPixel(), and GetPixelCacheMethods().
References _Image::cache, GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by GetPixelCacheMethods().
MagickExport MagickSizeType GetImageExtent | ( | const Image * | image | ) |
References _Image::cache, _Image::debug, _Image::filename, GetMagickModule, GetOpenMPThreadId(), GetPixelCacheNexusExtent(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, _Image::signature, and TraceEvent.
Referenced by ExportQuantumPixels(), ImportQuantumPixels(), and StreamImagePixels().
|
static |
References AcquireSemaphoreInfo(), _Image::cache, cache_epoch, ClonePixelCache(), ClonePixelCacheRepository(), ClosePixelCacheOnDisk(), DestroyPixelCache(), GetMagickResourceLimit(), GetMagickTime(), IOMode, LockSemaphoreInfo(), magick_restrict, MagickDelay(), MagickFalse, MagickResourceInfinity, MagickTrue, OpenPixelCache(), ReadMode, _Image::reference_count, RelinquishSemaphoreInfo(), ResourceLimitFatalError, _Image::semaphore, ThrottleResource, ThrowFatalException, TimeResource, _Image::type, UndefinedType, UnlockSemaphoreInfo(), and ValidatePixelCacheMorphology().
Referenced by QueueAuthenticPixelCacheNexus(), and SyncImagePixelCache().
MagickExport CacheType GetImagePixelCacheType | ( | const Image * | image | ) |
References _Image::cache, magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by GetPixelCacheTileSize().
MagickExport MagickBooleanType GetOneAuthenticPixel | ( | Image * | image, |
const ssize_t | x, | ||
const ssize_t | y, | ||
Quantum * | pixel, | ||
ExceptionInfo * | exception | ||
) |
|
static |
References _Image::cache, CopyPixel(), GetAuthenticPixelCacheNexus(), GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, MaxPixelChannels, and _Image::signature.
Referenced by GetPixelCacheMethods().
MagickExport MagickBooleanType GetOneVirtualPixel | ( | const Image * | image, |
const ssize_t | x, | ||
const ssize_t | y, | ||
Quantum * | pixel, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, CopyPixel(), GetOpenMPThreadId(), GetPixelCacheVirtualMethod(), GetVirtualPixelCacheNexus(), magick_restrict, MagickCoreSignature, MaxPixelChannels, and _Image::signature.
Referenced by CompositeImage(), and CompositeOverImage().
static MagickBooleanType GetOneVirtualPixelFromCache | ( | const Image * | image, |
const VirtualPixelMethod | virtual_pixel_method, | ||
const ssize_t | x, | ||
const ssize_t | y, | ||
Quantum * | pixel, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, CopyPixel(), GetOpenMPThreadId(), GetVirtualPixelCacheNexus(), magick_restrict, MagickCoreSignature, MaxPixelChannels, and _Image::signature.
Referenced by GetPixelCacheMethods().
MagickExport MagickBooleanType GetOneVirtualPixelInfo | ( | const Image * | image, |
const VirtualPixelMethod | virtual_pixel_method, | ||
const ssize_t | x, | ||
const ssize_t | y, | ||
PixelInfo * | pixel, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, GetOpenMPThreadId(), GetPixelInfo(), GetPixelInfoPixel(), GetVirtualPixelCacheNexus(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, and _Image::signature.
Referenced by DrawPrimitive(), GetFillColor(), and GetStrokeColor().
MagickPrivate ColorspaceType GetPixelCacheColorspace | ( | const Cache | cache | ) |
References GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, and TraceEvent.
Referenced by GetCacheViewColorspace(), and QueueAuthenticPixelsStream().
MagickExport const char* GetPixelCacheFilename | ( | const Image * | image | ) |
References _Image::cache, magick_restrict, MagickCoreSignature, and _Image::signature.
MagickPrivate void GetPixelCacheMethods | ( | CacheMethods * | cache_methods | ) |
References _CacheMethods::destroy_pixel_handler, DestroyImagePixelCache(), _CacheMethods::get_authentic_metacontent_from_handler, _CacheMethods::get_authentic_pixels_from_handler, _CacheMethods::get_authentic_pixels_handler, _CacheMethods::get_one_authentic_pixel_from_handler, _CacheMethods::get_one_virtual_pixel_from_handler, _CacheMethods::get_virtual_metacontent_from_handler, _CacheMethods::get_virtual_pixel_handler, _CacheMethods::get_virtual_pixels_handler, GetAuthenticMetacontentFromCache(), GetAuthenticPixelsCache(), GetAuthenticPixelsFromCache(), GetOneAuthenticPixelFromCache(), GetOneVirtualPixelFromCache(), GetVirtualMetacontentFromCache(), GetVirtualPixelCache(), GetVirtualPixelsCache(), _CacheMethods::queue_authentic_pixels_handler, QueueAuthenticPixelsCache(), _CacheMethods::sync_authentic_pixels_handler, and SyncAuthenticPixelsCache().
MagickPrivate MagickSizeType GetPixelCacheNexusExtent | ( | const Cache | cache, |
NexusInfo *magick_restrict | nexus_info | ||
) |
References magick_restrict, and MagickCoreSignature.
MagickExport void* GetPixelCachePixels | ( | Image * | image, |
MagickSizeType * | length, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, magick_restrict, MagickCoreSignature, MapCache, MemoryCache, _ExceptionInfo::signature, and _Image::signature.
MagickPrivate ClassType GetPixelCacheStorageClass | ( | const Cache | cache | ) |
References GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, and TraceEvent.
Referenced by GetCacheViewStorageClass(), and QueueAuthenticPixelsStream().
MagickPrivate void GetPixelCacheTileSize | ( | const Image * | image, |
size_t * | width, | ||
size_t * | height | ||
) |
MagickPrivate VirtualPixelMethod GetPixelCacheVirtualMethod | ( | const Image * | image | ) |
References _Image::cache, magick_restrict, MagickCoreSignature, and _Image::signature.
MagickExport const void* GetVirtualMetacontent | ( | const Image * | image | ) |
|
static |
References _Image::cache, GetOpenMPThreadId(), GetVirtualMetacontentFromNexus(), magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by GetPixelCacheMethods().
MagickPrivate const void* GetVirtualMetacontentFromNexus | ( | const Cache | cache, |
NexusInfo *magick_restrict | nexus_info | ||
) |
References magick_restrict, MagickCoreSignature, and UndefinedClass.
|
static |
References _Image::cache, GetOpenMPThreadId(), GetVirtualPixelCacheNexus(), magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by GetPixelCacheMethods().
MagickPrivate const Quantum* GetVirtualPixelCacheNexus | ( | 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 | ||
) |
References AcquireQuantumMemory(), AcquireRandomInfo(), _PixelInfo::alpha, _NexusInfo::authentic_pixel_cache, _Image::background_color, BackgroundVirtualPixelMethod, _PixelInfo::black, BlackVirtualPixelMethod, _PixelInfo::blue, _Image::cache, CacheError, _Image::channels, CheckerTileVirtualPixelMethod, ClampToQuantum(), CompositeMaskChannel, DitherVirtualPixelMethod, DitherX(), DitherY(), EdgeVirtualPixelMethod, EdgeX(), EdgeY(), _Image::filename, GetMagickModule, GetVirtualMetacontentFromNexus(), GetVirtualPixelCacheNexus(), GrayVirtualPixelMethod, _PixelInfo::green, _RectangleInfo::height, HorizontalTileEdgeVirtualPixelMethod, HorizontalTileVirtualPixelMethod, magick_restrict, MagickCoreSignature, MagickFalse, MagickMin, MagickTrue, MaskVirtualPixelMethod, MaxPixelChannels, _NexusInfo::metacontent, MirrorVirtualPixelMethod, OpaqueAlpha, QuantumRange, _MagickModulo::quotient, RandomVirtualPixelMethod, RandomX(), RandomY(), ReadMode, ReadPixelCacheMetacontent(), ReadPixelCachePixels(), _PixelInfo::red, _NexusInfo::region, RelinquishMagickMemory(), _MagickModulo::remainder, SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelCacheNexusPixels(), SetPixelChannel(), SetPixelGreen(), SetPixelRed(), _Image::signature, ThrowMagickException(), TileVirtualPixelMethod, TransparentAlpha, TransparentVirtualPixelMethod, UndefinedCache, UndefinedVirtualPixelMethod, VerticalTileEdgeVirtualPixelMethod, VerticalTileVirtualPixelMethod, _NexusInfo::virtual_nexus, VirtualPixelModulo(), WhiteVirtualPixelMethod, _RectangleInfo::width, WriteMaskChannel, _RectangleInfo::x, and _RectangleInfo::y.
MagickExport const Quantum* GetVirtualPixelQueue | ( | const Image * | image | ) |
References _Image::cache, GetOpenMPThreadId(), GetVirtualPixelsNexus(), magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by ExportQuantumPixels().
MagickExport const Quantum* GetVirtualPixels | ( | const Image * | image, |
const ssize_t | x, | ||
const ssize_t | y, | ||
const size_t | columns, | ||
const size_t | rows, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, GetOpenMPThreadId(), GetPixelCacheVirtualMethod(), GetVirtualPixelCacheNexus(), magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by CompareImagesBounds(), ExportCharPixel(), ExportDoublePixel(), ExportFloatPixel(), ExportLongLongPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportShortPixel(), GetImageDynamicThreshold(), GetImageStatistics(), GetLocationStatistics(), HuffmanEncodeImage(), IdentifyImage(), InitializeHistogram(), IsBoundsCleared(), PrintChannelLocations(), and StereoAnaglyphImage().
References _Image::cache, GetOpenMPThreadId(), GetVirtualPixelsNexus(), magick_restrict, MagickCoreSignature, and _Image::signature.
Referenced by GetPixelCacheMethods().
MagickPrivate const Quantum* GetVirtualPixelsNexus | ( | const Cache | cache, |
NexusInfo *magick_restrict | nexus_info | ||
) |
References magick_restrict, MagickCoreSignature, and UndefinedClass.
|
static |
References ApplyPixelCompositeMask(), _Image::cache, _Image::channels, CompositeMaskChannel, _Image::debug, _Image::filename, GetAuthenticPixelCacheNexus(), GetMagickModule, GetPixelAlpha(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelCompositeMask(), _RectangleInfo::height, LogMagickEvent(), magick_restrict, MagickFalse, MagickTrue, _Image::number_channels, _NexusInfo::pixels, _NexusInfo::region, TraceEvent, UpdatePixelTrait, _NexusInfo::virtual_nexus, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by SyncAuthenticPixelCacheNexus().
static MagickBooleanType OpenPixelCache | ( | Image * | image, |
const MapMode | mode, | ||
ExceptionInfo * | exception | ||
) |
References AcquireAlignedMemory(), AcquireDistributeCacheInfo(), AcquireMagickResource(), _Image::alpha_trait, AreaResource, _Image::cache, cache_anonymous_memory, CacheError, CacheEvent, _Image::channel_map, _Image::channels, ClonePixelCacheRepository(), ClosePixelCacheOnDisk(), _Image::colorspace, _Image::columns, CommandOptionToMnemonic(), _Image::debug, DestroyDistributeCacheInfo(), DestroyString(), DiskCache, DiskResource, DistributedCache, _Image::filename, FormatLocaleString(), FormatMagickSize(), GetDistributeCacheFile(), GetDistributeCacheHostname(), GetDistributeCachePort(), GetImageListLength(), GetImageRegistry(), GetMagickModule, GetPixelChannels(), GetPolicyValue(), ImageError, InitializePixelChannelMap(), IOMode, ListLengthResource, LocaleCompare(), LogMagickEvent(), magick_restrict, MagickAssumeAligned, MagickCacheOptions, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, MapBlob(), MapCache, MapResource, MaxPixelChannels, MemoryCache, MemoryResource, _Image::metacontent_extent, MissingDelegateError, _Image::offset, OpenDistributePixelCache(), OpenPixelCacheOnDisk(), PersistMode, _Image::ping, PingCache, ReadMode, RelinquishMagickResource(), RelinquishPixelCachePixels(), ResourceLimitError, _Image::rows, _Image::scene, SetPixelCacheExtent(), _Image::signature, _Image::storage_class, StringRegistryType, ThrowBinaryException, ThrowFileException, ThrowMagickException(), TraceEvent, UndefinedCache, and UndefinedClass.
Referenced by GetImagePixelCache(), and PersistPixelCache().
static MagickBooleanType OpenPixelCacheOnDisk | ( | CacheInfo * | cache_info, |
const MapMode | mode | ||
) |
References AcquireMagickResource(), AcquireUniqueFileResource(), _CacheInfo::cache_filename, ClosePixelCacheOnDisk(), _CacheInfo::disk_mode, _CacheInfo::file, FileResource, IOMode, MagickFalse, MagickTrue, O_BINARY, open_utf8(), ReadMode, S_MODE, and WriteMode.
Referenced by ClonePixelCacheOnDisk(), OpenPixelCache(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
MagickExport MagickBooleanType PersistPixelCache | ( | Image * | image, |
const char * | filename, | ||
const MagickBooleanType | attach, | ||
MagickOffsetType * | offset, | ||
ExceptionInfo * | exception | ||
) |
References AcquireMagickResource(), _Image::cache, CacheError, CacheEvent, ClonePixelCache(), ClonePixelCacheRepository(), CopyMagickString(), _Image::debug, DestroyPixelCache(), DiskCache, DiskResource, _Image::filename, GetMagickModule, GetMagickPageSize(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, MapCache, MaxPixelChannels, OpenPixelCache(), PersistMode, ReadMode, _Image::signature, ThrowMagickException(), and TraceEvent.
|
inlinestatic |
References CACHE_LINE_SIZE, _NexusInfo::length, MagickCachePrefetch, _NexusInfo::pixels, and ReadMode.
Referenced by SetPixelCacheNexusPixels().
MagickPrivate Quantum* QueueAuthenticPixelCacheNexus | ( | Image * | image, |
const ssize_t | x, | ||
const ssize_t | y, | ||
const size_t | columns, | ||
const size_t | rows, | ||
const MagickBooleanType | clone, | ||
NexusInfo * | nexus_info, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, CacheError, _Image::channels, CompositeMaskChannel, _Image::filename, GetImagePixelCache(), GetMagickModule, magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, SetPixelCacheNexusPixels(), _Image::signature, ThrowMagickException(), WriteMaskChannel, and WriteMode.
Referenced by GetAuthenticPixelCacheNexus(), QueueAuthenticPixels(), QueueAuthenticPixelsCache(), and QueueCacheViewAuthenticPixels().
MagickExport Quantum* QueueAuthenticPixels | ( | Image * | image, |
const ssize_t | x, | ||
const ssize_t | y, | ||
const size_t | columns, | ||
const size_t | rows, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, MagickFalse, QueueAuthenticPixelCacheNexus(), and _Image::signature.
Referenced by StereoAnaglyphImage().
static Quantum * QueueAuthenticPixelsCache | ( | Image * | image, |
const ssize_t | x, | ||
const ssize_t | y, | ||
const size_t | columns, | ||
const size_t | rows, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, MagickFalse, QueueAuthenticPixelCacheNexus(), and _Image::signature.
Referenced by GetPixelCacheMethods().
|
inlinestatic |
References GetPseudoRandomValue().
Referenced by GetVirtualPixelCacheNexus().
|
inlinestatic |
References GetPseudoRandomValue().
Referenced by GetVirtualPixelCacheNexus().
static MagickBooleanType ReadPixelCacheMetacontent | ( | CacheInfo * | magick_restrict, |
NexusInfo * | magick_restrict, | ||
ExceptionInfo * | |||
) |
Referenced by ClonePixelCacheRepository(), GetAuthenticPixelCacheNexus(), and GetVirtualPixelCacheNexus().
|
static |
References CacheError, CacheEvent, CacheTick, ClosePixelCacheOnDisk(), DiskCache, DistributedCache, FileOpenError, GetMagickModule, _RectangleInfo::height, IOMode, IsFileDescriptorLimitExceeded, LockSemaphoreInfo(), LogMagickEvent(), magick_restrict, MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, OpenPixelCacheOnDisk(), ReadDistributePixelCacheMetacontent(), ReadPixelCacheRegion(), ThrowFileException, UnlockSemaphoreInfo(), and _RectangleInfo::y.
static MagickBooleanType ReadPixelCachePixels | ( | CacheInfo * | magick_restrict, |
NexusInfo * | magick_restrict, | ||
ExceptionInfo * | |||
) |
Referenced by ClonePixelCacheRepository(), GetAuthenticPixelCacheNexus(), and GetVirtualPixelCacheNexus().
|
static |
References CacheError, CacheEvent, CacheTick, ClosePixelCacheOnDisk(), DiskCache, DistributedCache, FileOpenError, GetMagickModule, _RectangleInfo::height, IOMode, IsFileDescriptorLimitExceeded, LockSemaphoreInfo(), LogMagickEvent(), magick_restrict, MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, OpenPixelCacheOnDisk(), ReadDistributePixelCachePixels(), ReadPixelCacheRegion(), ThrowFileException, UnlockSemaphoreInfo(), and _RectangleInfo::y.
|
inlinestatic |
References MagickMin.
Referenced by ReadPixelCacheMetacontent(), and ReadPixelCachePixels().
MagickPrivate Cache ReferencePixelCache | ( | Cache | cache | ) |
References LockSemaphoreInfo(), magick_restrict, MagickCoreSignature, and UnlockSemaphoreInfo().
Referenced by CloneImage(), and CloneImageInfo().
|
inlinestatic |
References _NexusInfo::cache, _NexusInfo::length, MagickFalse, _NexusInfo::mapped, _NexusInfo::metacontent, _NexusInfo::pixels, RelinquishAlignedMemory(), and UnmapBlob().
Referenced by DestroyPixelCacheNexus(), and SetPixelCacheNexusPixels().
|
inlinestatic |
References _CacheInfo::cache_filename, ClosePixelCacheOnDisk(), DiskCache, DiskResource, DistributedCache, _CacheInfo::file, _CacheInfo::length, MagickFalse, MagickTrue, MapCache, _CacheInfo::mapped, MapResource, MemoryCache, MemoryResource, _CacheInfo::metacontent, _CacheInfo::mode, _CacheInfo::opencl, PersistMode, _CacheInfo::pixels, ReadMode, RelinquishAlignedMemory(), RelinquishDistributePixelCache(), RelinquishMagickResource(), RelinquishUniqueFileResource(), _CacheInfo::server_info, _CacheInfo::type, UndefinedCache, and UnmapBlob().
Referenced by DestroyPixelCache(), and OpenPixelCache().
MagickPrivate void ResetCacheAnonymousMemory | ( | void | ) |
References cache_anonymous_memory.
MagickPrivate void ResetPixelCacheChannels | ( | Image * | image | ) |
References _Image::cache, GetPixelChannels(), magick_restrict, MagickCoreSignature, and _Image::signature.
MagickPrivate void ResetPixelCacheEpoch | ( | void | ) |
References cache_epoch.
|
static |
References AcquireVirtualCacheView(), _Image::alpha_trait, BlendPixelTrait, _Image::cache, _Image::columns, _Image::debug, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannels(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::rows, SetPixelAlpha(), _Image::signature, SyncCacheViewAuthenticPixels(), and TraceEvent.
Referenced by SetPixelCacheVirtualMethod().
|
static |
References _Image::cache, CacheEvent, _Image::debug, FormatLocaleString(), FormatMagickSize(), GetMagickModule, LogMagickEvent(), magick_restrict, MagickFalse, MagickPathExtent, MagickTrue, and WritePixelCacheRegion().
Referenced by OpenPixelCache().
MagickPrivate void SetPixelCacheMethods | ( | Cache | cache, |
CacheMethods * | cache_methods | ||
) |
References _CacheMethods::destroy_pixel_handler, _CacheMethods::get_authentic_metacontent_from_handler, _CacheMethods::get_authentic_pixels_from_handler, _CacheMethods::get_authentic_pixels_handler, _CacheMethods::get_one_authentic_pixel_from_handler, _CacheMethods::get_one_virtual_pixel_from_handler, _CacheMethods::get_virtual_metacontent_from_handler, _CacheMethods::get_virtual_pixel_handler, GetMagickModule, LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, _CacheMethods::queue_authentic_pixels_handler, _CacheMethods::sync_authentic_pixels_handler, and TraceEvent.
Referenced by ReadStream().
static Quantum * SetPixelCacheNexusPixels | ( | const CacheInfo * | magick_restrict, |
const MapMode | , | ||
const ssize_t | , | ||
const ssize_t | , | ||
const size_t | , | ||
const size_t | , | ||
const MagickBooleanType | , | ||
NexusInfo * | magick_restrict, | ||
ExceptionInfo * | |||
) |
Referenced by ClonePixelCacheRepository(), GetVirtualPixelCacheNexus(), and QueueAuthenticPixelCacheNexus().
|
static |
MagickPrivate VirtualPixelMethod SetPixelCacheVirtualMethod | ( | Image * | image, |
const VirtualPixelMethod | virtual_pixel_method, | ||
ExceptionInfo * | exception | ||
) |
References _PixelInfo::alpha_trait, _Image::alpha_trait, _Image::background_color, BackgroundVirtualPixelMethod, _Image::cache, _Image::colorspace, _Image::columns, _Image::debug, _Image::filename, GetMagickModule, IsGrayColorspace(), IsPixelInfoGray(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, OpaqueAlpha, _Image::rows, SetCacheAlphaChannel(), SetImageColorspace(), _Image::signature, sRGBColorspace, TraceEvent, TransparentVirtualPixelMethod, and UndefinedPixelTrait.
Referenced by SetImageVirtualPixelMethod().
MagickPrivate MagickBooleanType SyncAuthenticPixelCacheNexus | ( | Image * | image, |
NexusInfo *magick_restrict | nexus_info, | ||
ExceptionInfo * | exception | ||
) |
References _Image::cache, CacheError, _Image::channels, ClipPixelCacheNexus(), CompositeMaskChannel, _Image::filename, magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::mask_trait, MaskPixelCacheNexus(), _Image::signature, _Image::taint, ThrowBinaryException, UndefinedCache, UpdatePixelTrait, WriteMaskChannel, WritePixelCacheMetacontent(), and WritePixelCachePixels().
MagickExport MagickBooleanType SyncAuthenticPixels | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
References _Image::cache, GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, _Image::signature, and SyncAuthenticPixelCacheNexus().
Referenced by ClearBounds(), ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportLongLongPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportShortPixel(), and StereoAnaglyphImage().
static MagickBooleanType SyncAuthenticPixelsCache | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
References _Image::cache, GetOpenMPThreadId(), magick_restrict, MagickCoreSignature, _Image::signature, and SyncAuthenticPixelCacheNexus().
Referenced by GetPixelCacheMethods().
MagickPrivate MagickBooleanType SyncImagePixelCache | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
References GetImagePixelCache(), magick_restrict, MagickFalse, and MagickTrue.
Referenced by SetImageAlphaChannel(), SetImageExtent(), SetImageGray(), SetImageMask(), SetImageMonochrome(), SetImageRegionMask(), SetImageStorageClass(), and SetPixelMetaChannels().
|
inlinestatic |
References magick_restrict, MagickFalse, and MagickTrue.
Referenced by GetImagePixelCache().
|
inlinestatic |
References _MagickModulo::quotient, and _MagickModulo::remainder.
Referenced by GetVirtualPixelCacheNexus().
static MagickBooleanType WritePixelCacheMetacontent | ( | CacheInfo * | , |
NexusInfo * | magick_restrict, | ||
ExceptionInfo * | |||
) |
Referenced by ClonePixelCacheRepository(), and SyncAuthenticPixelCacheNexus().
|
static |
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(), magick_restrict, MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, _CacheInfo::metacontent, _CacheInfo::metacontent_extent, _CacheInfo::number_channels, _CacheInfo::offset, OpenPixelCacheOnDisk(), _CacheInfo::rows, _CacheInfo::server_info, ThrowFileException, _CacheInfo::type, UnlockSemaphoreInfo(), WriteDistributePixelCacheMetacontent(), WritePixelCacheRegion(), and _RectangleInfo::y.
static MagickBooleanType WritePixelCachePixels | ( | CacheInfo * | magick_restrict, |
NexusInfo * | magick_restrict, | ||
ExceptionInfo * | |||
) |
Referenced by ClonePixelCacheRepository(), and SyncAuthenticPixelCacheNexus().
|
static |
References CacheError, CacheEvent, CacheTick, ClosePixelCacheOnDisk(), DiskCache, DistributedCache, FileOpenError, GetMagickModule, _RectangleInfo::height, IOMode, IsFileDescriptorLimitExceeded, LockSemaphoreInfo(), LogMagickEvent(), magick_restrict, MagickFalse, MagickMaxBufferExtent, MagickTrue, MapCache, MemoryCache, OpenPixelCacheOnDisk(), ThrowFileException, UnlockSemaphoreInfo(), WriteDistributePixelCachePixels(), WritePixelCacheRegion(), and _RectangleInfo::y.
|
inlinestatic |
References MagickMin.
Referenced by SetPixelCacheExtent(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
|
static |
Referenced by AcquireCacheNexusPixels(), OpenPixelCache(), and ResetCacheAnonymousMemory().
|
static |
Referenced by GetImagePixelCache(), and ResetPixelCacheEpoch().
|
static |
Referenced by CacheComponentGenesis(), and CacheComponentTerminus().
|
static |
|
static |