diff options
author | Richard Hughes <richard@hughsie.com> | 2013-03-27 08:50:04 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2013-03-27 09:03:44 +0000 |
commit | 75657ab2099354228985561c50ab94382101fcd9 (patch) | |
tree | c57d7a18e296f8e946cf8710c34c19c03845bb14 /lib/colord/cd-icc.h | |
parent | b6fb6cf82418353e9d52a2015a8ef9190fd9bae8 (diff) | |
download | colord-75657ab2099354228985561c50ab94382101fcd9.tar.gz |
libcolord: Add functionality to get the primaries and whitepoint from the profile
Diffstat (limited to 'lib/colord/cd-icc.h')
-rw-r--r-- | lib/colord/cd-icc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/colord/cd-icc.h b/lib/colord/cd-icc.h index 71483d4..0d06d15 100644 --- a/lib/colord/cd-icc.h +++ b/lib/colord/cd-icc.h @@ -97,6 +97,7 @@ typedef struct * @CD_ICC_LOAD_FLAGS_METADATA: Parse the metadata in the profile. * @CD_ICC_LOAD_FLAGS_FALLBACK_MD5: Calculate the profile MD5 if a profile * ID was not supplied in the profile. + * @CD_ICC_LOAD_FLAGS_PRIMARIES: Parse the primaries in the profile. * * Flags used when loading an ICC profile. * @@ -108,6 +109,7 @@ typedef enum { CD_ICC_LOAD_FLAGS_TRANSLATIONS = (1 << 1), CD_ICC_LOAD_FLAGS_METADATA = (1 << 2), CD_ICC_LOAD_FLAGS_FALLBACK_MD5 = (1 << 3), + CD_ICC_LOAD_FLAGS_PRIMARIES = (1 << 4), /* new entries go here: */ CD_ICC_LOAD_FLAGS_ALL = 0xff, CD_ICC_LOAD_FLAGS_LAST @@ -208,6 +210,11 @@ void cd_icc_set_model (CdIcc *icc, const gchar *value); void cd_icc_set_model_items (CdIcc *icc, GHashTable *values); +const CdColorXYZ *cd_icc_get_red (CdIcc *icc); +const CdColorXYZ *cd_icc_get_green (CdIcc *icc); +const CdColorXYZ *cd_icc_get_blue (CdIcc *icc); +const CdColorXYZ *cd_icc_get_white (CdIcc *icc); +guint cd_icc_get_temperature (CdIcc *icc); gboolean cd_icc_create_from_edid (CdIcc *icc, gdouble gamma_value, const CdColorYxy *red, |