summaryrefslogtreecommitdiff
path: root/base/gsicc.h
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2018-06-29 14:13:39 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2018-06-29 14:13:39 -0700
commit8d415abe6f1e0e3a7e895511e20d99eebad48ada (patch)
tree1fcb754e86d708a78103dea8bc3cf2d821b325ce /base/gsicc.h
parentda3810ce626a1c5dca856a7bac757bf254761f69 (diff)
downloadghostpdl-8d415abe6f1e0e3a7e895511e20d99eebad48ada.tar.gz
Fix rendering issue on tiffscaled devices
The tiffscaled contone devices have to be able to change their color model to allow a more flexible use of the post render ICC profile with the output intent. Prior to this commit, certain profile combinations would result in mis-rendered results. With this fix, if we are wanting to render to a CMYK intermediate output intent but we want the output to be in sRGB then we need to use -sDEVICE=tiffscaled24 -dUsePDFX3Profile -sOutputICCProfile=default_cmyk.icc -sPostRenderProfile=srgb.icc . This should then render to a temporary buffer the is in the OutputIntent color space and then be converted to sRGB. This should look like the result we get when we go out to the tiffscaled32 device. This is in contrast to the command line sDEVICE=tiffscaled24 -dUsePDFX3Profile -sPostRenderProfile=srgb.icc which would end up using the output intent as a proofing profile. The results may be similar but not exact as overprint and spot colors would not appear correctly due to the additive color model during rendering.
Diffstat (limited to 'base/gsicc.h')
-rw-r--r--base/gsicc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/gsicc.h b/base/gsicc.h
index 567417051..ed3398acb 100644
--- a/base/gsicc.h
+++ b/base/gsicc.h
@@ -33,4 +33,6 @@ extern int gs_cspace_build_ICC( gs_color_space ** ppcspace,
extern const gs_color_space_type gs_color_space_type_ICC;
extern cs_proc_remap_color(gx_remap_ICC_imagelab);
+int gx_change_color_model(gx_device *dev, int num_comps, int bit_depth);
+
#endif /* gsicc_INCLUDED */