![]() |
Oyranos
git-devel
Oyranos is a full featured Color Management System
|
Single Color object. More...
#include <oyNamedColor_s.h>


Public Member Functions | |
| OYAPI oyNamedColor_s *OYEXPORT | oyNamedColor_New (oyObject_s object) |
| allocate a new NamedColor object More... | |
| OYAPI oyNamedColor_s *OYEXPORT | oyNamedColor_Copy (oyNamedColor_s *namedcolor, oyObject_s object) |
| Copy or Reference a NamedColor object. More... | |
| OYAPI int OYEXPORT | oyNamedColor_Release (oyNamedColor_s **namedcolor) |
| release and possibly deallocate a oyNamedColor_s object More... | |
| oyNamedColor_s * | oyNamedColor_Create (const double *chan, const char *blob, int blob_len, oyProfile_s *ref, oyObject_s object) |
| manage complex oyNamedColor_s inside Oyranos More... | |
| oyNamedColor_s * | oyNamedColor_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 oyNamedColor_s struct More... | |
| oyProfile_s * | oyNamedColor_GetSpaceRef (oyNamedColor_s *color) |
| get a color space reference More... | |
| void | oyNamedColor_SetChannels (oyNamedColor_s *color, const double *channels, uint32_t flags OY_UNUSED) |
| set color channels More... | |
| int | oyNamedColor_GetColor (oyNamedColor_s *color, oyProfile_s *profile, oyPointer buf, oyDATATYPE_e buf_type, uint32_t flags, oyOptions_s *options) |
| convert a named color to a standard color space More... | |
| int | oyNamedColor_SetColorStd (oyNamedColor_s *color, oyPROFILE_e color_space, oyPointer channels, oyDATATYPE_e channels_type, uint32_t flags, oyOptions_s *options) |
| set color channels More... | |
| const double * | oyNamedColor_GetChannelsConst (oyNamedColor_s *color, uint32_t flags OY_UNUSED) |
| get color channels More... | |
| const double * | oyNamedColor_GetXYZConst (oyNamedColor_s *color) |
| get XYZ channels More... | |
| int | oyNamedColor_GetColorStd (oyNamedColor_s *color, oyPROFILE_e color_space, oyPointer buf, oyDATATYPE_e buf_type, uint32_t flags, oyOptions_s *options) |
| convert a named color to a standard color space More... | |
| const char * | oyNamedColor_GetName (oyNamedColor_s *color, oyNAME_e type, uint32_t flags) |
| get color channels More... | |
| void | oyNamedColor_Release__Members (oyNamedColor_s_ *namedcolor) |
| Custom NamedColor destructor. More... | |
| int | oyNamedColor_Init__Members (oyNamedColor_s_ *namedcolor OY_UNUSED) |
| Custom NamedColor constructor. More... | |
| int | oyNamedColor_Copy__Members (oyNamedColor_s_ *dst, oyNamedColor_s_ *src) |
| Custom NamedColor copy constructor. More... | |
Public Member Functions inherited from oyStruct_s | |
| const char * | oyStruct_GetTextFromModule (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
| get object infos from a module More... | |
| const char * | oyStruct_GetText (oyStruct_s *obj, oyNAME_e name_type, uint32_t flags) |
| Get a text dump. More... | |
| int | oyStruct_RegisterStaticMessageFunc (int type, oyStruct_RegisterStaticMessageFunc_f msg, oyStruct_RegisterStaticFreeFunc_f free_func) |
| register a function for verbosity More... | |
| const char * | oyStruct_GetInfo (oyPointer context_object, oyNAME_e type, int flags) |
| get a additional string from a object More... | |
| const char * | oyStructTypeToText (oyOBJECT_e type) |
| Objects type to small string. More... | |
Data Fields | |
| const oyOBJECT_e | type_ |
| Type of object. More... | |
| oyStruct_Copy_f | copy |
| Copy function. More... | |
| oyStruct_Release_f | release |
| Release function. More... | |
| oyObject_s | oy_ |
| Oyranos internal object. More... | |
Data Fields inherited from oyStruct_s | |
| const oyOBJECT_e | type_ |
| Type of object. More... | |
| oyStruct_Copy_f | copy |
| Copy function. More... | |
| oyStruct_Release_f | release |
| Release function. More... | |
| oyObject_s | oy_ |
| Oyranos internal object. More... | |
Single Color object.
| OYAPI oyNamedColor_s *OYEXPORT oyNamedColor_Copy | ( | oyNamedColor_s * | namedcolor, |
| oyObject_s | object | ||
| ) |
Copy or Reference a NamedColor object.
Function oyNamedColor_Copy
The function is for copying and for referencing. The reference is the most often used way, which saves resourcs and time.
| [in] | namedcolor | NamedColor struct object |
| object | NULL - means reference, the optional object triggers a real copy |
| int oyNamedColor_Copy__Members | ( | oyNamedColor_s_ * | dst, |
| oyNamedColor_s_ * | src | ||
| ) |
Custom NamedColor copy constructor.
Function oyNamedColor_Copy__Members
| oyNamedColor_s * oyNamedColor_Create | ( | const double * | chan, |
| const char * | blob, | ||
| int | blob_len, | ||
| oyProfile_s * | ref, | ||
| oyObject_s | object | ||
| ) |
manage complex oyNamedColor_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 |
| oyNamedColor_s * oyNamedColor_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 oyNamedColor_s struct
Function: oyNamedColor_CreateWithName
| [in] | nick | very short, only a few letters |
| [in] | name | of the color |
| [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 |
| const double * oyNamedColor_GetChannelsConst | ( | oyNamedColor_s * | color, |
| uint32_t flags | OY_UNUSED | ||
| ) |
get color channels
Function: oyNamedColor_GetChannelsConst
| [in] | color | Oyranos color struct pointer |
| [in] | flags | reserved |
| int oyNamedColor_GetColor | ( | oyNamedColor_s * | color, |
| oyProfile_s * | profile, | ||
| oyPointer | buf, | ||
| oyDATATYPE_e | buf_type, | ||
| uint32_t | flags, | ||
| oyOptions_s * | options | ||
| ) |
convert a named color to a standard color space
Function: oyNamedColor_GetColor
| int oyNamedColor_GetColorStd | ( | oyNamedColor_s * | color, |
| oyPROFILE_e | color_space, | ||
| oyPointer | buf, | ||
| oyDATATYPE_e | buf_type, | ||
| uint32_t | flags, | ||
| oyOptions_s * | options | ||
| ) |
convert a named color to a standard color space
Function: oyNamedColor_GetColorStd
| const char * oyNamedColor_GetName | ( | oyNamedColor_s * | color, |
| oyNAME_e | type, | ||
| uint32_t | flags | ||
| ) |
get color channels
Function: oyNamedColor_GetName
| oyProfile_s * oyNamedColor_GetSpaceRef | ( | oyNamedColor_s * | color | ) |
get a color space reference
Function: oyNamedColor_GetSpaceRef
| const double * oyNamedColor_GetXYZConst | ( | oyNamedColor_s * | color | ) |
get XYZ channels
Function: oyNamedColor_GetXYZConst
| [in] | color | Oyranos color struct pointer |
| int oyNamedColor_Init__Members | ( | oyNamedColor_s_ *namedcolor | OY_UNUSED | ) |
Custom NamedColor constructor.
Function oyNamedColor_Init__Members
| OYAPI oyNamedColor_s *OYEXPORT oyNamedColor_New | ( | oyObject_s | object | ) |
allocate a new NamedColor object
Function oyNamedColor_New
| OYAPI int OYEXPORT oyNamedColor_Release | ( | oyNamedColor_s ** | namedcolor | ) |
release and possibly deallocate a oyNamedColor_s object
Function oyNamedColor_Release
| [in,out] | namedcolor | NamedColor struct object |
| void oyNamedColor_Release__Members | ( | oyNamedColor_s_ * | namedcolor | ) |
Custom NamedColor destructor.
Function oyNamedColor_Release__Members
| void oyNamedColor_SetChannels | ( | oyNamedColor_s * | color, |
| const double * | channels, | ||
| uint32_t flags | OY_UNUSED | ||
| ) |
set color channels
Function: oyNamedColor_SetChannels
| [in] | color | Oyranos color struct pointer |
| [in] | channels | pointer to channel data |
| [in] | flags | reserved |
| int oyNamedColor_SetColorStd | ( | oyNamedColor_s * | color, |
| oyPROFILE_e | color_space, | ||
| oyPointer | channels, | ||
| oyDATATYPE_e | channels_type, | ||
| uint32_t | flags, | ||
| oyOptions_s * | options | ||
| ) |
set color channels
Function: oyNamedColor_SetColorStd
| [in] | color | Oyranos color struct pointer |
| [in] | color_space | Oyranos standard color space |
| [in] | channels | pointer to channel data |
| [in] | channels_type | data type |
| [in] | flags | reserved for future use |
| [in] | options | for filter node creation |
| oyStruct_Copy_f oyNamedColor_s::copy |
Copy function.
| oyObject_s oyNamedColor_s::oy_ |
Oyranos internal object.
Features name and hash. Do not change during object life time.
| oyStruct_Release_f oyNamedColor_s::release |
Release function.
| const oyOBJECT_e oyNamedColor_s::type_ |
Type of object.
The struct type tells Oyranos how to interprete hidden fields.
1.8.13