kopia lustrzana https://gitlab.com/sane-project/website
				
				
				
			
		
			
				
	
	
		
			132 wiersze
		
	
	
		
			5.2 KiB
		
	
	
	
		
			HTML
		
	
	
			
		
		
	
	
			132 wiersze
		
	
	
		
			5.2 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: Duplex (was: Fujitsu M3091 backend)</TITLE>
 | 
						||
<META NAME="Author" CONTENT="Frederik Ramm (frederik@remote.org)">
 | 
						||
<META NAME="Subject" CONTENT="Duplex (was: Fujitsu M3091 backend)">
 | 
						||
</HEAD>
 | 
						||
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
 | 
						||
<H1>Duplex (was: Fujitsu M3091 backend)</H1>
 | 
						||
<!-- received="Tue Feb 27 11:53:41 2001" -->
 | 
						||
<!-- isoreceived="20010227195341" -->
 | 
						||
<!-- sent="Tue, 27 Feb 2001 20:06:20 +0000" -->
 | 
						||
<!-- isosent="20010227200620" -->
 | 
						||
<!-- name="Frederik Ramm" -->
 | 
						||
<!-- email="frederik@remote.org" -->
 | 
						||
<!-- subject="Duplex (was: Fujitsu M3091 backend)" -->
 | 
						||
<!-- id="20010227200620.A11963@aruba.remote.org" -->
 | 
						||
<!-- inreplyto="01022720404600.00591@slowcrap" -->
 | 
						||
<STRONG>From:</STRONG> Frederik Ramm (<A HREF="mailto:frederik@remote.org?Subject=Re:%20Duplex%20(was:%20Fujitsu%20M3091%20backend)&In-Reply-To=<20010227200620.A11963@aruba.remote.org>"><EM>frederik@remote.org</EM></A>)<BR>
 | 
						||
<STRONG>Date:</STRONG> Tue Feb 27 2001 - 12:06:20 PST
 | 
						||
<P>
 | 
						||
<!-- next="start" -->
 | 
						||
<LI><STRONG>Next message:</STRONG> <A HREF="0240.html">Davis, Tom: "RE: Fujitsu fi-4750C Backend Project"</A>
 | 
						||
<UL>
 | 
						||
<LI><STRONG>Previous message:</STRONG> <A HREF="0238.html">mh: "Re: Writing Fujitsu M3091 backend"</A>
 | 
						||
<LI><STRONG>In reply to:</STRONG> <A HREF="0238.html">mh: "Re: Writing Fujitsu M3091 backend"</A>
 | 
						||
<!-- nextthread="start" -->
 | 
						||
<LI><STRONG>Next in thread:</STRONG> <A HREF="0237.html">Oliver Rauch: "Re: Writing Fujitsu M3091 backend"</A>
 | 
						||
<!-- reply="end" -->
 | 
						||
<LI><STRONG>Messages sorted by:</STRONG> 
 | 
						||
<A HREF="date.html#239">[ date ]</A>
 | 
						||
<A HREF="index.html#239">[ thread ]</A>
 | 
						||
<A HREF="subject.html#239">[ subject ]</A>
 | 
						||
<A HREF="author.html#239">[ author ]</A>
 | 
						||
</UL>
 | 
						||
<HR NOSHADE><P>
 | 
						||
<!-- body="start" -->
 | 
						||
<P>
 | 
						||
Hi,
 | 
						||
<BR>
 | 
						||
<P><EM>> > > When scanning the first page, half the data goes in this large buffer,
 | 
						||
</EM><BR>
 | 
						||
<EM>> > > then when the frontend asks for another page it comes out of the
 | 
						||
</EM><BR>
 | 
						||
<EM>> > > buffer very quickly. 
 | 
						||
</EM><BR>
 | 
						||
[...]
 | 
						||
<BR>
 | 
						||
<P><EM>> > That sounds reasonable. But can I be sure that front-ends will support
 | 
						||
</EM><BR>
 | 
						||
<EM>> > reading multiple pages one after the other with no call to ..._close()
 | 
						||
</EM><BR>
 | 
						||
[...]
 | 
						||
<BR>
 | 
						||
<P><EM>> You can't be sure, but you can be quite sure that at least the graphical
 | 
						||
</EM><BR>
 | 
						||
<EM>> frontends won't call sane_close() between scans. 
 | 
						||
</EM><BR>
 | 
						||
<EM>> On the whole, it's just an insufficiency in the current SANE Standard.
 | 
						||
</EM><BR>
 | 
						||
<P><P>Let's do it as suggested then. I'll introduce a switch that's called
 | 
						||
<BR>
 | 
						||
"duplex" and can be set to on or off; when "on", it will allocate a
 | 
						||
<BR>
 | 
						||
chunk of memory upon starting the scan and deliver that at the next
 | 
						||
<BR>
 | 
						||
request for image acquisition. - Would it make sense store the current
 | 
						||
<BR>
 | 
						||
settings along with that buffer, and only deliver the second page if a
 | 
						||
<BR>
 | 
						||
subsequent request is made *without changing* the settings (dpi,
 | 
						||
<BR>
 | 
						||
window size etc.)?
 | 
						||
<BR>
 | 
						||
<P>I was thinking of maybe adding a third setting, "duplex=hack" or some
 | 
						||
<BR>
 | 
						||
such, where the resulting image would be exactly twice as high (or
 | 
						||
<BR>
 | 
						||
twice as wide) as requested, and it would contain the front and back
 | 
						||
<BR>
 | 
						||
pages above each other (or next to each other).
 | 
						||
<BR>
 | 
						||
<P>That would not make a lot of sense with the graphical front-ends, but
 | 
						||
<BR>
 | 
						||
somebody using "scanimage" could then use that option and easily
 | 
						||
<BR>
 | 
						||
separate the images with pnmcut afterwards.
 | 
						||
<BR>
 | 
						||
<P>Would I run into trouble trying to return an image that is twice as
 | 
						||
<BR>
 | 
						||
big as originally requested by the front-end?
 | 
						||
<BR>
 | 
						||
<P>Bye
 | 
						||
<BR>
 | 
						||
Frederik
 | 
						||
<BR>
 | 
						||
<P><PRE>
 | 
						||
-- 
 | 
						||
Frederik Ramm  ##  eMail <A HREF="mailto:frederik@remote.org?Subject=Re:%20Duplex%20(was:%20Fujitsu%20M3091%20backend)&In-Reply-To=<20010227200620.A11963@aruba.remote.org>">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:%20Duplex%20(was:%20Fujitsu%20M3091%20backend)&In-Reply-To=<20010227200620.A11963@aruba.remote.org>">majordomo@mostang.com</A>
 | 
						||
</PRE>
 | 
						||
<P><!-- body="end" -->
 | 
						||
<HR NOSHADE>
 | 
						||
<UL>
 | 
						||
<!-- next="start" -->
 | 
						||
<LI><STRONG>Next message:</STRONG> <A HREF="0240.html">Davis, Tom: "RE: Fujitsu fi-4750C Backend Project"</A>
 | 
						||
<LI><STRONG>Previous message:</STRONG> <A HREF="0238.html">mh: "Re: Writing Fujitsu M3091 backend"</A>
 | 
						||
<LI><STRONG>In reply to:</STRONG> <A HREF="0238.html">mh: "Re: Writing Fujitsu M3091 backend"</A>
 | 
						||
<!-- nextthread="start" -->
 | 
						||
<LI><STRONG>Next in thread:</STRONG> <A HREF="0237.html">Oliver Rauch: "Re: Writing Fujitsu M3091 backend"</A>
 | 
						||
<!-- reply="end" -->
 | 
						||
<LI><STRONG>Messages sorted by:</STRONG> 
 | 
						||
<A HREF="date.html#239">[ date ]</A>
 | 
						||
<A HREF="index.html#239">[ thread ]</A>
 | 
						||
<A HREF="subject.html#239">[ subject ]</A>
 | 
						||
<A HREF="author.html#239">[ 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>Tue Feb 27 2001 - 11:55:10 PST</EM>
 | 
						||
</EM>
 | 
						||
</SMALL>
 | 
						||
</BODY>
 | 
						||
</HTML>
 |