![]() |
Oyranos Colour Management System API |
|
Data Structures | |
| struct | oyNamedColours_s |
| list of colour patches More... | |
| struct | oyNamedColour_s |
| colour patch with meta informations More... | |
Functions | |
| oyNamedColour_s * | 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_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_s::oyNamedColour_Copy (oyNamedColour_s *colour, oyObject_s object) |
| copy | |
| int | oyNamedColour_s::oyNamedColour_Release (oyNamedColour_s **obj) |
| release correctly | |
| oyProfile_s * | oyNamedColour_s::oyNamedColour_GetSpaceRef (oyNamedColour_s *colour) |
| get a colour space reference | |
| void | oyNamedColour_s::oyNamedColour_SetChannels (oyNamedColour_s *colour, const double *channels, uint32_t flags) |
| set colour channels | |
| int | oyNamedColour_s::oyNamedColour_GetColour (oyNamedColour_s *colour, oyProfile_s *profile, oyPointer buf, oyDATATYPE_e buf_type, uint32_t flags, oyOptions_s *options) |
| convert a named colour to a standard colour space | |
| int | oyNamedColour_s::oyNamedColour_SetColourStd (oyNamedColour_s *colour, oyPROFILE_e colour_space, oyPointer channels, oyDATATYPE_e channels_type, uint32_t flags, oyOptions_s *options) |
| set colour channels | |
| const double * | oyNamedColour_s::oyNamedColour_GetChannelsConst (oyNamedColour_s *colour, uint32_t *flags) |
| get colour channels | |
| const double * | oyNamedColour_s::oyNamedColour_GetXYZConst (oyNamedColour_s *colour) |
| get XYZ channels | |
| int | oyNamedColour_s::oyNamedColour_GetColourStd (oyNamedColour_s *colour, oyPROFILE_e colour_space, oyPointer buf, oyDATATYPE_e buf_type, uint32_t *flags, oyOptions_s *options) |
| convert a named colour to a standard colour space | |
| const oyChar * | oyNamedColour_s::oyNamedColour_GetName (oyNamedColour_s *s, oyNAME_e type, uint32_t flags) |
| get colour channels | |
| oyNamedColours_s * | oyNamedColours_s::oyNamedColours_New (oyObject_s object) |
| create a list object for oyNamedColour_s | |
| oyNamedColours_s * | oyNamedColours_s::oyNamedColours_Copy (oyNamedColours_s *colours, oyObject_s obj) |
| Copy. | |
| int | oyNamedColours_s::oyNamedColours_Release (oyNamedColours_s **obj) |
| release and probably free a named colour object | |
| int | oyNamedColours_s::oyNamedColours_Count (oyNamedColours_s *obj) |
| count in oyNamedColours_s | |
| oyNamedColour_s * | oyNamedColours_s::oyNamedColours_Get (oyNamedColours_s *obj, int position) |
| obtain a referenced patch from the list | |
| oyNamedColours_s * | oyNamedColours_s::oyNamedColours_MoveIn (oyNamedColours_s *list, oyNamedColour_s **obj, int pos) |
| add a patch to the colours list | |
| int | oyNamedColours_s::oyNamedColours_ReleaseAt (oyNamedColours_s *obj, int position) |
| release a patch from the list | |
Named Colour API's.
| oyNamedColour_s * oyNamedColour_Copy | ( | oyNamedColour_s * | colour, |
| oyObject_s | object | ||
| ) |
copy
| [in] | colour | address of Oyranos colour struct |
| [in] | object | the optional base object |
References oyNamedColour_s::oyNamedColour_Create().
Referenced by oyNamedColour_s::oyNamedColour_Create().
| 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
| [in] | chan | pointer to channel data with a number of elements specified in sig or channels_n, optional |
| [in] | blob | CGATS or other reference data, optional |
| [in] | blob_len | length of the data blob |
| [in] | ref | possibly a ICC profile |
| object | the optional object |
References oyCopyColour(), oyNamedColour_s::oyNamedColour_Copy(), oyNamedColour_s::oyNamedColour_Release(), oyOBJECT_NAMED_COLOUR_S, oyObject_s::oyObject_NewFrom(), oyObject_s::oyObject_SetParent(), oyProfile_s::oyProfile_Copy(), oyProfile_s::oyProfile_GetChannelsCount(), and oyNamedColour_s::release.
Referenced by oyNamedColour_s::oyNamedColour_Copy(), and oyNamedColour_s::oyNamedColour_CreateWithName().
| 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
Function: oyNamedColour_CreateWithName
| [in] | nick | very short, only a few letters |
| [in] | name | of the colour |
| [in] | description | description |
| [in] | chan | pointer to channel data with a number of elements specified in sig or channels_n |
| [in] | XYZ | reference values |
| [in] | blob | CGATS or other reference data |
| [in] | blob_len | length of the data blob |
| [in] | profile_ref | profile |
| [in] | object | memory management |
References oyCopyColour(), oyNamedColour_s::oyNamedColour_Create(), oyObject_s::oyObject_NewFrom(), oyObject_s::oyObject_Release(), and oyObject_s::oyObject_SetNames().
| const double * oyNamedColour_GetChannelsConst | ( | oyNamedColour_s * | colour, |
| uint32_t * | flags | ||
| ) |
get colour channels
Function: oyNamedColour_GetChannelsConst
| [in] | colour | Oyranos colour struct pointer |
| [in] | flags | reserved |
| int oyNamedColour_GetColour | ( | oyNamedColour_s * | colour, |
| oyProfile_s * | profile, | ||
| oyPointer | buf, | ||
| oyDATATYPE_e | buf_type, | ||
| uint32_t | flags, | ||
| oyOptions_s * | options | ||
| ) |
convert a named colour to a standard colour space
Function: oyNamedColour_GetColour
References oyEDITING_XYZ, oyProfile_s::oyProfile_FromStd(), and oyProfile_s::oyProfile_Release().
Referenced by oyNamedColour_s::oyNamedColour_GetColourStd().
| int oyNamedColour_GetColourStd | ( | oyNamedColour_s * | colour, |
| oyPROFILE_e | colour_space, | ||
| oyPointer | buf, | ||
| oyDATATYPE_e | buf_type, | ||
| uint32_t * | flags, | ||
| oyOptions_s * | options | ||
| ) |
convert a named colour to a standard colour space
Function: oyNamedColour_GetColourStd
References oyCopyColour(), oyEDITING_LAB, oyEDITING_XYZ, oyNamedColour_s::oyNamedColour_GetColour(), oyProfile_s::oyProfile_FromStd(), and oyProfile_s::oyProfile_Release().
Referenced by oyNamedColour_s::oyNamedColour_GetName().
| const oyChar * oyNamedColour_GetName | ( | oyNamedColour_s * | s, |
| oyNAME_e | type, | ||
| uint32_t | flags | ||
| ) |
get colour channels
Function: oyNamedColour_GetName
References oyEDITING_LAB, oyICCColourSpaceGetChannelCount(), oyICCColourSpaceGetName(), oyNAME_DESCRIPTION, oyNAME_NAME, oyNAME_NICK, oyNamedColour_s::oyNamedColour_GetColourStd(), oyObject_s::oyObject_GetName(), oyObject_s::oyObject_SetName(), and oyProfile_s::oyProfile_GetSignature().
| oyProfile_s * oyNamedColour_GetSpaceRef | ( | oyNamedColour_s * | colour | ) |
get a colour space reference
Function: oyNamedColour_GetSpaceRef
References oyProfile_s::oyProfile_Copy().
| const double * oyNamedColour_GetXYZConst | ( | oyNamedColour_s * | colour | ) |
get XYZ channels
Function: oyNamedColour_GetiXYZConst
| [in] | colour | Oyranos colour struct pointer |
| int oyNamedColour_Release | ( | oyNamedColour_s ** | obj | ) |
release correctly
set pointer to zero
| [in] | obj | address of Oyranos colour struct pointer |
References oyOBJECT_NAMED_COLOUR_S, oyObject_s::oyObject_Release(), oyObject_s::oyObject_UnRef(), and oyProfile_s::oyProfile_Release().
Referenced by oyNamedColour_s::oyNamedColour_Create().
| void oyNamedColour_SetChannels | ( | oyNamedColour_s * | colour, |
| const double * | channels, | ||
| uint32_t | flags | ||
| ) |
set colour channels
Function: oyNamedColour_SetChannels
| [in] | colour | Oyranos colour struct pointer |
| [in] | channels | pointer to channel data |
| [in] | flags | reserved |
References oyProfile_s::oyProfile_GetChannelsCount().
| int oyNamedColour_SetColourStd | ( | oyNamedColour_s * | colour, |
| oyPROFILE_e | colour_space, | ||
| oyPointer | channels, | ||
| oyDATATYPE_e | channels_type, | ||
| uint32_t | flags, | ||
| oyOptions_s * | options | ||
| ) |
set colour channels
Function: oyNamedColour_SetColourStd
| [in] | colour | Oyranos colour struct pointer |
| [in] | colour_space | Oyranos standard colour space |
| [in] | channels | pointer to channel data |
| [in] | channels_type | data type |
| [in] | flags | reserved for future use |
| [in] | options | for filter node creation |
References oyCopyColour(), oyEDITING_LAB, oyEDITING_XYZ, oyProfile_s::oyProfile_FromStd(), oyProfile_s::oyProfile_GetChannelsCount(), and oyProfile_s::oyProfile_Release().
| oyNamedColours_s * oyNamedColours_Copy | ( | oyNamedColours_s * | colours, |
| oyObject_s | obj | ||
| ) |
Copy.
Function: oyNamedColours_Copy
References oyNamedColours_s::oyNamedColours_New(), oyObject_s::oyObject_Copy(), and oyStructList_s::oyStructList_Copy().
Referenced by oyNamedColours_s::oyNamedColours_New().
| int oyNamedColours_Count | ( | oyNamedColours_s * | obj | ) |
count in oyNamedColours_s
Function: oyNamedColours_Count
References oyOBJECT_NAMED_COLOURS_S, and oyStructList_s::oyStructList_Count().
| oyNamedColour_s * oyNamedColours_Get | ( | oyNamedColours_s * | obj, |
| int | position | ||
| ) |
obtain a referenced patch from the list
Function: oyNamedColours_Get
References oyOBJECT_NAMED_COLOUR_S, oyOBJECT_NAMED_COLOURS_S, and oyStructList_s::oyStructList_GetRefType().
| oyNamedColours_s * oyNamedColours_MoveIn | ( | oyNamedColours_s * | list, |
| oyNamedColour_s ** | obj, | ||
| int | pos | ||
| ) |
add a patch to the colours list
Function: oyNamedColours_MoveIn
References oyNamedColours_s::oyNamedColours_New(), oyOBJECT_NAMED_COLOUR_S, oyStructList_s::oyStructList_Create(), and oyStructList_s::oyStructList_MoveIn().
| oyNamedColours_s * oyNamedColours_New | ( | oyObject_s | object | ) |
create a list object for oyNamedColour_s
Function: oyNamedColours_New
References oyNamedColours_s::oyNamedColours_Copy(), oyNamedColours_s::oyNamedColours_Release(), oyOBJECT_NAMED_COLOURS_S, oyObject_s::oyObject_NewFrom(), oyObject_s::oyObject_SetParent(), oyStructList_s::oyStructList_Create(), and oyNamedColours_s::release.
Referenced by oyNamedColours_s::oyNamedColours_Copy(), and oyNamedColours_s::oyNamedColours_MoveIn().
| int oyNamedColours_Release | ( | oyNamedColours_s ** | obj | ) |
release and probably free a named colour object
Function: oyNamedColours_Release
References oyOBJECT_NAMED_COLOURS_S, oyObject_s::oyObject_Release(), oyObject_s::oyObject_UnRef(), and oyStructList_s::oyStructList_Release().
Referenced by oyNamedColours_s::oyNamedColours_New().
| int oyNamedColours_ReleaseAt | ( | oyNamedColours_s * | obj, |
| int | position | ||
| ) |
release a patch from the list
Function: oyNamedColours_ReleaseAt
References oyOBJECT_NAMED_COLOURS_S, and oyStructList_s::oyStructList_ReleaseAt().