114 assert(image != (
Image *) NULL);
139 for (i=0; i < (ssize_t) image->
colors; i++)
199 assert(image != (
Image *) NULL);
207 #if defined(MAGICKCORE_OPENMP_SUPPORT) 208 #pragma omp parallel for schedule(static) \ 209 magick_number_threads(image,image,image->rows,1) 211 for (y=0; y < (ssize_t) image->
rows; y++)
230 for (x=0; x < (ssize_t) image->
columns; x++)
234 index+=(ssize_t) image->
colors;
273 #if defined(__cplusplus) || defined(c_plusplus) 293 #if defined(__cplusplus) || defined(c_plusplus) 315 assert(image != (
Image *) NULL);
326 if (pixels == (
unsigned short *) NULL)
332 for (i=0; i < (ssize_t) image->
colors; i++)
342 for (i=0; i < (ssize_t) image->
colors; i++)
343 pixels[(ssize_t) image->
colormap[i].
alpha]=(
unsigned short) i;
346 for (y=0; y < (ssize_t) image->
rows; y++)
363 for (x=0; x < (ssize_t) image->
columns; x++)
MagickDoubleType MagickRealType
MagickExport CacheView * DestroyCacheView(CacheView *cache_view)
MagickExport MagickBooleanType SortColormapByIntensity(Image *image, ExceptionInfo *exception)
MagickExport MagickBooleanType CycleColormapImage(Image *image, const ssize_t displace, ExceptionInfo *exception)
static void SetPixelViaPixelInfo(const Image *magick_restrict image, const PixelInfo *magick_restrict pixel_info, Quantum *magick_restrict pixel)
MagickExport void * ResizeQuantumMemory(void *memory, const size_t count, const size_t quantum)
#define ThrowBinaryException(severity, tag, context)
MagickExport void GetPixelInfo(const Image *image, PixelInfo *pixel)
#define MagickCoreSignature
MagickExport MagickBooleanType SetImageType(Image *image, const ImageType type, ExceptionInfo *exception)
MagickExport Quantum * GetCacheViewAuthenticPixels(CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
MagickExport void * AcquireQuantumMemory(const size_t count, const size_t quantum)
static int IntensityCompare(const void *x, const void *y)
static Quantum GetPixelIndex(const Image *magick_restrict image, const Quantum *magick_restrict pixel)
MagickExport MagickRealType GetPixelInfoIntensity(const Image *magick_restrict image, const PixelInfo *magick_restrict pixel)
MagickExport MagickBooleanType LogMagickEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
MagickExport MagickBooleanType SetImageStorageClass(Image *image, const ClassType storage_class, ExceptionInfo *exception)
static size_t GetPixelChannels(const Image *magick_restrict image)
MagickExport MagickBooleanType AcquireImageColormap(Image *image, const size_t colors, ExceptionInfo *exception)
char filename[MagickPathExtent]
#define GetMagickModule()
static void SetPixelIndex(const Image *magick_restrict image, const Quantum index, Quantum *magick_restrict pixel)
MagickExport void * RelinquishMagickMemory(void *memory)
MagickExport MagickBooleanType SyncCacheViewAuthenticPixels(CacheView *magick_restrict cache_view, ExceptionInfo *exception)
MagickExport CacheView * AcquireAuthenticCacheView(const Image *image, ExceptionInfo *exception)
static ssize_t ConstrainColormapIndex(Image *image, const ssize_t index, ExceptionInfo *exception)