![]() |
Oyranos Color Management System API |
#include "oyProfile_s.h"
#include "oyObject_s.h"
#include "oyranos_object_internal.h"
#include "oyProfile_s_.h"
#include "oyranos_devices_internal.h"
#include "oyranos_io.h"
#include "oyranos_icc.h"
#include "oyConfig_s_.h"
#include "oyProfileTag_s_.h"
Functions | |
OYAPI oyProfile_s *OYEXPORT | oyProfile_FromTaxiDB (oyOptions_s *options, oyObject_s object) |
look up a profile of a device from Taxi DB More... | |
OYAPI int OYEXPORT | oyProfile_Install (oyProfile_s *profile, oyOptions_s *options) |
Install a ICC profile. More... | |
[Template file inheritance graph] +-> oyProfile_s.template.c | +-> Base_s.c | +– oyStruct_s.template.c
Oyranos is an open source Color Management System
OYAPI oyProfile_s* OYEXPORT oyProfile_FromTaxiDB | ( | oyOptions_s * | options, |
oyObject_s | object | ||
) |
look up a profile of a device from Taxi DB
Function oyProfile_FromTaxiDB The function asks the online ICC Taxi DB for a profile. It is therefore blocking and can cause a serious delay before returning.
The TAXI_id option is expected to come from oyConfig_GetBestMatchFromTaxiDB() or oyDevicesFromTaxiDB().
[in] | options | - "TAXI_id" shall provide a string for device driver parameter selection |
[out] | profile | the resulting profile |
References oyOBJECT_OPTIONS_S, oyOptions_s::oyOptions_FindString(), and oyProfile_s::oyProfile_FromMem().
OYAPI int OYEXPORT oyProfile_Install | ( | oyProfile_s * | profile, |
oyOptions_s * | options | ||
) |
Install a ICC profile.
Function oyProfile_Install Without options, the ICC profile will be installed into the users ICC profile path.
[in] | profile | the profile |
[in] | options | - "path" can provide a string for manual path selection
|
1.1 add user profile path name by default or custom from "path" option
1.2 for "device" = "1" option add xxx/devices/device_class_description_xxx/
1.3 add ".icc" suffix as needed
3.1 write profile
References OY_SLASH, oyERROR_DATA_AMBIGUITY, oyERROR_DATA_READ, oyERROR_DATA_WRITE, oyERROR_USER, oyICCDeviceClassDescription(), oyNAME_DESCRIPTION, oyOBJECT_PROFILE_S, oyOptions_s::oyOptions_FindString(), oyProfile_s::oyProfile_FromFile(), oyProfile_s::oyProfile_GetMem(), oyProfile_s::oyProfile_GetSignature(), oyProfile_s::oyProfile_GetText(), oyProfile_s::oyProfile_Release(), and oySIGNATURE_CLASS.
Referenced by oyDeviceSetup().