156 assert(image != (
Image *) NULL);
160 #if defined(MAGICKCORE_OPENCL_SUPPORT) 161 SyncAuthenticOpenCLBuffer(image);
164 sizeof(*cache_view)));
167 (void) memset(cache_view,0,
sizeof(*cache_view));
172 if (cache_view->number_threads == 0)
173 cache_view->number_threads=1;
178 if (cache_view->nexus_info == (
NexusInfo **) NULL)
210 assert(cache_view != (
CacheView *) NULL);
216 sizeof(*clone_view)));
219 (void) memset(clone_view,0,
sizeof(*clone_view));
224 clone_view->debug=cache_view->
debug;
254 assert(cache_view != (
CacheView *) NULL);
300 const ssize_t x,
const ssize_t y,
const size_t columns,
const size_t rows,
309 assert(cache_view != (
CacheView *) NULL);
347 assert(cache_view != (
CacheView *) NULL);
384 assert(cache_view != (
CacheView *) NULL);
416 assert(cache_view != (
CacheView *) NULL);
456 assert(cache_view != (
CacheView *) NULL);
492 assert(cache_view != (
CacheView *) NULL);
497 return(cache_view->
image);
525 assert(cache_view != (
CacheView *) NULL);
567 assert(cache_view != (
const CacheView *) NULL);
610 assert(cache_view != (
const CacheView *) NULL);
652 const CacheView *cache_view,
const ssize_t x,
const ssize_t y,
653 const size_t columns,
const size_t rows,
ExceptionInfo *exception)
661 assert(cache_view != (
CacheView *) NULL);
714 assert(cache_view != (
CacheView *) NULL);
720 if (q == (
const Quantum *) NULL)
786 assert(cache_view != (
CacheView *) NULL);
793 if (p == (
const Quantum *) NULL)
856 assert(cache_view != (
CacheView *) NULL);
863 if (p == (
const Quantum *) NULL)
918 assert(cache_view != (
CacheView *) NULL);
924 if (p == (
const Quantum *) NULL)
978 const ssize_t x,
const ssize_t y,
const size_t columns,
const size_t rows,
987 assert(cache_view != (
CacheView *) NULL);
1026 assert(cache_view != (
CacheView *) NULL);
1064 assert(cache_view != (
CacheView *) NULL);
1068 cache_view->image->filename);
1069 cache_view->virtual_pixel_method=virtual_pixel_method;
1109 assert(cache_view != (
CacheView *) NULL);
1111 assert(
id < (
int) cache_view->number_threads);
1113 cache_view->nexus_info[
id],exception);
MagickExport CacheView * DestroyCacheView(CacheView *cache_view)
MagickExport MagickSizeType GetCacheViewExtent(const CacheView *cache_view)
MagickExport Image * ReferenceImage(Image *image)
MagickExport const Quantum * GetCacheViewVirtualPixelQueue(const CacheView *cache_view)
#define MagickAssumeAligned(address)
VirtualPixelMethod virtual_pixel_method
MagickPrivate Quantum * GetAuthenticPixelCacheNexus(Image *, const ssize_t, const ssize_t, const size_t, const size_t, NexusInfo *, ExceptionInfo *) magick_hot_spot
#define ThrowFatalException(severity, tag)
static size_t GetOpenMPMaximumThreads(void)
MagickExport MagickBooleanType GetOneCacheViewVirtualPixel(const CacheView *cache_view, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
MagickExport MagickBooleanType GetOneCacheViewVirtualPixelInfo(const CacheView *cache_view, const ssize_t x, const ssize_t y, PixelInfo *pixel, ExceptionInfo *exception)
MagickExport ClassType GetCacheViewStorageClass(const CacheView *cache_view)
MagickExport const Quantum * GetCacheViewVirtualPixels(const CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
MagickPrivate NexusInfo ** DestroyPixelCacheNexus(NexusInfo **, const size_t)
MagickExport void GetPixelInfo(const Image *image, PixelInfo *pixel)
static Quantum ClampToQuantum(const MagickRealType quantum)
MagickExport VirtualPixelMethod GetImageVirtualPixelMethod(const Image *image)
MagickPrivate const void * GetVirtualMetacontentFromNexus(const Cache, NexusInfo *magick_restrict)
#define MagickCoreSignature
MagickExport Quantum * GetCacheViewAuthenticPixels(CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
MagickPrivate ClassType GetPixelCacheStorageClass(const Cache)
static int GetOpenMPThreadId(void)
MagickExport void * GetCacheViewAuthenticMetacontent(CacheView *cache_view)
MagickExport const void * GetCacheViewVirtualMetacontent(const CacheView *cache_view)
MagickExport void * RelinquishAlignedMemory(void *memory)
static void GetPixelInfoPixel(const Image *magick_restrict image, const Quantum *magick_restrict pixel, PixelInfo *magick_restrict pixel_info)
MagickExport MagickBooleanType IsEventLogging(void)
MagickExport const Image * GetCacheViewImage(const CacheView *cache_view)
MagickExport Quantum * QueueCacheViewAuthenticPixels(CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
MagickPrivate const Quantum * GetVirtualPixelCacheNexus(const Image *, const VirtualPixelMethod, const ssize_t, const ssize_t, const size_t, const size_t, NexusInfo *, ExceptionInfo *) magick_hot_spot
MagickPrivate const Quantum * GetVirtualPixelsNexus(const Cache, NexusInfo *magick_restrict)
MagickExport MagickBooleanType LogMagickEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
MagickExport MagickSizeType GetMagickResourceLimit(const ResourceType type)
MagickExport MagickBooleanType SetImageStorageClass(Image *image, const ClassType storage_class, ExceptionInfo *exception)
MagickExport void * AcquireAlignedMemory(const size_t count, const size_t quantum)
MagickPrivate MagickSizeType GetPixelCacheNexusExtent(const Cache, NexusInfo *magick_restrict)
MagickExport CacheView * CloneCacheView(const CacheView *cache_view)
static size_t GetPixelChannels(const Image *magick_restrict image)
char filename[MagickPathExtent]
#define GetMagickModule()
MagickPrivate Quantum * QueueAuthenticPixelCacheNexus(Image *, const ssize_t, const ssize_t, const size_t, const size_t, const MagickBooleanType, NexusInfo *, ExceptionInfo *) magick_hot_spot
static PixelChannel GetPixelChannelChannel(const Image *magick_restrict image, const ssize_t offset)
MagickExport CacheView * AcquireVirtualCacheView(const Image *image, ExceptionInfo *exception)
MagickExport MagickBooleanType SetCacheViewVirtualPixelMethod(CacheView *magick_restrict cache_view, const VirtualPixelMethod virtual_pixel_method)
MagickPrivate ColorspaceType GetPixelCacheColorspace(const Cache)
MagickExport Quantum * GetCacheViewAuthenticPixelQueue(CacheView *cache_view)
MagickPrivate NexusInfo ** AcquirePixelCacheNexus(const size_t)
#define magick_unreferenced(x)
MagickExport MagickBooleanType SetCacheViewStorageClass(CacheView *cache_view, const ClassType storage_class, ExceptionInfo *exception)
MagickPrivate MagickBooleanType SyncAuthenticPixelCacheNexus(Image *, NexusInfo *magick_restrict, ExceptionInfo *) magick_hot_spot
MagickExport MagickBooleanType SyncCacheViewAuthenticPixels(CacheView *magick_restrict cache_view, ExceptionInfo *exception)
MagickExport CacheView * AcquireAuthenticCacheView(const Image *image, ExceptionInfo *exception)
PixelInfo background_color
MagickExport ColorspaceType GetCacheViewColorspace(const CacheView *cache_view)
MagickExport Image * DestroyImage(Image *image)
MagickExport MagickBooleanType GetOneCacheViewVirtualMethodPixel(const CacheView *cache_view, const VirtualPixelMethod virtual_pixel_method, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)
MagickExport MagickBooleanType GetOneCacheViewAuthenticPixel(const CacheView *cache_view, const ssize_t x, const ssize_t y, Quantum *pixel, ExceptionInfo *exception)