MagickCore 7.1.0
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)
 
#define SolarizeImageTag   "Solarize/Image"
 

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 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)
 

Macro Definition Documentation

◆ GetChannelBit

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

◆ SolarizeImageTag

#define SolarizeImageTag   "Solarize/Image"

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(), and MaxPixelChannels.

Referenced by CloneImage().

◆ ClonePixelInfo()

MagickExport PixelInfo * ClonePixelInfo ( const PixelInfo pixel)

Definition at line 170 of file pixel.c.

References AcquireMagickMemory(), ResourceLimitFatalError, and ThrowFatalException.

◆ 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()

◆ 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 4487 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 
)

◆ SortImagePixels()

◆ SplineWeights()

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