[jbig2-cvs] rev 331 - trunk
giles at ghostscript.com
giles at ghostscript.com
Tue Nov 23 23:13:12 PST 2004
Author: giles
Date: 2004-11-23 23:13:11 -0800 (Tue, 23 Nov 2004)
New Revision: 331
Modified:
trunk/jbig2_image.c
trunk/jbig2_image.h
Log:
Clean up some debug messages.
Modified: trunk/jbig2_image.c
===================================================================
--- trunk/jbig2_image.c 2004-11-24 03:03:12 UTC (rev 330)
+++ trunk/jbig2_image.c 2004-11-24 07:13:11 UTC (rev 331)
@@ -108,7 +108,8 @@
w = (x + w < dst->width) ? w : dst->width - x;
h = (y + h < dst->height) ? h : dst->height - y;
#ifdef JBIG2_DEBUG
- fprintf(stderr, "composting %dx%d at (%d, %d) afer clipping\n",
+ jbig2_error(ctx, JBIG2_SEVERITY_DEBUG, -1,
+ "composting %dx%d at (%d, %d) afer clipping\n",
w, h, x, y);
#endif
@@ -196,16 +197,10 @@
if ((x < 0) || (x > w)) return 0;
if ((y < 0) || (y > h)) return 0;
- fprintf(stderr, "set pixel called for image 0x%x (%d x %d) stride %d\n",
- image, w, h, image->stride);
-
byte = (x >> 3) + y*image->stride;
bit = 7 - (x & 7);
mask = (1 << bit) ^ 0xff;
- fprintf(stderr, "set pixel mask for bit %d of byte %d (%d,%d) is 0x%02x\n",
- bit, byte, x, y, mask);
-
scratch = image->data[byte] & mask;
image->data[byte] = scratch | (value << bit);
Modified: trunk/jbig2_image.h
===================================================================
--- trunk/jbig2_image.h 2004-11-24 03:03:12 UTC (rev 330)
+++ trunk/jbig2_image.h 2004-11-24 07:13:11 UTC (rev 331)
@@ -37,5 +37,4 @@
int jbig2_image_set_pixel(Jbig2Image *image, int x, int y, int value);
-
#endif /* _JBIG2_IMAGE_H */
More information about the jbig2-cvs
mailing list