[gs-cvs] rev 8586 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Mon Mar 3 12:16:07 PST 2008
Author: leonardo
Date: 2008-03-03 12:16:06 -0800 (Mon, 03 Mar 2008)
New Revision: 8586
Modified:
trunk/gs/src/siscale.c
Log:
Fix (images) : Revert an unintentional change to siscale.c .
DETAILS :
When doing the revisoon 8530, a macro was expanded in siscale.c
for a debug purpose. This change was committed by error,
reverting it now.
EXPECTED DIFFERENCES :
None.
Modified: trunk/gs/src/siscale.c
===================================================================
--- trunk/gs/src/siscale.c 2008-03-03 16:01:12 UTC (rev 8585)
+++ trunk/gs/src/siscale.c 2008-03-03 20:16:06 UTC (rev 8586)
@@ -376,21 +376,7 @@
if (sizeofPixelOut == 1) {
zoom_y_loop(byte)
} else { /* sizeofPixelOut == 2 */
- /* zoom_y_loop(bits16) */
- for ( kc = 0; kc < kn; ++kc ) {
- AccumTmp weight = 0;
- { const PixelTmp *pp = &tmp[kc + first_pixel];
- int j = cn;
- const CONTRIB *cp = cbp;
- for ( ; j > 0; pp += kn, ++cp, --j )
- weight += *pp * cp->weight;
- }
- { PixelTmp2 pixel = unscale_AccumTmp(weight, fraction_bits);
- if_debug1('W', " %lx", (long)pixel);
- ((bits16 *)dst)[kc] =
- (bits16)CLAMP(pixel, 0, max_weight);
- }
- }
+ zoom_y_loop(bits16)
}
if_debug0('W', "\n");
}
More information about the gs-cvs
mailing list