[raster] Improve tracing.

This commit is contained in:
Alexei Podtelezhnikov 2020-09-08 22:20:11 -04:00
parent fa82803f46
commit 3594eaee59
1 changed files with 12 additions and 16 deletions

View File

@ -2241,11 +2241,10 @@
/* in high-precision mode, we need 12 digits after the comma to */
/* represent multiples of 1/(1<<12) = 1/4096 */
FT_TRACE7(( " y=%d x=[%.12f;%.12f], drop-out=%d",
FT_TRACE7(( " y=%d x=[% .12f;% .12f]",
y,
x1 / (double)ras.precision,
x2 / (double)ras.precision,
dropOutControl ));
x2 / (double)ras.precision ));
/* Drop-out control */
@ -2315,7 +2314,7 @@
Short c1, f1;
FT_TRACE7(( " y=%d x=[%.12f;%.12f]",
FT_TRACE7(( " y=%d x=[% .12f;% .12f]",
y,
x1 / (double)ras.precision,
x2 / (double)ras.precision ));
@ -2352,8 +2351,6 @@
Int dropOutControl = left->flags & 7;
FT_TRACE7(( ", drop-out=%d", dropOutControl ));
if ( e1 == e2 + ras.precision )
{
switch ( dropOutControl )
@ -2447,7 +2444,7 @@
if ( e1 >= 0 && e1 < ras.bWidth )
{
FT_TRACE7(( " -> x=%ld (drop-out)", e1 ));
FT_TRACE7(( " -> x=%ld", e1 ));
c1 = (Short)( e1 >> 3 );
f1 = (Short)( e1 & 7 );
@ -2456,7 +2453,7 @@
}
Exit:
FT_TRACE7(( "\n" ));
FT_TRACE7(( " dropout=%d\n", left->flags & 7 ));
}
@ -2503,7 +2500,7 @@
Long e1, e2;
FT_TRACE7(( " x=%d y=[%.12f;%.12f]",
FT_TRACE7(( " x=%d y=[% .12f;% .12f]",
y,
x1 / (double)ras.precision,
x2 / (double)ras.precision ));
@ -2521,11 +2518,12 @@
PByte bits;
FT_TRACE7(( " -> y=%ld (drop-out)", e1 ));
bits = ras.bOrigin + ( y >> 3 ) - e1 * ras.target.pitch;
f1 = (Byte)( 0x80 >> ( y & 7 ) );
FT_TRACE7(( bits[0] & f1 ? " redundant"
: " -> y=%ld", e1 ));
bits[0] |= f1;
}
}
@ -2547,7 +2545,7 @@
Byte f1;
FT_TRACE7(( " x=%d y=[%.12f;%.12f]",
FT_TRACE7(( " x=%d y=[% .12f;% .12f]",
y,
x1 / (double)ras.precision,
x2 / (double)ras.precision ));
@ -2573,8 +2571,6 @@
Int dropOutControl = left->flags & 7;
FT_TRACE7(( ", dropout=%d", dropOutControl ));
if ( e1 == e2 + ras.precision )
{
switch ( dropOutControl )
@ -2644,7 +2640,7 @@
if ( e1 >= 0 && (ULong)e1 < ras.target.rows )
{
FT_TRACE7(( " -> y=%ld (drop-out)", e1 ));
FT_TRACE7(( " -> y=%ld", e1 ));
bits = ras.bOrigin + ( y >> 3 ) - e1 * ras.target.pitch;
f1 = (Byte)( 0x80 >> ( y & 7 ) );
@ -2653,7 +2649,7 @@
}
Exit:
FT_TRACE7(( "\n" ));
FT_TRACE7(( " dropout=%d\n", left->flags & 7 ));
}