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

Go to the source code of this file.

Defines

#define LogPixelChannels(image)
#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 PixelChannelMapDestroyPixelChannelMap (PixelChannelMap *channel_map)
static void ExportCharPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
static void ExportDoublePixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
static void ExportFloatPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
static void ExportLongPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
static void ExportLongLongPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
static void ExportQuantumPixel (const Image *image, const RectangleInfo *roi, const char *restrict map, const QuantumType *quantum_map, void *pixels, ExceptionInfo *exception)
static void ExportShortPixel (const Image *image, const RectangleInfo *roi, const char *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)
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)
MagickExport void InitializePixelChannelMap (Image *image)
static double MagickMax (const MagickRealType x, const MagickRealType y)
static MagickRealType CubicWeightingFunction (const MagickRealType x)
static double MeshInterpolate (const PointInfo *delta, const double p, const double x, const double y)
static ssize_t NearestNeighbor (const MagickRealType x)
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, MagickRealType *alpha)
static void BicubicInterpolate (const PixelInfo *pixels, const double dx, PixelInfo *pixel)
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 SetPixelChannelMapMask (Image *image, const ChannelType channel_mask)
MagickExport ChannelType SetPixelChannelMask (Image *image, const ChannelType channel_mask)

Define Documentation

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

Definition at line 71 of file pixel.c.

Referenced by InitializePixelChannelMap(), and SetPixelChannelMapMask().


Function Documentation

MagickExport PixelChannelMap* AcquirePixelChannelMap ( void  )
static void AlphaBlendPixelInfo ( const Image image,
const Quantum pixel,
PixelInfo pixel_info,
MagickRealType alpha 
) [inline, static]
static void BicubicInterpolate ( const PixelInfo pixels,
const double  dx,
PixelInfo pixel 
) [static]
MagickExport PixelChannelMap* ClonePixelChannelMap ( PixelChannelMap channel_map)

Definition at line 218 of file pixel.c.

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

Referenced by CloneImage().

MagickExport PixelInfo* ClonePixelInfo ( const PixelInfo pixel)

Definition at line 255 of file pixel.c.

References AcquireQuantumMemory(), ThrowFatalException, and ResourceLimitFatalError.

Referenced by FxGetSymbol().

static MagickRealType CubicWeightingFunction ( const MagickRealType  x) [inline, static]

Definition at line 3984 of file pixel.c.

References MagickMax().

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

MagickExport PixelChannelMap* DestroyPixelChannelMap ( PixelChannelMap channel_map)

Definition at line 290 of file pixel.c.

References RelinquishMagickMemory().

Referenced by DestroyImage().

MagickExport MagickBooleanType IsFuzzyEquivalencePixel ( const Image source,
const Quantum p,
const Image destination,
const Quantum q 
)
static double MagickMax ( const MagickRealType  x,
const MagickRealType  y 
) [inline, static]
static double MeshInterpolate ( const PointInfo delta,
const double  p,
const double  x,
const double  y 
) [inline, static]

Definition at line 4001 of file pixel.c.

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

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

static ssize_t NearestNeighbor ( const MagickRealType  x) [inline, static]
MagickExport ChannelType SetPixelChannelMask ( Image image,
const ChannelType  channel_mask 
)