[sane-devel] Patch to scanimage.c for 16-bit PNM files (was: Epson 2450: scanimage produces invalid PNM files)

Roland Roberts roland at astrofoto.org
Sun Apr 14 23:40:19 BST 2002


>>>>> "Oliver" == Oliver Rauch <oliver.rauch at rauch-domain.de> writes:

    Oliver> The pnm format has been extended in april 2000.
    Oliver> As far as I can see there are two interesting new things:
    Oliver> 1) 16 bit raw data
    Oliver> 2) more than one image in a pnm file

Here is a patch against the source in sane-backends 1.07.  To be
complete, it requires a patch to configure.in to test for
WORDS_BIGENDIAN since it only byte-flips values in the read buffer if
the native byte-order is little-endian.  When writing TIFF files, it
does nothing.

roland
-- 
		       PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD                             RL Enterprises
roland at rlenter.com                     76-15 113th Street, Apt 3B
roland at astrofoto.org                       Forest Hills, NY 11375

-------------- next part --------------
A non-text attachment was scrubbed...
Name: scanimage.diff
Type: text/x-patch
Size: 1288 bytes
Desc: Write 16-bit/color PNM files MSB first
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20020414/ec7ed8b2/attachment.bin>


More information about the sane-devel mailing list