MagickCore  7.0.6
cache.c File Reference
Include dependency graph for cache.c:

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)
 

Typedefs

typedef struct _MagickModulo MagickModulo
 

Functions

static Cache GetImagePixelCache (Image *, const MagickBooleanType, ExceptionInfo *)
 
MagickPrivate NexusInfo ** AcquirePixelCacheNexus (const size_t number_threads)
 
MagickPrivate const void * AcquirePixelCachePixels (const Image *image, MagickSizeType *length, ExceptionInfo *exception)
 
MagickPrivate MagickBooleanType CacheComponentGenesis (void)
 
MagickPrivate void CacheComponentTerminus (void)
 
MagickPrivate Cache ClonePixelCache (const Cache cache)
 
MagickPrivate void ClonePixelCacheMethods (Cache clone, const Cache cache)
 
static MagickBooleanType ClonePixelCacheOnDisk (CacheInfo *magick_restrict cache_info, CacheInfo *magick_restrict clone_info)
 
static MagickBooleanType ClonePixelCacheRepository (CacheInfo *magick_restrict clone_info, CacheInfo *magick_restrict cache_info, ExceptionInfo *exception)
 
static void DestroyImagePixelCache (Image *image)
 
MagickExport void DestroyImagePixels (Image *image)
 
static MagickBooleanType ClosePixelCacheOnDisk (CacheInfo *cache_info)
 
static void RelinquishPixelCachePixels (CacheInfo *cache_info)
 
MagickPrivate Cache DestroyPixelCache (Cache cache)
 
static void RelinquishCacheNexusPixels (NexusInfo *nexus_info)
 
MagickPrivate NexusInfo ** DestroyPixelCacheNexus (NexusInfo **nexus_info, const size_t number_threads)
 
MagickExport void * GetAuthenticMetacontent (const Image *image)
 
static void * GetAuthenticMetacontentFromCache (const Image *image)
 
MagickPrivate QuantumGetAuthenticPixelCacheNexus (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, NexusInfo *nexus_info, ExceptionInfo *exception)
 
static QuantumGetAuthenticPixelsFromCache (const Image *image)
 
MagickExport QuantumGetAuthenticPixelQueue (const Image *image)
 
MagickExport QuantumGetAuthenticPixels (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
 
static QuantumGetAuthenticPixelsCache (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
 
MagickExport MagickSizeType GetImageExtent (const Image *image)
 
static MagickBooleanType ValidatePixelCacheMorphology (const Image *magick_restrict image)
 
MagickExport CacheType GetImagePixelCacheType (const Image *image)
 
static MagickBooleanType CopyPixel (const Image *image, const Quantum *source, Quantum *destination)
 
MagickExport MagickBooleanType GetOneAuthenticPixel (Image *image, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
 
static MagickBooleanType GetOneAuthenticPixelFromCache (Image *image, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetOneVirtualPixel (const Image *image, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
 
static MagickBooleanType GetOneVirtualPixelFromCache (const Image *image, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
 
MagickExport MagickBooleanType GetOneVirtualPixelInfo (const Image *image, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, PixelInfo *pixel, ExceptionInfo *exception)
 
MagickPrivate ColorspaceType GetPixelCacheColorspace (const Cache cache)
 
MagickExport const char * GetPixelCacheFilename (const Image *image)
 
MagickPrivate void GetPixelCacheMethods (CacheMethods *cache_methods)
 
MagickPrivate MagickSizeType GetPixelCacheNexusExtent (const Cache cache, NexusInfo *magick_restrict nexus_info)
 
MagickExport void * GetPixelCachePixels (Image *image, MagickSizeType *length, ExceptionInfo *exception)
 
MagickPrivate ClassType GetPixelCacheStorageClass (const Cache cache)
 
MagickPrivate void GetPixelCacheTileSize (const Image *image, size_t *width, size_t *height)
 
MagickPrivate VirtualPixelMethod GetPixelCacheVirtualMethod (const Image *image)
 
static const void * GetVirtualMetacontentFromCache (const Image *image)
 
MagickPrivate const void * GetVirtualMetacontentFromNexus (const Cache cache, NexusInfo *magick_restrict nexus_info)
 
MagickExport const void * GetVirtualMetacontent (const Image *image)
 
static ssize_t DitherX (const ssize_t x, const size_t columns)
 
static ssize_t DitherY (const ssize_t y, const size_t rows)
 
static ssize_t EdgeX (const ssize_t x, const size_t columns)
 
static ssize_t EdgeY (const ssize_t y, const size_t rows)
 
static ssize_t RandomX (RandomInfo *random_info, const size_t columns)
 
static ssize_t RandomY (RandomInfo *random_info, const size_t rows)
 
static MagickModulo VirtualPixelModulo (const ssize_t offset, const size_t extent)
 
MagickPrivate const QuantumGetVirtualPixelsFromNexus (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)
 
static const QuantumGetVirtualPixelCache (const Image *image, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
 
MagickExport const QuantumGetVirtualPixelQueue (const Image *image)
 
MagickExport const QuantumGetVirtualPixels (const Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
 
static const QuantumGetVirtualPixelsCache (const Image *image)
 
MagickPrivate const QuantumGetVirtualPixelsNexus (const Cache cache, NexusInfo *magick_restrict nexus_info)
 
static MagickBooleanType OpenPixelCacheOnDisk (CacheInfo *cache_info, const MapMode mode)
 
static MagickOffsetType WritePixelCacheRegion (const CacheInfo *magick_restrict cache_info, const MagickOffsetType offset, const MagickSizeType length, const unsigned char *magick_restrict buffer)
 
static MagickBooleanType SetPixelCacheExtent (Image *image, MagickSizeType length)
 
static MagickBooleanType OpenPixelCache (Image *image, const MapMode mode, ExceptionInfo *exception)
 
MagickExport MagickBooleanType PersistPixelCache (Image *image, const char *filename, const MagickBooleanType attach, MagickOffsetType *offset, ExceptionInfo *exception)
 
MagickPrivate QuantumQueueAuthenticPixelCacheNexus (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)
 
static QuantumQueueAuthenticPixelsCache (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
 
MagickExport QuantumQueueAuthenticPixels (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
 
static MagickOffsetType ReadPixelCacheRegion (const CacheInfo *magick_restrict cache_info, const MagickOffsetType offset, const MagickSizeType length, unsigned char *magick_restrict buffer)
 
static MagickBooleanType ReadPixelCacheMetacontent (CacheInfo *magick_restrict cache_info, NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception)
 
static MagickBooleanType ReadPixelCachePixels (CacheInfo *magick_restrict cache_info, NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception)
 
MagickPrivate Cache ReferencePixelCache (Cache cache)
 
MagickPrivate void ResetPixelCacheChannels (Image *image)
 
MagickPrivate void ResetPixelCacheEpoch (void)
 
MagickPrivate void SetPixelCacheMethods (Cache cache, CacheMethods *cache_methods)
 
static MagickBooleanType AcquireCacheNexusPixels (const CacheInfo *magick_restrict cache_info, NexusInfo *nexus_info, ExceptionInfo *exception)
 
static MagickBooleanType IsPixelCacheAuthentic (const CacheInfo *magick_restrict cache_info, const NexusInfo *magick_restrict nexus_info)
 
static void PrefetchPixelCacheNexusPixels (const NexusInfo *nexus_info, const MapMode mode)
 
static QuantumSetPixelCacheNexusPixels (const CacheInfo *cache_info, const MapMode mode, const RectangleInfo *region, NexusInfo *nexus_info, ExceptionInfo *exception)
 
static MagickBooleanType SetCacheAlphaChannel (Image *image, const Quantum alpha, ExceptionInfo *exception)
 
MagickPrivate VirtualPixelMethod SetPixelCacheVirtualMethod (Image *image, const VirtualPixelMethod virtual_pixel_method, ExceptionInfo *exception)
 
MagickPrivate MagickBooleanType SyncAuthenticPixelCacheNexus (Image *image, NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception)
 
static MagickBooleanType SyncAuthenticPixelsCache (Image *image, ExceptionInfo *exception)
 
MagickExport MagickBooleanType SyncAuthenticPixels (Image *image, ExceptionInfo *exception)
 
MagickPrivate MagickBooleanType SyncImagePixelCache (Image *image, ExceptionInfo *exception)
 
static MagickBooleanType WritePixelCacheMetacontent (CacheInfo *cache_info, NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception)
 
static MagickBooleanType WritePixelCachePixels (CacheInfo *magick_restrict cache_info, NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception)
 

Variables

static ssize_t DitherMatrix [64]
 

Macro Definition Documentation

◆ cache_threads

#define cache_threads (   source,
  destination 
)
Value:
num_threads(((source)->type == DiskCache) || \
((destination)->type == DiskCache) || (((source)->rows) < \
#define MaxCacheThreads
MagickExport MagickSizeType GetMagickResourceLimit(const ResourceType type)
Definition: resource.c:687

◆ CacheTick

#define CacheTick (   offset,
  extent 
)    QuantumTick((MagickOffsetType) offset,extent)

◆ IsFileDescriptorLimitExceeded

#define IsFileDescriptorLimitExceeded ( )
Value:
GetMagickResourceLimit(FileResource) ? MagickTrue : MagickFalse)
MagickExport MagickSizeType GetMagickResource(const ResourceType type)
Definition: resource.c:599

Definition at line 84 of file cache.c.

Referenced by ReadPixelCacheMetacontent(), ReadPixelCachePixels(), WritePixelCacheMetacontent(), and WritePixelCachePixels().

◆ MaxCacheThreads

#define MaxCacheThreads   2

Typedef Documentation

◆ MagickModulo

typedef struct _MagickModulo MagickModulo

Function Documentation

◆ AcquireCacheNexusPixels()

◆ AcquirePixelCacheNexus()

◆ AcquirePixelCachePixels()

MagickPrivate const void* AcquirePixelCachePixels ( const Image image,
MagickSizeType length,
ExceptionInfo exception 
)

◆ CacheComponentGenesis()

MagickPrivate MagickBooleanType CacheComponentGenesis ( void  )

Definition at line 347 of file cache.c.

References AcquireSemaphoreInfo(), and MagickTrue.

◆ CacheComponentTerminus()

MagickPrivate void CacheComponentTerminus ( void  )

◆ ClonePixelCache()

◆ ClonePixelCacheMethods()

MagickPrivate void ClonePixelCacheMethods ( Cache  clone,
const Cache  cache 
)

◆ ClonePixelCacheOnDisk()

◆ ClonePixelCacheRepository()

◆ ClosePixelCacheOnDisk()

◆ CopyPixel()

◆ DestroyImagePixelCache()

static void DestroyImagePixelCache ( Image image)
static

◆ DestroyImagePixels()

◆ DestroyPixelCache()

◆ DestroyPixelCacheNexus()

◆ DitherX()

static ssize_t DitherX ( const ssize_t  x,
const size_t  columns 
)
inlinestatic

Definition at line 2540 of file cache.c.

References DitherMatrix.

Referenced by GetVirtualPixelsFromNexus().

◆ DitherY()

static ssize_t DitherY ( const ssize_t  y,
const size_t  rows 
)
inlinestatic

Definition at line 2553 of file cache.c.

References DitherMatrix.

Referenced by GetVirtualPixelsFromNexus().

◆ EdgeX()

static ssize_t EdgeX ( const ssize_t  x,
const size_t  columns 
)
inlinestatic

Definition at line 2566 of file cache.c.

Referenced by GetVirtualPixelsFromNexus().

◆ EdgeY()

static ssize_t EdgeY ( const ssize_t  y,
const size_t  rows 
)
inlinestatic

Definition at line 2575 of file cache.c.

Referenced by GetVirtualPixelsFromNexus().

◆ GetAuthenticMetacontent()

MagickExport void* GetAuthenticMetacontent ( const Image image)

◆ GetAuthenticMetacontentFromCache()

static void* GetAuthenticMetacontentFromCache ( const Image image)
static

◆ GetAuthenticPixelCacheNexus()

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 
)

◆ GetAuthenticPixelQueue()

MagickExport Quantum* GetAuthenticPixelQueue ( const Image image)

◆ GetAuthenticPixels()

◆ GetAuthenticPixelsCache()

static Quantum* GetAuthenticPixelsCache ( Image image,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
)
static

◆ GetAuthenticPixelsFromCache()

static Quantum* GetAuthenticPixelsFromCache ( const Image image)
static

◆ GetImageExtent()

◆ GetImagePixelCache()

static Cache GetImagePixelCache ( Image image,
const MagickBooleanType  clone,
ExceptionInfo exception 
)
static

◆ GetImagePixelCacheType()

MagickExport CacheType GetImagePixelCacheType ( const Image image)

Definition at line 1703 of file cache.c.

References _Image::cache, magick_restrict, MagickCoreSignature, and _Image::signature.

Referenced by GetPixelCacheTileSize().

◆ GetOneAuthenticPixel()

MagickExport MagickBooleanType GetOneAuthenticPixel ( Image image,
const ssize_t  x,
const ssize_t  y,
Quantum pixel,
ExceptionInfo exception 
)

◆ GetOneAuthenticPixelFromCache()

static MagickBooleanType GetOneAuthenticPixelFromCache ( Image image,
const ssize_t  x,
const ssize_t  y,
Quantum pixel,
ExceptionInfo exception 
)
static

◆ GetOneVirtualPixel()

MagickExport MagickBooleanType GetOneVirtualPixel ( const Image image,
const ssize_t  x,
const ssize_t  y,
Quantum pixel,
ExceptionInfo exception 
)

◆ GetOneVirtualPixelFromCache()

static MagickBooleanType GetOneVirtualPixelFromCache ( const Image image,
const VirtualPixelMethod  virtual_pixel_method,
const ssize_t  x,
const ssize_t  y,
Quantum pixel,
ExceptionInfo exception 
)
static

◆ GetOneVirtualPixelInfo()

MagickExport MagickBooleanType GetOneVirtualPixelInfo ( const Image image,
const VirtualPixelMethod  virtual_pixel_method,
const ssize_t  x,
const ssize_t  y,
PixelInfo pixel,
ExceptionInfo exception 
)

◆ GetPixelCacheColorspace()

MagickPrivate ColorspaceType GetPixelCacheColorspace ( const Cache  cache)

◆ GetPixelCacheFilename()

MagickExport const char* GetPixelCacheFilename ( const Image image)

Definition at line 2091 of file cache.c.

References _Image::cache, magick_restrict, MagickCoreSignature, and _Image::signature.

◆ GetPixelCacheMethods()

◆ GetPixelCacheNexusExtent()

MagickPrivate MagickSizeType GetPixelCacheNexusExtent ( const Cache  cache,
NexusInfo *magick_restrict  nexus_info 
)

Definition at line 2171 of file cache.c.

References magick_restrict, and MagickCoreSignature.

Referenced by GetImageExtent().

◆ GetPixelCachePixels()

MagickExport void* GetPixelCachePixels ( Image image,
MagickSizeType length,
ExceptionInfo exception 
)

◆ GetPixelCacheStorageClass()

MagickPrivate ClassType GetPixelCacheStorageClass ( const Cache  cache)

◆ GetPixelCacheTileSize()

MagickPrivate void GetPixelCacheTileSize ( const Image image,
size_t *  width,
size_t *  height 
)

◆ GetPixelCacheVirtualMethod()

MagickPrivate VirtualPixelMethod GetPixelCacheVirtualMethod ( const Image image)

Definition at line 2343 of file cache.c.

References _Image::cache, magick_restrict, MagickCoreSignature, and _Image::signature.

Referenced by GetOneVirtualPixel(), and GetVirtualPixels().

◆ GetVirtualMetacontent()

MagickExport const void* GetVirtualMetacontent ( const Image image)

◆ GetVirtualMetacontentFromCache()

static const void* GetVirtualMetacontentFromCache ( const Image image)
static

◆ GetVirtualMetacontentFromNexus()

MagickPrivate const void* GetVirtualMetacontentFromNexus ( const Cache  cache,
NexusInfo *magick_restrict  nexus_info 
)

◆ GetVirtualPixelCache()

static const Quantum* GetVirtualPixelCache ( const Image image,
const VirtualPixelMethod  virtual_pixel_method,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
)
static

◆ GetVirtualPixelQueue()

MagickExport const Quantum* GetVirtualPixelQueue ( const Image image)

◆ GetVirtualPixels()

◆ GetVirtualPixelsCache()

static const Quantum* GetVirtualPixelsCache ( const Image image)
static

◆ GetVirtualPixelsFromNexus()

MagickPrivate const Quantum* GetVirtualPixelsFromNexus ( const Image image,
const VirtualPixelMethod  virtual_pixel_method,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
NexusInfo nexus_info,
ExceptionInfo exception 
)

Definition at line 2614 of file cache.c.

References AcquirePixelCacheNexus(), AcquireQuantumMemory(), AcquireRandomInfo(), _PixelInfo::alpha, _NexusInfo::authentic_pixel_cache, _Image::background_color, BackgroundVirtualPixelMethod, _PixelInfo::black, BlackVirtualPixelMethod, _PixelInfo::blue, _Image::cache, CacheError, CheckerTileVirtualPixelMethod, ClampToQuantum(), DestroyPixelCacheNexus(), DitherVirtualPixelMethod, DitherX(), DitherY(), EdgeVirtualPixelMethod, EdgeX(), EdgeY(), _Image::filename, GetMagickModule, GetVirtualMetacontentFromNexus(), GrayVirtualPixelMethod, _PixelInfo::green, _RectangleInfo::height, HorizontalTileEdgeVirtualPixelMethod, HorizontalTileVirtualPixelMethod, magick_restrict, MagickCoreSignature, MagickFalse, MagickMin, MaskVirtualPixelMethod, MaxPixelChannels, _NexusInfo::metacontent, MirrorVirtualPixelMethod, OpaqueAlpha, QuantumRange, _MagickModulo::quotient, RandomVirtualPixelMethod, RandomX(), RandomY(), ReadMode, ReadPixelCacheMetacontent(), ReadPixelCachePixels(), _PixelInfo::red, _NexusInfo::region, RelinquishMagickMemory(), _MagickModulo::remainder, ResetMagickMemory(), SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelCacheNexusPixels(), SetPixelChannel(), SetPixelGreen(), SetPixelRed(), _Image::signature, ThrowMagickException(), TileVirtualPixelMethod, TransparentAlpha, TransparentVirtualPixelMethod, UndefinedCache, UndefinedVirtualPixelMethod, VerticalTileEdgeVirtualPixelMethod, VerticalTileVirtualPixelMethod, VirtualPixelModulo(), WhiteVirtualPixelMethod, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.

Referenced by GetOneVirtualPixel(), GetOneVirtualPixelFromCache(), GetOneVirtualPixelInfo(), GetVirtualPixelCache(), and GetVirtualPixels().

◆ GetVirtualPixelsNexus()

MagickPrivate const Quantum* GetVirtualPixelsNexus ( const Cache  cache,
NexusInfo *magick_restrict  nexus_info 
)

◆ IsPixelCacheAuthentic()

static MagickBooleanType IsPixelCacheAuthentic ( const CacheInfo *magick_restrict  cache_info,
const NexusInfo *magick_restrict  nexus_info 
)
inlinestatic

Definition at line 4755 of file cache.c.

References MagickFalse, MagickTrue, and PingCache.

Referenced by SetPixelCacheNexusPixels().

◆ OpenPixelCache()

static MagickBooleanType OpenPixelCache ( Image image,
const MapMode  mode,
ExceptionInfo exception 
)
static

Definition at line 3449 of file cache.c.

References AcquireAlignedMemory(), AcquireDistributeCacheInfo(), AcquireMagickResource(), _Image::alpha_trait, AreaResource, _Image::cache, cache_anonymous_memory, CacheError, CacheEvent, _Image::channel_map, ClonePixelCacheRepository(), ClosePixelCacheOnDisk(), _Image::colorspace, _Image::columns, CommandOptionToMnemonic(), _Image::debug, DestroyDistributeCacheInfo(), DestroyString(), DiskCache, DiskResource, DistributedCache, _Image::filename, FormatLocaleString(), FormatMagickSize(), GetDistributeCacheFile(), GetDistributeCacheHostname(), GetDistributeCachePort(), GetImageIndexInList(), GetMagickModule, GetPixelChannels(), GetPolicyValue(), HeightResource, ImageError, InitializePixelChannelMap(), IOMode, 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, _Image::read_mask, ReadMode, RelinquishMagickResource(), RelinquishPixelCachePixels(), ResourceLimitError, _Image::rows, SetPixelCacheExtent(), _Image::signature, _Image::storage_class, ThrowBinaryException, ThrowFileException, ThrowMagickException(), TraceEvent, UndefinedCache, UndefinedClass, WidthResource, and _Image::write_mask.

Referenced by PersistPixelCache(), and ValidatePixelCacheMorphology().

◆ OpenPixelCacheOnDisk()

◆ PersistPixelCache()

◆ PrefetchPixelCacheNexusPixels()

static void PrefetchPixelCacheNexusPixels ( const NexusInfo nexus_info,
const MapMode  mode 
)
inlinestatic

Definition at line 4777 of file cache.c.

References MagickCachePrefetch, _NexusInfo::pixels, and ReadMode.

Referenced by SetPixelCacheNexusPixels().

◆ QueueAuthenticPixelCacheNexus()

◆ QueueAuthenticPixels()

MagickExport Quantum* QueueAuthenticPixels ( Image image,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
)

◆ QueueAuthenticPixelsCache()

static Quantum* QueueAuthenticPixelsCache ( Image image,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
)
static

◆ RandomX()

static ssize_t RandomX ( RandomInfo random_info,
const size_t  columns 
)
inlinestatic

Definition at line 2584 of file cache.c.

References GetPseudoRandomValue().

Referenced by GetVirtualPixelsFromNexus().

◆ RandomY()

static ssize_t RandomY ( RandomInfo random_info,
const size_t  rows 
)
inlinestatic

Definition at line 2589 of file cache.c.

References GetPseudoRandomValue().

Referenced by GetVirtualPixelsFromNexus().

◆ ReadPixelCacheMetacontent()

◆ ReadPixelCachePixels()

◆ ReadPixelCacheRegion()

static MagickOffsetType ReadPixelCacheRegion ( const CacheInfo *magick_restrict  cache_info,
const MagickOffsetType  offset,
const MagickSizeType  length,
unsigned char *magick_restrict  buffer 
)
inlinestatic

Definition at line 4154 of file cache.c.

References MagickMin.

Referenced by ReadPixelCacheMetacontent(), and ReadPixelCachePixels().

◆ ReferencePixelCache()

MagickPrivate Cache ReferencePixelCache ( Cache  cache)

Definition at line 4528 of file cache.c.

References LockSemaphoreInfo(), magick_restrict, MagickCoreSignature, and UnlockSemaphoreInfo().

Referenced by CloneImage(), and CloneImageInfo().

◆ RelinquishCacheNexusPixels()

static void RelinquishCacheNexusPixels ( NexusInfo nexus_info)
inlinestatic

◆ RelinquishPixelCachePixels()

◆ ResetPixelCacheChannels()

MagickPrivate void ResetPixelCacheChannels ( Image image)

◆ ResetPixelCacheEpoch()

MagickPrivate void ResetPixelCacheEpoch ( void  )

Definition at line 4595 of file cache.c.

◆ SetCacheAlphaChannel()

◆ SetPixelCacheExtent()

◆ SetPixelCacheMethods()

◆ SetPixelCacheNexusPixels()

◆ SetPixelCacheVirtualMethod()

◆ SyncAuthenticPixelCacheNexus()

◆ SyncAuthenticPixels()

◆ SyncAuthenticPixelsCache()

static MagickBooleanType SyncAuthenticPixelsCache ( Image image,
ExceptionInfo exception 
)
static

◆ SyncImagePixelCache()

◆ ValidatePixelCacheMorphology()

◆ VirtualPixelModulo()

static MagickModulo VirtualPixelModulo ( const ssize_t  offset,
const size_t  extent 
)
inlinestatic

Definition at line 2594 of file cache.c.

References _MagickModulo::quotient, and _MagickModulo::remainder.

Referenced by GetVirtualPixelsFromNexus().

◆ WritePixelCacheMetacontent()

◆ WritePixelCachePixels()

◆ WritePixelCacheRegion()

static MagickOffsetType WritePixelCacheRegion ( const CacheInfo *magick_restrict  cache_info,
const MagickOffsetType  offset,
const MagickSizeType  length,
const unsigned char *magick_restrict  buffer 
)
inlinestatic

Definition at line 3364 of file cache.c.

References MagickMin.

Referenced by SetPixelCacheExtent(), WritePixelCacheMetacontent(), and WritePixelCachePixels().

Variable Documentation

◆ DitherMatrix

ssize_t DitherMatrix[64]
static
Initial value:
=
{
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
}

Definition at line 2528 of file cache.c.

Referenced by DitherX(), and DitherY().