[gs-cvs] rev 8089 - trunk/gs/src

henrys at ghostscript.com henrys at ghostscript.com
Fri Jun 29 13:44:58 PDT 2007


Author: henrys
Date: 2007-06-29 13:44:57 -0700 (Fri, 29 Jun 2007)
New Revision: 8089

Modified:
   trunk/gs/src/gxclread.c
Log:
Temporarily disable the band complexity code and use the existing
"color used" code to detect non trivial raster operations.

DETAILS:

The band complexity code is to be removed entirely.  It is not correct
and (apparently) the person who implemented it did not realize there
was code in the system to accomplish the same task.  For now we fill
in the band complexity array with (correct) values from
gdev_prn_colors_used().  We are not removing all of the band
complexity now because there are other banding projects in the works.

EXPECTED DIFFERENCES:

Almost any pcl file with a non trivial raster operation when printed
with the WTSIMDI device.






Modified: trunk/gs/src/gxclread.c
===================================================================
--- trunk/gs/src/gxclread.c	2007-06-29 20:21:42 UTC (rev 8088)
+++ trunk/gs/src/gxclread.c	2007-06-29 20:44:57 UTC (rev 8089)
@@ -573,6 +573,15 @@
 	if (crdev->band_complexity_array == NULL)
 	    return NULL;
 
+        {
+            /* NB this is a temporary workaround until the band
+               complexity machinery can be removed entirely. */
+            gx_colors_used_t colors_used;
+            int range_ignored;
+            gdev_prn_colors_used(dev, y, 1, &colors_used, &range_ignored);
+            crdev->band_complexity_array[band_number].nontrivial_rops = (int)colors_used.slow_rop;
+            crdev->band_complexity_array[band_number].uses_color = (int)colors_used.or;
+        }
 	return &crdev->band_complexity_array[band_number];
     }
     return NULL;



More information about the gs-cvs mailing list