Aurelon Open API 8.1.1
Loading...
Searching...
No Matches
AOI_ColorSpace.cpp
1#include "./AOI_ColorSpace.h"
2#include "../ColorSpace.h"
3#include <ACPL/CString.h>
4
5using namespace aur;
6using namespace aur::PDF;
7using namespace aur::ACPL;
8
97uint32_t AOI_ColorSpace::GetType() const
98{
99 return ((ColorSpaceObject*)this)->ResourceType();
100}
101
109AOI_ColorSpaceEnum AOI_ColorSpace::Space() const
110{
111 return (AOI_ColorSpaceEnum)((ColorSpaceObject*)this)->Space();
112}
113
120uint32_t AOI_ColorSpace::NrOfComponents() const
121{
122 return ((ColorSpaceObject*)this)->NrOfComponents();
123}
124
133const char* AOI_ColorSpace::ChannelName( uint32_t channel ) const
134{
135 return (const char*)((ColorSpaceObject*)this)->ChannelName( channel );
136}
137
149void AOI_ColorSpace::GetCIELab( const uint16_t* src, float* out ) const
150{
151 double lab[3];
152 ((ColorSpaceObject*)this)->GetCIELab( src, lab );
153 out[0] = float( lab[0] );
154 out[1] = float( lab[1] );
155 out[2] = float( lab[2] );
156}
157
166{
167 ((CalibratedGray*)this)->GetWhitePoint( wp );
168}
169
178{
179 ((CalibratedGray*)this)->GetBlackPoint( bp );
180}
181
189{
190 return ((CalibratedGray*)this)->GetGamma();
191}
192
201{
202 ((CalibratedRGB*)this)->GetWhitePoint( wp );
203}
204
213{
214 ((CalibratedRGB*)this)->GetBlackPoint( bp );
215}
216
223void AOI_ColorSpace_CalibratedRGB::GetGamma( double gam[3] ) const
224{
225 ((CalibratedRGB*)this)->GetGamma( gam );
226}
227
236{
237 ((CalibratedRGB*)this)->GetRedColorant( red );
238}
239
248{
249 return ((CalibratedRGB*)this)->GetGreenColorant( green );
250}
251
260{
261 return ((CalibratedRGB*)this)->GetBlueColorant( blue );
262}
263
270const icHeader& AOI_ColorSpace_ICC::GetHeader() const
271{
272 return ((ICCColorSpace*)this)->GetHeader( );
273}
274
281void AOI_ColorSpace_ICC::GetDescriptor( char* desc ) const
282{
283 ::strcpy( desc, ((ICCColorSpace*)this)->GetDescriptor().ToUTF8() );
284}
285
294void AOI_ColorSpace_ICC::GetICCData( uint8_t* data ) const
295{
296 ((ICCColorSpace*)this)->GetICCData( data );
297}
298
306AOI_ColorSpacePtr AOI_ColorSpace_DeviceN::ChannelSpace( uint32_t channel ) const
307{
308 return (AOI_ColorSpacePtr)((DeviceN*)this)->ChannelSpace( channel );
309}
310
319{
320 return (AOI_Function*)((DeviceN*)this)->ChannelFunction( channel );
321}
322
332{
333 return (AOI_ColorSpacePtr)((DeviceN*)this)->GetAlternate();
334}
335
345{
346 return (AOI_Function*)((DeviceN*)this)->GetFunction();
347}
348
357{
358 return ((IndexColorSpace*)this)->GetColorCount();
359}
360
368AOI_ColorSpacePtr AOI_ColorSpace_Indexed::GetBase() const
369{
370 return (AOI_ColorSpacePtr)((IndexColorSpace*)this)->GetBase();
371}
372
382void AOI_ColorSpace_Indexed::GetColor( uint32_t index, uint16_t* color ) const
383{
384 ((IndexColorSpace*)this)->GetColor( index, color );
385}
386
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.