kopia lustrzana https://gitlab.com/sane-project/website
128 wiersze
5.0 KiB
HTML
128 wiersze
5.0 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: Writing Fujitsu M3091 backend</TITLE>
|
|
<META NAME="Author" CONTENT="mh (crapsite@gmx.net)">
|
|
<META NAME="Subject" CONTENT="Re: Writing Fujitsu M3091 backend">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: Writing Fujitsu M3091 backend</H1>
|
|
<!-- received="Tue Feb 27 11:32:47 2001" -->
|
|
<!-- isoreceived="20010227193247" -->
|
|
<!-- sent="Tue, 27 Feb 2001 20:04:30 +0100" -->
|
|
<!-- isosent="20010227190430" -->
|
|
<!-- name="mh" -->
|
|
<!-- email="crapsite@gmx.net" -->
|
|
<!-- subject="Re: Writing Fujitsu M3091 backend" -->
|
|
<!-- id="01022720404600.00591@slowcrap" -->
|
|
<!-- inreplyto="20010227180452.B10137@aruba.remote.org" -->
|
|
<STRONG>From:</STRONG> mh (<A HREF="mailto:crapsite@gmx.net?Subject=Re:%20Writing%20Fujitsu%20M3091%20backend&In-Reply-To=<01022720404600.00591@slowcrap>"><EM>crapsite@gmx.net</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Tue Feb 27 2001 - 11:04:30 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0239.html">Frederik Ramm: "Duplex (was: Fujitsu M3091 backend)"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0237.html">Oliver Rauch: "Re: Writing Fujitsu M3091 backend"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0236.html">Frederik Ramm: "Re: Writing Fujitsu M3091 backend"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0239.html">Frederik Ramm: "Duplex (was: Fujitsu M3091 backend)"</A>
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0237.html">Oliver Rauch: "Re: Writing Fujitsu M3091 backend"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0239.html">Frederik Ramm: "Duplex (was: Fujitsu M3091 backend)"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#238">[ date ]</A>
|
|
<A HREF="index.html#238">[ thread ]</A>
|
|
<A HREF="subject.html#238">[ subject ]</A>
|
|
<A HREF="author.html#238">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Frederik Ramm, Die, 27 Feb 2001 :
|
|
<BR>
|
|
<EM>> Hi,
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<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. The buffer can be discarded when the frontend
|
|
</EM><BR>
|
|
<EM>> > calls ..._close() so it won't take up RAM all the time.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<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>
|
|
<EM>> in between? This would not, for example, work with "scanimage", would
|
|
</EM><BR>
|
|
<EM>> it?
|
|
</EM><BR>
|
|
You can't be sure, but you can be quite sure that at least the graphical
|
|
<BR>
|
|
frontends won't call sane_close() between scans.
|
|
<BR>
|
|
On the whole, it's just an insufficiency in the current SANE Standard.
|
|
<BR>
|
|
Probably a simple
|
|
<BR>
|
|
SANE_Bool another_scan_follows
|
|
<BR>
|
|
in SANE_Parameters would be sufficient. If another_scan_follows is true
|
|
<BR>
|
|
and last_frame is true, the frontend knows, that the next frame belongs to a
|
|
<BR>
|
|
new image. This, of course, will only fly if the backend stores the
|
|
<BR>
|
|
following frames in RAM, like suggested by Nick Lamb.
|
|
<BR>
|
|
Another advantage is, that this doesn't break compatibilty with
|
|
<BR>
|
|
current frontends. They just read one image and call sane_cancel(); now
|
|
<BR>
|
|
the backend knows, that it can discard the following frames.
|
|
<BR>
|
|
<P>Just MHO
|
|
<BR>
|
|
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:%20Writing%20Fujitsu%20M3091%20backend&In-Reply-To=<01022720404600.00591@slowcrap>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0239.html">Frederik Ramm: "Duplex (was: Fujitsu M3091 backend)"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0237.html">Oliver Rauch: "Re: Writing Fujitsu M3091 backend"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0236.html">Frederik Ramm: "Re: Writing Fujitsu M3091 backend"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0239.html">Frederik Ramm: "Duplex (was: Fujitsu M3091 backend)"</A>
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0237.html">Oliver Rauch: "Re: Writing Fujitsu M3091 backend"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0239.html">Frederik Ramm: "Duplex (was: Fujitsu M3091 backend)"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#238">[ date ]</A>
|
|
<A HREF="index.html#238">[ thread ]</A>
|
|
<A HREF="subject.html#238">[ subject ]</A>
|
|
<A HREF="author.html#238">[ 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:34:11 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|