sane-project-website/old-archive/2001-03/0076.html

101 wiersze
4.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: sane_get_parameters before sane_start</TITLE>
<META NAME="Author" CONTENT="Frederik Ramm (frederik@remote.org)">
<META NAME="Subject" CONTENT="sane_get_parameters before sane_start">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>sane_get_parameters before sane_start</H1>
<!-- received="Mon Mar 5 12:53:19 2001" -->
<!-- isoreceived="20010305205319" -->
<!-- sent="Mon, 5 Mar 2001 21:11:28 +0000" -->
<!-- isosent="20010305211128" -->
<!-- name="Frederik Ramm" -->
<!-- email="frederik@remote.org" -->
<!-- subject="sane_get_parameters before sane_start" -->
<!-- id="20010305211127.A16058@aruba.remote.org" -->
<STRONG>From:</STRONG> Frederik Ramm (<A HREF="mailto:frederik@remote.org?Subject=Re:%20sane_get_parameters%20before%20sane_start&In-Reply-To=&lt;20010305211127.A16058@aruba.remote.org&gt;"><EM>frederik@remote.org</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Mar 05 2001 - 13:11:28 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0077.html">Oliver Rauch: "Re: sane_get_parameters before sane_start"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0075.html">Oliver Rauch: "Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0077.html">Oliver Rauch: "Re: sane_get_parameters before sane_start"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0077.html">Oliver Rauch: "Re: sane_get_parameters before sane_start"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#76">[ date ]</A>
<A HREF="index.html#76">[ thread ]</A>
<A HREF="subject.html#76">[ subject ]</A>
<A HREF="author.html#76">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>&nbsp;&nbsp;&nbsp;in the SANE spec it says:
<BR>
<P><EM>&gt; While setting up the device, it is also admissible to call
</EM><BR>
<EM>&gt; sane_get_parameters() to get an estimate of what the image
</EM><BR>
<EM>&gt; parameters will look like once image acquisition begins.
</EM><BR>
&nbsp;
<BR>
Does that mean in the backend I have to calculate the scan width in
<BR>
pixels, the bytes per line value, etc. every time the user changes an
<BR>
option? Until now, I was planning to do these calculations only once,
<BR>
in sane_start, but that would mean that you'll get meaningless results
<BR>
from sane_get_parameters() unless sane_start has already been called.
<BR>
<P>Comments from the front-end writers?
<BR>
<P>Bye
<BR>
Frederik
<BR>
<P><PRE>
--
Frederik Ramm ## eMail <A HREF="mailto:frederik@remote.org?Subject=Re:%20sane_get_parameters%20before%20sane_start&In-Reply-To=&lt;20010305211127.A16058@aruba.remote.org&gt;">frederik@remote.org</A> ## N57<35>48.10' W005<30>40.32'
<P><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:%20sane_get_parameters%20before%20sane_start&In-Reply-To=&lt;20010305211127.A16058@aruba.remote.org&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0077.html">Oliver Rauch: "Re: sane_get_parameters before sane_start"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0075.html">Oliver Rauch: "Re: OT: Is &quot;fileno()&quot; conform to ANSI or POSIX?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0077.html">Oliver Rauch: "Re: sane_get_parameters before sane_start"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0077.html">Oliver Rauch: "Re: sane_get_parameters before sane_start"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#76">[ date ]</A>
<A HREF="index.html#76">[ thread ]</A>
<A HREF="subject.html#76">[ subject ]</A>
<A HREF="author.html#76">[ 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>Mon Mar 05 2001 - 12:54:46 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>