[sane-devel] Patch to scanimage.c for 16-bit PNM files (was: Epson 2450: scanimage produces invalid PNM files)
Henning Meier-Geinitz
henning at meier-geinitz.de
Mon Apr 15 16:52:12 BST 2002
Hi,
On Sun, Apr 14, 2002 at 06:40:19PM -0400, Roland Roberts wrote:
> 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.
Thanks for the patch. It fixes some cases. However, you will get
problems if the amount of data is odd or must_buffer == SANE_TRUE.
I will put it on the TODO list.
Bye,
Henning
More information about the sane-devel
mailing list