cache.c File Reference

#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/timer-private.h"
#include "magick/utility.h"
#include "magick/utility-private.h"
Include dependency graph for cache.c:

Data Structures

struct  _MagickModulo

Defines

#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

Functions

static Cache GetImagePixelCache (Image *, const MagickBooleanType, ExceptionInfo *) magick_hot_spot
static const IndexPacketGetVirtualIndexesFromCache (const Image *)
static const PixelPacketGetVirtualPixelCache (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *)
static const PixelPacket ** GetVirtualPixelsCache (const Image *)
static MagickBooleanType GetOneAuthenticPixelFromCache (Image *, const ssize_t, const ssize_t, PixelPacket *, ExceptionInfo *)
static MagickBooleanType GetOneVirtualPixelFromCache (const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, PixelPacket *, ExceptionInfo *)
static MagickBooleanType OpenPixelCache (Image *, const MapMode, ExceptionInfo *)
static MagickBooleanType OpenPixelCacheOnDisk (CacheInfo *, const MapMode)
static MagickBooleanType ReadPixelCacheIndexes (CacheInfo *magick_restrict, NexusInfo *magick_restrict, ExceptionInfo *)
static MagickBooleanType ReadPixelCachePixels (CacheInfo *magick_restrict, NexusInfo *magick_restrict, ExceptionInfo *)
static MagickBooleanType SyncAuthenticPixelsCache (Image *, ExceptionInfo *)
static MagickBooleanType WritePixelCacheIndexes (CacheInfo *, NexusInfo *magick_restrict, ExceptionInfo *)
static MagickBooleanType WritePixelCachePixels (CacheInfo *, NexusInfo *magick_restrict, ExceptionInfo *)
static PixelPacketGetAuthenticPixelsCache (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *)
static PixelPacket ** QueueAuthenticPixelsCache (Image *, const ssize_t, const ssize_t, const size_t, const size_t, ExceptionInfo *)
static PixelPacket *** SetPixelCacheNexusPixels (const CacheInfo *magick_restrict, const MapMode, const ssize_t, const ssize_t, const size_t, const size_t, const MagickBooleanType, NexusInfo *magick_restrict, ExceptionInfo *) magick_hot_spot
MagickExport Cache AcquirePixelCache (const size_t number_threads)
MagickExport NexusInfo ** AcquirePixelCacheNexus (const size_t number_threads)
MagickExport const void * AcquirePixelCachePixels (const Image *image, MagickSizeType *length, ExceptionInfo *exception)
MagickExport MagickBooleanType CacheComponentGenesis (void)
MagickExport void CacheComponentTerminus (void)
static MagickBooleanType ClipPixelCacheNexus (Image *image, NexusInfo *nexus_info, ExceptionInfo *exception)
MagickExport Cache ClonePixelCache (const Cache cache)
MagickExport 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)
MagickExport Cache DestroyPixelCache (Cache cache)
static void RelinquishCacheNexusPixels (NexusInfo *nexus_info)
MagickExport NexusInfo ** DestroyPixelCacheNexus (NexusInfo **nexus_info, const size_t number_threads)
static IndexPacketGetAuthenticIndexesFromCache (const Image *image)
MagickExport IndexPacketGetAuthenticIndexQueue (const Image *image)
MagickExport PixelPacketGetAuthenticPixelCacheNexus (Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, NexusInfo *nexus_info, ExceptionInfo *exception)
static PixelPacketGetAuthenticPixelsFromCache (const Image *image)
MagickExport PixelPacketGetAuthenticPixelQueue (const Image *image)
MagickExport PixelPacketGetAuthenticPixels (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 GetPixelCacheType (const Image *image)
MagickExport CacheType GetImagePixelCacheType (const Image *image)
MagickExport MagickBooleanType GetOneAuthenticPixel (Image *image, const ssize_t x, const ssize_t y, PixelPacket *pixel, ExceptionInfo *exception)
MagickExport MagickBooleanType GetOneVirtualMagickPixel (const Image *image, const ssize_t x, const ssize_t y, MagickPixelPacket *pixel, ExceptionInfo *exception)
MagickExport MagickBooleanType GetOneVirtualMethodPixel (const Image *image, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, PixelPacket *pixel, ExceptionInfo *exception)
MagickExport MagickBooleanType GetOneVirtualPixel (const Image *image, const ssize_t x, const ssize_t y, PixelPacket *pixel, ExceptionInfo *exception)
MagickExport size_t GetPixelCacheChannels (const Cache cache)
MagickExport ColorspaceType GetPixelCacheColorspace (const Cache cache)
MagickExport const char * GetPixelCacheFilename (const Image *image)
MagickExport void GetPixelCacheMethods (CacheMethods *cache_methods)
MagickExport MagickSizeType GetPixelCacheNexusExtent (const Cache cache, NexusInfo *nexus_info)
MagickExport void * GetPixelCachePixels (Image *image, MagickSizeType *length, ExceptionInfo *exception)
MagickExport ClassType GetPixelCacheStorageClass (const Cache cache)
MagickExport void GetPixelCacheTileSize (const Image *image, size_t *width, size_t *height)
MagickExport VirtualPixelMethod GetPixelCacheVirtualMethod (const Image *image)
MagickExport const IndexPacketGetVirtualIndexesFromNexus (const Cache cache, NexusInfo *nexus_info)
MagickExport const IndexPacketGetVirtualIndexQueue (const Image *image)
static ssize_t DitherX (const ssize_t x, const size_t columns)
static ssize_t DitherY (const ssize_t y, const size_t rows)
static ssize_t EdgeX (const ssize_t x, const size_t columns)
static ssize_t EdgeY (const ssize_t y, const size_t rows)
static ssize_t RandomX (RandomInfo *random_info, const size_t columns)
static ssize_t RandomY (RandomInfo *random_info, const size_t rows)
static MagickModulo VirtualPixelModulo (const ssize_t offset, const size_t extent)
MagickExport const PixelPacketGetVirtualPixelCacheNexus (const Image *image, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, NexusInfo *nexus_info, ExceptionInfo *exception)
MagickExport const PixelPacketGetVirtualPixelQueue (const Image *image)
MagickExport const PixelPacketGetVirtualPixels (const Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
MagickExport const PixelPacketGetVirtualPixelsNexus (const Cache cache, NexusInfo *nexus_info)
static void ApplyPixelCompositeMask (const MagickPixelPacket *p, const MagickRealType alpha, const MagickPixelPacket *q, const MagickRealType beta, MagickPixelPacket *composite)
static MagickBooleanType MaskPixelCacheNexus (Image *image, NexusInfo *nexus_info, ExceptionInfo *exception)
static 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)
MagickExport MagickBooleanType PersistPixelCache (Image *image, const char *filename, const MagickBooleanType attach, MagickOffsetType *offset, ExceptionInfo *exception)
MagickExport PixelPacketQueueAuthenticPixel (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)
MagickExport PixelPacketQueueAuthenticPixelCacheNexus (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)
MagickExport PixelPacketQueueAuthenticPixels (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 ReadPixelCacheIndexes (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)
MagickExport Cache ReferencePixelCache (Cache cache)
MagickPrivate void ResetPixelCacheEpoch (void)
MagickExport void SetPixelCacheMethods (Cache cache, CacheMethods *cache_methods)
static MagickBooleanType AcquireCacheNexusPixels (const CacheInfo *magick_restrict cache_info, const MagickSizeType length, NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception)
static void PrefetchPixelCacheNexusPixels (const NexusInfo *nexus_info, const MapMode mode)
static PixelPacketSetPixelCacheNexusPixels (const CacheInfo *magick_restrict cache_info, const MapMode mode, const ssize_t x, const ssize_t y, const size_t width, const size_t height, const MagickBooleanType buffered, NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception)
static MagickBooleanType SetCacheAlphaChannel (Image *image, const Quantum opacity)
MagickExport VirtualPixelMethod SetPixelCacheVirtualMethod (const Image *image, const VirtualPixelMethod virtual_pixel_method)
MagickExport MagickBooleanType SyncAuthenticPixelCacheNexus (Image *image, NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception)
MagickExport MagickBooleanType SyncAuthenticPixels (Image *image, ExceptionInfo *exception)
MagickPrivate MagickBooleanType SyncImagePixelCache (Image *image, ExceptionInfo *exception)
static MagickBooleanType WritePixelCacheIndexes (CacheInfo *cache_info, NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception)
static MagickBooleanType WritePixelCachePixels (CacheInfo *cache_info, NexusInfo *magick_restrict nexus_info, ExceptionInfo *exception)

Variables

static SemaphoreInfocache_semaphore = (SemaphoreInfo *) NULL
static ssize_t cache_anonymous_memory = (-1)
static time_t cache_epoch = 0
static ssize_t DitherMatrix [64]

Define Documentation

#define cache_number_threads ( source,
destination,
chunk,
multithreaded   ) 
Value:
num_threads((multithreaded) == 0 ? 1 : \
    (((source)->type != MemoryCache) && ((source)->type != MapCache)) || \
    (((destination)->type != MemoryCache) && ((destination)->type != MapCache)) ? \
    MagickMax(MagickMin(GetMagickResourceLimit(ThreadResource),2),1) : \
    MagickMax(MagickMin((ssize_t) GetMagickResourceLimit(ThreadResource),(ssize_t) (chunk)/256),1))
#define CacheTick ( offset,
extent   )     QuantumTick((MagickOffsetType) offset,extent)
 
#define IsFileDescriptorLimitExceeded (  ) 
#define MaxCacheThreads   ((size_t) GetMagickResourceLimit(ThreadResource))

Typedef Documentation

typedef struct _MagickModulo MagickModulo

Function Documentation

static MagickBooleanType AcquireCacheNexusPixels ( const CacheInfo *magick_restrict  cache_info,
const MagickSizeType  length,
NexusInfo *magick_restrict  nexus_info,
ExceptionInfo exception 
) [inline, static]
MagickExport Cache AcquirePixelCache ( const size_t  number_threads  ) 
MagickExport NexusInfo** AcquirePixelCacheNexus ( const size_t  number_threads  ) 
MagickExport const void* AcquirePixelCachePixels ( const Image image,
MagickSizeType length,
ExceptionInfo exception 
)
static void ApplyPixelCompositeMask ( const MagickPixelPacket p,
const MagickRealType  alpha,
const MagickPixelPacket q,
const MagickRealType  beta,
MagickPixelPacket composite 
) [inline, static]
MagickExport MagickBooleanType CacheComponentGenesis ( void   ) 
MagickExport void CacheComponentTerminus ( void   ) 
static MagickBooleanType ClipPixelCacheNexus ( Image image,
NexusInfo nexus_info,
ExceptionInfo exception 
) [static]
MagickExport Cache ClonePixelCache ( const Cache  cache  ) 
MagickExport void ClonePixelCacheMethods ( Cache  clone,
const Cache  cache 
)
static MagickBooleanType ClonePixelCacheOnDisk ( CacheInfo *magick_restrict  cache_info,
CacheInfo *magick_restrict  clone_info 
) [static]
static MagickBooleanType ClonePixelCacheRepository ( CacheInfo *magick_restrict  clone_info,
CacheInfo *magick_restrict  cache_info,
ExceptionInfo exception 
) [static]
static MagickBooleanType ClosePixelCacheOnDisk ( CacheInfo cache_info  )  [static]
static void DestroyImagePixelCache ( Image image  )  [static]
MagickExport void DestroyImagePixels ( Image image  ) 
MagickExport Cache DestroyPixelCache ( Cache  cache  ) 
MagickExport NexusInfo** DestroyPixelCacheNexus ( NexusInfo **  nexus_info,
const size_t  number_threads 
)
static ssize_t DitherX ( const ssize_t  x,
const size_t  columns 
) [inline, static]

References DitherMatrix.

Referenced by GetVirtualPixelCacheNexus().

static ssize_t DitherY ( const ssize_t  y,
const size_t  rows 
) [inline, static]

References DitherMatrix.

Referenced by GetVirtualPixelCacheNexus().

static ssize_t EdgeX ( const ssize_t  x,
const size_t  columns 
) [inline, static]
static ssize_t EdgeY ( const ssize_t  y,
const size_t  rows 
) [inline, static]
static IndexPacket* GetAuthenticIndexesFromCache ( const Image image  )  [static]
MagickExport IndexPacket* GetAuthenticIndexQueue ( const Image image  ) 
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 
)
MagickExport PixelPacket* GetAuthenticPixelQueue ( const Image image  ) 
MagickExport PixelPacket* GetAuthenticPixels ( Image image,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
)
static PixelPacket * GetAuthenticPixelsCache ( Image image,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
) [static]
static PixelPacket* GetAuthenticPixelsFromCache ( const Image image  )  [static]
MagickExport MagickSizeType GetImageExtent ( const Image image  ) 
static Cache GetImagePixelCache ( Image image,
const MagickBooleanType  clone,
ExceptionInfo exception 
) [static]
MagickExport CacheType GetImagePixelCacheType ( const Image image  ) 
MagickExport MagickBooleanType GetOneAuthenticPixel ( Image image,
const ssize_t  x,
const ssize_t  y,
PixelPacket pixel,
ExceptionInfo exception 
)
static MagickBooleanType GetOneAuthenticPixelFromCache ( Image image,
const ssize_t  x,
const ssize_t  y,
PixelPacket pixel,
ExceptionInfo exception 
) [static]
MagickExport MagickBooleanType GetOneVirtualMagickPixel ( const Image image,
const ssize_t  x,
const ssize_t  y,
MagickPixelPacket pixel,
ExceptionInfo exception 
)
MagickExport MagickBooleanType GetOneVirtualMethodPixel ( const Image image,
const VirtualPixelMethod  virtual_pixel_method,
const ssize_t  x,
const ssize_t  y,
PixelPacket pixel,
ExceptionInfo exception 
)
MagickExport MagickBooleanType GetOneVirtualPixel ( const Image image,
const ssize_t  x,
const ssize_t  y,
PixelPacket pixel,
ExceptionInfo exception 
)
static MagickBooleanType GetOneVirtualPixelFromCache ( const Image image,
const VirtualPixelMethod  virtual_pixel_method,
const ssize_t  x,
const ssize_t  y,
PixelPacket pixel,
ExceptionInfo exception 
)
MagickExport size_t GetPixelCacheChannels ( const Cache  cache  ) 
MagickExport ColorspaceType GetPixelCacheColorspace ( const Cache  cache  ) 
MagickExport const char* GetPixelCacheFilename ( const Image image  ) 
MagickExport void GetPixelCacheMethods ( CacheMethods cache_methods  ) 
MagickExport MagickSizeType GetPixelCacheNexusExtent ( const Cache  cache,
NexusInfo nexus_info 
)
MagickExport void* GetPixelCachePixels ( Image image,
MagickSizeType length,
ExceptionInfo exception 
)
MagickExport ClassType GetPixelCacheStorageClass ( const Cache  cache  ) 
MagickExport void GetPixelCacheTileSize ( const Image image,
size_t *  width,
size_t *  height 
)
MagickExport CacheType GetPixelCacheType ( const Image image  ) 
MagickExport VirtualPixelMethod GetPixelCacheVirtualMethod ( const Image image  ) 
static const IndexPacket * GetVirtualIndexesFromCache ( const Image image  )  [static]
MagickExport const IndexPacket* GetVirtualIndexesFromNexus ( const Cache  cache,
NexusInfo nexus_info 
)
MagickExport const IndexPacket* GetVirtualIndexQueue ( const Image image  ) 
static const PixelPacket * GetVirtualPixelCache ( const Image image,
const VirtualPixelMethod  virtual_pixel_method,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
) [static]
MagickExport const PixelPacket* 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 
)
MagickExport const PixelPacket* GetVirtualPixelQueue ( const Image image  ) 
MagickExport const PixelPacket* GetVirtualPixels ( const Image image,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
)
static const PixelPacket * GetVirtualPixelsCache ( const Image image  ) 
MagickExport const PixelPacket* GetVirtualPixelsNexus ( const Cache  cache,
NexusInfo nexus_info 
)
static MagickBooleanType MaskPixelCacheNexus ( Image image,
NexusInfo nexus_info,
ExceptionInfo exception 
) [static]
static MagickBooleanType OpenPixelCache ( Image image,
const MapMode  mode,
ExceptionInfo exception 
)
static MagickBooleanType OpenPixelCacheOnDisk ( CacheInfo cache_info,
const MapMode  mode 
)
MagickExport MagickBooleanType PersistPixelCache ( Image image,
const char *  filename,
const MagickBooleanType  attach,
MagickOffsetType offset,
ExceptionInfo exception 
)
static void PrefetchPixelCacheNexusPixels ( const NexusInfo nexus_info,
const MapMode  mode 
) [inline, static]
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 
)
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 
)
MagickExport PixelPacket* QueueAuthenticPixels ( Image image,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
)
static PixelPacket * QueueAuthenticPixelsCache ( Image image,
const ssize_t  x,
const ssize_t  y,
const size_t  columns,
const size_t  rows,
ExceptionInfo exception 
)
static ssize_t RandomX ( RandomInfo random_info,
const size_t  columns 
) [inline, static]
static ssize_t RandomY ( RandomInfo random_info,
const size_t  rows 
) [inline, static]
static MagickBooleanType ReadPixelCacheIndexes ( CacheInfo *magick_restrict  cache_info,
NexusInfo *magick_restrict  nexus_info,
ExceptionInfo exception 
) [static]
static MagickBooleanType ReadPixelCacheIndexes ( CacheInfo magick_restrict,
NexusInfo magick_restrict,
ExceptionInfo  
)
static MagickBooleanType ReadPixelCachePixels ( CacheInfo *magick_restrict  cache_info,
NexusInfo *magick_restrict  nexus_info,
ExceptionInfo exception 
) [static]
static MagickBooleanType ReadPixelCachePixels ( CacheInfo magick_restrict,
NexusInfo magick_restrict,
ExceptionInfo  
)
static MagickOffsetType ReadPixelCacheRegion ( const CacheInfo *magick_restrict  cache_info,
const MagickOffsetType  offset,
const MagickSizeType  length,
unsigned char *magick_restrict  buffer 
) [inline, static]

References MagickMin.

Referenced by ReadPixelCacheIndexes(), and ReadPixelCachePixels().

MagickExport Cache ReferencePixelCache ( Cache  cache  ) 
static void RelinquishCacheNexusPixels ( NexusInfo nexus_info  )  [inline, static]
static void RelinquishPixelCachePixels ( CacheInfo cache_info  )  [inline, static]
MagickPrivate void ResetPixelCacheEpoch ( void   ) 

References cache_epoch.

Referenced by SetMagickResourceLimit().

static MagickBooleanType SetCacheAlphaChannel ( Image image,
const Quantum  opacity 
) [static]
static MagickBooleanType SetPixelCacheExtent ( Image image,
MagickSizeType  length 
) [static]
MagickExport void SetPixelCacheMethods ( Cache  cache,
CacheMethods cache_methods 
)
static PixelPacket* SetPixelCacheNexusPixels ( const CacheInfo *magick_restrict  cache_info,
const MapMode  mode,
const ssize_t  x,
const ssize_t  y,
const size_t  width,
const size_t  height,
const MagickBooleanType  buffered,
NexusInfo *magick_restrict  nexus_info,
ExceptionInfo exception 
) [static]
static PixelPacket* * * 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  
)
MagickExport VirtualPixelMethod SetPixelCacheVirtualMethod ( const Image image,
const VirtualPixelMethod  virtual_pixel_method 
)
MagickExport MagickBooleanType SyncAuthenticPixelCacheNexus ( Image image,
NexusInfo *magick_restrict  nexus_info,
ExceptionInfo exception 
)
MagickExport MagickBooleanType SyncAuthenticPixels ( Image image,
ExceptionInfo exception 
)
static MagickBooleanType SyncAuthenticPixelsCache ( Image image,
ExceptionInfo exception 
)
MagickPrivate MagickBooleanType SyncImagePixelCache ( Image image,
ExceptionInfo exception 
)
static MagickBooleanType ValidatePixelCacheMorphology ( const Image *magick_restrict  image  )  [inline, static]

References magick_restrict, MagickFalse, and MagickTrue.

Referenced by GetImagePixelCache().

static MagickModulo VirtualPixelModulo ( const ssize_t  offset,
const size_t  extent 
) [inline, static]
static MagickBooleanType WritePixelCacheIndexes ( CacheInfo cache_info,
NexusInfo *magick_restrict  nexus_info,
ExceptionInfo exception 
) [static]
static MagickBooleanType WritePixelCacheIndexes ( CacheInfo ,
NexusInfo magick_restrict,
ExceptionInfo  
)
static MagickBooleanType WritePixelCachePixels ( CacheInfo cache_info,
NexusInfo *magick_restrict  nexus_info,
ExceptionInfo exception 
) [static]
static MagickBooleanType WritePixelCachePixels ( CacheInfo ,
NexusInfo magick_restrict,
ExceptionInfo  
)
static MagickOffsetType WritePixelCacheRegion ( const CacheInfo *magick_restrict  cache_info,
const MagickOffsetType  offset,
const MagickSizeType  length,
const unsigned char *magick_restrict  buffer 
) [inline, static]

Variable Documentation

ssize_t cache_anonymous_memory = (-1) [static]
time_t cache_epoch = 0 [static]
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
  }

Referenced by DitherX(), and DitherY().


Generated on 27 Nov 2019 for MagickCore by  doxygen 1.6.1