[gs-cvs] rev 8334 - in trunk/gs: doc src
leonardo at ghostscript.com
leonardo at ghostscript.com
Tue Oct 30 10:47:50 PDT 2007
Author: leonardo
Date: 2007-10-30 10:47:49 -0700 (Tue, 30 Oct 2007)
New Revision: 8334
Modified:
trunk/gs/doc/Use.htm
trunk/gs/src/gsalphac.c
trunk/gs/src/gsovrc.c
trunk/gs/src/gsropc.c
trunk/gs/src/gxclrast.c
Log:
Fix (banding) : Improving the debug trace about compositors.
DETAILS :
This change is algorithmically equivalent for release build.
In the debug build it only adds more debug printing.
1. Added a debug printing for alpha, overprint and rop compositors
when writing/reading from/to clist.
2. (gxclrast.c) When printing a matrix with the 'L' switch,
use global page coordinates as rectangle operations do.
It allows to map reading operatrions to corresponding writeing operations.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/doc/Use.htm
===================================================================
--- trunk/gs/doc/Use.htm 2007-10-30 03:34:47 UTC (rev 8333)
+++ trunk/gs/doc/Use.htm 2007-10-30 17:47:49 UTC (rev 8334)
@@ -2964,8 +2964,8 @@
<dt><b><tt>t</tt></b><dd>tiling algorithm
<dt><b><tt>u</tt></b><dd>undo saver (for save/restore), finalization
<dt> <b><tt>U</tt></b><dd>undo saver, more detail
-<dt><b><tt>v</tt></b><dd>alpha/transparency
-<dt> <b><tt>V</tt></b><dd>alpha/transparency, more detail
+<dt><b><tt>v</tt></b><dd>compositors: alpha/transparency/overprint/rop
+<dt> <b><tt>V</tt></b><dd>compositors: alpha/transparency/overprint/rop, more detail
<dt><b><tt>w</tt></b><dd>compression encoder/decoder
<dt><b><tt>x</tt></b><dd>transformations
<dt><b><tt>y</tt></b><dd>Type 1 hints
Modified: trunk/gs/src/gsalphac.c
===================================================================
--- trunk/gs/src/gsalphac.c 2007-10-30 03:34:47 UTC (rev 8333)
+++ trunk/gs/src/gsalphac.c 2007-10-30 17:47:49 UTC (rev 8334)
@@ -150,6 +150,7 @@
uint size = *psize;
uint used;
+ if_debug1('v', "[v]c_alpha_write(%d)\n", pacte->params.op);
if (pacte->params.op == composite_Dissolve) {
used = 1 + sizeof(pacte->params.delta);
if (size < used) {
@@ -179,6 +180,7 @@
if (size < 1 || *data > composite_op_last)
return_error(gs_error_rangecheck);
params.op = *data;
+ if_debug1('v', "[v]c_alpha_read(%d)\n", params.op);
if (params.op == composite_Dissolve) {
if (size < 1 + sizeof(params.delta))
return_error(gs_error_rangecheck);
Modified: trunk/gs/src/gsovrc.c
===================================================================
--- trunk/gs/src/gsovrc.c 2007-10-30 03:34:47 UTC (rev 8333)
+++ trunk/gs/src/gsovrc.c 2007-10-30 17:47:49 UTC (rev 8334)
@@ -159,6 +159,7 @@
if (used > avail)
return_error(gs_error_rangecheck);
data[0] = flags;
+ if_debug1('v', "[v]c_overprint_write(%d)\n", flags);
return 0;
}
@@ -180,6 +181,7 @@
if (size < 1)
return_error(gs_error_rangecheck);
flags = *data;
+ if_debug1('v', "[v]c_overprint_read(%d)\n", flags);
params.retain_any_comps = (flags & OVERPRINT_ANY_COMPS) != 0;
params.retain_spot_comps = (flags & OVERPRINT_SPOT_COMPS) != 0;
Modified: trunk/gs/src/gsropc.c
===================================================================
--- trunk/gs/src/gsropc.c 2007-10-30 03:34:47 UTC (rev 8333)
+++ trunk/gs/src/gsropc.c 2007-10-30 17:47:49 UTC (rev 8334)
@@ -80,12 +80,14 @@
c_rop_write(const gs_composite_t * pcte, byte * data, uint * psize)
{
/****** NYI ******/
+ if_debug('v', "[v]c_rop_write\n");
}
static int
c_rop_read(gs_composite_t ** ppcte, const byte * data, uint size,
gs_memory_t * mem)
{
+ if_debug('v', "[v]c_rop_read)\n");
/****** NYI ******/
}
Modified: trunk/gs/src/gxclrast.c
===================================================================
--- trunk/gs/src/gxclrast.c 2007-10-30 03:34:47 UTC (rev 8333)
+++ trunk/gs/src/gxclrast.c 2007-10-30 17:47:49 UTC (rev 8334)
@@ -918,12 +918,12 @@
gs_matrix mat;
cbp = cmd_read_matrix(&mat, cbp);
+ if_debug6('L', " [%g %g %g %g %g %g]\n",
+ mat.xx, mat.xy, mat.yx, mat.yy,
+ mat.tx, mat.ty);
mat.tx -= x0;
mat.ty -= y0;
gs_imager_setmatrix(&imager_state, &mat);
- if_debug6('L', " [%g %g %g %g %g %g]\n",
- mat.xx, mat.xy, mat.yx, mat.yy,
- mat.tx, mat.ty);
}
continue;
case cmd_opv_set_misc2:
More information about the gs-cvs
mailing list