MagickCore  7.0.0
pixel.c File Reference
Include dependency graph for pixel.c:

Go to the source code of this file.

Macros

#define GetChannelBit(mask, bit)   (((size_t) (mask) >> (size_t) (bit)) & 0x01)
 

Functions

MagickExport PixelChannelMapAcquirePixelChannelMap (void)
 
MagickExport PixelChannelMapClonePixelChannelMap (PixelChannelMap *channel_map)
 
MagickExport PixelInfoClonePixelInfo (const PixelInfo *pixel)
 
static double DecodeGamma (const double x)
 
MagickExport MagickRealType DecodePixelGamma (const MagickRealType pixel)
 
MagickExport PixelChannelMapDestroyPixelChannelMap (PixelChannelMap *channel_map)
 
static double EncodeGamma (const double x)
 
MagickExport MagickRealType EncodePixelGamma (const MagickRealType pixel)
 
static void ExportCharPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportDoublePixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportFloatPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportLongPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportLongLongPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportQuantumPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportShortPixel (Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
MagickExport MagickBooleanType ExportImagePixels (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 MagickRealType MagickMax (const MagickRealType x, const MagickRealType y)
 
static MagickRealType MagickMin (const MagickRealType x, const MagickRealType y)
 
MagickExport MagickRealType GetPixelIntensity (const Image *restrict image, const Quantum *restrict 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)
 
static void LogPixelChannels (const Image *image)
 
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 *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, 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)
 
MagickExport void SetPixelChannelMask (Image *image, const ChannelType channel_mask)
 
MagickExport MagickBooleanType SetPixelMetaChannels (Image *image, const size_t number_meta_channels, ExceptionInfo *exception)
 

Macro Definition Documentation

#define GetChannelBit (   mask,
  bit 
)    (((size_t) (mask) >> (size_t) (bit)) & 0x01)

Function Documentation

MagickExport PixelChannelMap* AcquirePixelChannelMap ( void  )
static void AlphaBlendPixelInfo ( const Image image,
const Quantum pixel,
PixelInfo pixel_info,
double *  alpha 
)
inlinestatic
static void CatromWeights ( const double  x,
double(*)  weights[4] 
)
inlinestatic
MagickExport PixelChannelMap* ClonePixelChannelMap ( PixelChannelMap channel_map)

Definition at line 131 of file pixel.c.

References AcquirePixelChannelMap(), CopyMagickMemory(), and MaxPixelChannels.

Referenced by CloneImage().

MagickExport PixelInfo* ClonePixelInfo ( const PixelInfo pixel)

Definition at line 168 of file pixel.c.

References AcquireQuantumMemory(), ResourceLimitFatalError, and ThrowFatalException.

Referenced by FxGetSymbol().

static double DecodeGamma ( const double  x)
inlinestatic

Definition at line 203 of file pixel.c.

Referenced by DecodePixelGamma().

MagickExport PixelChannelMap* DestroyPixelChannelMap ( PixelChannelMap channel_map)

Definition at line 292 of file pixel.c.

References RelinquishMagickMemory().

Referenced by DestroyImage().

static double EncodeGamma ( const double  x)
inlinestatic

Definition at line 323 of file pixel.c.

Referenced by EncodePixelGamma().

MagickExport MagickRealType EncodePixelGamma ( const MagickRealType  pixel)
static MagickRealType MagickMax ( const MagickRealType  x,
const MagickRealType  y 
)
inlinestatic
static MagickRealType MagickMin ( const MagickRealType  x,
const MagickRealType  y 
)
inlinestatic

Definition at line 2170 of file pixel.c.

Referenced by GetPixelIntensity().

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

Definition at line 4376 of file pixel.c.

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

Referenced by InterpolatePixelChannel(), InterpolatePixelChannels(), and InterpolatePixelInfo().

MagickExport MagickBooleanType SetPixelMetaChannels ( Image image,
const size_t  number_meta_channels,
ExceptionInfo exception 
)

Definition at line 6132 of file pixel.c.

References _Image::number_meta_channels, and SyncImagePixelCache().

Referenced by ChannelFxImage().

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