[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1591-g453ef45
[email protected] (Michael Vrhel)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via 453ef45209143ecf3c3e25dafd9fbe6698e2c5a1 (commit)
from cc656558a289fa28dbb491d70478fd18973b287a (commit)
----------------------------------------------------------------------
commit 453ef45209143ecf3c3e25dafd9fbe6698e2c5a1
Author: Michael Vrhel <[email protected]>
Date: Tue Aug 20 21:50:18 2019 -0700
Disable use of alternate tint transform ICC profile
A prior commit introduced the use of color management
if the DeviceN or Separation device had an ICC profile
associated with the colorants. While there is an argument
for doing this, it is not the standard behavior seen in
AR. Disabling for now and will likely turn this into a
command line option.
diff --git a/base/gxcmap.c b/base/gxcmap.c
index b2cde83..417a2ea 100644
--- a/base/gxcmap.c
+++ b/base/gxcmap.c
@@ -37,6 +37,15 @@
#include "gsicc.h"
#include "gxdevsop.h"
+/* If enabled, this makes use of the alternate transform
+ ICC profile for mapping separation and
+ DeviceN colorants from CMYK to output
+ ICC color space iff the profiles make
+ sense. We should probably make this yet
+ another color command line option. Disabling
+ it for now for the current release. */
+#define USE_ALT_MAP 0
+
/* Structure descriptor */
public_st_device_color();
static
@@ -1366,13 +1375,15 @@ devicen_sep_icc_cmyk(frac cm_comps[], const gs_gstate * pgs,
src_profile = pcs->params.device_n.devn_process_space->cmm_icc_profile_data;
} else if (pcs->base_space != NULL &&
pcs->base_space->cmm_icc_profile_data != NULL &&
- pcs->base_space->cmm_icc_profile_data->data_cs == gsCMYK) {
+ pcs->base_space->cmm_icc_profile_data->data_cs == gsCMYK &&
+ USE_ALT_MAP) {
src_profile = pcs->base_space->cmm_icc_profile_data;
}
} else if (gs_color_space_get_index(pcs) == gs_color_space_index_Separation) {
if (pcs->base_space != NULL &&
pcs->base_space->cmm_icc_profile_data != NULL &&
- pcs->base_space->cmm_icc_profile_data->data_cs == gsCMYK) {
+ pcs->base_space->cmm_icc_profile_data->data_cs == gsCMYK &&
+ USE_ALT_MAP) {
src_profile = pcs->base_space->cmm_icc_profile_data;
}
}
Summary of changes:
base/gxcmap.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)