pixel.c File Reference

#include "MagickCore/studio.h"
#include "MagickCore/property.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/color-private.h"
#include "MagickCore/colorspace-private.h"
#include "MagickCore/draw.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/cache.h"
#include "MagickCore/constitute.h"
#include "MagickCore/delegate.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/monitor.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/pixel-private.h"
#include "MagickCore/quantum.h"
#include "MagickCore/quantum-private.h"
#include "MagickCore/resource_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/statistic.h"
#include "MagickCore/stream.h"
#include "MagickCore/string_.h"
#include "MagickCore/transform.h"
#include "MagickCore/utility.h"

Defines

#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 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 double ConstrainPixelOffset (double x)
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)

Define 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 
) [inline, static]
static void CatromWeights ( const double  x,
double(*)  weights[4] 
) [inline, static]
MagickExport PixelChannelMap* ClonePixelChannelMap ( PixelChannelMap channel_map  ) 

References AcquirePixelChannelMap(), and MaxPixelChannels.

Referenced by CloneImage().

MagickExport PixelInfo* ClonePixelInfo ( const PixelInfo pixel  ) 
MagickExport void ConformPixelInfo ( Image image,
const PixelInfo source,
PixelInfo destination,
ExceptionInfo exception 
)
static double ConstrainPixelOffset ( double  x  )  [inline, static]
static double DecodeGamma ( const double  x  )  [inline, static]

Referenced by DecodePixelGamma().

MagickExport MagickRealType DecodePixelGamma ( const MagickRealType  pixel  ) 
MagickExport PixelChannelMap* DestroyPixelChannelMap ( PixelChannelMap channel_map  ) 

References RelinquishMagickMemory().

Referenced by DestroyImage().

static double EncodeGamma ( const double  x  )  [inline, static]

Referenced by EncodePixelGamma().

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]
static MagickBooleanType ExportDoublePixel ( const Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
void *  pixels,
ExceptionInfo exception 
) [static]
static MagickBooleanType ExportFloatPixel ( const Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
void *  pixels,
ExceptionInfo exception 
) [static]
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 
)
static MagickBooleanType ExportLongLongPixel ( const Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
void *  pixels,
ExceptionInfo exception 
) [static]
static MagickBooleanType ExportLongPixel ( const Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
void *  pixels,
ExceptionInfo exception 
) [static]
static MagickBooleanType ExportQuantumPixel ( const Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
void *  pixels,
ExceptionInfo exception 
) [static]
static MagickBooleanType ExportShortPixel ( const Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
void *  pixels,
ExceptionInfo exception 
) [static]
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]
static MagickBooleanType ImportDoublePixel ( Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
const void *  pixels,
ExceptionInfo exception 
) [static]
static MagickBooleanType ImportFloatPixel ( Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
const void *  pixels,
ExceptionInfo exception 
) [static]
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 MagickBooleanType ImportLongLongPixel ( Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
const void *  pixels,
ExceptionInfo exception 
) [static]
static MagickBooleanType ImportLongPixel ( Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
const void *  pixels,
ExceptionInfo exception 
) [static]
static MagickBooleanType ImportQuantumPixel ( Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
const void *  pixels,
ExceptionInfo exception 
) [static]
static MagickBooleanType ImportShortPixel ( Image image,
const RectangleInfo roi,
const char *magick_restrict  map,
const QuantumType quantum_map,
const void *  pixels,
ExceptionInfo exception 
) [static]
MagickExport void InitializePixelChannelMap ( Image image  ) 
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 
)
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  )  [static]
static double MeshInterpolate ( const PointInfo delta,
const double  p,
const double  x,
const double  y 
) [inline, static]
MagickExport ChannelType SetPixelChannelMask ( Image image,
const ChannelType  channel_mask 
)
MagickExport MagickBooleanType SetPixelMetaChannels ( Image image,
const size_t  number_meta_channels,
ExceptionInfo exception 
)
static void SplineWeights ( const double  x,
double(*)  weights[4] 
) [inline, static]

Generated on 31 Oct 2019 for MagickCore by  doxygen 1.6.1