sane-project-website/old-archive/2001-05/0109.html

132 wiersze
4.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: EOF detection</TITLE>
<META NAME="Author" CONTENT="mh (crapsite@gmx.net)">
<META NAME="Subject" CONTENT="Re: EOF detection">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: EOF detection</H1>
<!-- received="Thu May 10 03:26:07 2001" -->
<!-- isoreceived="20010510102607" -->
<!-- sent="Thu, 10 May 2001 12:11:42 +0200" -->
<!-- isosent="20010510101142" -->
<!-- name="mh" -->
<!-- email="crapsite@gmx.net" -->
<!-- subject="Re: EOF detection" -->
<!-- id="01051012341301.00606@slowcrap" -->
<!-- inreplyto="3AFA5A51.B2EBBD28@freenet-ag.de" -->
<STRONG>From:</STRONG> mh (<A HREF="mailto:crapsite@gmx.net?Subject=Re:%20EOF%20detection&In-Reply-To=&lt;01051012341301.00606@slowcrap&gt;"><EM>crapsite@gmx.net</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu May 10 2001 - 03:11:42 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0110.html">Nick Lamb: "Re: EOF detection"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0108.html">Miroslav BENES: "Drivers for HP S20 USB"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0107.html">Marian Eichholz: "Re: EOF detection"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0110.html">Nick Lamb: "Re: EOF detection"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0110.html">Nick Lamb: "Re: EOF detection"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0114.html">Oliver Rauch: "XSane parameters or buffer bug"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#109">[ date ]</A>
<A HREF="index.html#109">[ thread ]</A>
<A HREF="subject.html#109">[ subject ]</A>
<A HREF="author.html#109">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Marian Eichholz, Don, 10 Mai 2001 :
<BR>
<EM>&gt; Nick Lamb wrote:
</EM><BR>
...
<BR>
<EM>&gt; The point is, that the Xsane frontend allocates a buffer, depending on
</EM><BR>
<EM>&gt; the sane_param(? I don't have the specs here?) call returning the
</EM><BR>
<EM>&gt; dimensions of the scan window.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Despite this, the frontend always requests blocks of 8KB (gray) and 64KB
</EM><BR>
<EM>&gt; (RGB), even if the end of the allocated
</EM><BR>
<EM>&gt; picture buffer lies within this chunk size and cannot swallow this whole
</EM><BR>
<EM>&gt; chunk.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Thus, any backend that is keen to deliver actually more data than XSane
</EM><BR>
<EM>&gt; expects, will overflow XSane's scan buffer.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; You I right, I have to deliver some body of evidence :-)))
</EM><BR>
<P>I had this problem last year, with the plustek backend and an OpticPro 600P.
<BR>
IIRC the reason for this was, that XSane relies on the values it gets from
<BR>
a call to sane_get_parameters() *before* sane_start() is called. However, the
<BR>
plustek backend didn't return valid parameters at this stage, which resulted in
<BR>
the problem you described.
<BR>
I've just tested an old version of the plustek backend with XSane0.76, and the
<BR>
problem still seems to persists.
<BR>
I don't know whether one should call it a bug in XSane; at least it could be
<BR>
easily solved by calling sane_get_parameters() after sane_start() has been
<BR>
called. (Oliver?)
<BR>
<P>Michael
<BR>
<P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20EOF%20detection&In-Reply-To=&lt;01051012341301.00606@slowcrap&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0110.html">Nick Lamb: "Re: EOF detection"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0108.html">Miroslav BENES: "Drivers for HP S20 USB"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0107.html">Marian Eichholz: "Re: EOF detection"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0110.html">Nick Lamb: "Re: EOF detection"</A>
<LI><STRONG>Next in thread:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0110.html">Nick Lamb: "Re: EOF detection"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0114.html">Oliver Rauch: "XSane parameters or buffer bug"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#109">[ date ]</A>
<A HREF="index.html#109">[ thread ]</A>
<A HREF="subject.html#109">[ subject ]</A>
<A HREF="author.html#109">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Thu May 10 2001 - 03:27:08 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>