summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2010-02-12 18:33:21 +0000
committerHenry Stiles <henry.stiles@artifex.com>2010-02-12 18:33:21 +0000
commit307f980e67c64d1637697333896c4c9ee8ea29b0 (patch)
tree45b95a7ff67f4c163c6ca682905fc48209f63ba5 /pcl
parentd2a7c0bcf8694501b7c94b57c8b783206e84169e (diff)
Absurd as it may seem, all device independent color space requests
simply install the sRGB space on recent HP printers (ie Color Laserjet 4600). Add a configuration option to follow the printers and not the specificiation. "Fixes" pcl 5c fts panels: 800-804, 810, 871, and 978. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10750 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pccid.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/pcl/pccid.c b/pcl/pccid.c
index 091f8d7cd..73ee026b4 100644
--- a/pcl/pccid.c
+++ b/pcl/pccid.c
@@ -21,6 +21,13 @@
#include "pccid.h"
#include "plsrgb.h"
+/* The HP Color Laserjet 4550 and forward replace all requests for
+ device independent color spaces with sRGB. Luminance-Chrominance
+ and CIE Lab along with all their parameters are simply ignored and
+ sRGB is installed. Comment out the following definition to follow
+ the specification and not emulate the printers */
+
+#define ALL_TO_SRGB
/* CID accessors */
pcl_cspace_type_t
@@ -298,6 +305,13 @@ check_cid_hdr(
pcidh->bits_per_primary[2] = 8;
}
+#ifdef ALL_TO_SRGB
+ /* the short form of CIE Lab and "LumChrom" are replaced with sRGB
+ on the HP 4600 */
+ if (pcid->len == 6 && pcidh->cspace > pcl_cspace_Colorimetric)
+ pcidh->cspace = pcl_cspace_Colorimetric;
+#endif
+
/* if the device handles color conversion remap the colorimetric color space to rgb */
if (pl_device_does_color_conversion() && pcidh->cspace == pcl_cspace_Colorimetric) {
pcidh->cspace = pcl_cspace_RGB;