MagickCore  7.0.9
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
}
 

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

typedef struct _QuantumInfo QuantumInfo

Definition at line 82 of file quantum.h.

Enumeration Type Documentation

enum EndianType
Enumerator
UndefinedEndian 
LSBEndian 
MSBEndian 

Definition at line 29 of file quantum.h.

Enumerator
UndefinedQuantumAlpha 
AssociatedQuantumAlpha 
DisassociatedQuantumAlpha 

Definition at line 36 of file quantum.h.

Enumerator
UndefinedQuantumFormat 
FloatingPointQuantumFormat 
SignedQuantumFormat 
UnsignedQuantumFormat 

Definition at line 43 of file quantum.h.

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 51 of file quantum.h.

Function Documentation

MagickExport QuantumInfo* AcquireQuantumInfo ( const ImageInfo ,
Image  
)
static Quantum ClampToQuantum ( const MagickRealType  quantum)
inlinestatic

Definition at line 85 of file quantum.h.

References QuantumRange.

Referenced by AdaptiveBlurImage(), AdaptiveSharpenImage(), AddNoiseImage(), ApplyFunction(), ApplyPixelCompositeMask(), AssignImageColors(), AutoThresholdImage(), BlueShiftImage(), ChannelFxImage(), Classify(), ClipPixelCacheNexus(), ClutImage(), ColorDecisionListImage(), ColorizeImage(), ColorToNodeId(), CompositeImage(), CompositeOverImage(), CompositePixelOver(), ConcatenateColorComponent(), 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(), ImportOpacityQuantum(), ImportQuantumPixels(), ImportRedQuantum(), ImportRGBAQuantum(), ImportRGBOQuantum(), ImportRGBQuantum(), 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(), and WaveletDenoiseImage().

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

Definition at line 358 of file quantum.c.

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

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

Definition at line 387 of file quantum.c.

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

MagickExport void GetQuantumInfo ( const ImageInfo ,
QuantumInfo  
)
MagickExport unsigned char* GetQuantumPixels ( const QuantumInfo )
MagickExport size_t ImportQuantumPixels ( const Image ,
CacheView ,
QuantumInfo ,
const QuantumType  ,
const unsigned char *  magick_restrict,
ExceptionInfo  
)
MagickExport void SetQuantumAlphaType ( QuantumInfo ,
const QuantumAlphaType   
)
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 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   
)

Definition at line 1009 of file quantum.c.

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