![]() |
Oyranos
git-devel
Oyranos is a full featured Color Management System
|
Tell about the conversion profiles. More...
#include <oyProfiles_s.h>
Public Member Functions | |
OYAPI oyProfiles_s *OYEXPORT | oyProfiles_New (oyObject_s object) |
allocate a new Profiles object More... | |
OYAPI oyProfiles_s *OYEXPORT | oyProfiles_Copy (oyProfiles_s *profiles, oyObject_s object) |
Copy or Reference a Profiles object. More... | |
OYAPI int OYEXPORT | oyProfiles_Release (oyProfiles_s **profiles) |
release and possibly deallocate a oyProfiles_s object More... | |
OYAPI int OYEXPORT | oyProfiles_MoveIn (oyProfiles_s *list, oyProfile_s **obj, int pos) |
add an element to a Profiles list More... | |
OYAPI int OYEXPORT | oyProfiles_ReleaseAt (oyProfiles_s *list, int pos) |
release a element from a Profiles list More... | |
OYAPI oyProfile_s *OYEXPORT | oyProfiles_Get (oyProfiles_s *list, int pos) |
get a element of a Profiles list More... | |
OYAPI int OYEXPORT | oyProfiles_Count (oyProfiles_s *list) |
count the elements in a Profiles list More... | |
OYAPI int OYEXPORT | oyProfiles_Clear (oyProfiles_s *list) |
clear the elements in a Profiles list More... | |
OYAPI int OYEXPORT | oyProfiles_Sort (oyProfiles_s *list, int32_t *rank_list) |
sort a list according to a rank_list More... | |
OYAPI oyProfiles_s *OYEXPORT | oyProfiles_Create (oyProfiles_s *patterns, uint32_t flags, oyObject_s object) |
get a list of installed profiles More... | |
OYAPI oyProfiles_s *OYEXPORT | oyProfiles_ForStd (oyPROFILE_e std_profile_class, uint32_t flags, int *current, oyObject_s object) |
Get a list of installed profiles. More... | |
int | oyProfiles_DeviceRank (oyProfiles_s *list, oyConfig_s *device, int32_t *rank_list) |
Sort a profile list according to a given device. More... | |
OYAPI int OYEXPORT | oyProfiles_Rank (oyProfiles_s *list, oyConfig_s *device, char path_separator, char key_separator, int flags, int32_t *rank_list) |
Sort a profile list according to a given pattern. More... | |
void | oyProfiles_Release__Members (oyProfiles_s_ *profiles) |
Custom Profiles destructor. More... | |
int | oyProfiles_Init__Members (oyProfiles_s_ *profiles OY_UNUSED) |
Custom Profiles constructor. More... | |
int | oyProfiles_Copy__Members (oyProfiles_s_ *dst, oyProfiles_s_ *src) |
Custom Profiles copy constructor. More... | |
![]() | |
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... | |
![]() | |
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... | |
Tell about the conversion profiles.
OYAPI int OYEXPORT oyProfiles_Clear | ( | oyProfiles_s * | list | ) |
clear the elements in a Profiles list
Function oyProfiles_Clear
[in,out] | list | the list |
OYAPI oyProfiles_s *OYEXPORT oyProfiles_Copy | ( | oyProfiles_s * | profiles, |
oyObject_s | object | ||
) |
Copy or Reference a Profiles object.
Function oyProfiles_Copy
The function is for copying and for referencing. The reference is the most often used way, which saves resourcs and time.
[in] | profiles | Profiles struct object |
object | NULL - means reference, the optional object triggers a real copy |
int oyProfiles_Copy__Members | ( | oyProfiles_s_ * | dst, |
oyProfiles_s_ * | src | ||
) |
Custom Profiles copy constructor.
Function oyProfiles_Copy__Members
OYAPI int OYEXPORT oyProfiles_Count | ( | oyProfiles_s * | list | ) |
count the elements in a Profiles list
Function oyProfiles_Count
[in,out] | list | the list |
OYAPI oyProfiles_s *OYEXPORT oyProfiles_Create | ( | oyProfiles_s * | patterns, |
uint32_t | flags, | ||
oyObject_s | object | ||
) |
get a list of installed profiles
Function oyProfiles_Create
[in] | patterns | a list properties, e.g. classes; Only matching profiles are selected. If NULL, all profiles are accepted. |
flags |
| |
object | the optional object |
int oyProfiles_DeviceRank | ( | oyProfiles_s * | list, |
oyConfig_s * | device, | ||
int32_t * | rank_list | ||
) |
Sort a profile list according to a given device.
Function oyProfiles_DeviceRank
Profiles which match the device will placed according to a rank value on top of the list followed by the zero ranked profiles.
[in,out] | list | the to be sorted profile list |
[in] | device | filter pattern |
[in,out] | rank_list | list of rank levels for the profile list |
OYAPI oyProfiles_s *OYEXPORT oyProfiles_ForStd | ( | oyPROFILE_e | std_profile_class, |
uint32_t | flags, | ||
int * | current, | ||
oyObject_s | object | ||
) |
Get a list of installed profiles.
Function oyProfiles_ForStd
Allow for a special case with oyDEFAULT_PROFILE_START in the color_space argument, to select all possible standard color profiles, e.g. for typical color conversions.
oyASSUMED_WEB will result in exactly one profile added as long as it is available in the file paths.
[in] | std_profile_class | standard profile class, see oyPROFILE_e ; e.g. oyEDITING_RGB |
flags | see oyProfile_FromFile() | |
[out] | current | get the color_space profile position |
object | a optional object |
OYAPI oyProfile_s *OYEXPORT oyProfiles_Get | ( | oyProfiles_s * | list, |
int | pos | ||
) |
get a element of a Profiles list
Function oyProfiles_Get
[in,out] | list | the list |
pos | position |
int oyProfiles_Init__Members | ( | oyProfiles_s_ *profiles | OY_UNUSED | ) |
Custom Profiles constructor.
Function oyProfiles_Init__Members
OYAPI int OYEXPORT oyProfiles_MoveIn | ( | oyProfiles_s * | list, |
oyProfile_s ** | obj, | ||
int | pos | ||
) |
add an element to a Profiles list
Function oyProfiles_MoveIn
[in] | list | list |
[in,out] | obj | list element |
pos | position |
OYAPI oyProfiles_s *OYEXPORT oyProfiles_New | ( | oyObject_s | object | ) |
OYAPI int OYEXPORT oyProfiles_Rank | ( | oyProfiles_s * | list, |
oyConfig_s * | device, | ||
char | path_separator, | ||
char | key_separator, | ||
int | flags, | ||
int32_t * | rank_list | ||
) |
Sort a profile list according to a given pattern.
Function oyProfiles_Rank
Profiles which match the patern will placed according to a rank value on top of the list followed by the zero ranked profiles.
Get all ICC profiles, which can be used as assumed RGB profile:
[in,out] | list | the to be sorted profile list |
[in] | device | filter pattern with rank_map |
path_separator | a char to split into hierarchical levels | |
key_separator | a char to split key strings | |
flags | options:
| |
[in,out] | rank_list | list of rank levels for the profile list |
OYAPI int OYEXPORT oyProfiles_Release | ( | oyProfiles_s ** | profiles | ) |
release and possibly deallocate a oyProfiles_s object
Function oyProfiles_Release
[in,out] | profiles | Profiles struct object |
void oyProfiles_Release__Members | ( | oyProfiles_s_ * | profiles | ) |
Custom Profiles destructor.
Function oyProfiles_Release__Members
OYAPI int OYEXPORT oyProfiles_ReleaseAt | ( | oyProfiles_s * | list, |
int | pos | ||
) |
release a element from a Profiles list
Function oyProfiles_ReleaseAt
[in,out] | list | the list |
pos | position |
OYAPI int OYEXPORT oyProfiles_Sort | ( | oyProfiles_s * | list, |
int32_t * | rank_list | ||
) |
sort a list according to a rank_list
Function oyProfiles_Sort
oyStruct_Copy_f oyProfiles_s::copy |
Copy function.
oyObject_s oyProfiles_s::oy_ |
Oyranos internal object.
Features name and hash. Do not change during object life time.
oyStruct_Release_f oyProfiles_s::release |
Release function.
const oyOBJECT_e oyProfiles_s::type_ |
Type of object.
The struct type tells Oyranos how to interprete hidden fields.