calculation of bytes to read, bytes per line etc

Meino Christian Cramer (root@solfire.ludwigsburg.netsurf.de)
Mon, 28 Jun 1999 09:09:47 GMT

Hi all!

Currently I am programming a backend for
the AVISION AV630CS.

One problem appears, to which I have no idea
how to solve.

At different places of the code, things like
bytes per line, bytes per page, lines per page,
dots perl line etc are calculated.

Unfortunatly, there most be some round errors or
something like that, cause Xscanimage gets (or means)
a greater amount of bytes to read, than my scanner is
willing to send.

Therefore, the scan stops (scanner means, there is
nothing left to do...) but the read process is called
furthermore. Effect: The scan slider (?right word?)
remains at the end of the page and after a while everything
hangs, cause the SCSI-bus timed out. Sigh.

I have tried to follow the traces of the calculation,
but if I get a normal scanned image with some tricks, the picture
ittself is corrupted: the different rgb-layer does not match
anymore.

If there is someone out there, which has fought this battle before
and won ;-) : I would be very happy to know her/his trick ;-))

KEEP HACKING THE MATRIX!
Meino

---------------------------------------------
*** YOU CAN STILL GET OUT OF THE MATRIX! ***
*** USE LINUX! ***
---------------------------------------------

--------------------------------------------------------------------------
Anyone sending unwanted advertising e-mail to this address will be charged
$25 for network traffic and computing time. By extracting my address from
this message or its header, you agree to these terms.
--------------------------------------------------------------------------

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