MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
quantum-private.h File Reference
Include dependency graph for quantum-private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _QuantumState
 
struct  _QuantumInfo
 

Macros

#define ExponentBias   (127-15)
 
#define ExponentMask   0x7c00
 
#define ExponentShift   23
 
#define SignBitShift   31
 
#define SignificandShift   13
 
#define SignificandMask   0x00000400
 

Typedefs

typedef struct _QuantumState QuantumState
 

Functions

MagickPrivate void ResetQuantumState (QuantumInfo *)
 
static MagickSizeType GetQuantumRange (const size_t depth)
 
static float HalfToSinglePrecision (const unsigned short half)
 
static unsigned char * PopCharPixel (const unsigned char pixel, unsigned char *magick_restrict pixels)
 
static unsigned char * PopLongPixel (const EndianType endian, const unsigned int pixel, unsigned char *magick_restrict pixels)
 
static unsigned char * PopShortPixel (const EndianType endian, const unsigned short pixel, unsigned char *magick_restrict pixels)
 
static const unsigned char * PushCharPixel (const unsigned char *magick_restrict pixels, unsigned char *magick_restrict pixel)
 
static const unsigned char * PushLongPixel (const EndianType endian, const unsigned char *magick_restrict pixels, unsigned int *magick_restrict pixel)
 
static const unsigned char * PushShortPixel (const EndianType endian, const unsigned char *magick_restrict pixels, unsigned short *magick_restrict pixel)
 
static const unsigned char * PushFloatPixel (const EndianType endian, const unsigned char *magick_restrict pixels, MagickFloatType *magick_restrict pixel)
 
static Quantum ScaleAnyToQuantum (const QuantumAny quantum, const QuantumAny range)
 
static QuantumAny ScaleQuantumToAny (const Quantum quantum, const QuantumAny range)
 
static unsigned short SinglePrecisionToHalf (const float value)
 

Macro Definition Documentation

◆ ExponentBias

#define ExponentBias   (127-15)

◆ ExponentMask

#define ExponentMask   0x7c00

◆ ExponentShift

#define ExponentShift   23

◆ SignBitShift

#define SignBitShift   31

◆ SignificandMask

#define SignificandMask   0x00000400

◆ SignificandShift

#define SignificandShift   13

Typedef Documentation

◆ QuantumState

typedef struct _QuantumState QuantumState

Function Documentation

◆ GetQuantumRange()

◆ HalfToSinglePrecision()

◆ PopCharPixel()

◆ PopLongPixel()

◆ PopShortPixel()

◆ PushCharPixel()

◆ PushFloatPixel()

static const unsigned char * PushFloatPixel ( const EndianType  endian,
const unsigned char *magick_restrict  pixels,
MagickFloatType *magick_restrict  pixel 
)
inlinestatic

Definition at line 284 of file quantum-private.h.

References LSBEndian.

◆ PushLongPixel()

◆ PushShortPixel()

◆ ResetQuantumState()

◆ ScaleAnyToQuantum()

◆ ScaleQuantumToAny()

◆ SinglePrecisionToHalf()