Re: Problems with Prisa 620S [snapscan] + BUG in xsane 0.76

From: Oliver Rauch (oliver.rauch@rauch-domain.de)
Date: Wed May 23 2001 - 09:11:04 PDT

  • Next message: Oliver Rauch: "Re: [BUG] Epson 1640SU, xsane preview problem"

    Ben Stanley wrote:

    > Looks like your theory is confirmed. Not sure I know what to do about it
    > yet... I mean, I know the backend has to be fixed, but I'm not in a
    > position to be able to do it yet :-).

    Hi Ben,

    a close look shows this:

    lines is defined by remaining,
    remaining is set to pss->lines*pss->bytes_per_line

    pss->lines is defined in function inquriy()

    th function inquiry is called in sane_start, after this
    pss->lines should be correct.

    I would test the following:
    edit snapscan.c, line 2018 (in cvs) (here lines 2013-2019:
        if (pss->psrc != NULL)
        {
            /* use what the source chain says */
            p->pixels_per_line = pss->psrc->pixelsPerLine(pss->psrc);
            p->bytes_per_line = pss->psrc->bytesPerLine(pss->psrc);
            p->lines = pss->psrc->remaining(pss->psrc)/p->bytes_per_line;
        }

    change
            p->lines = pss->psrc->remaining(pss->psrc)/p->bytes_per_line;
    to
            p->lines = pss->lines;

    May be this already solves the problem.

    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 : Wed May 23 2001 - 09:07:11 PDT