Re: EOF detection

From: Oliver Rauch (oliver.rauch@rauch-domain.de)
Date: Mon May 07 2001 - 11:05:40 PDT

  • Next message: Henning Meier-Geinitz: "Re: EOF detection"

    Marian Eichholz wrote:
    >
    > If the sane_read() gives SANE_STATUS_EOF, the whole action is discarded.
    > In other words:
    >
    > - the last valid scan data must be reported with SANE_STATUS_GOOD
    > - the SANE_STATUS_EOF must be reported without access to the buffer.

    In fact this is not defined very fine in the standard.
    But after a close look to the sources of scanimage/xscanimage/xsane
    it looks like all frontends do handle it the same.
    So we should mention in the standard that the also last sane_read
    that reutrns valid image data has to return with SANE_STATUS_GOOD.

    Bye
    Oliver

    -- 
    Homepage:	http://www.rauch-domain.de
    sane-umax:	http://www.rauch-domain.de/sane-umax
    xsane:		http://www.xsane.org
    E-Mail:		mailto:Oliver.Rauch@rauch-domain.de
    

    -- 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 May 07 2001 - 11:12:38 PDT