diff options
author | Henry Stiles <henry.stiles@artifex.com> | 2010-02-17 17:15:53 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 2010-02-17 17:15:53 +0000 |
commit | 250d656f8af185a232af50aedb6ed25d1840e4f9 (patch) | |
tree | afa976482396d3e0db95ef14262c55917d337c37 /pxl/pxgstate.c | |
parent | c71f072508db0ca0fa663549e7187ea57918786c (diff) |
Michael Vrhel's patches to enable use of the ICC branch with pcl and
pxl. We use a conditional define ICCBRANCH so the languages will
compile against the branch and trunk. The corresponding xps changes
are forthcoming.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10762 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'pxl/pxgstate.c')
-rw-r--r-- | pxl/pxgstate.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pxl/pxgstate.c b/pxl/pxgstate.c index 4d02961a4..a23e42724 100644 --- a/pxl/pxgstate.c +++ b/pxl/pxgstate.c @@ -28,6 +28,7 @@ #include "gscoord.h" #include "gxcspace.h" /* must precede gscolor2.h */ #include "gscie.h" +#include "gsiccmanage.h" #include "gsimage.h" #include "gspath.h" #include "gspath2.h" @@ -331,9 +332,17 @@ px_image_color_space(gs_image_t *pim, switch ( params->color_space ) { case eGray: pbase_pcs = gs_cspace_new_DeviceGray(pgs->memory); +#ifdef ICCBRANCH + pbase_pcs->cmm_icc_profile_data = pgs->icc_manager->default_gray; + rc_increment(pbase_pcs->cmm_icc_profile_data); +#endif break; case eRGB: pbase_pcs = gs_cspace_new_DeviceRGB(pgs->memory); +#ifdef ICCBRANCH + pbase_pcs->cmm_icc_profile_data = pgs->icc_manager->default_rgb; + rc_increment(pbase_pcs->cmm_icc_profile_data); +#endif break; case eSRGB: case eCRGB: @@ -341,6 +350,10 @@ px_image_color_space(gs_image_t *pim, /* should not happen */ return_error(errorInsufficientMemory); cie_space = true; +#ifdef ICCBRANCH + pbase_pcs->cmm_icc_profile_data = pgs->icc_manager->default_rgb; + rc_increment(pbase_pcs->cmm_icc_profile_data); +#endif break; default: return_error(errorIllegalAttributeValue); |