![]() |
Modules | |
Basic colour calculations | |
Generic Objects | |
Values Handling | |
Region Handling | |
Functions | |
void | oyI18NSet (int active, int reserved) |
switch internationalisation of strings on or off | |
const char * | oyLanguage (void) |
get language code | |
const char * | oyCountry (void) |
get country code | |
const char * | oyLang (void) |
get LANG code/variable | |
int | oyVersion (int type) |
give the compiled in library version | |
char * | oyVersionString (int type, oyAlloc_f allocateFunc) |
give the configure options for Oyranos | |
int | oyProfileGetMD5 (void *buffer, size_t size, unsigned char *md5_return) |
calculate a md5 digest beginning after the header offset | |
oyChar * | oyDumpColourToCGATS (const double *channels, size_t n, oyProfile_s *prof, oyAlloc_f allocateFunc, const oyChar *DESCRIPTOR) |
create CGATS text from double value array and a profile | |
void | oyCopyColour (const double *from, double *to, int n, oyProfile_s *ref, int channels_n) |
copy pure colours | |
const oyChar * | oyDatatypeToText (oyDATATYPE_e t) |
oyDATATYPE_e to string mapping | |
icUInt16Number | oyValueUInt16 (icUInt16Number val) |
MSB<->LSB. | |
int | oySizeofDatatype (oyDATATYPE_e t) |
oyDATATYPE_e to byte mapping |
Miscellaneous stuff.
void oyCopyColour | ( | const double * | from, | |
double * | to, | |||
int | n, | |||
oyProfile_s * | ref, | |||
int | channels_n | |||
) |
copy pure colours
handle colour only, without from set to -1 default
References oyProfile_s::oyProfile_GetSignature(), and oySIGNATURE_COLOUR_SPACE.
Referenced by oyNamedColour_s::oyNamedColour_Create(), oyNamedColour_s::oyNamedColour_CreateWithName(), oyNamedColour_s::oyNamedColour_GetColourStd(), and oyNamedColour_s::oyNamedColour_SetColourStd().
const char* oyCountry | ( | void | ) |
get country code
Referenced by oyProfileTag_s::oyProfileTag_GetText().
const oyChar* oyDatatypeToText | ( | oyDATATYPE_e | t | ) |
oyChar* oyDumpColourToCGATS | ( | const double * | channels, | |
size_t | n, | |||
oyProfile_s * | prof, | |||
oyAlloc_f | allocateFunc, | |||
const oyChar * | DESCRIPTOR | |||
) |
create CGATS text from double value array and a profile
Function oyDumpColourToCGATS The funtion operates on raw colour values. Alpha is not supported. The intention is to have a small debugging only tool. The values are required to come prescaled (IE RGB 0...255, XYZ 0...1, CMYK 0...100 ...)
References oyProfile_s::file_name_, oyProfile_s::oyProfile_GetChannelsCount(), oyProfile_s::oyProfile_GetSignature(), and oySIGNATURE_COLOUR_SPACE.
void oyI18NSet | ( | int | active, | |
int | reserved | |||
) |
switch internationalisation of strings on or off
active | bool | |
reserved | for future use |
const char* oyLang | ( | void | ) |
get LANG code/variable
const char* oyLanguage | ( | void | ) |
get language code
Referenced by oyProfileTag_s::oyProfileTag_GetText().
int oyProfileGetMD5 | ( | void * | buffer, | |
size_t | size, | |||
unsigned char * | md5_return | |||
) |
calculate a md5 digest beginning after the header offset
The md5 implementation is written by L. Peter Deutsch
[in] | buffer | complete profiles buffer |
[in] | size | over all profile size |
[out] | md5_return | buffer to write in the md5 digest (128 bytes) |
int oySizeofDatatype | ( | oyDATATYPE_e | t | ) |
icUInt16Number oyValueUInt16 | ( | icUInt16Number | val | ) |
MSB<->LSB.
Referenced by oyProfile_s::oyProfile_GetSignature(), and oyProfile_s::oyProfile_SetSignature().
int oyVersion | ( | int | type | ) |
give the compiled in library version
[in] | type | 0 - Oyranos API; 1 - start month, 2 - start year; 3 - development last month, 4 - development last year |
Referenced by oyObject_s::oyObject_New(), oyObject_s::oyObject_NewWithAllocators(), and oyVersionString().
char* oyVersionString | ( | int | type, | |
oyAlloc_f | allocateFunc | |||
) |
give the configure options for Oyranos
[in] | type | 1 - OYRANOS_VERSION_NAME; 2 - git master hash; 3 - OYRANOS_CONFIG_DATE, 4 - development period |
allocateFunc | user allocator, e.g. malloc |
References oyVersion().