Package: netpbm Version: 2:10.0-12 Severity: wishlist Tags: patch `pcxtoppm' outputs some not needed for usual user debug when decoding 241 color plane. See attached patch for details.
--- System information. --- Architecture: amd64 Kernel: Linux 2.6.26-2-amd64 Debian Release: squeeze/sid 500 testing deb-proxy 497 unstable deb-proxy 495 stable deb-proxy 493 experimental deb-proxy --- Package information. --- Depends (Version) | Installed ==============================-+-=============== libnetpbm10 (>= 2:10.0-12) | 2:10.0-12 libc6 (>= 2.7-1) | 2.9-12 libjpeg62 | 6b-14 libpng12-0 (>= 1.2.13-4) | 1.2.35-1 libtiff4 | 3.8.2-11 zlib1g (>= 1:1.1.4) | 1:1.2.3.3.dfsg-13 Recommends (Version) | Installed =========================-+-=========== gs | OR gs-aladdin | Package's Suggests field is empty.
--- netpbm-free-10.0/ppm/pcxtoppm.c.orig 2003-08-17 00:10:10.000000000 +0400 +++ netpbm-free-10.0/ppm/pcxtoppm.c 2009-06-04 13:31:20.000000000 +0400 @@ -639,8 +639,6 @@ } -static int rowsRead=0; - static int GetByte(FILE * const fp) { @@ -682,8 +680,6 @@ pcxrow[bytesGenerated++] = c; --repetitionsLeft; } else { - if (rowsRead==241) - pm_message("Reading Byte %ld", ftell(ifP)); c = GetByte(ifP); if ((c & 0xc0) != 0xc0) /* This is a 1-shot byte, not a repetition count */ @@ -691,12 +687,9 @@ else { /* This is a repetition count for the following byte */ repetitionsLeft = c & 0x3f; -if (rowsRead == 241) -pm_message("doing run of %d of Byte %ld in Row 241", repetitionsLeft, ftell(ifP)); c = GetByte(ifP); } } } -rowsRead++; }