MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
quantum.c File Reference
Include dependency graph for quantum.c:

Go to the source code of this file.

Macros

#define QuantumSignature   0xab
 

Functions

static void DestroyQuantumPixels (QuantumInfo *)
 
MagickExport QuantumInfoAcquireQuantumInfo (const ImageInfo *image_info, Image *image)
 
static MagickBooleanType AcquireQuantumPixels (QuantumInfo *quantum_info, const size_t extent)
 
MagickExport QuantumInfoDestroyQuantumInfo (QuantumInfo *quantum_info)
 
MagickExport size_t GetQuantumExtent (const Image *image, const QuantumInfo *quantum_info, const QuantumType quantum_type)
 
MagickExport EndianType GetQuantumEndian (const QuantumInfo *quantum_info)
 
MagickExport QuantumFormatType GetQuantumFormat (const QuantumInfo *quantum_info)
 
MagickExport void GetQuantumInfo (const ImageInfo *image_info, QuantumInfo *quantum_info)
 
MagickExport unsigned char * GetQuantumPixels (const QuantumInfo *quantum_info)
 
MagickExport QuantumType GetQuantumType (Image *image, ExceptionInfo *exception)
 
MagickPrivate void ResetQuantumState (QuantumInfo *quantum_info)
 
MagickExport void SetQuantumAlphaType (QuantumInfo *quantum_info, const QuantumAlphaType type)
 
MagickExport MagickBooleanType SetQuantumDepth (const Image *image, QuantumInfo *quantum_info, const size_t depth)
 
MagickExport MagickBooleanType SetQuantumEndian (const Image *image, QuantumInfo *quantum_info, const EndianType endian)
 
MagickExport MagickBooleanType SetQuantumFormat (const Image *image, QuantumInfo *quantum_info, const QuantumFormatType format)
 
MagickExport void SetQuantumImageType (Image *image, const QuantumType quantum_type)
 
MagickExport void SetQuantumPack (QuantumInfo *quantum_info, const MagickBooleanType pack)
 
MagickExport MagickBooleanType SetQuantumPad (const Image *image, QuantumInfo *quantum_info, const size_t pad)
 
MagickExport void SetQuantumMinIsWhite (QuantumInfo *quantum_info, const MagickBooleanType min_is_white)
 
MagickExport void SetQuantumQuantum (QuantumInfo *quantum_info, const size_t quantum)
 
MagickExport void SetQuantumScale (QuantumInfo *quantum_info, const double scale)
 

Macro Definition Documentation

◆ QuantumSignature

#define QuantumSignature   0xab

Definition at line 78 of file quantum.c.

Referenced by AcquireQuantumPixels(), and DestroyQuantumPixels().

Function Documentation

◆ AcquireQuantumInfo()

◆ AcquireQuantumPixels()

◆ DestroyQuantumInfo()

◆ DestroyQuantumPixels()

static void DestroyQuantumPixels ( QuantumInfo quantum_info)
static

◆ GetQuantumEndian()

MagickExport EndianType GetQuantumEndian ( const QuantumInfo quantum_info)

Definition at line 354 of file quantum.c.

References _QuantumInfo::endian, MagickCoreSignature, and _QuantumInfo::signature.

Referenced by ClampToQuantum().

◆ GetQuantumExtent()

◆ GetQuantumFormat()

MagickExport QuantumFormatType GetQuantumFormat ( const QuantumInfo quantum_info)

Definition at line 383 of file quantum.c.

References _QuantumInfo::format, MagickCoreSignature, and _QuantumInfo::signature.

Referenced by ClampToQuantum().

◆ GetQuantumInfo()

◆ GetQuantumPixels()

MagickExport unsigned char* GetQuantumPixels ( const QuantumInfo quantum_info)

◆ GetQuantumType()

◆ ResetQuantumState()

◆ SetQuantumAlphaType()

MagickExport void SetQuantumAlphaType ( QuantumInfo quantum_info,
const QuantumAlphaType  type 
)

Definition at line 623 of file quantum.c.

References _QuantumInfo::alpha_type, MagickCoreSignature, and _QuantumInfo::signature.

◆ SetQuantumDepth()

◆ SetQuantumEndian()

◆ SetQuantumFormat()

◆ SetQuantumImageType()

◆ SetQuantumMinIsWhite()

MagickExport void SetQuantumMinIsWhite ( QuantumInfo quantum_info,
const MagickBooleanType  min_is_white 
)

◆ SetQuantumPack()

MagickExport void SetQuantumPack ( QuantumInfo quantum_info,
const MagickBooleanType  pack 
)

Definition at line 867 of file quantum.c.

References MagickCoreSignature, _QuantumInfo::pack, and _QuantumInfo::signature.

◆ SetQuantumPad()

◆ SetQuantumQuantum()

MagickExport void SetQuantumQuantum ( QuantumInfo quantum_info,
const size_t  quantum 
)

Definition at line 973 of file quantum.c.

References MagickCoreSignature, _QuantumInfo::quantum, and _QuantumInfo::signature.

◆ SetQuantumScale()

MagickExport void SetQuantumScale ( QuantumInfo quantum_info,
const double  scale 
)

Definition at line 1005 of file quantum.c.

References MagickCoreSignature, _QuantumInfo::scale, and _QuantumInfo::signature.

Referenced by ClampToQuantum().