MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/property.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace-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/memory-private.h"
#include "MagickCore/monitor.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/pixel-private.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.
Macros | |
#define | GetChannelBit(mask, bit) (((size_t) (mask) >> (size_t) (bit)) & 0x01) |
#define | SolarizeImageTag "Solarize/Image" |
Functions | |
MagickExport PixelChannelMap * | AcquirePixelChannelMap (void) |
MagickExport PixelChannelMap * | ClonePixelChannelMap (PixelChannelMap *channel_map) |
MagickExport PixelInfo * | ClonePixelInfo (const PixelInfo *pixel) |
MagickExport void | ConformPixelInfo (Image *image, const PixelInfo *source, PixelInfo *destination, ExceptionInfo *exception) |
static double | DecodeGamma (const double x) |
MagickExport MagickRealType | DecodePixelGamma (const MagickRealType pixel) |
MagickExport PixelChannelMap * | DestroyPixelChannelMap (PixelChannelMap *channel_map) |
static double | EncodeGamma (const double x) |
MagickExport MagickRealType | EncodePixelGamma (const MagickRealType pixel) |
static MagickBooleanType | ExportCharPixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ExportDoublePixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ExportFloatPixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ExportLongPixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ExportLongLongPixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ExportQuantumPixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ExportShortPixel (const Image *image, const RectangleInfo *roi, const char *magick_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) |
MagickExport MagickRealType | GetPixelInfoIntensity (const Image *magick_restrict image, const PixelInfo *magick_restrict pixel) |
MagickExport MagickRealType | GetPixelIntensity (const Image *magick_restrict image, const Quantum *magick_restrict pixel) |
static MagickBooleanType | ImportCharPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ImportDoublePixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ImportFloatPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ImportLongPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ImportLongLongPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ImportQuantumPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception) |
static MagickBooleanType | ImportShortPixel (Image *image, const RectangleInfo *roi, const char *magick_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 void | CatromWeights (const double x, double(*weights)[4]) |
static void | SplineWeights (const double x, double(*weights)[4]) |
static double | MeshInterpolate (const PointInfo *delta, const double p, const double x, const double y) |
MagickExport MagickBooleanType | InterpolatePixelChannel (const Image *magick_restrict 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 *magick_restrict source, const CacheView_ *source_view, const Image *magick_restrict 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, double *alpha) |
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) |
static void | LogPixelChannels (const Image *image) |
MagickExport ChannelType | SetPixelChannelMask (Image *image, const ChannelType channel_mask) |
MagickExport MagickBooleanType | SetPixelMetaChannels (Image *image, const size_t number_meta_channels, ExceptionInfo *exception) |
MagickExport MagickBooleanType | SortImagePixels (Image *image, ExceptionInfo *exception) |
#define GetChannelBit | ( | mask, | |
bit | |||
) | (((size_t) (mask) >> (size_t) (bit)) & 0x01) |
#define SolarizeImageTag "Solarize/Image" |
MagickExport PixelChannelMap * AcquirePixelChannelMap | ( | void | ) |
Definition at line 93 of file pixel.c.
References AcquireQuantumMemory(), MaxPixelChannels, ResourceLimitFatalError, and ThrowFatalException.
Referenced by AcquireImage(), and ClonePixelChannelMap().
|
inlinestatic |
Definition at line 5459 of file pixel.c.
References _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::black, _PixelInfo::blue, CMYKColorspace, _Image::colorspace, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelGreen(), GetPixelRed(), _PixelInfo::green, QuantumScale, _PixelInfo::red, and UndefinedPixelTrait.
Referenced by InterpolatePixelInfo().
|
inlinestatic |
Definition at line 4440 of file pixel.c.
Referenced by InterpolatePixelChannel(), InterpolatePixelChannels(), and InterpolatePixelInfo().
MagickExport PixelChannelMap * ClonePixelChannelMap | ( | PixelChannelMap * | channel_map | ) |
Definition at line 133 of file pixel.c.
References AcquirePixelChannelMap(), and MaxPixelChannels.
Referenced by CloneImage().
MagickExport PixelInfo * ClonePixelInfo | ( | const PixelInfo * | pixel | ) |
Definition at line 170 of file pixel.c.
References AcquireMagickMemory(), ResourceLimitFatalError, and ThrowFatalException.
MagickExport void ConformPixelInfo | ( | Image * | image, |
const PixelInfo * | source, | ||
PixelInfo * | destination, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 212 of file pixel.c.
References _Image::alpha_trait, _PixelInfo::alpha_trait, _Image::background_color, CMYKColorspace, _Image::colorspace, _PixelInfo::colorspace, ConvertCMYKToRGB(), ConvertRGBToCMYK(), IsGrayColorspace(), IsPixelInfoGray(), IssRGBCompatibleColorspace(), MagickCoreSignature, MagickFalse, OpaqueAlpha, SetImageAlpha(), _Image::signature, sRGBColorspace, TransformImageColorspace(), and UndefinedPixelTrait.
Referenced by DistortImage(), OpaquePaintImage(), SetImageAlphaChannel(), and SetImageBackgroundColor().
|
inlinestatic |
Definition at line 261 of file pixel.c.
Referenced by DecodePixelGamma().
MagickExport MagickRealType DecodePixelGamma | ( | const MagickRealType | pixel | ) |
Definition at line 319 of file pixel.c.
References DecodeGamma(), QuantumRange, and QuantumScale.
Referenced by ConvertAdobe98ToXYZ(), ConvertDisplayP3ToXYZ(), ConvertProPhotoToXYZ(), ConvertRGBToCMYK(), ConvertRGBToXYZ(), GetPixelInfoIntensity(), GetPixelInfoLuminance(), GetPixelIntensity(), GetPixelLuminance(), GrayscaleImage(), and sRGBTransformImage().
MagickExport PixelChannelMap * DestroyPixelChannelMap | ( | PixelChannelMap * | channel_map | ) |
Definition at line 350 of file pixel.c.
References RelinquishMagickMemory().
Referenced by DestroyImage().
|
inlinestatic |
Definition at line 381 of file pixel.c.
Referenced by EncodePixelGamma().
MagickExport MagickRealType EncodePixelGamma | ( | const MagickRealType | pixel | ) |
Definition at line 446 of file pixel.c.
References EncodeGamma(), QuantumRange, and QuantumScale.
Referenced by ConvertXYZToAdobe98(), ConvertXYZToDisplayP3(), ConvertXYZToProPhoto(), ConvertXYZToRGB(), GetPixelInfoIntensity(), GetPixelInfoLuma(), GetPixelIntensity(), GrayscaleImage(), and TransformsRGBImage().
|
static |
Definition at line 509 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, ClampToQuantum(), CMYKColorspace, _Image::colorspace, CyanQuantum, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelIntensity(), GetPixelRed(), GetVirtualPixels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, RedQuantum, _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ExportImagePixels().
|
static |
Definition at line 716 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, CMYKColorspace, _Image::colorspace, CyanQuantum, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelIntensity(), GetPixelRed(), GetVirtualPixels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, QuantumScale, RedQuantum, _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ExportImagePixels().
|
static |
Definition at line 924 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, CMYKColorspace, _Image::colorspace, CyanQuantum, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelIntensity(), GetPixelRed(), GetVirtualPixels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, QuantumScale, RedQuantum, _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
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 1964 of file pixel.c.
References AcquireQuantumMemory(), AlphaQuantum, BlackQuantum, BlueQuantum, CharPixel, CMYKColorspace, _Image::colorspace, CyanQuantum, DoublePixel, ExportCharPixel(), ExportDoublePixel(), ExportFloatPixel(), ExportLongLongPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportShortPixel(), _Image::filename, FloatPixel, GetMagickModule, GreenQuantum, _RectangleInfo::height, ImageError, IndexQuantum, IsEventLogging(), LogMagickEvent(), LongLongPixel, LongPixel, MagentaQuantum, MagickCoreSignature, MagickFalse, OpacityQuantum, OptionError, QuantumPixel, RedQuantum, RelinquishMagickMemory(), ResourceLimitError, ShortPixel, _Image::signature, ThrowMagickException(), TraceEvent, UndefinedQuantum, _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
|
static |
Definition at line 1338 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, ClampToQuantum(), CMYKColorspace, _Image::colorspace, CyanQuantum, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelIntensity(), GetPixelRed(), GetVirtualPixels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, RedQuantum, _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ExportImagePixels().
|
static |
Definition at line 1131 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, ClampToQuantum(), CMYKColorspace, _Image::colorspace, CyanQuantum, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelIntensity(), GetPixelRed(), GetVirtualPixels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, RedQuantum, _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ExportImagePixels().
|
static |
Definition at line 1547 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, ClampToQuantum(), CMYKColorspace, _Image::colorspace, CyanQuantum, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelIntensity(), GetPixelRed(), GetVirtualPixels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, RedQuantum, _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ExportImagePixels().
|
static |
Definition at line 1757 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, ClampToQuantum(), CMYKColorspace, _Image::colorspace, CyanQuantum, GetPixelAlpha(), GetPixelBlack(), GetPixelBlue(), GetPixelChannels(), GetPixelGreen(), GetPixelIntensity(), GetPixelRed(), GetVirtualPixels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, RedQuantum, _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ExportImagePixels().
MagickExport void GetPixelInfo | ( | const Image * | image, |
PixelInfo * | pixel | ||
) |
Definition at line 2170 of file pixel.c.
References _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::alpha_trait, _Image::colorspace, _PixelInfo::colorspace, _Image::depth, _PixelInfo::depth, DirectClass, _Image::fuzz, _PixelInfo::fuzz, MAGICKCORE_QUANTUM_DEPTH, OpaqueAlpha, sRGBColorspace, _Image::storage_class, _PixelInfo::storage_class, and UndefinedPixelTrait.
Referenced by AcquireColorCache(), AcquireImageColormap(), AppendImages(), BlackThresholdImage(), CheckImageColors(), ClassifyImageColors(), ClutImage(), ColorizeImage(), ColorMatrixImage(), CompareImagesBounds(), CompositeImage(), CompositeOverImage(), ConnectedComponentsImage(), DistortImage(), DrawAffineImage(), DrawGradientImage(), DrawPolygonPrimitive(), DrawPrimitive(), EnhanceImage(), FloodfillPaintImage(), GetConstantColour(), GetHexColour(), GetImageBackgroundColor(), GetImageBoundingBox(), GetImageDynamicThreshold(), GetIntensity(), GetNumberColors(), GetOneCacheViewVirtualPixelInfo(), GetOneVirtualPixelInfo(), HaldClutImage(), IdentifyImage(), InterpretImageProperties(), IsEquivalentImage(), MeanShiftImage(), OpaquePaintImage(), QueryColorCompliance(), ResamplePixelColor(), SparseColorImage(), sRGBTransformImage(), TintImage(), TransformsRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), WhiteThresholdImage(), XShearImage(), and YShearImage().
MagickExport MagickRealType GetPixelInfoIntensity | ( | const Image *magick_restrict | image, |
const PixelInfo *magick_restrict | pixel | ||
) |
Definition at line 2224 of file pixel.c.
References AveragePixelIntensityMethod, BrightnessPixelIntensityMethod, DecodePixelGamma(), EncodePixelGamma(), LightnessPixelIntensityMethod, MagickMax, MagickMin, MSPixelIntensityMethod, QuantumRange, Rec601LumaPixelIntensityMethod, Rec601LuminancePixelIntensityMethod, Rec709LumaPixelIntensityMethod, Rec709LuminancePixelIntensityMethod, RGBColorspace, RMSPixelIntensityMethod, and sRGBColorspace.
Referenced by IntensityCompare(), IsEquivalentIntensity(), SteganoImage(), and TintImage().
MagickExport MagickRealType GetPixelIntensity | ( | const Image *magick_restrict | image, |
const Quantum *magick_restrict | pixel | ||
) |
Definition at line 2358 of file pixel.c.
References AveragePixelIntensityMethod, BrightnessPixelIntensityMethod, DecodePixelGamma(), EncodePixelGamma(), GetPixelBlue(), GetPixelGreen(), GetPixelRed(), GRAYColorspace, LightnessPixelIntensityMethod, LinearGRAYColorspace, MagickMax, MagickMin, MSPixelIntensityMethod, QuantumRange, Rec601LumaPixelIntensityMethod, Rec601LuminancePixelIntensityMethod, Rec709LumaPixelIntensityMethod, Rec709LuminancePixelIntensityMethod, RGBColorspace, RMSPixelIntensityMethod, and sRGBColorspace.
Referenced by AdaptiveBlurImage(), AdaptiveSharpenImage(), AutoThresholdImage(), BilateralBlurImage(), BilevelImage(), BlackThresholdImage(), CannyEdgeImage(), CombineImages(), CompositeImage(), ConsolidateCMYKImages(), ContrastStretchImage(), EqualizeImage(), ExportCharPixel(), ExportDoublePixel(), ExportFloatPixel(), ExportLongLongPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportShortPixel(), Fish2X(), GetIntensity(), HoughLineImage(), HuffmanEncodeImage(), LinearStretchImage(), MorphologyPrimitive(), OilPaintImage(), RangeThresholdImage(), RenderPostscript(), SelectiveBlurImage(), SepiaToneImage(), SetImageAlphaChannel(), SetImageMask(), SortImagePixels(), StreamImagePixels(), TraceEdges(), and WhiteThresholdImage().
|
static |
Definition at line 2511 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, CyanQuantum, GetAuthenticPixels(), GetPixelChannels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, RedQuantum, SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelGray(), SetPixelGreen(), SetPixelRed(), SyncAuthenticPixels(), _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ImportImagePixels().
|
static |
Definition at line 2772 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, ClampToQuantum(), CyanQuantum, GetAuthenticPixels(), GetPixelChannels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, QuantumRange, RedQuantum, SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelGray(), SetPixelGreen(), SetPixelRed(), SyncAuthenticPixels(), _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ImportImagePixels().
|
static |
Definition at line 3013 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, ClampToQuantum(), CyanQuantum, GetAuthenticPixels(), GetPixelChannels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, QuantumRange, RedQuantum, SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelGray(), SetPixelGreen(), SetPixelRed(), SyncAuthenticPixels(), _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
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 4138 of file pixel.c.
References AcquireQuantumMemory(), _Image::alpha_trait, AlphaQuantum, BlackQuantum, BlendPixelTrait, BlueQuantum, CharPixel, CMYKColorspace, CyanQuantum, DirectClass, DoublePixel, _Image::filename, FloatPixel, GetMagickModule, GRAYColorspace, GreenQuantum, _RectangleInfo::height, ImportCharPixel(), ImportDoublePixel(), ImportFloatPixel(), ImportLongLongPixel(), ImportLongPixel(), ImportQuantumPixel(), ImportShortPixel(), IndexQuantum, IsEventLogging(), LogMagickEvent(), LongLongPixel, LongPixel, MagentaQuantum, MagickCoreSignature, MagickFalse, OpacityQuantum, OptionError, QuantumPixel, RedQuantum, RelinquishMagickMemory(), ResourceLimitError, SetImageColorspace(), SetImageStorageClass(), ShortPixel, _Image::signature, ThrowBinaryException, ThrowMagickException(), TraceEvent, UndefinedQuantum, _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ConstituteImage().
|
static |
Definition at line 3475 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, CyanQuantum, GetAuthenticPixels(), GetPixelChannels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, RedQuantum, SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelGray(), SetPixelGreen(), SetPixelRed(), SyncAuthenticPixels(), _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ImportImagePixels().
|
static |
Definition at line 3254 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, CyanQuantum, GetAuthenticPixels(), GetPixelChannels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, RedQuantum, SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelGray(), SetPixelGreen(), SetPixelRed(), SyncAuthenticPixels(), _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ImportImagePixels().
|
static |
Definition at line 3696 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, CyanQuantum, GetAuthenticPixels(), GetPixelChannels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, RedQuantum, SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelGray(), SetPixelGreen(), SetPixelRed(), SyncAuthenticPixels(), _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ImportImagePixels().
|
static |
Definition at line 3917 of file pixel.c.
References AlphaQuantum, BlackQuantum, BlueQuantum, CyanQuantum, GetAuthenticPixels(), GetPixelChannels(), GreenQuantum, _RectangleInfo::height, IndexQuantum, LocaleCompare(), MagentaQuantum, magick_restrict, MagickFalse, MagickTrue, OpacityQuantum, RedQuantum, SetPixelAlpha(), SetPixelBlack(), SetPixelBlue(), SetPixelGray(), SetPixelGreen(), SetPixelRed(), SyncAuthenticPixels(), _RectangleInfo::width, _RectangleInfo::x, _RectangleInfo::y, and YellowQuantum.
Referenced by ImportImagePixels().
MagickExport void InitializePixelChannelMap | ( | Image * | image | ) |
Definition at line 4334 of file pixel.c.
References _Image::alpha_trait, AlphaPixelChannel, BlackPixelChannel, BlendPixelTrait, BluePixelChannel, _Image::channel_map, _Image::channel_mask, _Image::channels, CMYKColorspace, _Image::colorspace, CompositeMaskChannel, CompositeMaskPixelChannel, CopyPixelTrait, GRAYColorspace, GreenPixelChannel, IndexPixelChannel, LinearGRAYColorspace, MagickCoreSignature, MaxPixelChannels, MetaPixelChannels, _Image::number_channels, _Image::number_meta_channels, PseudoClass, ReadMaskChannel, ReadMaskPixelChannel, RedPixelChannel, SetPixelChannelAttributes(), SetPixelChannelMask(), _Image::signature, _Image::storage_class, UndefinedPixelTrait, UpdatePixelTrait, WriteMaskChannel, and WriteMaskPixelChannel.
Referenced by OpenPixelCache(), QueueAuthenticPixelsStream(), ReadStream(), and SetPixelMetaChannels().
MagickExport MagickBooleanType InterpolatePixelChannel | ( | const Image *magick_restrict | image, |
const CacheView_ * | image_view, | ||
const PixelChannel | channel, | ||
const PixelInterpolateMethod | method, | ||
const double | x, | ||
const double | y, | ||
double * | pixel, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 4493 of file pixel.c.
References AlphaPixelChannel, Average16InterpolatePixel, Average9InterpolatePixel, AverageInterpolatePixel, BilinearInterpolatePixel, BlendInterpolatePixel, BlendPixelTrait, CastDoubleToLong(), CatromInterpolatePixel, CatromWeights(), GetCacheViewVirtualPixels(), GetPixelAlpha(), GetPixelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelLuma(), IntegerInterpolatePixel, magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MeshInterpolate(), MeshInterpolatePixel, NearestInterpolatePixel, PerceptibleReciprocal(), QuantumScale, SplineInterpolatePixel, SplineWeights(), UndefinedInterpolatePixel, _PointInfo::x, and _PointInfo::y.
Referenced by ExecuteRPN(), and GetHslFlt().
MagickExport MagickBooleanType InterpolatePixelChannels | ( | const Image *magick_restrict | source, |
const CacheView_ * | source_view, | ||
const Image *magick_restrict | destination, | ||
const PixelInterpolateMethod | method, | ||
const double | x, | ||
const double | y, | ||
Quantum * | pixel, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 4918 of file pixel.c.
References AlphaPixelChannel, Average16InterpolatePixel, Average9InterpolatePixel, AverageInterpolatePixel, BilinearInterpolatePixel, BlendInterpolatePixel, BlendPixelTrait, CastDoubleToLong(), CatromInterpolatePixel, CatromWeights(), ClampToQuantum(), GetCacheViewVirtualPixels(), GetPixelAlpha(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelLuma(), IntegerInterpolatePixel, magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MeshInterpolate(), MeshInterpolatePixel, NearestInterpolatePixel, PerceptibleReciprocal(), QuantumScale, SetPixelChannel(), SplineInterpolatePixel, SplineWeights(), UndefinedInterpolatePixel, UndefinedPixelTrait, _PointInfo::x, and _PointInfo::y.
Referenced by ImplodeImage(), InterpolativeResizeImage(), KuwaharaImage(), SpreadImage(), SwirlImage(), and WaveImage().
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 5484 of file pixel.c.
References _PixelInfo::alpha, AlphaBlendPixelInfo(), Average16InterpolatePixel, Average9InterpolatePixel, AverageInterpolatePixel, _Image::background_color, BackgroundInterpolatePixel, BilinearInterpolatePixel, _PixelInfo::black, BlendInterpolatePixel, _PixelInfo::blue, CastDoubleToLong(), CatromInterpolatePixel, CatromWeights(), CMYKColorspace, _Image::colorspace, GetCacheViewVirtualPixels(), GetPixelChannels(), GetPixelInfoPixel(), GetPixelLuma(), _PixelInfo::green, IntegerInterpolatePixel, _Image::interpolate, MagickCoreSignature, MagickFalse, MagickTrue, MeshInterpolate(), MeshInterpolatePixel, NearestInterpolatePixel, PerceptibleReciprocal(), _PixelInfo::red, _Image::signature, SplineInterpolatePixel, SplineWeights(), UndefinedInterpolatePixel, _PointInfo::x, and _PointInfo::y.
Referenced by ClutImage(), CompositeImage(), DrawAffineImage(), GetIntensity(), HaldClutImage(), and ResamplePixelColor().
MagickExport MagickBooleanType IsFuzzyEquivalencePixel | ( | const Image * | source, |
const Quantum * | p, | ||
const Image * | destination, | ||
const Quantum * | q | ||
) |
Definition at line 5957 of file pixel.c.
References _Image::alpha_trait, _Image::colorspace, GetFuzzyColorDistance(), GetPixelAlpha(), GetPixelBlue(), GetPixelGreen(), GetPixelRed(), IsHueCompatibleColorspace(), MagickEpsilon, MagickFalse, MagickTrue, QuantumRange, QuantumScale, and UndefinedPixelTrait.
Referenced by CompositeImage().
MagickExport MagickBooleanType IsFuzzyEquivalencePixelInfo | ( | const PixelInfo * | p, |
const PixelInfo * | q | ||
) |
Definition at line 6064 of file pixel.c.
References _PixelInfo::alpha, _PixelInfo::alpha_trait, _PixelInfo::black, _PixelInfo::blue, CMYKColorspace, _PixelInfo::colorspace, _PixelInfo::fuzz, _PixelInfo::green, IsHueCompatibleColorspace(), MagickEpsilon, MagickFalse, MagickMax, MagickSQ1_2, MagickTrue, OpaqueAlpha, QuantumRange, QuantumScale, _PixelInfo::red, and UndefinedPixelTrait.
Referenced by ComparePixels(), ConnectedComponentsImage(), DrawPrimitive(), FloodfillPaintImage(), GetEdgeBackgroundCensus(), GetEdgeBackgroundColor(), GetImageBoundingBox(), GetImageConvexHull(), IsEquivalentImage(), OpaquePaintImage(), and TransparentPaintImage().
|
static |
Definition at line 6172 of file pixel.c.
References AlphaPixelChannel, BlackPixelChannel, BlendPixelTrait, BluePixelChannel, _Image::channel_mask, CMYKColorspace, _Image::colorspace, CompositeMaskPixelChannel, ConcatenateMagickString(), CopyPixelTrait, _Image::filename, FormatLocaleString(), GetMagickModule, GetPixelChannelChannel(), GetPixelChannelTraits(), GRAYColorspace, GreenPixelChannel, IndexPixelChannel, LinearGRAYColorspace, LogMagickEvent(), MagickPathExtent, MetaPixelChannel, _Image::number_channels, PixelEvent, PseudoClass, ReadMaskPixelChannel, RedPixelChannel, _Image::storage_class, UndefinedColorspace, UpdatePixelTrait, and WriteMaskPixelChannel.
Referenced by SetPixelChannelMask().
|
inlinestatic |
Definition at line 4487 of file pixel.c.
References _PointInfo::x, and _PointInfo::y.
Referenced by InterpolatePixelChannel(), InterpolatePixelChannels(), and InterpolatePixelInfo().
MagickExport ChannelType SetPixelChannelMask | ( | Image * | image, |
const ChannelType | channel_mask | ||
) |
Definition at line 6279 of file pixel.c.
References _Image::alpha_trait, AlphaPixelChannel, BlendPixelTrait, _Image::channel_mask, _Image::channels, CompositeMaskChannel, CompositeMaskPixelChannel, CopyPixelTrait, _Image::debug, _Image::filename, GetChannelBit, GetLogEventMask(), GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), IndexPixelChannel, LogMagickEvent(), LogPixelChannels(), MagickCoreSignature, MagickFalse, PixelEvent, PseudoClass, ReadMaskChannel, ReadMaskPixelChannel, SetPixelChannelTraits(), _Image::signature, _Image::storage_class, UndefinedPixelTrait, UpdatePixelTrait, WriteMaskChannel, and WriteMaskPixelChannel.
Referenced by ChannelFxImage(), InitializePixelChannelMap(), MontageImageList(), SetImageAlphaChannel(), SetImageChannelMask(), and ShadowImage().
MagickExport MagickBooleanType SetPixelMetaChannels | ( | Image * | image, |
const size_t | number_meta_channels, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 6363 of file pixel.c.
References InitializePixelChannelMap(), MagickMin, MaxPixelChannels, MetaPixelChannels, _Image::number_meta_channels, and SyncImagePixelCache().
Referenced by ChannelFxImage().
MagickExport MagickBooleanType SortImagePixels | ( | Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 6397 of file pixel.c.
References AcquireAuthenticCacheView(), _Image::columns, DestroyCacheView(), _Image::filename, GetCacheViewAuthenticPixels(), GetMagickModule, GetPixelChannels(), GetPixelIntensity(), IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MaxPixelChannels, _Image::progress_monitor, _Image::rows, SetImageProgress(), _Image::signature, SolarizeImageTag, SyncCacheViewAuthenticPixels(), and TraceEvent.
|
inlinestatic |
Definition at line 4467 of file pixel.c.
Referenced by InterpolatePixelChannel(), InterpolatePixelChannels(), and InterpolatePixelInfo().