[gs-cvs] rev 7159 - trunk/gs/src
ray at ghostscript.com
ray at ghostscript.com
Fri Nov 3 21:59:16 PST 2006
Author: ray
Date: 2006-11-03 21:59:16 -0800 (Fri, 03 Nov 2006)
New Revision: 7159
Modified:
trunk/gs/src/gsccolor.h
trunk/gs/src/gsfunc4.c
Log:
Increase the number of DeviceN components we can handle to at least
250 (which is needed by CET 09-03, 09-06, ...). Both GS_CLIENT_COLOR_MAX_COMPONENTS
and MAX_VSTACK depth are needed since we use Type 4 functions to handle DeviceN colors.
Modified: trunk/gs/src/gsccolor.h
===================================================================
--- trunk/gs/src/gsccolor.h 2006-11-04 05:51:14 UTC (rev 7158)
+++ trunk/gs/src/gsccolor.h 2006-11-04 05:59:16 UTC (rev 7159)
@@ -28,10 +28,10 @@
/*
* Define the maximum number of components in a client color.
* This must be at least 4, and should be at least 6 to accommodate
- * hexachrome DeviceN color spaces. It is currently set to the maximum
- * size allowed by the size of a gx_color_index
+ * hexachrome DeviceN color spaces. It is currently set to the same
+ * value as Adobe CPSI can handle
*/
-#define GS_CLIENT_COLOR_MAX_COMPONENTS (ARCH_SIZEOF_GX_COLOR_INDEX * 8)
+#define GS_CLIENT_COLOR_MAX_COMPONENTS (252)
/* Paint (non-Pattern) colors */
typedef struct gs_paint_color_s {
Modified: trunk/gs/src/gsfunc4.c
===================================================================
--- trunk/gs/src/gsfunc4.c 2006-11-04 05:51:14 UTC (rev 7158)
+++ trunk/gs/src/gsfunc4.c 2006-11-04 05:59:16 UTC (rev 7159)
@@ -38,7 +38,10 @@
private_st_function_PtCr();
/* Define the maximum stack depth. */
-#define MAX_VSTACK 100 /* per documentation */
+#define MAX_VSTACK 256 /* Max 100 is enough per PDF spec, but we use this
+ * for DeviceN handling. Must be at least as large
+ * as the number of components
+ */
/* Define the structure of values on the stack. */
typedef enum {
More information about the gs-cvs
mailing list