summaryrefslogtreecommitdiff
path: root/base/gsicc_manage.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2020-01-15 12:08:22 -0800
committerMichael Vrhel <michael.vrhel@artifex.com>2020-01-15 16:29:50 -0800
commit39eff9a56b2077d1a9adb48dfefd38e5e94b59c6 (patch)
treeda285be8420d306bc57cc7152c7e2ed26da6edc8 /base/gsicc_manage.c
parent1b7690cdd644fd690c2480a88da62be6131e79ab (diff)
downloadghostpdl-39eff9a56b2077d1a9adb48dfefd38e5e94b59c6.tar.gz
Make -dUseFastColor occur even when source color space is ICC based
The exception will be the CIELAB color space, the PS CIE color spaces, named color, and DeviceN ICC profiles.
Diffstat (limited to 'base/gsicc_manage.c')
-rw-r--r--base/gsicc_manage.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/base/gsicc_manage.c b/base/gsicc_manage.c
index 206baead9..71e5e4761 100644
--- a/base/gsicc_manage.c
+++ b/base/gsicc_manage.c
@@ -496,6 +496,23 @@ gsicc_get_default_type(cmm_profile_t *profile_data)
}
}
+int
+gsicc_use_fast_color(cmm_profile_t* profile_data)
+{
+ switch (profile_data->default_match) {
+ case CIE_A:
+ case CIE_ABC:
+ case CIE_DEF:
+ case CIE_DEFG:
+ case LAB_TYPE:
+ case NAMED_TYPE:
+ case DEVICEN_TYPE:
+ return 0;
+ default:
+ return profile_data->num_comps;
+ }
+}
+
bool
gsicc_is_default_profile(cmm_profile_t *profile_data)
{