Oyranos  git-devel
Oyranos is a full featured Color Management System
Functions
oyranos_monitor_effect.c File Reference
#include "oyranos_color.h"
#include "oyranos_helper.h"
#include "oyranos_i18n.h"
#include "oyranos_devices.h"
#include "oyranos_icc.h"
#include "oyranos_monitor_effect.h"
#include "oyranos_object_internal.h"
#include "oyranos_texts.h"
#include "oyConversion_s.h"
#include "oyProfile_s_.h"
#include "oyranos_color_internal.h"

Functions

int oyProfileAddWhitePointEffect (oyProfile_s *monitor_profile, oyOptions_s **module_options)
 create_profile.white_point_adjust.bradford More...
 
int oyDeviceSetup2 (oyConfig_s *device, oyOptions_s *options)
 activate the device using the stored configuration More...
 
OYAPI int OYEXPORT oyDeviceGetProfile (oyConfig_s *device, oyOptions_s *options, oyProfile_s **profile)
 order a device profile More...
 
int oyGetDisplayWhitePoint (int mode, double *XYZ)
 get the ICC*XYZ coordinates for display white point target More...
 

Detailed Description

Oyranos is an open source Color Management System

Copyright:
2018-2019 (C) Kai-Uwe Behrmann

Function Documentation

◆ oyDeviceGetProfile()

OYAPI int OYEXPORT oyDeviceGetProfile ( oyConfig_s device,
oyOptions_s options,
oyProfile_s **  profile 
)

order a device profile

Function oyDeviceGetProfile This function is designed to satisfy most users as it tries to deliver a profile all the time. Following code can almost allways expect some profile to go with. It tries hard to get a current profile or set the system up and retry or get at least one basic profile.

For a basic and thus weaker call to the device use oyDeviceAskProfile2() instead.

Parameters
devicethe device
options
profilethe device's ICC profile
Returns
error
Version
Oyranos: 0.9.7
Date
2018/02/23
Since
2009/02/08 (Oyranos: 0.1.10)

This function does a device setup in case no profile is delivered by the according module.

As a last means oyASSUMED_WEB is delivered.

◆ oyDeviceSetup2()

int oyDeviceSetup2 ( oyConfig_s device,
oyOptions_s options 
)

activate the device using the stored configuration

Function oyDeviceSetup2

Parameters
[in]devicethe device
[in]optionsadditional options,
  • "skip_ask_for_profile == "yes" - skips oyDeviceAskProfile2() call; useful for systems, where no empty profile is possible like CS
Returns
error
Version
Oyranos: 0.9.7
Date
2018/02/23
Since
2009/01/30 (Oyranos: 0.1.10)

References oyDeviceSetup().

◆ oyGetDisplayWhitePoint()

int oyGetDisplayWhitePoint ( int  mode,
double *  XYZ 
)

get the ICC*XYZ 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]ICC_XYZICC*XYZ trio in 0.0 - 2.0 range
Returns
error
  • 0: success
  • -1: no white point available
  • >1: error
Version
Oyranos: 0.9.7
Date
2018/03/01
Since
2017/06/01 (Oyranos: 0.9.7)

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

◆ oyProfileAddWhitePointEffect()

int oyProfileAddWhitePointEffect ( oyProfile_s monitor_profile,
oyOptions_s **  module_options 
)

create_profile.white_point_adjust.bradford

The profile will be generated in many different shades, which will explode conversion cache.

References oyProfile_GetWhitePoint().