MagickCore 6.9.12
|
#include "magick/studio.h"
#include "magick/attribute.h"
#include "magick/blob.h"
#include "magick/cache-view.h"
#include "magick/cache.h"
#include "magick/color.h"
#include "magick/color-private.h"
#include "magick/colormap.h"
#include "magick/colormap-private.h"
#include "magick/client.h"
#include "magick/configure.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/gem.h"
#include "magick/geometry.h"
#include "magick/image-private.h"
#include "magick/memory_.h"
#include "magick/monitor.h"
#include "magick/monitor-private.h"
#include "magick/option.h"
#include "magick/pixel-accessor.h"
#include "magick/pixel-private.h"
#include "magick/quantize.h"
#include "magick/quantum.h"
#include "magick/semaphore.h"
#include "magick/resource_.h"
#include "magick/string_.h"
#include "magick/thread-private.h"
#include "magick/token.h"
#include "magick/utility.h"
#include "magick/xml-tree.h"
Go to the source code of this file.
Functions | |
MagickExport MagickBooleanType | AcquireImageColormap (Image *image, const size_t colors) |
MagickExport MagickBooleanType | CycleColormapImage (Image *image, const ssize_t displace) |
static int | IntensityCompare (const void *x, const void *y) |
MagickExport MagickBooleanType | SortColormapByIntensity (Image *image) |
MagickExport MagickBooleanType AcquireImageColormap | ( | Image * | image, |
const size_t | colors | ||
) |
Definition at line 103 of file colormap.c.
References AcquireQuantumMemory(), _PixelPacket::blue, _Image::colormap, _Image::colors, DirectClass, _Image::filename, GetMagickModule, _PixelPacket::green, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMax, MaxColormapSize, _PixelPacket::opacity, OpaqueOpacity, PseudoClass, QuantumRange, _PixelPacket::red, ResizeQuantumMemory(), ResourceLimitError, SetImageStorageClass(), _Image::signature, _Image::storage_class, ThrowBinaryImageException, and TraceEvent.
Referenced by AllocateImageColormap(), AssignImageColors(), Classify(), ConnectedComponentsImage(), RandomChannelThresholdImage(), RandomThresholdImageChannel(), SetGrayscaleImage(), ThresholdImage(), and ThresholdImageChannel().
MagickExport MagickBooleanType CycleColormapImage | ( | Image * | image, |
const ssize_t | displace | ||
) |
Definition at line 177 of file colormap.c.
References AcquireAuthenticCacheView(), _Image::colormap, _Image::colors, _Image::columns, DestroyCacheView(), DirectClass, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelIndex, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, PaletteType, _Image::rows, SetImageType(), SetPixelIndex, SetPixelRGBO, _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), and TraceEvent.
|
static |
Definition at line 273 of file colormap.c.
References PixelPacketIntensity().
Referenced by SortColormapByIntensity().
MagickExport MagickBooleanType SortColormapByIntensity | ( | Image * | image | ) |
Definition at line 292 of file colormap.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), _Image::colormap, _Image::colors, _Image::columns, ConstrainColormapIndex(), DestroyCacheView(), _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelIndex, IntensityCompare(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _PixelPacket::opacity, PseudoClass, RelinquishMagickMemory(), ResourceLimitError, _Image::rows, SetPixelIndex, SetPixelRGBO, _Image::signature, _Image::storage_class, SyncCacheViewAuthenticPixels(), ThrowBinaryException, and TraceEvent.