summaryrefslogtreecommitdiff
path: root/gs/base/gscsepr.c
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2012-04-11 15:07:43 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2012-05-10 11:12:10 -0700
commit79925e26467289515d4cf499d2c3a2d3b1cdcaa4 (patch)
treefbbd18e98e2b31ff4fdf31187a53b372e517f189 /gs/base/gscsepr.c
parentc6d74690be87eb37ca5b4590ed6b44673e4125c7 (diff)
Delay of obtaining handles from CMM for default profiles
Obtaining the profiles handles for all the default profiles in the ICC manager eats up a tiny amount of time on startup. For some customers that start and stop gs over and over instead of running in server mode, this startup time is an issue. This fix performs the initialization in a lazy manner, obtaining the profile handle only when finally needed. This commit also fixed some issues with images that are in the LAB color space.
Diffstat (limited to 'gs/base/gscsepr.c')
-rw-r--r--gs/base/gscsepr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gs/base/gscsepr.c b/gs/base/gscsepr.c
index 021109758..6c117da22 100644
--- a/gs/base/gscsepr.c
+++ b/gs/base/gscsepr.c
@@ -361,7 +361,8 @@ gx_concretize_Separation(const gs_client_color *pc, const gs_color_space *pcs,
/* Use the ICC equivalent color space */
pacs = pacs->icc_equivalent;
}
- if (pacs->cmm_icc_profile_data->data_cs == gsCIELAB) {
+ if (pacs->cmm_icc_profile_data->data_cs == gsCIELAB ||
+ pacs->cmm_icc_profile_data->islab) {
/* Get the data in a form that is concrete for the CMM */
cc.paint.values[0] /= 100.0;
cc.paint.values[1] = (cc.paint.values[1]+128)/255.0;