MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
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)
 
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 PixelChannelMapDestroyPixelChannelMap (PixelChannelMap *channel_map)
 
static double EncodeGamma (const double x)
 
MagickExport MagickRealType EncodePixelGamma (const MagickRealType pixel)
 
static void ExportCharPixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportDoublePixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportFloatPixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportLongPixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportLongLongPixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void ExportQuantumPixel (const Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
 
static void 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 void ImportCharPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception)
 
static void ImportDoublePixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception)
 
static void ImportFloatPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception)
 
static void ImportLongPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception)
 
static void ImportLongLongPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception)
 
static void ImportQuantumPixel (Image *image, const RectangleInfo *roi, const char *magick_restrict map, const QuantumType *quantum_map, const void *pixels, ExceptionInfo *exception)
 
static void 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 *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)
 
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)
 

Macro Definition Documentation

◆ GetChannelBit

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

Referenced by SetPixelChannelMask().

Function Documentation

◆ AcquirePixelChannelMap()

MagickExport PixelChannelMap* AcquirePixelChannelMap ( void  )

◆ AlphaBlendPixelInfo()

static void AlphaBlendPixelInfo ( const Image image,
const Quantum pixel,
PixelInfo pixel_info,
double *  alpha 
)
inlinestatic

◆ CatromWeights()

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

◆ ClonePixelChannelMap()

MagickExport PixelChannelMap* ClonePixelChannelMap ( PixelChannelMap channel_map)

Definition at line 133 of file pixel.c.

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

Referenced by CloneImage().

◆ ClonePixelInfo()

MagickExport PixelInfo* ClonePixelInfo ( const PixelInfo pixel)

Definition at line 170 of file pixel.c.

References AcquireQuantumMemory(), ResourceLimitFatalError, and ThrowFatalException.

Referenced by FxGetSymbol().

◆ ConformPixelInfo()

◆ DecodeGamma()

static double DecodeGamma ( const double  x)
inlinestatic

Definition at line 261 of file pixel.c.

Referenced by DecodePixelGamma().

◆ DecodePixelGamma()

◆ DestroyPixelChannelMap()

MagickExport PixelChannelMap* DestroyPixelChannelMap ( PixelChannelMap channel_map)

Definition at line 350 of file pixel.c.

References RelinquishMagickMemory().

Referenced by DestroyImage().

◆ EncodeGamma()

static double EncodeGamma ( const double  x)
inlinestatic

Definition at line 381 of file pixel.c.

Referenced by EncodePixelGamma().

◆ EncodePixelGamma()

◆ ExportCharPixel()

◆ ExportDoublePixel()

◆ ExportFloatPixel()

◆ ExportImagePixels()

◆ ExportLongLongPixel()

◆ ExportLongPixel()

◆ ExportQuantumPixel()

◆ ExportShortPixel()

◆ GetPixelInfo()

MagickExport void GetPixelInfo ( const Image image,
PixelInfo pixel 
)

◆ GetPixelInfoIntensity()

◆ GetPixelIntensity()

◆ ImportCharPixel()

◆ ImportDoublePixel()

◆ ImportFloatPixel()

◆ ImportImagePixels()

◆ ImportLongLongPixel()

◆ ImportLongPixel()

◆ ImportQuantumPixel()

◆ ImportShortPixel()

◆ InitializePixelChannelMap()

◆ InterpolatePixelChannel()

◆ InterpolatePixelChannels()

◆ InterpolatePixelInfo()

◆ IsFuzzyEquivalencePixel()

◆ IsFuzzyEquivalencePixelInfo()

◆ LogPixelChannels()

◆ MeshInterpolate()

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

Definition at line 4456 of file pixel.c.

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

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

◆ SetPixelChannelMask()

◆ SetPixelMetaChannels()

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

◆ SplineWeights()

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