MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
quantum.h File Reference
#include <float.h>
#include "MagickCore/image.h"
#include "MagickCore/semaphore.h"
Include dependency graph for quantum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct _QuantumInfo QuantumInfo
 

Enumerations

enum  EndianType { UndefinedEndian , LSBEndian , MSBEndian }
 
enum  QuantumAlphaType { UndefinedQuantumAlpha , AssociatedQuantumAlpha , DisassociatedQuantumAlpha }
 
enum  QuantumFormatType { UndefinedQuantumFormat , FloatingPointQuantumFormat , SignedQuantumFormat , UnsignedQuantumFormat }
 
enum  QuantumType {
  UndefinedQuantum , AlphaQuantum , BGRAQuantum , BGROQuantum ,
  BGRQuantum , BlackQuantum , BlueQuantum , CbYCrAQuantum ,
  CbYCrQuantum , CbYCrYQuantum , CMYKAQuantum , CMYKOQuantum ,
  CMYKQuantum , CyanQuantum , GrayAlphaQuantum , GrayQuantum ,
  GreenQuantum , IndexAlphaQuantum , IndexQuantum , MagentaQuantum ,
  OpacityQuantum , RedQuantum , RGBAQuantum , RGBOQuantum ,
  RGBPadQuantum , RGBQuantum , YellowQuantum , MultispectralQuantum
}
 

Functions

static Quantum ClampToQuantum (const MagickRealType quantum)
 
MagickExport EndianType GetQuantumEndian (const QuantumInfo *)
 
MagickExport MagickBooleanType SetQuantumDepth (const Image *, QuantumInfo *, const size_t)
 
MagickExport MagickBooleanType SetQuantumEndian (const Image *, QuantumInfo *, const EndianType)
 
MagickExport MagickBooleanType SetQuantumFormat (const Image *, QuantumInfo *, const QuantumFormatType)
 
MagickExport MagickBooleanType SetQuantumPad (const Image *, QuantumInfo *, const size_t)
 
MagickExport QuantumFormatType GetQuantumFormat (const QuantumInfo *)
 
MagickExport QuantumInfoAcquireQuantumInfo (const ImageInfo *, Image *)
 
MagickExport QuantumInfoDestroyQuantumInfo (QuantumInfo *)
 
MagickExport QuantumType GetQuantumType (Image *, ExceptionInfo *)
 
MagickExport size_t ExportQuantumPixels (const Image *, CacheView *, QuantumInfo *, const QuantumType, unsigned char *magick_restrict, ExceptionInfo *)
 
MagickExport size_t GetQuantumExtent (const Image *, const QuantumInfo *, const QuantumType)
 
MagickExport size_t ImportQuantumPixels (const Image *, CacheView *, QuantumInfo *, const QuantumType, const unsigned char *magick_restrict, ExceptionInfo *)
 
MagickExport unsigned char * GetQuantumPixels (const QuantumInfo *)
 
MagickExport void GetQuantumInfo (const ImageInfo *, QuantumInfo *)
 
MagickExport void SetQuantumAlphaType (QuantumInfo *, const QuantumAlphaType)
 
MagickExport void SetQuantumImageType (Image *, const QuantumType)
 
MagickExport void SetQuantumMinIsWhite (QuantumInfo *, const MagickBooleanType)
 
MagickExport void SetQuantumPack (QuantumInfo *, const MagickBooleanType)
 
MagickExport void SetQuantumQuantum (QuantumInfo *, const size_t)
 
MagickExport void SetQuantumScale (QuantumInfo *, const double)
 

Typedef Documentation

◆ QuantumInfo

typedef struct _QuantumInfo QuantumInfo

Definition at line 84 of file quantum.h.

Enumeration Type Documentation

◆ EndianType

enum EndianType
Enumerator
UndefinedEndian 
LSBEndian 
MSBEndian 

Definition at line 29 of file quantum.h.

◆ QuantumAlphaType

Enumerator
UndefinedQuantumAlpha 
AssociatedQuantumAlpha 
DisassociatedQuantumAlpha 

Definition at line 36 of file quantum.h.

◆ QuantumFormatType

Enumerator
UndefinedQuantumFormat 
FloatingPointQuantumFormat 
SignedQuantumFormat 
UnsignedQuantumFormat 

Definition at line 43 of file quantum.h.

◆ QuantumType

Enumerator
UndefinedQuantum 
AlphaQuantum 
BGRAQuantum 
BGROQuantum 
BGRQuantum 
BlackQuantum 
BlueQuantum 
CbYCrAQuantum 
CbYCrQuantum 
CbYCrYQuantum 
CMYKAQuantum 
CMYKOQuantum 
CMYKQuantum 
CyanQuantum 
GrayAlphaQuantum 
GrayQuantum 
GreenQuantum 
IndexAlphaQuantum 
IndexQuantum 
MagentaQuantum 
OpacityQuantum 
RedQuantum 
RGBAQuantum 
RGBOQuantum 
RGBPadQuantum 
RGBQuantum 
YellowQuantum 
MultispectralQuantum 

Definition at line 51 of file quantum.h.

Function Documentation

◆ AcquireQuantumInfo()

MagickExport QuantumInfo * AcquireQuantumInfo ( const ImageInfo ,
Image  
)

◆ ClampToQuantum()

static Quantum ClampToQuantum ( const MagickRealType  quantum)
inlinestatic

Definition at line 86 of file quantum.h.

References IsNaN, _QuantumInfo::quantum, and QuantumRange.

Referenced by AdaptiveBlurImage(), AdaptiveSharpenImage(), AddNoiseImage(), ApplyFunction(), ApplyPixelCompositeMask(), AssignImageColors(), AutoThresholdImage(), BilateralBlurImage(), BlendMagnitudeImage(), BlendMeanImage(), BlendSumImage(), BlueShiftImage(), ChannelFxImage(), ClipPixelCacheNexus(), ClutImage(), ColorDecisionListImage(), ColorizeImage(), ColorToNodeId(), CompositeImage(), CompositeOverImage(), CompositePixelOver(), ConcatentateHexColorComponent(), ConsolidateCMYKImages(), ContrastImage(), ContrastStretchImage(), CopyPixel(), DefineImageColormap(), DrawPrimitive(), EqualizeImage(), EvaluateImage(), EvaluateImages(), ExportCharPixel(), ExportGrayAlphaQuantum(), ExportGrayQuantum(), ExportLongLongPixel(), ExportLongPixel(), ExportQuantumPixel(), ExportQuantumPixels(), ExportShortPixel(), FlattenPixelInfo(), FloydSteinbergDither(), FxImage(), GammaImage(), GetImageBackgroundColor(), GetImageDepth(), GetImageStatistics(), GetOneAuthenticPixelFromStream(), GetOneCacheViewAuthenticPixel(), GetOneCacheViewVirtualMethodPixel(), GetOneCacheViewVirtualPixel(), GetOneVirtualPixelFromStream(), GetVirtualPixelCacheNexus(), GrayscaleImage(), HaldClutImage(), HorizontalFilter(), ImportAlphaQuantum(), ImportBGRAQuantum(), ImportBGROQuantum(), ImportBGRQuantum(), ImportBlackQuantum(), ImportBlueQuantum(), ImportCMYKAQuantum(), ImportCMYKOQuantum(), ImportCMYKQuantum(), ImportDoublePixel(), ImportFloatPixel(), ImportGrayAlphaQuantum(), ImportGrayQuantum(), ImportGreenQuantum(), ImportIndexAlphaQuantum(), ImportIndexQuantum(), ImportMultispectralQuantum(), ImportOpacityQuantum(), ImportQuantumPixels(), ImportRedQuantum(), ImportRGBAQuantum(), ImportRGBOQuantum(), ImportRGBQuantum(), IntegralImage(), InterpolatePixelChannels(), LevelImage(), LinearStretchImage(), LocalContrastImage(), MatrixToImage(), MeanShiftImage(), ModulateImage(), MorphImages(), MorphologyPrimitive(), MorphologyPrimitiveDirect(), MotionBlurImage(), OilPaintImage(), OrderedDitherImage(), PerceptibleImage(), PlasmaPixel(), PolynomialImage(), PrintChannelStatistics(), QueryColorCompliance(), RaiseImage(), RangeThresholdImage(), RenderMVGContent(), RenderPostscript(), ResamplePixelColor(), RiemersmaDither(), RotationalBlurImage(), ScaleImage(), SelectiveBlurImage(), SepiaToneImage(), SetImageAlphaChannel(), SetImageMask(), SetPixelBackgoundColor(), SetPixelViaPixelInfo(), ShadeImage(), SimilarityImage(), SketchImage(), sRGBTransformImage(), StatisticImage(), StreamImagePixels(), TransformsRGBImage(), UniqueColorsToImage(), UnsharpMaskImage(), VerticalFilter(), WaveletDenoiseImage(), and WhiteBalanceImage().

◆ DestroyQuantumInfo()

◆ ExportQuantumPixels()

MagickExport size_t ExportQuantumPixels ( const Image ,
CacheView ,
QuantumInfo ,
const  QuantumType,
unsigned char *  magick_restrict,
ExceptionInfo  
)

◆ GetQuantumEndian()

MagickExport EndianType GetQuantumEndian ( const QuantumInfo quantum_info)

Definition at line 359 of file quantum.c.

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

◆ GetQuantumExtent()

MagickExport size_t GetQuantumExtent ( const Image ,
const QuantumInfo ,
const  QuantumType 
)

◆ GetQuantumFormat()

MagickExport QuantumFormatType GetQuantumFormat ( const QuantumInfo quantum_info)

Definition at line 388 of file quantum.c.

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

◆ GetQuantumInfo()

MagickExport void GetQuantumInfo ( const ImageInfo ,
QuantumInfo  
)

◆ GetQuantumPixels()

MagickExport unsigned char * GetQuantumPixels ( const QuantumInfo quantum_info)

◆ GetQuantumType()

◆ ImportQuantumPixels()

MagickExport size_t ImportQuantumPixels ( const Image ,
CacheView ,
QuantumInfo ,
const  QuantumType,
const unsigned char *  magick_restrict,
ExceptionInfo  
)

◆ SetQuantumAlphaType()

MagickExport void SetQuantumAlphaType ( QuantumInfo ,
const  QuantumAlphaType 
)

◆ SetQuantumDepth()

MagickExport MagickBooleanType SetQuantumDepth ( const Image ,
QuantumInfo ,
const  size_t 
)

◆ SetQuantumEndian()

MagickExport MagickBooleanType SetQuantumEndian ( const Image ,
QuantumInfo ,
const  EndianType 
)

◆ SetQuantumFormat()

MagickExport MagickBooleanType SetQuantumFormat ( const Image ,
QuantumInfo ,
const  QuantumFormatType 
)

◆ SetQuantumImageType()

MagickExport void SetQuantumImageType ( Image ,
const  QuantumType 
)

◆ SetQuantumMinIsWhite()

MagickExport void SetQuantumMinIsWhite ( QuantumInfo ,
const  MagickBooleanType 
)

◆ SetQuantumPack()

MagickExport void SetQuantumPack ( QuantumInfo ,
const  MagickBooleanType 
)

◆ SetQuantumPad()

◆ SetQuantumQuantum()

MagickExport void SetQuantumQuantum ( QuantumInfo ,
const  size_t 
)

◆ SetQuantumScale()

MagickExport void SetQuantumScale ( QuantumInfo quantum_info,
const double  scale 
)

Definition at line 1023 of file quantum.c.

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