shithub: jbig2

Download patch

ref: e161b891ac484992cfff4127332498fb46125fa8
parent: 581b2c04128ae030deba492ea9a4dfc64a033eae
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Nov 24 02:13:11 EST 2004

Clean up some debug messages.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@331 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/jbig2_image.c
+++ b/jbig2_image.c
@@ -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,15 +197,9 @@
   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);
--- a/jbig2_image.h
+++ b/jbig2_image.h
@@ -37,5 +37,4 @@
 int jbig2_image_set_pixel(Jbig2Image *image, int x, int y, int value);
 
 
-
 #endif /* _JBIG2_IMAGE_H */