kopia lustrzana https://gitlab.com/sane-project/website
127 wiersze
5.1 KiB
HTML
127 wiersze
5.1 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: ( XSane parameters or buffer bug</TITLE>
|
||
|
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@rauch-domain.de)">
|
||
|
<META NAME="Subject" CONTENT="Re: ( XSane parameters or buffer bug">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
|
<H1>Re: ( XSane parameters or buffer bug</H1>
|
||
|
<!-- received="Thu May 10 11:54:16 2001" -->
|
||
|
<!-- isoreceived="20010510185416" -->
|
||
|
<!-- sent="Thu, 10 May 2001 21:09:44 +0200" -->
|
||
|
<!-- isosent="20010510190944" -->
|
||
|
<!-- name="Oliver Rauch" -->
|
||
|
<!-- email="oliver.rauch@rauch-domain.de" -->
|
||
|
<!-- subject="Re: ( XSane parameters or buffer bug" -->
|
||
|
<!-- id="3AFAE778.DFFF6197@rauch-domain.de" -->
|
||
|
<!-- inreplyto="01051019421900.00608@slowcrap" -->
|
||
|
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@rauch-domain.de?Subject=Re:%20(%20XSane%20parameters%20or%20buffer%20bug&In-Reply-To=<3AFAE778.DFFF6197@rauch-domain.de>"><EM>oliver.rauch@rauch-domain.de</EM></A>)<BR>
|
||
|
<STRONG>Date:</STRONG> Thu May 10 2001 - 12:09:44 PDT
|
||
|
<P>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0118.html">Sam .: "red and green reversed"</A>
|
||
|
<UL>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0116.html">Henning Meier-Geinitz: "Re: saned won't run under inetd"</A>
|
||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0115.html">mh: "Re:( XSane parameters or buffer bug"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0124.html">Nick Lamb: "Re: ( XSane parameters or buffer bug"</A>
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0124.html">Nick Lamb: "Re: ( XSane parameters or buffer bug"</A>
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#117">[ date ]</A>
|
||
|
<A HREF="index.html#117">[ thread ]</A>
|
||
|
<A HREF="subject.html#117">[ subject ]</A>
|
||
|
<A HREF="author.html#117">[ author ]</A>
|
||
|
</UL>
|
||
|
<HR NOSHADE><P>
|
||
|
<!-- body="start" -->
|
||
|
<P>
|
||
|
mh wrote:
|
||
|
<BR>
|
||
|
|
||
|
<BR>
|
||
|
<EM>> If the backend doesn't return correct values before a call to sane_start(),
|
||
|
</EM><BR>
|
||
|
<EM>> xsane.gamma_data_red (...blue,...green) might have the wrong (array-)size or
|
||
|
</EM><BR>
|
||
|
<EM>> even be 0, because you don't update these values after sane_start().
|
||
|
</EM><BR>
|
||
|
<EM>>
|
||
|
</EM><BR>
|
||
|
<EM>> Or am I wrong again?
|
||
|
</EM><BR>
|
||
|
<P><P>Hi Michael,
|
||
|
<BR>
|
||
|
<P>you are right.
|
||
|
<BR>
|
||
|
I did take a look at xsane.
|
||
|
<BR>
|
||
|
At first xsane can expect that the data depth is correct in
|
||
|
<BR>
|
||
|
the parameter struct because there is no reason at all why
|
||
|
<BR>
|
||
|
the backend does not now the bit depth before sane_start is
|
||
|
<BR>
|
||
|
called and so the backend has to set the correct value when
|
||
|
<BR>
|
||
|
it works conform to the SANE standard.
|
||
|
<BR>
|
||
|
<P>Although it is not nice that xsane produces a segfault it
|
||
|
<BR>
|
||
|
makes sense to create the gamma table before sane_start is
|
||
|
<BR>
|
||
|
called. The creation of the gamma tables can take some time
|
||
|
<BR>
|
||
|
and it is not good to interrupt the scanning for this
|
||
|
<BR>
|
||
|
what can happen on slow computers.
|
||
|
<BR>
|
||
|
<P>I will add a bugfix (some day).
|
||
|
<BR>
|
||
|
<P>Bye
|
||
|
<BR>
|
||
|
Oliver
|
||
|
<BR>
|
||
|
<P><PRE>
|
||
|
--
|
||
|
Homepage: <A HREF="http://www.rauch-domain.de">http://www.rauch-domain.de</A>
|
||
|
sane-umax: <A HREF="http://www.rauch-domain.de/sane-umax">http://www.rauch-domain.de/sane-umax</A>
|
||
|
xsane: <A HREF="http://www.xsane.org">http://www.xsane.org</A>
|
||
|
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@rauch-domain.de?Subject=Re:%20(%20XSane%20parameters%20or%20buffer%20bug&In-Reply-To=<3AFAE778.DFFF6197@rauch-domain.de>">Oliver.Rauch@rauch-domain.de</A>
|
||
|
<P>--
|
||
|
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:%20(%20XSane%20parameters%20or%20buffer%20bug&In-Reply-To=<3AFAE778.DFFF6197@rauch-domain.de>">majordomo@mostang.com</A>
|
||
|
</PRE>
|
||
|
<P><!-- body="end" -->
|
||
|
<HR NOSHADE>
|
||
|
<UL>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0118.html">Sam .: "red and green reversed"</A>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0116.html">Henning Meier-Geinitz: "Re: saned won't run under inetd"</A>
|
||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0115.html">mh: "Re:( XSane parameters or buffer bug"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0124.html">Nick Lamb: "Re: ( XSane parameters or buffer bug"</A>
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: EOF detection"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0124.html">Nick Lamb: "Re: ( XSane parameters or buffer bug"</A>
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#117">[ date ]</A>
|
||
|
<A HREF="index.html#117">[ thread ]</A>
|
||
|
<A HREF="subject.html#117">[ subject ]</A>
|
||
|
<A HREF="author.html#117">[ 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 - 11:55:24 PDT</EM>
|
||
|
</EM>
|
||
|
</SMALL>
|
||
|
</BODY>
|
||
|
</HTML>
|