#include <pxl_colorprofile.h>

Public Member Functions | |
| virtual String | getTextTag (const char *inTagName) const =0 |
| virtual String | getDescription () const =0 |
| virtual String | getCopyright () const =0 |
| virtual String | getManufacturer () const =0 |
| virtual String | getDeviceModel () const =0 |
| virtual ColorSpace | getColorSpace () const =0 |
| virtual const SimpleArray< u8 > & | getRawData () const =0 |
| virtual bool | isCompatiblePhotometric (Photometric inPhotometric) const =0 |
| virtual void | setAsMetadata (DataStore *ioMetadata) const =0 |
Static Public Member Functions | |
| static AutoPtr< ColorProfile > | create (Storage *inStorage) |
| static AutoPtr< ColorProfile > | create (const void *inBuffer, size_t inSize) |
| static AutoPtr< ColorProfile > | create (const DataStore *inMetadata) |
| static AutoPtr< ColorProfile > | getSRGBProfile () |
| static AutoPtr< ColorProfile > | create (const String &inName) |
| static AutoPtr< ColorProfile > | createRGBProfile (const PrimaryColorChromaticities &inPrimaries, const GammaTable &inRedGamma, const GammaTable &inGreenGamma, const GammaTable &inBlueGamma) |
| static AutoPtr< ColorProfile > | createGrayProfile (double inGamma, size_t inResolution=256) |
Definition at line 180 of file pxl_colorprofile.h.
| static AutoPtr<ColorProfile> Celartem::ColorProfile::create | ( | Storage * | inStorage | ) | [static] |
This function creates a new ColorProfile instance using the ICC profile loaded from the specified storage.
| inStorage | The storage from which the color profile is loaded. |
| static AutoPtr<ColorProfile> Celartem::ColorProfile::create | ( | const void * | inBuffer, | |
| size_t | inSize | |||
| ) | [static] |
This function creates a new ColorProfile instance using the ICC profile stored on the memory block.
| inBuffer | Pointer to the buffer that stores color profile. | |
| inSize | The size of the color profile. |
| static AutoPtr<ColorProfile> Celartem::ColorProfile::create | ( | const DataStore * | inMetadata | ) | [static] |
This function creates a new ColorProfile instance using the ICC profile loaded from the specified Metadata.
The function searchs InterColorProfile(34675) from the specified DataStore instance and create a ColorProfile instance from it.
Please note that this function returns NULL if InterColorProfile(34675) is not found on the specified DataStore instance.
| inMetadata | The DataStore instance from which the color profile is loaded. |
| static AutoPtr<ColorProfile> Celartem::ColorProfile::getSRGBProfile | ( | ) | [static] |
This function return a pointer to the sRGB ColorProfile instance.
| static AutoPtr<ColorProfile> Celartem::ColorProfile::create | ( | const String & | inName | ) | [static] |
This function creates a new ColorProfile instance using system defined color profile specified by name.
| inName | The name of the system defined color profile."sRGB", "gray2.2", "Lab" and "XYZ" are supported. |
AutoPtr<ColorProfile> sRgbProfile = ColorProfile::create("sRGB");
| static AutoPtr<ColorProfile> Celartem::ColorProfile::createRGBProfile | ( | const PrimaryColorChromaticities & | inPrimaries, | |
| const GammaTable & | inRedGamma, | |||
| const GammaTable & | inGreenGamma, | |||
| const GammaTable & | inBlueGamma | |||
| ) | [static] |
This function creates a new ColorProfile instance based on the specified primary color chromaticities and gamma tables.
| inPrimaries | The primary color chromaticities of the color space. | |
| inRedGamma | The gamma of red. | |
| inGreenGamma | The gamma of green. | |
| inBlueGamma | The gamma of blue. |
| static AutoPtr<ColorProfile> Celartem::ColorProfile::createGrayProfile | ( | double | inGamma, | |
| size_t | inResolution = 256 | |||
| ) | [static] |
This function creates a new gray profile of the specified gamma.
| inGamma | The gamma value. | |
| inResolution | The number of table entries on the profile. |
| virtual String Celartem::ColorProfile::getTextTag | ( | const char * | inTagName | ) | const [pure virtual] |
This function returns the string of the specified ICC tag in this profile. If the specified tag is not found, it returns empty string.
| virtual String Celartem::ColorProfile::getDescription | ( | ) | const [pure virtual] |
This function returns the description of this color profile.
| virtual String Celartem::ColorProfile::getCopyright | ( | ) | const [pure virtual] |
This function returns the copyright information of this color profile.
| virtual String Celartem::ColorProfile::getManufacturer | ( | ) | const [pure virtual] |
This function returns the manufacturer information of this color profile.
| virtual String Celartem::ColorProfile::getDeviceModel | ( | ) | const [pure virtual] |
This function returns the device model information of this color profile.
| virtual ColorSpace Celartem::ColorProfile::getColorSpace | ( | ) | const [pure virtual] |
This function returns the primary color space of this color profile.
| virtual const SimpleArray<u8>& Celartem::ColorProfile::getRawData | ( | ) | const [pure virtual] |
This function returns the read-only raw binary of the color profile associated to this instance.
| virtual bool Celartem::ColorProfile::isCompatiblePhotometric | ( | Photometric | inPhotometric | ) | const [pure virtual] |
This function checks whether the photometric is compatible to the one of the color profile or not.
| inPhotometric | The photometric to verify. |
true if it is a compatible photometric, otherwise false. | virtual void Celartem::ColorProfile::setAsMetadata | ( | DataStore * | ioMetadata | ) | const [pure virtual] |
This function sets the ColorProfile instance to the specified DataStore instance.
| ioMetadata | Pointer to a DataStore instance. |