MagickCore 6.9.12
pixel.c File Reference
#include "magick/studio.h"
#include "magick/property.h"
#include "magick/blob.h"
#include "magick/blob-private.h"
#include "magick/color-private.h"
#include "magick/draw.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/cache.h"
#include "magick/colorspace-private.h"
#include "magick/constitute.h"
#include "magick/delegate.h"
#include "magick/geometry.h"
#include "magick/list.h"
#include "magick/magick.h"
#include "magick/memory_.h"
#include "magick/memory-private.h"
#include "magick/monitor.h"
#include "magick/option.h"
#include "magick/pixel.h"
#include "magick/pixel-private.h"
#include "magick/quantum.h"
#include "magick/resource_.h"
#include "magick/semaphore.h"
#include "magick/statistic.h"
#include "magick/stream.h"
#include "magick/string_.h"
#include "magick/transform.h"
#include "magick/utility.h"
Include dependency graph for pixel.c:

Go to the source code of this file.

Functions

MagickExport MagickPixelPacketCloneMagickPixelPacket (const MagickPixelPacket *pixel)
 
MagickExport void ConformMagickPixelPacket (Image *image, const MagickPixelPacket *source, MagickPixelPacket *destination, ExceptionInfo *exception)
 
static double DecodeGamma (const double x)
 
MagickExport MagickRealType DecodePixelGamma (const MagickRealType pixel)
 
static double EncodeGamma (const double x)
 
MagickExport MagickRealType EncodePixelGamma (const MagickRealType pixel)
 
static MagickBooleanType ExportCharPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static MagickBooleanType ExportDoublePixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static MagickBooleanType ExportFloatPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static MagickBooleanType ExportIntegerPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static MagickBooleanType ExportLongPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static MagickBooleanType ExportQuantumPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static MagickBooleanType ExportShortPixel (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 MagickRealType GetMagickPixelIntensity (const Image *image, const MagickPixelPacket *magick_restrict pixel)
 
MagickExport void GetMagickPixelPacket (const Image *image, MagickPixelPacket *pixel)
 
MagickExport MagickRealType GetPixelIntensity (const Image *image, const PixelPacket *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 ImportIntegerPixel (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 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)
 
static void AlphaBlendMagickPixelPacket (const Image *image, const PixelPacket *color, const IndexPacket *indexes, MagickPixelPacket *pixel, MagickRealType *alpha)
 
static void CatromWeights (const MagickRealType x, MagickRealType(*weights)[4])
 
static void SplineWeights (const MagickRealType x, MagickRealType(*weights)[4])
 
static double MeshInterpolate (const PointInfo *delta, const double p, const double x, const double y)
 
MagickExport MagickBooleanType InterpolateMagickPixelPacket (const Image *magick_restrict image, const CacheView *image_view, const InterpolatePixelMethod method, const double x, const double y, MagickPixelPacket *pixel, ExceptionInfo *exception)
 

Function Documentation

◆ AlphaBlendMagickPixelPacket()

◆ CatromWeights()

static void CatromWeights ( const MagickRealType  x,
MagickRealType(*)  weights[4] 
)
inlinestatic

Definition at line 4383 of file pixel.c.

Referenced by InterpolateMagickPixelPacket().

◆ CloneMagickPixelPacket()

MagickExport MagickPixelPacket * CloneMagickPixelPacket ( const MagickPixelPacket pixel)

Definition at line 93 of file pixel.c.

References AcquireAlignedMemory(), MagickAssumeAligned, ResourceLimitFatalError, and ThrowFatalException.

Referenced by FxGetSymbol().

◆ ConformMagickPixelPacket()

◆ DecodeGamma()

static double DecodeGamma ( const double  x)
inlinestatic

Definition at line 188 of file pixel.c.

Referenced by DecodePixelGamma().

◆ DecodePixelGamma()

◆ EncodeGamma()

static double EncodeGamma ( const double  x)
inlinestatic

Definition at line 277 of file pixel.c.

Referenced by EncodePixelGamma().

◆ EncodePixelGamma()

◆ ExportCharPixel()

◆ ExportDoublePixel()

◆ ExportFloatPixel()

◆ ExportImagePixels()

◆ ExportIntegerPixel()

◆ ExportLongPixel()

◆ ExportQuantumPixel()

◆ ExportShortPixel()

◆ GetMagickPixelIntensity()

◆ GetMagickPixelPacket()

MagickExport void GetMagickPixelPacket ( const Image image,
MagickPixelPacket pixel 
)

Definition at line 2233 of file pixel.c.

References _MagickPixelPacket::blue, _Image::colorspace, _MagickPixelPacket::colorspace, _Image::depth, _MagickPixelPacket::depth, DirectClass, _Image::fuzz, _MagickPixelPacket::fuzz, _MagickPixelPacket::green, _MagickPixelPacket::index, MAGICKCORE_QUANTUM_DEPTH, MagickFalse, _Image::matte, _MagickPixelPacket::matte, _MagickPixelPacket::opacity, OpaqueOpacity, _MagickPixelPacket::red, sRGBColorspace, _Image::storage_class, and _MagickPixelPacket::storage_class.

Referenced by AcquireColorCache(), AcquirePixelTLS(), AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), BlackThresholdImageChannel(), CheckImageColors(), ClassifyImageColors(), ClutImageChannel(), CompareImageBounds(), CompareImageChannels(), CompositeImageChannel(), ConnectedComponentsImage(), DistortImage(), DrawAffineImage(), DrawGradientImage(), EvaluateImages(), FilterImageChannel(), FloodfillPaintImage(), FrameImage(), FxGetSymbol(), GetEdgeBackgroundFactor(), GetImageBackgroundColor(), GetImageBoundingBox(), GetImageChannelMoments(), GetImageChannelRange(), GetImageDynamicThreshold(), GetImageProperty(), GetMedianPixelList(), GetNumberColors(), GetOneVirtualMagickPixel(), GradientImage(), HaldClutImageChannel(), IdentifyImage(), ImplodeImage(), InterpolateMagickPixelPacket(), InterpolatePixelColor(), InterpolativeResizeImage(), IsHighDynamicRangeImage(), IsHistogramImage(), IsImageSimilar(), KuwaharaImageChannel(), MaskPixelCacheNexus(), MeanShiftImage(), MorphologyPrimitiveDirect(), MotionBlurImageChannel(), OpaquePaintImageChannel(), PolynomialImageChannel(), QueryColorname(), QueryMagickColorCompliance(), RandomThresholdImageChannel(), ResamplePixelColor(), RGBTransformImage(), RotationalBlurImageChannel(), ScaleImage(), SelectiveBlurImageChannel(), SetImageAlphaChannel(), SetImageBackgroundColor(), SketchImage(), SparseColorImage(), SpreadImage(), StatisticImageChannel(), SwirlImage(), ThresholdImageChannel(), TransformRGBImage(), TransparentPaintImage(), TransparentPaintImageChroma(), UnsharpMaskImageChannel(), WaveImage(), WhiteThresholdImageChannel(), XShearImage(), and YShearImage().

◆ GetPixelIntensity()

◆ ImportCharPixel()

◆ ImportDoublePixel()

◆ ImportFloatPixel()

◆ ImportImagePixels()

◆ ImportIntegerPixel()

◆ ImportLongPixel()

◆ ImportQuantumPixel()

◆ ImportShortPixel()

◆ InterpolateMagickPixelPacket()

MagickExport MagickBooleanType InterpolateMagickPixelPacket ( const Image *magick_restrict  image,
const CacheView image_view,
const InterpolatePixelMethod  method,
const double  x,
const double  y,
MagickPixelPacket pixel,
ExceptionInfo exception 
)

◆ MeshInterpolate()

static double MeshInterpolate ( const PointInfo delta,
const double  p,
const double  x,
const double  y 
)
inlinestatic

Definition at line 4434 of file pixel.c.

References _PointInfo::x, and _PointInfo::y.

Referenced by InterpolateMagickPixelPacket().

◆ SplineWeights()

static void SplineWeights ( const MagickRealType  x,
MagickRealType(*)  weights[4] 
)
inlinestatic

Definition at line 4412 of file pixel.c.

Referenced by InterpolateMagickPixelPacket().