|
MagickCore
6.7.5
|
#include "MagickCore/studio.h"#include "MagickCore/property.h"#include "MagickCore/blob.h"#include "MagickCore/blob-private.h"#include "MagickCore/color-private.h"#include "MagickCore/draw.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/cache.h"#include "MagickCore/constitute.h"#include "MagickCore/delegate.h"#include "MagickCore/geometry.h"#include "MagickCore/image-private.h"#include "MagickCore/list.h"#include "MagickCore/magick.h"#include "MagickCore/memory_.h"#include "MagickCore/monitor.h"#include "MagickCore/option.h"#include "MagickCore/pixel.h"#include "MagickCore/pixel-accessor.h"#include "MagickCore/quantum.h"#include "MagickCore/quantum-private.h"#include "MagickCore/resource_.h"#include "MagickCore/semaphore.h"#include "MagickCore/statistic.h"#include "MagickCore/stream.h"#include "MagickCore/string_.h"#include "MagickCore/transform.h"#include "MagickCore/utility.h"Go to the source code of this file.
Defines | |
| #define | LogPixelChannels(image) |
| #define | GetChannelBit(mask, bit) (((size_t) (mask) >> (size_t) (bit)) & 0x01) |
Functions | |
| MagickExport PixelChannelMap * | AcquirePixelChannelMap (void) |
| MagickExport PixelChannelMap * | ClonePixelChannelMap (PixelChannelMap *channel_map) |
| MagickExport PixelInfo * | ClonePixelInfo (const PixelInfo *pixel) |
| MagickExport PixelChannelMap * | DestroyPixelChannelMap (PixelChannelMap *channel_map) |
| static void | ExportCharPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
| static void | ExportDoublePixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
| static void | ExportFloatPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
| static void | ExportLongPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
| static void | ExportLongLongPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
| static void | ExportQuantumPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
| static void | ExportShortPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | ExportImagePixels (const Image *image, const ssize_t x, const ssize_t y, const size_t width, const size_t height, const char *map, const StorageType type, void *pixels, ExceptionInfo *exception) |
| MagickExport void | GetPixelInfo (const Image *image, PixelInfo *pixel) |
| static void | ImportCharPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
| static void | ImportDoublePixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
| static void | ImportFloatPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
| static void | ImportLongPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
| static void | ImportLongLongPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
| static void | ImportQuantumPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
| static void | ImportShortPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | ImportImagePixels (Image *image, const ssize_t x, const ssize_t y, const size_t width, const size_t height, const char *map, const StorageType type, const void *pixels, ExceptionInfo *exception) |
| MagickExport void | InitializePixelChannelMap (Image *image) |
| static double | MagickMax (const MagickRealType x, const MagickRealType y) |
| static MagickRealType | CubicWeightingFunction (const MagickRealType x) |
| static double | MeshInterpolate (const PointInfo *delta, const double p, const double x, const double y) |
| static ssize_t | NearestNeighbor (const MagickRealType x) |
| MagickExport MagickBooleanType | InterpolatePixelChannel (const Image *image, const CacheView *image_view, const PixelChannel channel, const PixelInterpolateMethod method, const double x, const double y, double *pixel, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | InterpolatePixelChannels (const Image *source, const CacheView *source_view, const Image *destination, const PixelInterpolateMethod method, const double x, const double y, Quantum *pixel, ExceptionInfo *exception) |
| static void | AlphaBlendPixelInfo (const Image *image, const Quantum *pixel, PixelInfo *pixel_info, MagickRealType *alpha) |
| static void | BicubicInterpolate (const PixelInfo *pixels, const double dx, PixelInfo *pixel) |
| MagickExport MagickBooleanType | InterpolatePixelInfo (const Image *image, const CacheView *image_view, const PixelInterpolateMethod method, const double x, const double y, PixelInfo *pixel, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | IsFuzzyEquivalencePixel (const Image *source, const Quantum *p, const Image *destination, const Quantum *q) |
| MagickExport MagickBooleanType | IsFuzzyEquivalencePixelInfo (const PixelInfo *p, const PixelInfo *q) |
| MagickExport void | SetPixelChannelMapMask (Image *image, const ChannelType channel_mask) |
| MagickExport ChannelType | SetPixelChannelMask (Image *image, const ChannelType channel_mask) |
| #define GetChannelBit | ( | mask, | |
| bit | |||
| ) | (((size_t) (mask) >> (size_t) (bit)) & 0x01) |
| #define LogPixelChannels | ( | image | ) |
Definition at line 71 of file pixel.c.
Referenced by InitializePixelChannelMap(), and SetPixelChannelMapMask().
| MagickExport PixelChannelMap* AcquirePixelChannelMap | ( | void | ) |
Definition at line 178 of file pixel.c.
References AcquireQuantumMemory(), MaxPixelChannels, ThrowFatalException, ResourceLimitFatalError, and ResetMagickMemory().
Referenced by AcquireImage(), and ClonePixelChannelMap().
| static void AlphaBlendPixelInfo | ( | const Image * | image, |
| const Quantum * | pixel, | ||
| PixelInfo * | pixel_info, | ||
| MagickRealType * | alpha | ||
| ) | [inline, static] |
Definition at line 4911 of file pixel.c.
References _Image::matte, MagickFalse, _PixelInfo::red, GetPixelRed(), _PixelInfo::green, GetPixelGreen(), _PixelInfo::blue, GetPixelBlue(), _PixelInfo::black, _Image::colorspace, CMYKColorspace, GetPixelBlack(), _PixelInfo::alpha, GetPixelAlpha(), and QuantumScale.
Referenced by InterpolatePixelInfo().
| static void BicubicInterpolate | ( | const PixelInfo * | pixels, |
| const double | dx, | ||
| PixelInfo * | pixel | ||
| ) | [static] |
Definition at line 4936 of file pixel.c.
References _PixelInfo::red, _PixelInfo::green, _PixelInfo::blue, _PixelInfo::alpha, _PixelInfo::colorspace, CMYKColorspace, and _PixelInfo::black.
Referenced by InterpolatePixelInfo().
| MagickExport PixelChannelMap* ClonePixelChannelMap | ( | PixelChannelMap * | channel_map | ) |
Definition at line 218 of file pixel.c.
References AcquirePixelChannelMap(), CopyMagickMemory(), and MaxPixelChannels.
Referenced by CloneImage().
Definition at line 255 of file pixel.c.
References AcquireQuantumMemory(), ThrowFatalException, and ResourceLimitFatalError.
Referenced by FxGetSymbol().
| static MagickRealType CubicWeightingFunction | ( | const MagickRealType | x | ) | [inline, static] |
Definition at line 3984 of file pixel.c.
References MagickMax().
Referenced by InterpolatePixelChannel(), InterpolatePixelChannels(), and InterpolatePixelInfo().
| MagickExport PixelChannelMap* DestroyPixelChannelMap | ( | PixelChannelMap * | channel_map | ) |
Definition at line 290 of file pixel.c.
References RelinquishMagickMemory().
Referenced by DestroyImage().
| static void ExportCharPixel | ( | const Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 353 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetVirtualPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, GetPixelBlue(), GetPixelGreen(), GetPixelRed(), GetPixelChannels(), GetPixelAlpha(), GetPixelIntensity(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, _Image::colorspace, CMYKColorspace, GetPixelBlack(), and IndexQuantum.
Referenced by ExportImagePixels().
| static void ExportDoublePixel | ( | const Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 555 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetVirtualPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, QuantumScale, GetPixelBlue(), GetPixelGreen(), GetPixelRed(), GetPixelChannels(), GetPixelAlpha(), GetPixelIntensity(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, _Image::colorspace, CMYKColorspace, GetPixelBlack(), and IndexQuantum.
Referenced by ExportImagePixels().
| static void ExportFloatPixel | ( | const Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 758 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetVirtualPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, QuantumScale, GetPixelBlue(), GetPixelGreen(), GetPixelRed(), GetPixelChannels(), GetPixelAlpha(), GetPixelIntensity(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, _Image::colorspace, CMYKColorspace, GetPixelBlack(), and IndexQuantum.
Referenced by ExportImagePixels().
| MagickExport MagickBooleanType ExportImagePixels | ( | const Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | width, | ||
| const size_t | height, | ||
| const char * | map, | ||
| const StorageType | type, | ||
| void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1771 of file pixel.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, AcquireQuantumMemory(), ThrowMagickException(), ResourceLimitError, AlphaQuantum, BlueQuantum, CyanQuantum, _Image::colorspace, CMYKColorspace, RelinquishMagickMemory(), ImageError, GreenQuantum, IndexQuantum, BlackQuantum, MagentaQuantum, OpacityQuantum, UndefinedQuantum, RedQuantum, YellowQuantum, OptionError, _RectangleInfo::width, _RectangleInfo::height, _RectangleInfo::x, _RectangleInfo::y, CharPixel, ExportCharPixel(), DoublePixel, ExportDoublePixel(), FloatPixel, ExportFloatPixel(), LongPixel, ExportLongPixel(), LongLongPixel, ExportLongLongPixel(), QuantumPixel, ExportQuantumPixel(), ShortPixel, ExportShortPixel(), and MagickTrue.
| static void ExportLongLongPixel | ( | const Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 1162 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetVirtualPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, GetPixelBlue(), GetPixelGreen(), GetPixelRed(), GetPixelChannels(), GetPixelAlpha(), GetPixelIntensity(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, _Image::colorspace, CMYKColorspace, GetPixelBlack(), and IndexQuantum.
Referenced by ExportImagePixels().
| static void ExportLongPixel | ( | const Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 960 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetVirtualPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, GetPixelBlue(), GetPixelGreen(), GetPixelRed(), GetPixelChannels(), GetPixelAlpha(), GetPixelIntensity(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, _Image::colorspace, CMYKColorspace, GetPixelBlack(), and IndexQuantum.
Referenced by ExportImagePixels().
| static void ExportQuantumPixel | ( | const Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 1364 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetVirtualPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, GetPixelBlue(), GetPixelGreen(), GetPixelRed(), GetPixelChannels(), GetPixelAlpha(), GetPixelIntensity(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, _Image::colorspace, CMYKColorspace, GetPixelBlack(), and IndexQuantum.
Referenced by ExportImagePixels().
| static void ExportShortPixel | ( | const Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 1569 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetVirtualPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, GetPixelBlue(), GetPixelGreen(), GetPixelRed(), GetPixelChannels(), GetPixelAlpha(), GetPixelIntensity(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, _Image::colorspace, CMYKColorspace, GetPixelBlack(), and IndexQuantum.
Referenced by ExportImagePixels().
Definition at line 1972 of file pixel.c.
References _PixelInfo::storage_class, DirectClass, _PixelInfo::colorspace, RGBColorspace, _PixelInfo::matte, MagickFalse, _PixelInfo::fuzz, _PixelInfo::depth, MAGICKCORE_QUANTUM_DEPTH, _PixelInfo::red, _PixelInfo::green, _PixelInfo::blue, _PixelInfo::black, _PixelInfo::alpha, OpaqueAlpha, _PixelInfo::index, _Image::storage_class, _Image::colorspace, _Image::matte, _Image::depth, and _Image::fuzz.
Referenced by GetImageBoundingBox(), GetOneVirtualPixelInfo(), IsEquivalentImage(), LoadColorLists(), QueryColorCompliance(), RGBTransformImage(), TransformRGBImage(), CompositeImage(), DistortImage(), SparseColorImage(), DrawAffineImage(), DrawGradientImage(), DrawPolygonPrimitive(), DrawPrimitive(), HaldClutImage(), ColorizeImage(), FxGetSymbol(), TintImage(), ClassifyImageColors(), IsHistogramImage(), IsPaletteImage(), GetNumberColors(), IdentifyImage(), CompareImagesBounds(), MorphologyPrimitiveDirect(), FloodfillPaintImage(), GradientImage(), OpaquePaintImage(), TransparentPaintImage(), TransparentPaintImageChroma(), GetImageProperty(), ResamplePixelColor(), GetImageDynamicThreshold(), GetImageBackgroundColor(), XShearImage(), YShearImage(), and RandomThresholdImage().
| static void ImportCharPixel | ( | Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| const void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 2050 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetAuthenticPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, SetPixelBlue(), SetPixelGreen(), SetPixelRed(), GetPixelChannels(), SyncAuthenticPixels(), MagickFalse, SetPixelAlpha(), SetPixelGray(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, SetPixelBlack(), and IndexQuantum.
Referenced by ImportImagePixels().
| static void ImportDoublePixel | ( | Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| const void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 2306 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetAuthenticPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, SetPixelBlue(), ClampToQuantum(), QuantumRange, SetPixelGreen(), SetPixelRed(), GetPixelChannels(), SyncAuthenticPixels(), MagickFalse, SetPixelAlpha(), SetPixelGray(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, SetPixelBlack(), and IndexQuantum.
Referenced by ImportImagePixels().
| static void ImportFloatPixel | ( | Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| const void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 2570 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetAuthenticPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, SetPixelBlue(), ClampToQuantum(), QuantumRange, SetPixelGreen(), SetPixelRed(), GetPixelChannels(), SyncAuthenticPixels(), MagickFalse, SetPixelAlpha(), SetPixelGray(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, SetPixelBlack(), and IndexQuantum.
Referenced by ImportImagePixels().
| MagickExport MagickBooleanType ImportImagePixels | ( | Image * | image, |
| const ssize_t | x, | ||
| const ssize_t | y, | ||
| const size_t | width, | ||
| const size_t | height, | ||
| const char * | map, | ||
| const StorageType | type, | ||
| const void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 3698 of file pixel.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, AcquireQuantumMemory(), ThrowBinaryException, ResourceLimitError, AlphaQuantum, _Image::matte, MagickTrue, BlueQuantum, CyanQuantum, SetImageColorspace(), CMYKColorspace, GreenQuantum, BlackQuantum, IndexQuantum, MagentaQuantum, OpacityQuantum, UndefinedQuantum, RedQuantum, YellowQuantum, RelinquishMagickMemory(), ThrowMagickException(), OptionError, SetImageStorageClass(), DirectClass, _RectangleInfo::width, _RectangleInfo::height, _RectangleInfo::x, _RectangleInfo::y, CharPixel, ImportCharPixel(), DoublePixel, ImportDoublePixel(), FloatPixel, ImportFloatPixel(), LongPixel, ImportLongPixel(), LongLongPixel, ImportLongLongPixel(), QuantumPixel, ImportQuantumPixel(), ShortPixel, and ImportShortPixel().
Referenced by ConstituteImage().
| static void ImportLongLongPixel | ( | Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| const void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 3050 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetAuthenticPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, SetPixelBlue(), SetPixelGreen(), SetPixelRed(), GetPixelChannels(), SyncAuthenticPixels(), MagickFalse, SetPixelAlpha(), SetPixelGray(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, SetPixelBlack(), and IndexQuantum.
Referenced by ImportImagePixels().
| static void ImportLongPixel | ( | Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| const void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 2834 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetAuthenticPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, SetPixelBlue(), SetPixelGreen(), SetPixelRed(), GetPixelChannels(), SyncAuthenticPixels(), MagickFalse, SetPixelAlpha(), SetPixelGray(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, SetPixelBlack(), and IndexQuantum.
Referenced by ImportImagePixels().
| static void ImportQuantumPixel | ( | Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| const void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 3266 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetAuthenticPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, SetPixelBlue(), SetPixelGreen(), SetPixelRed(), GetPixelChannels(), SyncAuthenticPixels(), MagickFalse, SetPixelAlpha(), SetPixelGray(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, SetPixelBlack(), and IndexQuantum.
Referenced by ImportImagePixels().
| static void ImportShortPixel | ( | Image * | image, |
| const RectangleInfo * | roi, | ||
| const char *restrict | map, | ||
| const QuantumType * | quantum_map, | ||
| const void * | pixels, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 3482 of file pixel.c.
References LocaleCompare(), _RectangleInfo::height, GetAuthenticPixels(), _RectangleInfo::x, _RectangleInfo::y, _RectangleInfo::width, SetPixelBlue(), SetPixelGreen(), SetPixelRed(), GetPixelChannels(), SyncAuthenticPixels(), MagickFalse, SetPixelAlpha(), SetPixelGray(), RedQuantum, CyanQuantum, GreenQuantum, MagentaQuantum, BlueQuantum, YellowQuantum, AlphaQuantum, OpacityQuantum, BlackQuantum, SetPixelBlack(), and IndexQuantum.
Referenced by ImportImagePixels().
| MagickExport void InitializePixelChannelMap | ( | Image * | image | ) |
Definition at line 3888 of file pixel.c.
References _Image::signature, MagickSignature, ResetMagickMemory(), _Image::channel_map, MaxPixelChannels, UpdatePixelTrait, _Image::matte, MagickFalse, BlendPixelTrait, _Image::colorspace, GRAYColorspace, SetPixelChannelMap(), BluePixelChannel, GreenPixelChannel, RedPixelChannel, CMYKColorspace, BlackPixelChannel, AlphaPixelChannel, CopyPixelTrait, _Image::storage_class, PseudoClass, IndexPixelChannel, _Image::mask, MaskPixelChannel, _Image::number_meta_channels, MetaPixelChannel, _Image::number_channels, _Image::debug, LogPixelChannels, SetPixelChannelMask(), and _Image::channel_mask.
Referenced by OpenPixelCache().
| MagickExport MagickBooleanType InterpolatePixelChannel | ( | const Image * | image, |
| const CacheView * | image_view, | ||
| const PixelChannel | channel, | ||
| const PixelInterpolateMethod | method, | ||
| const double | x, | ||
| const double | y, | ||
| double * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4014 of file pixel.c.
References _Image::signature, MagickSignature, MagickTrue, GetPixelChannelMapTraits(), UndefinedInterpolatePixel, _Image::interpolate, AverageInterpolatePixel, GetCacheViewVirtualPixels(), MagickFalse, BlendPixelTrait, GetPixelChannels(), QuantumScale, GetPixelAlpha(), MagickEpsilon, BicubicInterpolatePixel, _PointInfo::x, _PointInfo::y, BilinearInterpolatePixel, FilterInterpolatePixel, _RectangleInfo::width, _RectangleInfo::height, _RectangleInfo::x, _RectangleInfo::y, ExcerptImage(), ResizeImage(), _Image::filter, _Image::blur, DestroyImage(), AcquireCacheView(), GetPixelChannel(), DestroyCacheView(), IntegerInterpolatePixel, NearestNeighborInterpolatePixel, NearestNeighbor(), MeshInterpolatePixel, GetPixelLuminance(), MeshInterpolate(), SplineInterpolatePixel, and CubicWeightingFunction().
Referenced by ClutImage().
| MagickExport MagickBooleanType InterpolatePixelChannels | ( | const Image * | source, |
| const CacheView * | source_view, | ||
| const Image * | destination, | ||
| const PixelInterpolateMethod | method, | ||
| const double | x, | ||
| const double | y, | ||
| Quantum * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4406 of file pixel.c.
References _Image::signature, MagickSignature, MagickTrue, UndefinedInterpolatePixel, _Image::interpolate, AverageInterpolatePixel, GetCacheViewVirtualPixels(), MagickFalse, GetPixelChannels(), GetPixelChannelMapChannel(), GetPixelChannelMapTraits(), UndefinedPixelTrait, BlendPixelTrait, SetPixelChannel(), ClampToQuantum(), QuantumScale, GetPixelAlpha(), MagickEpsilon, BicubicInterpolatePixel, _PointInfo::x, _PointInfo::y, BilinearInterpolatePixel, FilterInterpolatePixel, _RectangleInfo::width, _RectangleInfo::height, _RectangleInfo::x, _RectangleInfo::y, ExcerptImage(), ResizeImage(), _Image::filter, _Image::blur, DestroyImage(), AcquireCacheView(), DestroyCacheView(), IntegerInterpolatePixel, NearestNeighborInterpolatePixel, NearestNeighbor(), MeshInterpolatePixel, GetPixelLuminance(), MeshInterpolate(), SplineInterpolatePixel, and CubicWeightingFunction().
Referenced by SpreadImage(), ImplodeImage(), SwirlImage(), WaveImage(), and InterpolativeResizeImage().
| MagickExport MagickBooleanType InterpolatePixelInfo | ( | const Image * | image, |
| const CacheView * | image_view, | ||
| const PixelInterpolateMethod | method, | ||
| const double | x, | ||
| const double | y, | ||
| PixelInfo * | pixel, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 4977 of file pixel.c.
References _Image::signature, MagickSignature, MagickTrue, UndefinedInterpolatePixel, _Image::interpolate, AverageInterpolatePixel, GetCacheViewVirtualPixels(), MagickFalse, AlphaBlendPixelInfo(), GetPixelChannels(), _PixelInfo::red, _PixelInfo::green, _PixelInfo::blue, _PixelInfo::black, _PixelInfo::alpha, MagickEpsilon, _Image::colorspace, CMYKColorspace, BicubicInterpolatePixel, _PointInfo::x, _PointInfo::y, BicubicInterpolate(), BilinearInterpolatePixel, FilterInterpolatePixel, _RectangleInfo::width, _RectangleInfo::height, _RectangleInfo::x, _RectangleInfo::y, ExcerptImage(), ResizeImage(), _Image::filter, _Image::blur, DestroyImage(), AcquireCacheView(), GetPixelInfoPixel(), DestroyCacheView(), IntegerInterpolatePixel, MeshInterpolatePixel, GetPixelLuminance(), MeshInterpolate(), NearestNeighborInterpolatePixel, NearestNeighbor(), SplineInterpolatePixel, and CubicWeightingFunction().
Referenced by CompositeImage(), DrawAffineImage(), HaldClutImage(), FxGetSymbol(), and ResamplePixelColor().
| MagickExport MagickBooleanType IsFuzzyEquivalencePixel | ( | const Image * | source, |
| const Quantum * | p, | ||
| const Image * | destination, | ||
| const Quantum * | q | ||
| ) |
Definition at line 5425 of file pixel.c.
References MagickMax(), _Image::fuzz, MagickSQ1_2, _Image::matte, MagickFalse, GetPixelAlpha(), QuantumScale, MagickEpsilon, MagickTrue, GetPixelRed(), _Image::colorspace, HSLColorspace, HSBColorspace, HWBColorspace, QuantumRange, GetPixelGreen(), and GetPixelBlue().
Referenced by CompositeImage().
| MagickExport MagickBooleanType IsFuzzyEquivalencePixelInfo | ( | const PixelInfo * | p, |
| const PixelInfo * | q | ||
| ) |
Definition at line 5535 of file pixel.c.
References _PixelInfo::fuzz, IsPixelInfoEquivalent(), MagickMax(), MagickSQ1_2, _PixelInfo::matte, MagickFalse, _PixelInfo::alpha, OpaqueAlpha, QuantumScale, MagickEpsilon, MagickTrue, _PixelInfo::colorspace, CMYKColorspace, _PixelInfo::black, QuantumRange, _PixelInfo::red, HSLColorspace, HSBColorspace, HWBColorspace, _PixelInfo::green, and _PixelInfo::blue.
Referenced by GetImageBoundingBox(), IsEquivalentImage(), DrawPrimitive(), ComparePixels(), FloodfillPaintImage(), OpaquePaintImage(), and TransparentPaintImage().
| static double MagickMax | ( | const MagickRealType | x, |
| const MagickRealType | y | ||
| ) | [inline, static] |
Definition at line 3977 of file pixel.c.
Referenced by CubicWeightingFunction(), IsFuzzyEquivalencePixel(), and IsFuzzyEquivalencePixelInfo().
| static double MeshInterpolate | ( | const PointInfo * | delta, |
| const double | p, | ||
| const double | x, | ||
| const double | y | ||
| ) | [inline, static] |
Definition at line 4001 of file pixel.c.
References _PointInfo::x, and _PointInfo::y.
Referenced by InterpolatePixelChannel(), InterpolatePixelChannels(), and InterpolatePixelInfo().
| static ssize_t NearestNeighbor | ( | const MagickRealType | x | ) | [inline, static] |
Definition at line 4007 of file pixel.c.
Referenced by InterpolatePixelChannel(), InterpolatePixelChannels(), and InterpolatePixelInfo().
| MagickExport void SetPixelChannelMapMask | ( | Image * | image, |
| const ChannelType | channel_mask | ||
| ) |
Definition at line 5649 of file pixel.c.
References _Image::channel_mask, GetPixelChannels(), GetPixelChannelMapChannel(), SetPixelChannelMapTraits(), GetChannelBit, CopyPixelTrait, _Image::matte, MagickFalse, AlphaPixelChannel, UpdatePixelTrait, BlendPixelTrait, _Image::storage_class, PseudoClass, IndexPixelChannel, _Image::mask, MaskPixelChannel, _Image::debug, and LogPixelChannels.
Referenced by ShadowImage(), MontageImageList(), and SetPixelChannelMask().
| MagickExport ChannelType SetPixelChannelMask | ( | Image * | image, |
| const ChannelType | channel_mask | ||
| ) |
Definition at line 5703 of file pixel.c.
References _Image::channel_mask, and SetPixelChannelMapMask().
Referenced by DrawPrimitive(), AutoGammaImage(), LevelImageColors(), ShadowImage(), MinMaxStretchImage(), SetImageType(), and InitializePixelChannelMap().