MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
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
 

Macros

#define MaxPixelChannels   64
 

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 , MetaPixelChannels = 10 , 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 IsFuzzyEquivalencePixelInfo (const PixelInfo *, const PixelInfo *) magick_attribute((__pure__))
 
MagickExport MagickBooleanType SetPixelMetaChannels (Image *, const size_t, ExceptionInfo *)
 
MagickExport MagickBooleanType SortImagePixels (Image *, 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

◆ MaxPixelChannels

#define MaxPixelChannels   64

Definition at line 27 of file pixel.h.

Typedef Documentation

◆ CacheView_

typedef struct _CacheView CacheView_

Definition at line 213 of file pixel.h.

◆ PixelChannelMap

◆ PixelInfo

typedef struct _PixelInfo PixelInfo

◆ PixelPacket

typedef struct _PixelPacket PixelPacket

Enumeration Type Documentation

◆ ChannelType

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 

Definition at line 33 of file pixel.h.

◆ PixelChannel

Enumerator
UndefinedPixelChannel 
RedPixelChannel 
CyanPixelChannel 
GrayPixelChannel 
LPixelChannel 
LabelPixelChannel 
YPixelChannel 
aPixelChannel 
GreenPixelChannel 
MagentaPixelChannel 
CbPixelChannel 
bPixelChannel 
BluePixelChannel 
YellowPixelChannel 
CrPixelChannel 
BlackPixelChannel 
AlphaPixelChannel 
IndexPixelChannel 
ReadMaskPixelChannel 
WriteMaskPixelChannel 
MetaPixelChannel 
CompositeMaskPixelChannel 
MetaPixelChannels 
IntensityPixelChannel 
CompositePixelChannel 
SyncPixelChannel 

Definition at line 70 of file pixel.h.

◆ PixelIntensityMethod

Enumerator
UndefinedPixelIntensityMethod 
AveragePixelIntensityMethod 
BrightnessPixelIntensityMethod 
LightnessPixelIntensityMethod 
MSPixelIntensityMethod 
Rec601LumaPixelIntensityMethod 
Rec601LuminancePixelIntensityMethod 
Rec709LumaPixelIntensityMethod 
Rec709LuminancePixelIntensityMethod 
RMSPixelIntensityMethod 

Definition at line 100 of file pixel.h.

◆ PixelInterpolateMethod

Enumerator
UndefinedInterpolatePixel 
AverageInterpolatePixel 
Average9InterpolatePixel 
Average16InterpolatePixel 
BackgroundInterpolatePixel 
BilinearInterpolatePixel 
BlendInterpolatePixel 
CatromInterpolatePixel 
IntegerInterpolatePixel 
MeshInterpolatePixel 
NearestInterpolatePixel 
SplineInterpolatePixel 

Definition at line 114 of file pixel.h.

◆ PixelMask

enum PixelMask
Enumerator
UndefinedPixelMask 
ReadPixelMask 
WritePixelMask 
CompositePixelMask 

Definition at line 130 of file pixel.h.

◆ PixelTrait

enum PixelTrait
Enumerator
UndefinedPixelTrait 
CopyPixelTrait 
UpdatePixelTrait 
BlendPixelTrait 

Definition at line 138 of file pixel.h.

◆ StorageType

Enumerator
UndefinedPixel 
CharPixel 
DoublePixel 
FloatPixel 
LongPixel 
LongLongPixel 
QuantumPixel 
ShortPixel 

Definition at line 146 of file pixel.h.

Function Documentation

◆ AcquirePixelChannelMap()

MagickExport PixelChannelMap * AcquirePixelChannelMap ( void  )

◆ ClonePixelChannelMap()

MagickExport PixelChannelMap * ClonePixelChannelMap ( PixelChannelMap )

◆ ClonePixelInfo()

MagickExport PixelInfo * ClonePixelInfo ( const PixelInfo pixel)

Definition at line 170 of file pixel.c.

References AcquireMagickMemory(), ResourceLimitFatalError, and ThrowFatalException.

◆ ConformPixelInfo()

MagickExport void ConformPixelInfo ( Image ,
const PixelInfo ,
PixelInfo ,
ExceptionInfo  
)

◆ DecodePixelGamma()

MagickExport MagickRealType DecodePixelGamma ( const  MagickRealType)

◆ DestroyPixelChannelMap()

MagickExport PixelChannelMap * DestroyPixelChannelMap ( PixelChannelMap channel_map)

Definition at line 350 of file pixel.c.

References RelinquishMagickMemory().

Referenced by DestroyImage().

◆ EncodePixelGamma()

◆ ExportImagePixels()

MagickExport MagickBooleanType ExportImagePixels ( const Image ,
const  ssize_t,
const  ssize_t,
const  size_t,
const  size_t,
const char *  ,
const  StorageType,
void *  ,
ExceptionInfo  
)

◆ GetPixelInfo()

MagickExport void GetPixelInfo ( const Image ,
PixelInfo  
)

◆ GetPixelInfoIntensity()

MagickExport MagickRealType GetPixelInfoIntensity ( const Image magick_restrict,
const PixelInfo magick_restrict 
)

◆ GetPixelIntensity()

MagickExport MagickRealType GetPixelIntensity ( const Image magick_restrict,
const Quantum magick_restrict 
)

◆ ImportImagePixels()

MagickExport MagickBooleanType ImportImagePixels ( Image ,
const  ssize_t,
const  ssize_t,
const  size_t,
const  size_t,
const char *  ,
const  StorageType,
const void *  ,
ExceptionInfo  
)

◆ InitializePixelChannelMap()

◆ InterpolatePixelChannel()

MagickExport MagickBooleanType InterpolatePixelChannel ( const Image magick_restrict,
const CacheView_ ,
const  PixelChannel,
const  PixelInterpolateMethod,
const double  ,
const double  ,
double *  ,
ExceptionInfo  
)

◆ InterpolatePixelChannels()

MagickExport MagickBooleanType InterpolatePixelChannels ( const Image magick_restrict,
const CacheView_ ,
const Image magick_restrict,
const  PixelInterpolateMethod,
const double  ,
const double  ,
Quantum ,
ExceptionInfo  
)

◆ InterpolatePixelInfo()

MagickExport MagickBooleanType InterpolatePixelInfo ( const Image ,
const CacheView_ ,
const  PixelInterpolateMethod,
const double  ,
const double  ,
PixelInfo ,
ExceptionInfo  
)

◆ IsFuzzyEquivalencePixel()

MagickExport MagickBooleanType IsFuzzyEquivalencePixel ( const Image ,
const Quantum ,
const Image ,
const Quantum  
)

◆ IsFuzzyEquivalencePixelInfo()

MagickExport MagickBooleanType IsFuzzyEquivalencePixelInfo ( const PixelInfo ,
const PixelInfo  
)

◆ SetPixelChannelMask()

◆ SetPixelMetaChannels()

MagickExport MagickBooleanType SetPixelMetaChannels ( Image ,
const  size_t,
ExceptionInfo  
)

◆ SortImagePixels()