[gs-commits] rev 11874 - trunk/gs/base

henrys at ghostscript.com henrys at ghostscript.com
Fri Oct 29 19:35:48 UTC 2010


Author: henrys
Date: 2010-10-29 19:35:48 +0000 (Fri, 29 Oct 2010)
New Revision: 11874

Modified:
   trunk/gs/base/gxipixel.c
Log:
Revision 10823 removed an optimization to strength reduce the logical
operation when rendering an image - the optimization in fact was
incorrect (see the bug referenced in the commit entry #691147) however
the optimization is correct and gives us a good speedup if the current
color is black.  This is due to the peculiarities of the pcl
transparency model which only effects the opacity/transparency of
white.


Modified: trunk/gs/base/gxipixel.c
===================================================================
--- trunk/gs/base/gxipixel.c	2010-10-29 16:37:41 UTC (rev 11873)
+++ trunk/gs/base/gxipixel.c	2010-10-29 19:35:48 UTC (rev 11874)
@@ -378,6 +378,8 @@
 	/* that we implement less expensively. */
 	if (!pim->CombineWithColor)
 	    lop = rop3_know_T_0(lop) & ~lop_T_transparent;
+        else if ((rop3_uses_T(lop) && color_draws_b_w(dev, pdcolor) == 0))
+            lop = rop3_know_T_0(lop);
 
 	if (lop != rop3_S &&	/* if best case, no more work needed */
 	    !rop3_uses_T(lop) && bps == 1 && spp == 1 &&



More information about the gs-commits mailing list