[jbig2-cvs] rev 355 - trunk
giles at ghostscript.com
giles at ghostscript.com
Sun Dec 5 21:36:29 PST 2004
Author: giles
Date: 2004-12-05 21:36:28 -0800 (Sun, 05 Dec 2004)
New Revision: 355
Modified:
trunk/jbig2_generic.c
Log:
Correct the test for the nominal generic region template 0 AT pixel
positions. The previous change invoked the optimized routine for the
wrong template, causing a regression with ubc test stream 042_10.
Modified: trunk/jbig2_generic.c
===================================================================
--- trunk/jbig2_generic.c 2004-12-05 04:15:42 UTC (rev 354)
+++ trunk/jbig2_generic.c 2004-12-06 05:36:28 UTC (rev 355)
@@ -488,9 +488,9 @@
if (!params->MMR && params->GBTEMPLATE == 0) {
if (gbat[0] == +3 && gbat[1] == -1 &&
- gbat[2] == -3 && gbat[4] == -1 &&
+ gbat[2] == -3 && gbat[3] == -1 &&
gbat[4] == +2 && gbat[5] == -2 &&
- gbat[6] == +2 && gbat[7] == -2)
+ gbat[6] == -2 && gbat[7] == -2)
return jbig2_decode_generic_template0(ctx, segment, params,
as, image, GB_stats);
else
More information about the jbig2-cvs
mailing list