![]() |
Oyranos
0.9.7
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... | |
const char * | oiccProfilesGetText (oyStruct_s *obj, oyNAME_e type, int flags OY_UNUSED) |
get a presentable name 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 f) |
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 |
References oyOBJECT_PROFILES_S, and oyStructList_s::oyStructList_Clear().
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 |
References oyOBJECT_PROFILES_S, and oyObjectDebugMessage_().
OYAPI int OYEXPORT oyProfiles_Count | ( | oyProfiles_s * | list | ) |
count the elements in a Profiles list
Function oyProfiles_Count
[in,out] | list | the list |
References oyOBJECT_PROFILES_S, and oyStructList_s::oyStructList_Count().
Referenced by lcmsFilterNode_CmmIccContextToMem(), lcmsMOptions_Handle2(), oiccProfilesGetText(), oyDeviceSetup(), oyFilterCore_s::oyFilterCore_GetText(), oyGetCMMs(), oyProfiles_Create(), oyProfiles_ForStd(), and oyProfiles_Rank().
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 |
References OY_ALLOW_DUPLICATES, OY_COMPUTE, OY_NO_CACHE_WRITE, OY_PROFILE_NONE, oyNAME_DESCRIPTION, oyObject_SetNames(), oyProfile_s::oyProfile_Equal(), oyProfile_s::oyProfile_FromFile(), oyProfile_s::oyProfile_GetText(), oyProfile_s::oyProfile_Release(), oyProfiles_Count(), oyProfiles_ForStd(), oyProfiles_Get(), oyProfiles_MoveIn(), oyProfiles_New(), and oyProfiles_Release().
Referenced by oyDeviceSetup(), and oyProfiles_ForStd().
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 |
References OY_SLASH_C, and oyProfiles_Rank().
Referenced by oyDeviceSetup().
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 |
References oyASSUMED_CMYK, oyASSUMED_GRAY, oyASSUMED_LAB, oyASSUMED_RGB, oyASSUMED_WEB, oyASSUMED_XYZ, oyEDITING_CMYK, oyEDITING_GRAY, oyEDITING_LAB, oyEDITING_RGB, oyEDITING_XYZ, oyGetDefaultProfileName(), oyPROFILE_EFFECT, oyProfile_s::oyProfile_FromSignature(), oyProfile_s::oyProfile_FromStd(), oyProfile_s::oyProfile_GetFileName(), oyPROFILE_PROOF, oyProfile_s::oyProfile_Release(), oyProfile_s::oyProfile_SetSignature(), oyProfiles_Count(), oyProfiles_Create(), oyProfiles_Get(), oyProfiles_MoveIn(), oyProfiles_New(), oyProfiles_Release(), oySIGNATURE_CLASS, and oySIGNATURE_COLOR_SPACE.
Referenced by oyGetCMMs(), and oyProfiles_Create().
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 |
References oyOBJECT_PROFILE_S, oyOBJECT_PROFILES_S, and oyStructList_s::oyStructList_GetRefType().
Referenced by lcmsCMMConversionContextCreate_(), lcmsFilterNode_CmmIccContextToMem(), oiccProfilesGetText(), oyDeviceSetup(), oyFilterCore_s::oyFilterCore_GetText(), oyGetCMMs(), oyProfiles_Create(), oyProfiles_ForStd(), and oyProfiles_Rank().
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 |
References oyOBJECT_PROFILE_S, oyOBJECT_PROFILES_S, oyStructList_s::oyStructList_Create(), oyStructList_s::oyStructList_MoveIn(), and oyProfile_s::type_.
Referenced by lcmsFilterNode_CmmIccContextToMem(), oiccChangeNodeOption(), oyDeviceSetup(), oyProfiles_Create(), and oyProfiles_ForStd().
OYAPI oyProfiles_s *OYEXPORT oyProfiles_New | ( | oyObject_s | object | ) |
allocate a new Profiles object
Function oyProfiles_New
References oyOBJECT_OBJECT_S.
Referenced by lcmsFilterNode_CmmIccContextToMem(), oiccChangeNodeOption(), oyDeviceSetup(), oyProfiles_Create(), and oyProfiles_ForStd().
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 |
References oyConfig_s::oyConfig_FindString(), oyConfig_s::oyConfig_FromRegistration(), oyConfig_s::oyConfig_Match(), oyOBJECT_PROFILES_S, oyOptions_s::oyOptions_Clear(), oyOptions_s::oyOptions_Count(), oyProfile_s::oyProfile_GetDevice(), oyProfile_s::oyProfile_GetFileName(), oyProfile_s::oyProfile_Release(), oyProfiles_Count(), oyProfiles_Get(), and oyStructList_s::oyStructList_Sort().
Referenced by oyProfiles_DeviceRank().
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 |
References oyOBJECT_PROFILES_S.
Referenced by lcmsFilterNode_CmmIccContextToMem(), lcmsMOptions_Handle2(), oyDeviceSetup(), oyGetCMMs(), oyProfiles_Create(), and oyProfiles_ForStd().
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 |
References oyOBJECT_PROFILES_S, oyStructList_s::oyStructList_GetParentObjType(), and oyStructList_s::oyStructList_ReleaseAt().
OYAPI int OYEXPORT oyProfiles_Sort | ( | oyProfiles_s * | list, |
int32_t * | rank_list | ||
) |
sort a list according to a rank_list
Function oyProfiles_Sort
References oyOBJECT_PROFILES_S, and oyStructList_s::oyStructList_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.
Referenced by oiccProfilesGetText().
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.