summaryrefslogtreecommitdiff
path: root/cups
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2018-09-04 17:01:08 +0100
committerChris Liddell <chris.liddell@artifex.com>2018-09-04 17:01:08 +0100
commitbc3df0773fccf4b4906a3e59652ad646ea0fee91 (patch)
tree195358d8ae9b463e591012e5a0dd12fdca91a103 /cups
parent90a692cfbfc2d6ec3c227149cd8d52fc22dc9e4e (diff)
downloadghostpdl-bc3df0773fccf4b4906a3e59652ad646ea0fee91.tar.gz
For ICC profile validation, have cups id iteself as DeviceN
Give the range of color spaces and models that cups supports, we can't reasonably provide (or expect others to provide) output ICC profiles for all cases. For the purpose of profile validation, have it claim to be DeviceN and benefit from the extra tolerance in profiles allowed for that class of device.
Diffstat (limited to 'cups')
-rw-r--r--cups/gdevcups.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/cups/gdevcups.c b/cups/gdevcups.c
index c1574f860..decd8eb35 100644
--- a/cups/gdevcups.c
+++ b/cups/gdevcups.c
@@ -70,6 +70,7 @@
#include "std.h" /* to stop stdlib.h redefining types */
#include "gdevprn.h"
#include "gsparam.h"
+#include "gxdevsop.h"
#include "arch.h"
#include "gsicc_manage.h"
@@ -252,6 +253,7 @@ private int cups_put_params(gx_device *, gs_param_list *);
private int cups_set_color_info(gx_device *);
private dev_proc_sync_output(cups_sync_output);
private prn_dev_proc_get_space_params(cups_get_space_params);
+private int cups_spec_op(gx_device *dev_, int op, void *data, int datasize);
#ifdef dev_t_proc_encode_color
private cm_map_proc_gray(cups_map_gray);
@@ -392,7 +394,7 @@ private gx_device_procs cups_procs =
NULL, /* push_transparency_state */
NULL, /* pop_transparency_state */
NULL, /* put_image */
-
+ cups_spec_op
};
#define prn_device_body_copies(dtype, procs, dname, w10, h10, xdpi, ydpi, lo, to, lm, bm, rm, tm, ncomp, depth, mg, mc, dg, dc, print_pages)\
@@ -5927,6 +5929,17 @@ cups_print_planar(gx_device_printer *pdev,
return (0);
}
+private int
+cups_spec_op(gx_device *dev_, int op, void *data, int datasize)
+{
+ /* Although not strictly DeviceN, the range of color models
+ this device supports presets similar issues.
+ */
+ if (op == gxdso_supports_devn) {
+ return true;
+ }
+ return gx_default_dev_spec_op(dev_, op, data, datasize);
+}
/*
*/