#include "magick/cache.h"

Go to the source code of this file.
Data Structures | |
| struct | _QuantumState |
| struct | _QuantumInfo |
Defines | |
| #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 | |
| static MagickSizeType | GetQuantumRange (const unsigned long depth) |
| static float | HalfToSinglePrecision (const unsigned short half) |
| static void | InitializeQuantumState (const QuantumInfo *quantum_info, const EndianType endian, QuantumState *quantum_state) |
| static unsigned char * | PopCharPixel (const unsigned char pixel, unsigned char *pixels) |
| static unsigned char * | PopLongPixel (const EndianType endian, const unsigned long 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 long *pixel) |
| static const unsigned char * | PushShortPixel (const EndianType endian, const unsigned char *pixels, unsigned short *pixel) |
| static Quantum | ScaleAnyToQuantum (const QuantumAny quantum, const QuantumAny range) |
| static QuantumAny | ScaleQuantumToAny (const Quantum quantum, const QuantumAny range) |
| static Quantum | ScaleCharToQuantum (const unsigned char value) |
| static Quantum | ScaleLongToQuantum (const unsigned long value) |
| static Quantum | ScaleMapToQuantum (const MagickRealType value) |
| static unsigned long | ScaleQuantumToLong (const Quantum quantum) |
| static unsigned long | ScaleQuantumToMap (const Quantum quantum) |
| static unsigned short | ScaleQuantumToShort (const Quantum quantum) |
| static Quantum | ScaleShortToQuantum (const unsigned short value) |
| static unsigned short | SinglePrecisionToHalf (const float value) |
| #define ExponentBias (127-15) |
Referenced by HalfToSinglePrecision(), and SinglePrecisionToHalf().
| #define ExponentMask 0x7c00 |
Referenced by SinglePrecisionToHalf().
| #define ExponentShift 23 |
Referenced by HalfToSinglePrecision(), and SinglePrecisionToHalf().
| #define SignBitShift 31 |
Referenced by HalfToSinglePrecision().
| #define SignificandMask 0x00000400 |
Referenced by HalfToSinglePrecision().
| #define SignificandShift 13 |
Referenced by HalfToSinglePrecision(), and SinglePrecisionToHalf().
| typedef struct _QuantumState QuantumState |
| static MagickSizeType GetQuantumRange | ( | const unsigned long | depth | ) | [inline, static] |
Definition at line 85 of file quantum-private.h.
References MagickULLConstant.
Referenced by ExportQuantumPixels(), GetImageChannelDepth(), GetImageChannelStatistics(), ImportQuantumPixels(), QueryMagickColor(), and SetImageChannelDepth().
| static float HalfToSinglePrecision | ( | const unsigned short | half | ) | [inline, static] |
Definition at line 91 of file quantum-private.h.
References ExponentBias, ExponentShift, SignBitShift, SignificandMask, and SignificandShift.
Referenced by ImportQuantumPixels().
| static void InitializeQuantumState | ( | const QuantumInfo * | quantum_info, | |
| const EndianType | endian, | |||
| QuantumState * | quantum_state | |||
| ) | [inline, static] |
Definition at line 166 of file quantum-private.h.
References _QuantumState::bits, _QuantumState::endian, _QuantumState::inverse_scale, _QuantumState::mask, _QuantumInfo::minimum, _QuantumState::minimum, _QuantumState::pixel, _QuantumInfo::scale, and _QuantumState::scale.
Referenced by ExportQuantumPixels(), and ImportQuantumPixels().
| static unsigned char* PopCharPixel | ( | const unsigned char | pixel, | |
| unsigned char * | pixels | |||
| ) | [inline, static] |
Definition at line 191 of file quantum-private.h.
Referenced by ExportQuantumPixels().
| static unsigned char* PopLongPixel | ( | const EndianType | endian, | |
| const unsigned long | pixel, | |||
| unsigned char * | pixels | |||
| ) | [inline, static] |
Definition at line 198 of file quantum-private.h.
References LSBEndian.
Referenced by ExportQuantumPixels(), and PopQuantumLongPixel().
| static unsigned char* PopShortPixel | ( | const EndianType | endian, | |
| const unsigned short | pixel, | |||
| unsigned char * | pixels | |||
| ) | [inline, static] |
Definition at line 220 of file quantum-private.h.
References LSBEndian.
Referenced by ExportQuantumPixels().
| static const unsigned char* PushCharPixel | ( | const unsigned char * | pixels, | |
| unsigned char * | pixel | |||
| ) | [inline, static] |
Definition at line 238 of file quantum-private.h.
Referenced by ImportQuantumPixels().
| static const unsigned char* PushLongPixel | ( | const EndianType | endian, | |
| const unsigned char * | pixels, | |||
| unsigned long * | pixel | |||
| ) | [inline, static] |
Definition at line 245 of file quantum-private.h.
References LSBEndian.
Referenced by ImportQuantumPixels(), and PushQuantumLongPixel().
| static const unsigned char* PushShortPixel | ( | const EndianType | endian, | |
| const unsigned char * | pixels, | |||
| unsigned short * | pixel | |||
| ) | [inline, static] |
Definition at line 269 of file quantum-private.h.
References LSBEndian.
Referenced by ImportQuantumPixels().
| static Quantum ScaleAnyToQuantum | ( | const QuantumAny | quantum, | |
| const QuantumAny | range | |||
| ) | [inline, static] |
Definition at line 289 of file quantum-private.h.
References QuantumRange.
Referenced by GetImageChannelDepth(), GetImageChannelStatistics(), ImportQuantumPixels(), QueryMagickColor(), and SetImageChannelDepth().
| static Quantum ScaleCharToQuantum | ( | const unsigned char | value | ) | [inline, static] |
Definition at line 385 of file quantum-private.h.
Referenced by Classify(), GenerateDifferentialNoise(), GetImageDynamicThreshold(), Hull(), ImportImagePixels(), ImportQuantumPixels(), LoadColorLists(), QueryMagickColor(), RGBTransformImage(), and TransformRGBImage().
| static Quantum ScaleLongToQuantum | ( | const unsigned long | value | ) | [inline, static] |
Definition at line 394 of file quantum-private.h.
References MagickULLConstant.
Referenced by ImportImagePixels(), and ImportQuantumPixels().
| static Quantum ScaleMapToQuantum | ( | const MagickRealType | value | ) | [inline, static] |
Definition at line 404 of file quantum-private.h.
Referenced by ColorDecisionListImage(), ContrastStretchImageChannel(), EqualizeImageChannel(), GammaImageChannel(), RGBTransformImage(), SigmoidalContrastImageChannel(), and TransformRGBImage().
| static QuantumAny ScaleQuantumToAny | ( | const Quantum | quantum, | |
| const QuantumAny | range | |||
| ) | [inline, static] |
Definition at line 299 of file quantum-private.h.
References QuantumRange.
Referenced by ExportQuantumPixels(), GetImageChannelDepth(), GetImageChannelStatistics(), and SetImageChannelDepth().
| static unsigned long ScaleQuantumToLong | ( | const Quantum | quantum | ) | [inline, static] |
Definition at line 417 of file quantum-private.h.
Referenced by ConcatenateColorComponent(), ConcatentateHexColorComponent(), ExportImagePixels(), ExportQuantumPixels(), and StreamImagePixels().
| static unsigned long ScaleQuantumToMap | ( | const Quantum | quantum | ) | [inline, static] |
Definition at line 430 of file quantum-private.h.
Referenced by ColorDecisionListImage(), ContrastStretchImageChannel(), EqualizeImageChannel(), GammaImageChannel(), GetImageChannelFeatures(), LinearStretchImage(), RGBTransformImage(), SetGrayscaleImage(), SigmoidalContrastImageChannel(), and TransformRGBImage().
| static unsigned short ScaleQuantumToShort | ( | const Quantum | quantum | ) | [inline, static] |
Definition at line 443 of file quantum-private.h.
Referenced by ConcatenateColorComponent(), ConcatentateHexColorComponent(), ExportImagePixels(), ExportQuantumPixels(), InsertMedianPixelList(), ProfileImage(), StreamImagePixels(), XGetPixelPacket(), and XMakeStandardColormap().
| static Quantum ScaleShortToQuantum | ( | const unsigned short | value | ) | [inline, static] |
Definition at line 456 of file quantum-private.h.
Referenced by GetMedianPixelList(), GetNonpeakMedianPixelList(), ImportImagePixels(), ImportQuantumPixels(), ProfileImage(), XAnnotateImage(), XDrawImage(), XGetWindowColor(), and XGetWindowImage().
| static unsigned short SinglePrecisionToHalf | ( | const float | value | ) | [inline, static] |
Definition at line 602 of file quantum-private.h.
References ExponentBias, ExponentMask, ExponentShift, and SignificandShift.
Referenced by ExportQuantumPixels().
1.6.2-20100208