colour patch with meta informationsData management on library side. User can control memory management at creation time. More...
#include <oyranos_alpha.h>
Data Fields | |
oyOBJECT_e | type_ |
oyStruct_Copy_f | copy |
oyStruct_Release_f | release |
oyObject_s | oy_ |
double * | channels_ |
double | XYZ_ [3] |
char * | blob_ |
size_t | blob_len_ |
oyProfile_s * | profile_ |
Related Functions | |
(Note that these are not member functions.) | |
oyNamedColour_s * | oyNamedColour_Create (const double *chan, const char *blob, int blob_len, oyProfile_s *ref, oyObject_s object) |
manage complex oyNamedColour_s inside Oyranos | |
oyNamedColour_s * | oyNamedColour_CreateWithName (const char *nick, const char *name, const char *description, const double *chan, const double *XYZ, const char *blob, int blob_len, oyProfile_s *profile_ref, oyObject_s object) |
create a oyNamedColour_s struct | |
oyNamedColour_s * | oyNamedColour_Copy (oyNamedColour_s *colour, oyObject_s object) |
copy | |
int | oyNamedColour_Release (oyNamedColour_s **obj) |
release correctly | |
oyProfile_s * | oyNamedColour_GetSpaceRef (oyNamedColour_s *colour) |
get a colour space reference | |
void | oyNamedColour_SetChannels (oyNamedColour_s *colour, const double *channels, uint32_t flags) |
set colour channels | |
int | oyNamedColour_GetColour (oyNamedColour_s *colour, oyProfile_s *profile, oyPointer buf, oyDATATYPE_e buf_type, uint32_t flags) |
convert a named colour to a standard colour space | |
int | oyNamedColour_SetColourStd (oyNamedColour_s *colour, oyPROFILE_e colour_space, oyPointer channels, oyDATATYPE_e channels_type, uint32_t flags) |
set colour channels | |
const double * | oyNamedColour_GetChannelsConst (oyNamedColour_s *colour, uint32_t *flags) |
get colour channels | |
const double * | oyNamedColour_GetXYZConst (oyNamedColour_s *colour) |
get XYZ channels | |
int | oyNamedColour_GetColourStd (oyNamedColour_s *colour, oyPROFILE_e colour_space, oyPointer buf, oyDATATYPE_e buf_type, uint32_t *flags) |
convert a named colour to a standard colour space | |
const oyChar * | oyNamedColour_GetName (oyNamedColour_s *s, oyNAME_e type, uint32_t flags) |
get colour channels |
colour patch with meta informations
Data management on library side. User can control memory management at creation time.
It has the complexity of a object, and should not be accessed directly.
TODO: needs to be Xatom compatible
char* oyNamedColour_s::blob_ |
advanced : CGATS / ICC ?
Referenced by oyNamedColour_Copy(), oyNamedColour_Release(), and oyNamedColour_SetColourStd().
size_t oyNamedColour_s::blob_len_ |
advanced : CGATS / ICC ?
Referenced by oyNamedColour_Copy(), oyNamedColour_Release(), and oyNamedColour_SetColourStd().
double* oyNamedColour_s::channels_ |
eigther parsed or calculated otherwise
Referenced by oyNamedColour_Copy(), oyNamedColour_GetChannelsConst(), oyNamedColour_GetColour(), oyNamedColour_GetName(), oyNamedColour_Release(), oyNamedColour_SetChannels(), and oyNamedColour_SetColourStd().
oyStruct_Copy_f oyNamedColour_s::copy |
copy function
base object
Referenced by oyNamedColour_GetName(), oyNamedColour_Release(), and oyNamedColour_SetColourStd().
oyStruct_Release_f oyNamedColour_s::release |
release function
Referenced by oyNamedColour_Create().
struct type oyOBJECT_NAMED_COLOUR_S
Referenced by oyNamedColour_Release(), and oyNamedColours_s::oyNamedColours_MoveIn().
double oyNamedColour_s::XYZ_[3] |
CIE*XYZ representation
Referenced by oyNamedColour_CreateWithName(), oyNamedColour_GetColour(), oyNamedColour_GetColourStd(), oyNamedColour_GetXYZConst(), and oyNamedColour_SetColourStd().