MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
quantum.h File Reference
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
}
 

Functions

static Quantum ClampToQuantum (const MagickRealType value)
 
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 81 of file quantum.h.

Enumeration Type Documentation

◆ EndianType

enum EndianType
Enumerator
UndefinedEndian 
LSBEndian 
MSBEndian 

Definition at line 28 of file quantum.h.

◆ QuantumAlphaType

Enumerator
UndefinedQuantumAlpha 
AssociatedQuantumAlpha 
DisassociatedQuantumAlpha 

Definition at line 35 of file quantum.h.

◆ QuantumFormatType

Enumerator
UndefinedQuantumFormat 
FloatingPointQuantumFormat 
SignedQuantumFormat 
UnsignedQuantumFormat 

Definition at line 42 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 

Definition at line 50 of file quantum.h.

Function Documentation

◆ AcquireQuantumInfo()

MagickExport QuantumInfo* AcquireQuantumInfo ( const ImageInfo ,
Image  
)

Referenced by ClampToQuantum().

◆ ClampToQuantum()

static Quantum ClampToQuantum ( const MagickRealType  value)
inlinestatic

Definition at line 84 of file quantum.h.

References AcquireQuantumInfo(), DestroyQuantumInfo(), ExportQuantumPixels(), GetQuantumEndian(), GetQuantumExtent(), GetQuantumFormat(), GetQuantumInfo(), GetQuantumPixels(), GetQuantumType(), ImportQuantumPixels(), magick_restrict, MagickExport, MagickULLConstant, _QuantumInfo::quantum, QuantumRange, SetQuantumAlphaType(), SetQuantumDepth(), SetQuantumEndian(), SetQuantumFormat(), SetQuantumImageType(), SetQuantumMinIsWhite(), SetQuantumPack(), SetQuantumPad(), SetQuantumQuantum(), and SetQuantumScale().

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

◆ DestroyQuantumInfo()

◆ ExportQuantumPixels()

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

Referenced by ClampToQuantum().

◆ GetQuantumEndian()

MagickExport EndianType GetQuantumEndian ( const QuantumInfo )

Definition at line 354 of file quantum.c.

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

Referenced by ClampToQuantum().

◆ GetQuantumExtent()

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

Referenced by ClampToQuantum().

◆ GetQuantumFormat()

MagickExport QuantumFormatType GetQuantumFormat ( const QuantumInfo )

Definition at line 383 of file quantum.c.

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

Referenced by ClampToQuantum().

◆ GetQuantumInfo()

MagickExport void GetQuantumInfo ( const ImageInfo ,
QuantumInfo  
)

Referenced by ClampToQuantum().

◆ GetQuantumPixels()

MagickExport unsigned char* GetQuantumPixels ( const QuantumInfo )

◆ GetQuantumType()

◆ ImportQuantumPixels()

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

Referenced by ClampToQuantum().

◆ SetQuantumAlphaType()

MagickExport void SetQuantumAlphaType ( QuantumInfo ,
const QuantumAlphaType   
)

Referenced by ClampToQuantum().

◆ SetQuantumDepth()

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

Referenced by ClampToQuantum().

◆ SetQuantumEndian()

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

Referenced by ClampToQuantum().

◆ SetQuantumFormat()

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

Referenced by ClampToQuantum().

◆ SetQuantumImageType()

MagickExport void SetQuantumImageType ( Image ,
const QuantumType   
)

Referenced by ClampToQuantum().

◆ SetQuantumMinIsWhite()

MagickExport void SetQuantumMinIsWhite ( QuantumInfo ,
const MagickBooleanType   
)

Referenced by ClampToQuantum().

◆ SetQuantumPack()

MagickExport void SetQuantumPack ( QuantumInfo ,
const MagickBooleanType   
)

Referenced by ClampToQuantum().

◆ SetQuantumPad()

◆ SetQuantumQuantum()

MagickExport void SetQuantumQuantum ( QuantumInfo ,
const size_t   
)

Referenced by ClampToQuantum().

◆ SetQuantumScale()

MagickExport void SetQuantumScale ( QuantumInfo ,
const double   
)

Definition at line 1005 of file quantum.c.

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

Referenced by ClampToQuantum().