![]() |
Oyranos Color Management System API |
#include <icc34.h>
#include <oyranos_object.h>
#include "oyStruct_s.h"
#include "oyranos.h"
#include "oyranos_profile.h"
#include "oyProfileTag_s.h"
#include "oyConfig_s.h"
Data Structures | |
struct | oyProfile_s |
A profile and its attributes. More... | |
Macros | |
#define | OY_NO_CACHE_READ 0x01 |
#define | OY_NO_CACHE_WRITE 0x02 |
#define | OY_FROM_PROFILE 0x04 |
#define | OY_COMPUTE 0x08 |
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.h | +-> Base_s.h | +– oyStruct_s.template.h
Oyranos is an open source Color Management System
#define OY_COMPUTE 0x08 |
compute newly
Referenced by oyProfile_s::oyProfile_FromFile(), oyProfile_s::oyProfile_FromMD5(), and oyProfile_s::oyProfile_GetMD5().
#define OY_FROM_PROFILE 0x04 |
use from profile
Referenced by oyProfile_s::oyProfile_GetMD5().
#define OY_NO_CACHE_READ 0x01 |
read not from cache
#define OY_NO_CACHE_WRITE 0x02 |
write not from cache
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.2 for "device" = "1" option add xxx/devices/device_class_description_xxx/
1.3 add ".icc" suffix as needed
References OY_SLASH, oyERROR_USER, oyICCDeviceClassDescription(), oyNAME_DESCRIPTION, oyOBJECT_PROFILE_S, oyOptions_s::oyOptions_FindString(), oyProfile_s::oyProfile_GetSignature(), oyProfile_s::oyProfile_GetText(), and oySIGNATURE_CLASS.