Functions | |
int | oyCheckProfile (const char *filename, const char *coloursig) |
check an file if it is a profile | |
int | oyCheckProfileMem (const void *mem, size_t size, const char *coloursig) |
check an memory block if it is a profile | |
size_t | oyGetProfileSize (const char *profilename) |
get the profiles size | |
void * | oyGetProfileBlock (const char *profilename, size_t *size, oyAllocFunc_t allocate_func) |
obtain an memory block in the responsibility of the user |
int oyCheckProfile | ( | const char * | filename, | |
const char * | coloursig | |||
) |
check an file if it is a profile
filename | the filename to check | |
coloursig | colour space signature as described in the ICC specification |
int oyCheckProfileMem | ( | const void * | mem, | |
size_t | size, | |||
const char * | coloursig | |||
) |
check an memory block if it is a profile
mem | the memory containing the profile | |
size | the size of the memory block | |
coloursig | currently ignored |
void* oyGetProfileBlock | ( | const char * | profilename, | |
size_t * | size, | |||
oyAllocFunc_t | 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 |
size_t oyGetProfileSize | ( | const char * | profilename | ) |
get the profiles size
profilename | specifies the profile |