Oyranos  0.9.7
Oyranos is a full featured Color Management System
Functions
Default Profiles

Configure default profiles. More...

Collaboration diagram for Default Profiles:

Functions

int oySetDefaultProfile (oyPROFILE_e type, oySCOPE_e scope, const char *file_name)
 
char * oyGetDefaultProfileName (oyPROFILE_e type, oyAlloc_f allocate_func)
 
int oySetDisplayWhitePoint (double cie_a, double cie_b, oySCOPE_e scope, const char *comment)
 set the CIE*ab coordinates for display white point target More...
 
int oyGetDisplayWhitePoint (int mode, double *cie_a, double *cie_b)
 get the CIE*ab coordinates for display white point target More...
 

Detailed Description

Configure default profiles.

See also
Path Names

Function Documentation

◆ oyGetDefaultProfileName()

char* oyGetDefaultProfileName ( oyPROFILE_e  type,
oyAlloc_f  allocate_func 
)

Gets a default profile filename.

Parameters
typethe kind of default profile
allocate_functhe allocation function needed to reserve memory for the filename string
Returns
filename

◆ oyGetDisplayWhitePoint()

int oyGetDisplayWhitePoint ( int  mode,
double *  cie_a,
double *  cie_b 
)

get the CIE*ab coordinates for display white point target

The function asks for a white point target for displaying.

See also
OY_DEFAULT_DISPLAY_WHITE_POINT.
Parameters
[in]mode-1 for oyGetBehaviour( oyBEHAVIOUR_DISPLAY_WHITE_POINT )
[out]cie_aCIE*a component in 0.0 - 1.0 range
[out]cie_bCIE*b component in 0.0 - 1.0 range
Returns
error
  • 0: success
  • -1: no white point available
  • >1: error
Version
Oyranos: 0.9.7
Date
2017/07/04
Since
2017/06/01 (Oyranos: 0.9.7)

References OY_DEFAULT_DISPLAY_WHITE_POINT_A, oyBEHAVIOUR_DISPLAY_WHITE_POINT, oyGetBehaviour(), oyGetPersistentString(), and oySCOPE_USER_SYS.

◆ oySetDefaultProfile()

int oySetDefaultProfile ( oyPROFILE_e  type,
oySCOPE_e  scope,
const char *  file_name 
)

Sets a profile, which is available in the current configured path.

Parameters
typethe kind of default profile
file_namethe profile which shall become the default for the above specified profile type
Returns
success

◆ oySetDisplayWhitePoint()

int oySetDisplayWhitePoint ( double  cie_a,
double  cie_b,
oySCOPE_e  scope,
const char *  comment 
)

set the CIE*ab coordinates for display white point target

The function sets a custom white point target for the display. Note this setting will only be active when OY_DEFAULT_DISPLAY_WHITE_POINT is set to 1 - automatic.

Parameters
[in]cie_aCIE*a component in 0.0 - 1.0 range
[in]cie_bCIE*b component in 0.0 - 1.0 range
[in]scopesupported are:
  • oySCOPE_USER for HOME install
  • oySCOPE_SYSTEM for system wide install
[in]commentstring
Version
Oyranos: 0.9.7
Date
2017/06/01
Since
2017/06/01 (Oyranos: 0.9.7)

References OY_DEFAULT_DISPLAY_WHITE_POINT_A, OY_DEFAULT_DISPLAY_WHITE_POINT_B, and oySetPersistentString().