16 bit support for scanimage

From: Peter Kirchgessner (peter@kirchgessner.net)
Date: Mon Apr 24 2000 - 14:57:25 PDT

  • Next message: Ying Li: "Canon Canoscan FB630U"

    Hi,

    enclosed is a proposal for 16 bit support for scanimage. It adds the
    possibility to save scans as TIFF-files which has both 8 and 16 bit
    support. It is not based on libtiff, it is just straightforward. The
    TIFF-files are uncompressed like the PNM-files. If a compression is
    needed, it should be done in a postprocessing step.
    The included patch is to be applied to the frontend-directory of SANE
    1.0.2. It modifies scanimage.c and Makefile.in. It creates two new files
    stiff.[hc]. Configure must be run again to build the new Makefile.
    To get TIFF-output from scanimage, it must be started with -o or
    --output-tiff.
    The patch also modifies the PNM-output. For a depth larger than 8 bit, a
    maxval of 65535 is written instead of 255. At least xv on Intel-Linux
    can read these files, even if the netpbm-toolbox does not specify binary
    PPMs with maxval > 255.

    I could not test 16 bit TIFF-output on non-Intel based Systems. Would be
    nice if someone could do that.
    Any suggestions are welcome. Maybe these changes then can get into the
    next official SANE release.

    --Peter

    -- 
    Peter Kirchgessner
    WWW:    http://www.kirchgessner.net
    e-mail: peter@kirchgessner.net
    
    

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    



    This archive was generated by hypermail 2b29 : Mon Apr 24 2000 - 15:00:53 PDT