MagickCore  7.0.10
Convert, Edit, Or Compose Bitmap Images
pixel.h File Reference

Go to the source code of this file.

Data Structures

struct  _PixelChannelMap
 
struct  _PixelInfo
 
struct  _PixelPacket
 

Macros

#define MaxPixelChannels   32
 

Typedefs

typedef struct _PixelChannelMap PixelChannelMap
 
typedef struct _PixelInfo PixelInfo
 
typedef struct _PixelPacket PixelPacket
 
typedef struct _CacheView CacheView_
 

Enumerations

enum  ChannelType {
  UndefinedChannel = 0x0000, RedChannel = 0x0001, GrayChannel = 0x0001, CyanChannel = 0x0001,
  LChannel = 0x0001, GreenChannel = 0x0002, MagentaChannel = 0x0002, aChannel = 0x0002,
  BlueChannel = 0x0004, bChannel = 0x0002, YellowChannel = 0x0004, BlackChannel = 0x0008,
  AlphaChannel = 0x0010, OpacityChannel = 0x0010, IndexChannel = 0x0020, ReadMaskChannel = 0x0040,
  WriteMaskChannel = 0x0080, MetaChannel = 0x0100, CompositeMaskChannel = 0x0200, CompositeChannels = 0x001F,
  AllChannels = 0x7ffffff, TrueAlphaChannel = 0x0100, RGBChannels = 0x0200, GrayChannels = 0x0400,
  SyncChannels = 0x20000, DefaultChannels = AllChannels
}
 
enum  PixelChannel {
  UndefinedPixelChannel = 0, RedPixelChannel = 0, CyanPixelChannel = 0, GrayPixelChannel = 0,
  LPixelChannel = 0, LabelPixelChannel = 0, YPixelChannel = 0, aPixelChannel = 1,
  GreenPixelChannel = 1, MagentaPixelChannel = 1, CbPixelChannel = 1, bPixelChannel = 2,
  BluePixelChannel = 2, YellowPixelChannel = 2, CrPixelChannel = 2, BlackPixelChannel = 3,
  AlphaPixelChannel = 4, IndexPixelChannel = 5, ReadMaskPixelChannel = 6, WriteMaskPixelChannel = 7,
  MetaPixelChannel = 8, CompositeMaskPixelChannel = 9, IntensityPixelChannel = MaxPixelChannels, CompositePixelChannel = MaxPixelChannels,
  SyncPixelChannel = MaxPixelChannels+1
}
 
enum  PixelIntensityMethod {
  UndefinedPixelIntensityMethod = 0, AveragePixelIntensityMethod, BrightnessPixelIntensityMethod, LightnessPixelIntensityMethod,
  MSPixelIntensityMethod, Rec601LumaPixelIntensityMethod, Rec601LuminancePixelIntensityMethod, Rec709LumaPixelIntensityMethod,
  Rec709LuminancePixelIntensityMethod, RMSPixelIntensityMethod
}
 
enum  PixelInterpolateMethod {
  UndefinedInterpolatePixel, AverageInterpolatePixel, Average9InterpolatePixel, Average16InterpolatePixel,
  BackgroundInterpolatePixel, BilinearInterpolatePixel, BlendInterpolatePixel, CatromInterpolatePixel,
  IntegerInterpolatePixel, MeshInterpolatePixel, NearestInterpolatePixel, SplineInterpolatePixel
}
 
enum  PixelMask { UndefinedPixelMask = 0x000000, ReadPixelMask = 0x000001, WritePixelMask = 0x000002, CompositePixelMask = 0x000004 }
 
enum  PixelTrait { UndefinedPixelTrait = 0x000000, CopyPixelTrait = 0x000001, UpdatePixelTrait = 0x000002, BlendPixelTrait = 0x000004 }
 
enum  StorageType {
  UndefinedPixel, CharPixel, DoublePixel, FloatPixel,
  LongPixel, LongLongPixel, QuantumPixel, ShortPixel
}
 

Functions

MagickExport ChannelType SetPixelChannelMask (Image *, const ChannelType)
 
MagickExport MagickBooleanType ExportImagePixels (const Image *, const ssize_t, const ssize_t, const size_t, const size_t, const char *, const StorageType, void *, ExceptionInfo *)
 
MagickExport MagickBooleanType ImportImagePixels (Image *, const ssize_t, const ssize_t, const size_t, const size_t, const char *, const StorageType, const void *, ExceptionInfo *)
 
MagickExport MagickBooleanType InterpolatePixelChannel (const Image *magick_restrict, const CacheView_ *, const PixelChannel, const PixelInterpolateMethod, const double, const double, double *, ExceptionInfo *)
 
MagickExport MagickBooleanType InterpolatePixelChannels (const Image *magick_restrict, const CacheView_ *, const Image *magick_restrict, const PixelInterpolateMethod, const double, const double, Quantum *, ExceptionInfo *)
 
MagickExport MagickBooleanType InterpolatePixelInfo (const Image *, const CacheView_ *, const PixelInterpolateMethod, const double, const double, PixelInfo *, ExceptionInfo *)
 
MagickExport MagickBooleanType IsFuzzyEquivalencePixel (const Image *, const Quantum *, const Image *, const Quantum *) magick_attribute((__pure__))
 
MagickExport MagickBooleanType magick_attribute ((__pure__))
 
MagickExport MagickBooleanType SetPixelMetaChannels (Image *, const size_t, ExceptionInfo *)
 
MagickExport MagickRealType GetPixelInfoIntensity (const Image *magick_restrict, const PixelInfo *magick_restrict) magick_hot_spot
 
MagickExport MagickRealType GetPixelIntensity (const Image *magick_restrict, const Quantum *magick_restrict) magick_hot_spot
 
MagickExport PixelChannelMapAcquirePixelChannelMap (void)
 
MagickExport PixelChannelMapClonePixelChannelMap (PixelChannelMap *)
 
MagickExport PixelChannelMapDestroyPixelChannelMap (PixelChannelMap *)
 
MagickExport PixelInfoClonePixelInfo (const PixelInfo *)
 
MagickExport MagickRealType DecodePixelGamma (const MagickRealType) magick_hot_spot
 
MagickExport MagickRealType EncodePixelGamma (const MagickRealType) magick_hot_spot
 
MagickExport void ConformPixelInfo (Image *, const PixelInfo *, PixelInfo *, ExceptionInfo *)
 
MagickExport void GetPixelInfo (const Image *, PixelInfo *)
 
MagickExport void InitializePixelChannelMap (Image *)
 

Macro Definition Documentation

Typedef Documentation

typedef struct _CacheView CacheView_
typedef struct _PixelInfo PixelInfo
typedef struct _PixelPacket PixelPacket

Enumeration Type Documentation

Enumerator
UndefinedChannel 
RedChannel 
GrayChannel 
CyanChannel 
LChannel 
GreenChannel 
MagentaChannel 
aChannel 
BlueChannel 
bChannel 
YellowChannel 
BlackChannel 
AlphaChannel 
OpacityChannel 
IndexChannel 
ReadMaskChannel 
WriteMaskChannel 
MetaChannel 
CompositeMaskChannel 
CompositeChannels 
AllChannels 
TrueAlphaChannel 
RGBChannels 
GrayChannels 
SyncChannels 
DefaultChannels 
Enumerator
UndefinedPixelChannel 
RedPixelChannel 
CyanPixelChannel 
GrayPixelChannel 
LPixelChannel 
LabelPixelChannel 
YPixelChannel 
aPixelChannel 
GreenPixelChannel 
MagentaPixelChannel 
CbPixelChannel 
bPixelChannel 
BluePixelChannel 
YellowPixelChannel 
CrPixelChannel 
BlackPixelChannel 
AlphaPixelChannel 
IndexPixelChannel 
ReadMaskPixelChannel 
WriteMaskPixelChannel 
MetaPixelChannel 
CompositeMaskPixelChannel 
IntensityPixelChannel 
CompositePixelChannel 
SyncPixelChannel 
Enumerator
UndefinedPixelIntensityMethod 
AveragePixelIntensityMethod 
BrightnessPixelIntensityMethod 
LightnessPixelIntensityMethod 
MSPixelIntensityMethod 
Rec601LumaPixelIntensityMethod 
Rec601LuminancePixelIntensityMethod 
Rec709LumaPixelIntensityMethod 
Rec709LuminancePixelIntensityMethod 
RMSPixelIntensityMethod 
Enumerator
UndefinedInterpolatePixel 
AverageInterpolatePixel 
Average9InterpolatePixel 
Average16InterpolatePixel 
BackgroundInterpolatePixel 
BilinearInterpolatePixel 
BlendInterpolatePixel 
CatromInterpolatePixel 
IntegerInterpolatePixel 
MeshInterpolatePixel 
NearestInterpolatePixel 
SplineInterpolatePixel 
enum PixelMask
Enumerator
UndefinedPixelMask 
ReadPixelMask 
WritePixelMask 
CompositePixelMask 
enum PixelTrait
Enumerator
UndefinedPixelTrait 
CopyPixelTrait 
UpdatePixelTrait 
BlendPixelTrait 
Enumerator
UndefinedPixel 
CharPixel 
DoublePixel 
FloatPixel 
LongPixel 
LongLongPixel 
QuantumPixel 
ShortPixel 

Function Documentation

MagickExport PixelChannelMap* AcquirePixelChannelMap ( void  )
MagickExport PixelChannelMap * ClonePixelChannelMap ( PixelChannelMap )
MagickExport void ConformPixelInfo ( Image ,
const PixelInfo ,
PixelInfo ,
ExceptionInfo  
)
MagickExport MagickRealType DecodePixelGamma ( const MagickRealType  )
MagickExport PixelChannelMap * DestroyPixelChannelMap ( PixelChannelMap )

References RelinquishMagickMemory().

Referenced by DestroyImage().

MagickExport MagickBooleanType ExportImagePixels ( const Image ,
const ssize_t  ,
const ssize_t  ,
const size_t  ,
const size_t  ,
const char *  ,
const StorageType  ,
void *  ,
ExceptionInfo  
)
MagickExport void GetPixelInfo ( const Image ,
PixelInfo  
)
MagickExport MagickRealType GetPixelInfoIntensity ( const Image magick_restrict,
const PixelInfo magick_restrict 
)
MagickExport MagickRealType GetPixelIntensity ( const Image magick_restrict,
const Quantum magick_restrict 
)
MagickExport MagickBooleanType ImportImagePixels ( Image ,
const ssize_t  ,
const ssize_t  ,
const size_t  ,
const size_t  ,
const char *  ,
const StorageType  ,
const void *  ,
ExceptionInfo  
)
MagickExport MagickBooleanType InterpolatePixelChannel ( const Image magick_restrict,
const CacheView_ ,
const PixelChannel  ,
const PixelInterpolateMethod  ,
const double  ,
const double  ,
double *  ,
ExceptionInfo  
)
MagickExport MagickBooleanType InterpolatePixelChannels ( const Image magick_restrict,
const CacheView_ ,
const Image magick_restrict,
const PixelInterpolateMethod  ,
const double  ,
const double  ,
Quantum ,
ExceptionInfo  
)
MagickExport MagickBooleanType InterpolatePixelInfo ( const Image ,
const CacheView_ ,
const PixelInterpolateMethod  ,
const double  ,
const double  ,
PixelInfo ,
ExceptionInfo  
)
MagickExport MagickBooleanType IsFuzzyEquivalencePixel ( const Image ,
const Quantum ,
const Image ,
const Quantum  
)
MagickExport MagickBooleanType magick_attribute ( (__pure__)  )
MagickExport MagickBooleanType SetPixelMetaChannels ( Image ,
const size_t  ,
ExceptionInfo  
)