1#include "./AOI_ColorSpace.h"
2#include "../ColorSpace.h"
3#include <ACPL/CString.h>
6using namespace aur::PDF;
7using namespace aur::ACPL;
97uint32_t AOI_ColorSpace::GetType()
const
99 return ((ColorSpaceObject*)
this)->ResourceType();
109AOI_ColorSpaceEnum AOI_ColorSpace::Space()
const
111 return (AOI_ColorSpaceEnum)((ColorSpaceObject*)
this)->Space();
120uint32_t AOI_ColorSpace::NrOfComponents()
const
122 return ((ColorSpaceObject*)
this)->NrOfComponents();
133const char* AOI_ColorSpace::ChannelName( uint32_t channel )
const
135 return (
const char*)((ColorSpaceObject*)
this)->ChannelName( channel );
149void AOI_ColorSpace::GetCIELab(
const uint16_t* src,
float* out )
const
152 ((ColorSpaceObject*)
this)->GetCIELab( src, lab );
153 out[0] = float( lab[0] );
154 out[1] = float( lab[1] );
155 out[2] = float( lab[2] );
167 ((CalibratedGray*)
this)->GetWhitePoint( wp );
179 ((CalibratedGray*)
this)->GetBlackPoint( bp );
190 return ((CalibratedGray*)
this)->GetGamma();
202 ((CalibratedRGB*)
this)->GetWhitePoint( wp );
214 ((CalibratedRGB*)
this)->GetBlackPoint( bp );
225 ((CalibratedRGB*)
this)->GetGamma( gam );
237 ((CalibratedRGB*)
this)->GetRedColorant( red );
249 return ((CalibratedRGB*)
this)->GetGreenColorant( green );
261 return ((CalibratedRGB*)
this)->GetBlueColorant( blue );
272 return ((ICCColorSpace*)
this)->GetHeader( );
283 ::strcpy( desc, ((ICCColorSpace*)
this)->
GetDescriptor().ToUTF8() );
296 ((ICCColorSpace*)
this)->GetICCData( data );
308 return (AOI_ColorSpacePtr)((DeviceN*)
this)->ChannelSpace( channel );
320 return (
AOI_Function*)((DeviceN*)
this)->ChannelFunction( channel );
333 return (AOI_ColorSpacePtr)((DeviceN*)
this)->GetAlternate();
358 return ((IndexColorSpace*)
this)->GetColorCount();
370 return (AOI_ColorSpacePtr)((IndexColorSpace*)
this)->GetBase();
384 ((IndexColorSpace*)
this)->GetColor( index, color );
void GetWhitePoint(double[3]) const
void GetBlackPoint(double[3]) const
void GetRedColorant(double[3]) const
void GetWhitePoint(double[3]) const
void GetGreenColorant(double[3]) const
void GetBlackPoint(double[3]) const
void GetGamma(double[3]) const
void GetBlueColorant(double[3]) const
AOI_ColorSpacePtr GetAlternate() const
AOI_ColorSpacePtr ChannelSpace(uint32_t) const
AOI_Function * ChannelFunction(uint32_t) const
AOI_Function * GetFunction() const
const icHeader & GetHeader() const
void GetICCData(uint8_t *) const
void GetDescriptor(char *) const
uint32_t GetColorCount() const
AOI_ColorSpacePtr GetBase() const
void GetColor(uint32_t, uint16_t *) const
Base class for functions.