MagickCore 6.9.12
|
Go to the source code of this file.
Macros | |
#define | ClampPixelRed(pixel) ClampToQuantum((pixel)->red) |
#define | ClampPixelGreen(pixel) ClampToQuantum((pixel)->green) |
#define | ClampPixelBlue(pixel) ClampToQuantum((pixel)->blue) |
#define | ClampPixelIndex(indexes) ClampToQuantum(*(indexes)) |
#define | ClampPixelOpacity(pixel) ClampToQuantum((pixel)->opacity) |
#define | GetPixela(pixel) ((pixel)->green) |
#define | GetPixelb(pixel) ((pixel)->blue) |
#define | GetPixelAlpha(pixel) (QuantumRange-(pixel)->opacity) |
#define | GetPixelBlack(indexes) (*(indexes)) |
#define | GetPixelBlue(pixel) ((pixel)->blue) |
#define | GetPixelCb(pixel) ((pixel)->green) |
#define | GetPixelCr(pixel) ((pixel)->blue) |
#define | GetPixelCyan(pixel) ((pixel)->red) |
#define | GetPixelGray(pixel) ((pixel)->red) |
#define | GetPixelGreen(pixel) ((pixel)->green) |
#define | GetPixelIndex(indexes) (*(indexes)) |
#define | GetPixelL(pixel) ((pixel)->red) |
#define | GetPixelLabel(pixel) ((ssize_t) (pixel)->red) |
#define | GetPixelMagenta(pixel) ((pixel)->green) |
#define | GetPixelNext(pixel) ((pixel)+1) |
#define | GetPixelOpacity(pixel) ((pixel)->opacity) |
#define | GetPixelRed(pixel) ((pixel)->red) |
#define | GetPixelRGB(pixel, packet) |
#define | GetPixelRGBO(pixel, packet) |
#define | GetPixelY(pixel) ((pixel)->red) |
#define | GetPixelYellow(pixel) ((pixel)->blue) |
#define | SetPixela(pixel, value) ((pixel)->green=(Quantum) (value)) |
#define | SetPixelAlpha(pixel, value) ((pixel)->opacity=(Quantum) (QuantumRange-(value))) |
#define | SetPixelb(pixel, value) ((pixel)->blue=(Quantum) (value)) |
#define | SetPixelBlack(indexes, value) (*(indexes)=(Quantum) (value)) |
#define | SetPixelBlue(pixel, value) ((pixel)->blue=(Quantum) (value)) |
#define | SetPixelCb(pixel, value) ((pixel)->green=(Quantum) (value)) |
#define | SetPixelCr(pixel, value) ((pixel)->blue=(Quantum) (value)) |
#define | SetPixelCyan(pixel, value) ((pixel)->red=(Quantum) (value)) |
#define | SetPixelGray(pixel, value) ((pixel)->red=(pixel)->green=(pixel)->blue=(Quantum) (value)) |
#define | SetPixelGreen(pixel, value) ((pixel)->green=(Quantum) (value)) |
#define | SetPixelIndex(indexes, value) (*(indexes)=(IndexPacket) (value)) |
#define | SetPixelL(pixel, value) ((pixel)->red=(Quantum) (value)) |
#define | SetPixelMagenta(pixel, value) ((pixel)->green=(Quantum) (value)) |
#define | SetPixelOpacity(pixel, value) ((pixel)->opacity=(Quantum) (value)) |
#define | SetPixelRed(pixel, value) ((pixel)->red=(Quantum) (value)) |
#define | SetPixelRgb(pixel, packet) |
#define | SetPixelRGBA(pixel, packet) |
#define | SetPixelRGBO(pixel, packet) |
#define | SetPixelYellow(pixel, value) ((pixel)->blue=(Quantum) (value)) |
#define | SetPixelY(pixel, value) ((pixel)->red=(Quantum) (value)) |
Functions | |
static MagickRealType | AbsolutePixelValue (const MagickRealType x) |
static Quantum | ClampPixel (const MagickRealType value) |
static double | PerceptibleReciprocal (const double x) |
static MagickRealType | GetPixelLuma (const Image *magick_restrict image, const PixelPacket *magick_restrict pixel) |
static MagickRealType | GetPixelLuminance (const Image *magick_restrict image, const PixelPacket *magick_restrict pixel) |
static MagickBooleanType | IsPixelAtDepth (const Quantum pixel, const QuantumAny range) |
static MagickBooleanType | IsPixelGray (const PixelPacket *pixel) |
static MagickBooleanType | IsPixelMonochrome (const PixelPacket *pixel) |
static Quantum | PixelPacketIntensity (const PixelPacket *pixel) |
static void | SetPixelViaMagickPixel (const Image *magick_restrict image, const MagickPixelPacket *magick_restrict magick_pixel, PixelPacket *magick_restrict pixel) |
#define ClampPixelBlue | ( | pixel | ) | ClampToQuantum((pixel)->blue) |
Definition at line 31 of file pixel-accessor.h.
#define ClampPixelGreen | ( | pixel | ) | ClampToQuantum((pixel)->green) |
Definition at line 30 of file pixel-accessor.h.
#define ClampPixelIndex | ( | indexes | ) | ClampToQuantum(*(indexes)) |
Definition at line 32 of file pixel-accessor.h.
#define ClampPixelOpacity | ( | pixel | ) | ClampToQuantum((pixel)->opacity) |
Definition at line 33 of file pixel-accessor.h.
#define ClampPixelRed | ( | pixel | ) | ClampToQuantum((pixel)->red) |
Definition at line 29 of file pixel-accessor.h.
#define GetPixela | ( | pixel | ) | ((pixel)->green) |
Definition at line 34 of file pixel-accessor.h.
#define GetPixelAlpha | ( | pixel | ) | (QuantumRange-(pixel)->opacity) |
Definition at line 36 of file pixel-accessor.h.
#define GetPixelb | ( | pixel | ) | ((pixel)->blue) |
Definition at line 35 of file pixel-accessor.h.
#define GetPixelBlack | ( | indexes | ) | (*(indexes)) |
Definition at line 37 of file pixel-accessor.h.
#define GetPixelBlue | ( | pixel | ) | ((pixel)->blue) |
Definition at line 38 of file pixel-accessor.h.
#define GetPixelCb | ( | pixel | ) | ((pixel)->green) |
Definition at line 39 of file pixel-accessor.h.
#define GetPixelCr | ( | pixel | ) | ((pixel)->blue) |
Definition at line 40 of file pixel-accessor.h.
#define GetPixelCyan | ( | pixel | ) | ((pixel)->red) |
Definition at line 41 of file pixel-accessor.h.
#define GetPixelGray | ( | pixel | ) | ((pixel)->red) |
Definition at line 42 of file pixel-accessor.h.
#define GetPixelGreen | ( | pixel | ) | ((pixel)->green) |
Definition at line 43 of file pixel-accessor.h.
#define GetPixelIndex | ( | indexes | ) | (*(indexes)) |
Definition at line 44 of file pixel-accessor.h.
#define GetPixelL | ( | pixel | ) | ((pixel)->red) |
Definition at line 45 of file pixel-accessor.h.
#define GetPixelLabel | ( | pixel | ) | ((ssize_t) (pixel)->red) |
Definition at line 46 of file pixel-accessor.h.
#define GetPixelMagenta | ( | pixel | ) | ((pixel)->green) |
Definition at line 47 of file pixel-accessor.h.
#define GetPixelNext | ( | pixel | ) | ((pixel)+1) |
Definition at line 48 of file pixel-accessor.h.
#define GetPixelOpacity | ( | pixel | ) | ((pixel)->opacity) |
Definition at line 49 of file pixel-accessor.h.
#define GetPixelRed | ( | pixel | ) | ((pixel)->red) |
Definition at line 50 of file pixel-accessor.h.
#define GetPixelRGB | ( | pixel, | |
packet | |||
) |
Definition at line 51 of file pixel-accessor.h.
#define GetPixelRGBO | ( | pixel, | |
packet | |||
) |
Definition at line 57 of file pixel-accessor.h.
#define GetPixelY | ( | pixel | ) | ((pixel)->red) |
Definition at line 64 of file pixel-accessor.h.
#define GetPixelYellow | ( | pixel | ) | ((pixel)->blue) |
Definition at line 65 of file pixel-accessor.h.
#define SetPixela | ( | pixel, | |
value | |||
) | ((pixel)->green=(Quantum) (value)) |
Definition at line 66 of file pixel-accessor.h.
#define SetPixelAlpha | ( | pixel, | |
value | |||
) | ((pixel)->opacity=(Quantum) (QuantumRange-(value))) |
Definition at line 67 of file pixel-accessor.h.
#define SetPixelb | ( | pixel, | |
value | |||
) | ((pixel)->blue=(Quantum) (value)) |
Definition at line 69 of file pixel-accessor.h.
#define SetPixelBlack | ( | indexes, | |
value | |||
) | (*(indexes)=(Quantum) (value)) |
Definition at line 70 of file pixel-accessor.h.
#define SetPixelBlue | ( | pixel, | |
value | |||
) | ((pixel)->blue=(Quantum) (value)) |
Definition at line 71 of file pixel-accessor.h.
#define SetPixelCb | ( | pixel, | |
value | |||
) | ((pixel)->green=(Quantum) (value)) |
Definition at line 72 of file pixel-accessor.h.
#define SetPixelCr | ( | pixel, | |
value | |||
) | ((pixel)->blue=(Quantum) (value)) |
Definition at line 73 of file pixel-accessor.h.
#define SetPixelCyan | ( | pixel, | |
value | |||
) | ((pixel)->red=(Quantum) (value)) |
Definition at line 74 of file pixel-accessor.h.
#define SetPixelGray | ( | pixel, | |
value | |||
) | ((pixel)->red=(pixel)->green=(pixel)->blue=(Quantum) (value)) |
Definition at line 75 of file pixel-accessor.h.
#define SetPixelGreen | ( | pixel, | |
value | |||
) | ((pixel)->green=(Quantum) (value)) |
Definition at line 77 of file pixel-accessor.h.
#define SetPixelIndex | ( | indexes, | |
value | |||
) | (*(indexes)=(IndexPacket) (value)) |
Definition at line 78 of file pixel-accessor.h.
#define SetPixelL | ( | pixel, | |
value | |||
) | ((pixel)->red=(Quantum) (value)) |
Definition at line 79 of file pixel-accessor.h.
#define SetPixelMagenta | ( | pixel, | |
value | |||
) | ((pixel)->green=(Quantum) (value)) |
Definition at line 80 of file pixel-accessor.h.
#define SetPixelOpacity | ( | pixel, | |
value | |||
) | ((pixel)->opacity=(Quantum) (value)) |
Definition at line 81 of file pixel-accessor.h.
#define SetPixelRed | ( | pixel, | |
value | |||
) | ((pixel)->red=(Quantum) (value)) |
Definition at line 82 of file pixel-accessor.h.
#define SetPixelRgb | ( | pixel, | |
packet | |||
) |
Definition at line 83 of file pixel-accessor.h.
#define SetPixelRGBA | ( | pixel, | |
packet | |||
) |
Definition at line 89 of file pixel-accessor.h.
#define SetPixelRGBO | ( | pixel, | |
packet | |||
) |
Definition at line 96 of file pixel-accessor.h.
#define SetPixelY | ( | pixel, | |
value | |||
) | ((pixel)->red=(Quantum) (value)) |
Definition at line 104 of file pixel-accessor.h.
#define SetPixelYellow | ( | pixel, | |
value | |||
) | ((pixel)->blue=(Quantum) (value)) |
Definition at line 103 of file pixel-accessor.h.
|
inlinestatic |
Definition at line 106 of file pixel-accessor.h.
Referenced by IsColorEqual(), IsMagickColorEqual(), IsMagickColorMatch(), IsMagickGray(), IsPixelGray(), and IsPixelMonochrome().
|
inlinestatic |
Definition at line 111 of file pixel-accessor.h.
References QuantumRange.
Referenced by CacheOffset(), ClampImageChannel(), ClassifyImageColors(), ColorToNodeId(), CompositeImageChannel(), FloydSteinbergDither(), RiemersmaDither(), SetImageChannelDepth(), and SparseColorImage().
|
inlinestatic |
Definition at line 138 of file pixel-accessor.h.
Referenced by AssignImageColors(), ExportGrayAlphaQuantum(), ExportGrayQuantum(), KuwaharaImageChannel(), and LocalContrastImage().
|
inlinestatic |
Definition at line 150 of file pixel-accessor.h.
References DecodePixelGamma(), and sRGBColorspace.
|
inlinestatic |
Definition at line 168 of file pixel-accessor.h.
References MagickFalse, MagickTrue, and QuantumRange.
Referenced by GetImageChannelDepth(), and GetImageChannelStatistics().
|
inlinestatic |
Definition at line 186 of file pixel-accessor.h.
References AbsolutePixelValue(), _PixelPacket::blue, _PixelPacket::green, MagickEpsilon, MagickFalse, MagickTrue, QuantumScale, and _PixelPacket::red.
Referenced by ColorizeImage(), DistortImage(), DrawPrimitive(), FrameImage(), IdentifyImageGray(), SetImageBackgroundColor(), SetPixelCacheVirtualMethod(), and TintImage().
|
inlinestatic |
Definition at line 200 of file pixel-accessor.h.
References AbsolutePixelValue(), _PixelPacket::blue, _PixelPacket::green, MagickEpsilon, MagickFalse, MagickTrue, QuantumRange, QuantumScale, and _PixelPacket::red.
Referenced by IdentifyImageGray(), and IdentifyImageMonochrome().
|
inlinestatic |
Definition at line 124 of file pixel-accessor.h.
References MagickEpsilon.
Referenced by AcquireResizeFilter(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), ApplyEvaluateOperator(), ApplyFunction(), ApplyPixelCompositeMask(), AutoThresholdImage(), ColorBurn(), ColorDodge(), ComplexImages(), CompositeDarken(), CompositeDifference(), CompositeIn(), CompositeLighten(), CompositeLinearDodge(), CompositeMinus(), CompositeModulusAdd(), CompositeModulusSubtract(), CompositeOut(), CompositeXor(), ConvertLuvToXYZ(), ConvertRGBToCMYK(), ConvertRGBToHSL(), ConvertRGBToHSV(), ConvertRGBToxyY(), ConvertxyYToRGB(), ConvertXYZToLuv(), DefineImageColormap(), DistortImage(), Divide(), DrawDashPolygon(), DrawGradientImage(), EmbossImage(), FilterImageChannel(), FxEvaluateSubexpression(), FxGetSymbol(), GammaImageChannel(), GaussJordanElimination(), GenerateDifferentialNoise(), GetCubeInfo(), GetImageChannelFeatures(), GetImageChannelMoments(), GetImageChannelStatistics(), GetImageQuantizeError(), GetMagickProperty(), GetMeanErrorPerPixel(), GetNormalizedCrossCorrelationDistortion(), GetOpacityPixel(), GetOptimalKernelWidth1D(), GetOptimalKernelWidth2D(), GetResizeFilterWeight(), GetStopColorOffset(), HorizontalFilter(), ImplodeImage(), ImportQuantumPixels(), InterpolateMagickPixelPacket(), InterpolatePixelColor(), InverseAffineMatrix(), InvertAffineCoefficients(), InvertPerspectiveCoefficients(), IsImagesEqual(), LevelPixel(), MagickCompositeOver(), MagickPixelCompositeOver(), MagickPixelCompositePlus(), MeanShiftImage(), MorphologyPrimitive(), MotionBlurImageChannel(), OptimalTau(), OptimizeLayerFrames(), ParseGeometry(), ParseMetaGeometry(), PegtopLight(), RemoveDuplicateLayers(), RGBTransformImage(), RotationalBlurImageChannel(), ScaleAnyToQuantum(), ScaleImage(), ScaleResampleFilter(), SelectiveBlurImageChannel(), SetImageAlphaChannel(), SharpenImageChannel(), SoftLight(), TraceArcPath(), TraceEllipse(), TraceStrokePolygon(), TransformRGBImage(), VerticalFilter(), VividLight(), and WaveImage().
|
inlinestatic |
Definition at line 220 of file pixel-accessor.h.
References _PixelPacket::blue, ClampToQuantum(), _PixelPacket::green, and _PixelPacket::red.
Referenced by IntensityCompare(), and TintImage().
|
inlinestatic |
Definition at line 232 of file pixel-accessor.h.
References ClampToQuantum(), and MagickFalse.