![]() |
Oyranos
0.9.7
Oyranos is a full featured Color Management System
|
Basic profile helpers. More...
Functions | |
int | oyCheckProfile (const char *filename, const char *colorsig) |
check an file if it is a profile More... | |
int | oyCheckProfileMem (const void *mem, size_t size, const char *colorsig) |
check an memory block if it is a profile More... | |
size_t | oyGetProfileSize (const char *profilename) |
get the profiles size More... | |
void * | oyGetProfileBlock (const char *profilename, size_t *size, oyAlloc_f allocate_func) |
obtain an memory block in the responsibility of the user More... | |
char * | oyGetPathFromProfileName (const char *profile_name, oyAlloc_f allocate_func) |
int | oyProfileGetMD5 (void *buffer, size_t size, unsigned char *md5_return) |
calculate a md5 digest beginning after the header offset More... | |
Basic profile helpers.
int oyCheckProfile | ( | const char * | filename, |
const char * | colorsig | ||
) |
check an file if it is a profile
filename | the filename to check |
colorsig | color space signature as described in the ICC specification |
Referenced by ojpgApi4CmmCreate().
int oyCheckProfileMem | ( | const void * | mem, |
size_t | size, | ||
const char * | colorsig | ||
) |
check an memory block if it is a profile
mem | the memory containing the profile |
size | the size of the memory block |
colorsig | currently ignored |
char* oyGetPathFromProfileName | ( | const char * | profile_name, |
oyAlloc_f | allocate_func | ||
) |
Find out where in the Oyranos search path the specified profile resides.
profile_name | the filename find in the Oyranos search path |
allocate_func | user provided function for allocating the string memory |
void* oyGetProfileBlock | ( | const char * | profilename, |
size_t * | size, | ||
oyAlloc_f | allocate_func | ||
) |
obtain an memory block in the responsibility of the user
Please note the size parameter is sensible. Eighter set it to zero or to the size obtained with oyGetProfileSize to get the full data or specify the size you want to get a partitial profile.
This feature is useful for instance to get only the headers of many profiles.
profilename | specifies the profile | |
[in] | size | desired size, or zero for a complete copy |
[out] | size | the size of the returned block |
allocate_func | the users memory allocation function |
Referenced by ojpgApi4CmmCreate().
size_t oyGetProfileSize | ( | const char * | profilename | ) |
get the profiles size
profilename | specifies the profile |
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) |
Referenced by oyIMProfileTag_Create().