MagickCore  6.7.5
pixel.h File Reference
Include dependency graph for pixel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _PixelChannelMap
struct  _PixelInfo
struct  _PixelPacket

Defines

#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,
  GreenChannel = 0x0002, MagentaChannel = 0x0002, BlueChannel = 0x0004, YellowChannel = 0x0004,
  BlackChannel = 0x0008, AlphaChannel = 0x0010, OpacityChannel = 0x0010, IndexChannel = 0x0020,
  MaskChannel = 0x0040, MetaChannel = 0x0080, CompositeChannels = 0x002F, AllChannels = 0x7ffffff,
  TrueAlphaChannel = 0x0100, RGBChannels = 0x0200, GrayChannels = 0x0400, SyncChannels = 0x1000,
  DefaultChannels = ((AllChannels | SyncChannels) &~ AlphaChannel)
}
enum  PixelInterpolateMethod {
  UndefinedInterpolatePixel, AverageInterpolatePixel, BicubicInterpolatePixel, BilinearInterpolatePixel,
  FilterInterpolatePixel, IntegerInterpolatePixel, MeshInterpolatePixel, NearestNeighborInterpolatePixel,
  SplineInterpolatePixel
}
enum  PixelChannel {
  UndefinedPixelChannel = 0, RedPixelChannel = 0, CyanPixelChannel = 0, GrayPixelChannel = 0,
  YPixelChannel = 0, GreenPixelChannel = 1, MagentaPixelChannel = 1, CbPixelChannel = 1,
  BluePixelChannel = 2, YellowPixelChannel = 2, CrPixelChannel = 2, BlackPixelChannel = 3,
  AlphaPixelChannel = 4, IndexPixelChannel = 5, MaskPixelChannel = 6, MetaPixelChannel = 7,
  IntensityPixelChannel = MaxPixelChannels, CompositePixelChannel = MaxPixelChannels, SyncPixelChannel = MaxPixelChannels+1
}
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 *, const CacheView_ *, const PixelChannel, const PixelInterpolateMethod, const double, const double, double *, ExceptionInfo *)
MagickExport MagickBooleanType InterpolatePixelChannels (const Image *, const CacheView_ *, const Image *, 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 IsFuzzyEquivalencePixelInfo (const PixelInfo *, const PixelInfo *)
MagickExport PixelChannelMapAcquirePixelChannelMap (void)
MagickExport PixelChannelMapClonePixelChannelMap (PixelChannelMap *)
MagickExport PixelChannelMapDestroyPixelChannelMap (PixelChannelMap *)
MagickExport PixelInfoClonePixelInfo (const PixelInfo *)
MagickExport void InitializePixelChannelMap (Image *)
MagickExport void GetPixelInfo (const Image *, PixelInfo *)
MagickExport void SetPixelChannelMapMask (Image *, const ChannelType)

Define Documentation


Typedef Documentation

typedef struct _CacheView CacheView_

Definition at line 165 of file pixel.h.

typedef struct _PixelInfo PixelInfo
typedef struct _PixelPacket PixelPacket

Enumeration Type Documentation

Enumerator:
UndefinedChannel 
RedChannel 
GrayChannel 
CyanChannel 
GreenChannel 
MagentaChannel 
BlueChannel 
YellowChannel 
BlackChannel 
AlphaChannel 
OpacityChannel 
IndexChannel 
MaskChannel 
MetaChannel 
CompositeChannels 
AllChannels 
TrueAlphaChannel 
RGBChannels 
GrayChannels 
SyncChannels 
DefaultChannels 

Definition at line 30 of file pixel.h.

Enumerator:
UndefinedPixelChannel 
RedPixelChannel 
CyanPixelChannel 
GrayPixelChannel 
YPixelChannel 
GreenPixelChannel 
MagentaPixelChannel 
CbPixelChannel 
BluePixelChannel 
YellowPixelChannel 
CrPixelChannel 
BlackPixelChannel 
AlphaPixelChannel 
IndexPixelChannel 
MaskPixelChannel 
MetaPixelChannel 
IntensityPixelChannel 
CompositePixelChannel 
SyncPixelChannel 

Definition at line 71 of file pixel.h.

Enumerator:
UndefinedInterpolatePixel 
AverageInterpolatePixel 
BicubicInterpolatePixel 
BilinearInterpolatePixel 
FilterInterpolatePixel 
IntegerInterpolatePixel 
MeshInterpolatePixel 
NearestNeighborInterpolatePixel 
SplineInterpolatePixel 

Definition at line 58 of file pixel.h.

enum PixelTrait
Enumerator:
UndefinedPixelTrait 
CopyPixelTrait 
UpdatePixelTrait 
BlendPixelTrait 

Definition at line 94 of file pixel.h.

Enumerator:
UndefinedPixel 
CharPixel 
DoublePixel 
FloatPixel 
LongPixel 
LongLongPixel 
QuantumPixel 
ShortPixel 

Definition at line 153 of file pixel.h.


Function Documentation

MagickExport PixelChannelMap* AcquirePixelChannelMap ( void  )
MagickExport PixelChannelMap * ClonePixelChannelMap ( PixelChannelMap )
MagickExport PixelInfo* ClonePixelInfo ( const PixelInfo )

Definition at line 255 of file pixel.c.

References AcquireQuantumMemory(), ThrowFatalException, and ResourceLimitFatalError.

Referenced by FxGetSymbol().

MagickExport PixelChannelMap * DestroyPixelChannelMap ( PixelChannelMap )

Definition at line 290 of file pixel.c.

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 MagickBooleanType ImportImagePixels ( Image ,
const ssize_t  ,
const ssize_t  ,
const size_t  ,
const size_t  ,
const char *  ,
const StorageType  ,
const void *  ,
ExceptionInfo  
)
MagickExport void InitializePixelChannelMap ( Image )
MagickExport MagickBooleanType InterpolatePixelChannel ( const Image ,
const CacheView_ ,
const PixelChannel  ,
const PixelInterpolateMethod  ,
const double  ,
const double  ,
double *  ,
ExceptionInfo  
)
MagickExport MagickBooleanType InterpolatePixelChannels ( const Image ,
const CacheView_ ,
const Image ,
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 ChannelType SetPixelChannelMask ( Image ,
const ChannelType   
)