summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/colord/cd-icc.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/colord/cd-icc.c b/lib/colord/cd-icc.c
index 573d29c..01882c8 100644
--- a/lib/colord/cd-icc.c
+++ b/lib/colord/cd-icc.c
@@ -384,6 +384,19 @@ cd_icc_to_string (CdIcc *icc)
}
break;
}
+ case cmsSigVcgtType:
+ {
+ const cmsToneCurve **vcgt;
+ g_string_append (str, "VideoCardGammaTable:\n");
+ vcgt = cmsReadTag (priv->lcms_profile, sig);
+ if (vcgt == NULL || vcgt[0] == NULL) {
+ g_debug ("icc does not have any VCGT data");
+ continue;
+ }
+ g_string_append_printf (str, " channels\t = %i\n", 3);
+ g_string_append_printf (str, " entries\t = %i\n",
+ cmsGetToneCurveEstimatedTableEntries (vcgt[0]));
+ }
case cmsSigNamedColor2Type:
{
CdColorLab lab;