MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
quantum-private.h File Reference
#include "MagickCore/cache.h"
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 *pixels)
 
static unsigned char * PopLongPixel (const EndianType endian, const unsigned int pixel, unsigned char *pixels)
 
static unsigned char * PopShortPixel (const EndianType endian, const unsigned short pixel, unsigned char *pixels)
 
static const unsigned char * PushCharPixel (const unsigned char *pixels, unsigned char *pixel)
 
static const unsigned char * PushLongPixel (const EndianType endian, const unsigned char *pixels, unsigned int *pixel)
 
static const unsigned char * PushShortPixel (const EndianType endian, const unsigned char *pixels, unsigned short *pixel)
 
static const unsigned char * PushFloatPixel (const EndianType endian, const unsigned char *pixels, MagickFloatType *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

Referenced by SinglePrecisionToHalf().

◆ ExponentShift

#define ExponentShift   23

◆ SignBitShift

#define SignBitShift   31

Referenced by HalfToSinglePrecision().

◆ SignificandMask

#define SignificandMask   0x00000400

Referenced by HalfToSinglePrecision().

◆ 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 *  pixels,
MagickFloatType pixel 
)
inlinestatic

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

References LSBEndian.

◆ PushLongPixel()

◆ PushShortPixel()

◆ ResetQuantumState()

◆ ScaleAnyToQuantum()

◆ ScaleQuantumToAny()

◆ SinglePrecisionToHalf()