kopia lustrzana https://gitlab.com/sane-project/website
129 wiersze
5.1 KiB
HTML
129 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: [snapscan] More USB Updates</TITLE>
|
|
<META NAME="Author" CONTENT="Chris Bagwell (cbagwell@sprynet.com)">
|
|
<META NAME="Subject" CONTENT="Re: [snapscan] More USB Updates">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: [snapscan] More USB Updates</H1>
|
|
<!-- received="Mon Nov 20 19:50:46 2000" -->
|
|
<!-- isoreceived="20001121035046" -->
|
|
<!-- sent="Mon, 20 Nov 2000 22:06:48 -0600" -->
|
|
<!-- isosent="20001121040648" -->
|
|
<!-- name="Chris Bagwell" -->
|
|
<!-- email="cbagwell@sprynet.com" -->
|
|
<!-- subject="Re: [snapscan] More USB Updates" -->
|
|
<!-- id="3A19F4D8.943DFE8B@sprynet.com" -->
|
|
<!-- inreplyto="[snapscan] More USB Updates" -->
|
|
<STRONG>From:</STRONG> Chris Bagwell (<A HREF="mailto:cbagwell@sprynet.com?Subject=Re:%20[snapscan]%20More%20USB%20Updates&In-Reply-To=<3A19F4D8.943DFE8B@sprynet.com>"><EM>cbagwell@sprynet.com</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Mon Nov 20 2000 - 20:06:48 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0295.html">Jerry Fritschle: "Newbie can't find his Astra 1220S (Beige G3)"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0293.html">Andy Angrick: "RE: Can't scan the second time"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0297.html">Steve Underwood: "Re: [snapscan] More USB Updates"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0297.html">Steve Underwood: "Re: [snapscan] More USB Updates"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#294">[ date ]</A>
|
|
<A HREF="index.html#294">[ thread ]</A>
|
|
<A HREF="subject.html#294">[ subject ]</A>
|
|
<A HREF="author.html#294">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Steve,
|
|
<BR>
|
|
<P>Here is a more specific question I have for you regarding a code change
|
|
<BR>
|
|
I made to RGBRouter_remaining(). The original functions logic works out
|
|
<BR>
|
|
to the following (this version is closer to what Lawernce posted).
|
|
<BR>
|
|
<P> if (ps->cb_start < 0)
|
|
<BR>
|
|
remaining = (TxSource_remaining(pself) - ps->cb_size +
|
|
<BR>
|
|
ps->cb_line_size);
|
|
<BR>
|
|
else
|
|
<BR>
|
|
remaining = (TxSource_remaining(pself) + ps->cb_line_size -
|
|
<BR>
|
|
ps->pos);
|
|
<BR>
|
|
<P> return (remaining);
|
|
<BR>
|
|
<P>As far as I can tell, cb_start can only be < 0 at two or three times:
|
|
<BR>
|
|
1) When you start a fake scan to get transfer speed, 2) When you start
|
|
<BR>
|
|
the real scan, 3) when your closing down everything. In case 1 & 2 it
|
|
<BR>
|
|
seems to me that there are a lot of cases where the buffer will not be
|
|
<BR>
|
|
full (because the fake scan doesn't attempt to read a full buffer but
|
|
<BR>
|
|
that might be a bug or in case of the real scan I was thinking that the
|
|
<BR>
|
|
scanner might come back with an EAGAIN error or something and give us a
|
|
<BR>
|
|
partial buffer).
|
|
<BR>
|
|
<P>If I read your original email correctly you said the test for cb_start <
|
|
<BR>
|
|
0 was for the end of the scan but I don't really see any code that would
|
|
<BR>
|
|
drain the circular buffer after the call to RGBRouter_done().
|
|
<BR>
|
|
<P>Would you mind commenting on this part to help clear up my confusion. I
|
|
<BR>
|
|
think my confusion revolves around the difference between the TxSource
|
|
<BR>
|
|
buffer and the circular buffer (is there a difference?).
|
|
<BR>
|
|
<P>Thanks,
|
|
<BR>
|
|
Chris
|
|
<BR>
|
|
<P><PRE>
|
|
--
|
|
Chris Bagwell (mailto:<A HREF="mailto:cbagwell@sprynet.com?Subject=Re:%20[snapscan]%20More%20USB%20Updates&In-Reply-To=<3A19F4D8.943DFE8B@sprynet.com>">cbagwell@sprynet.com</A>) | Dallas, TX
|
|
<A HREF="http://home.sprynet.com/~cbagwell">http://home.sprynet.com/~cbagwell</A> | USA
|
|
<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[snapscan]%20More%20USB%20Updates&In-Reply-To=<3A19F4D8.943DFE8B@sprynet.com>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0295.html">Jerry Fritschle: "Newbie can't find his Astra 1220S (Beige G3)"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0293.html">Andy Angrick: "RE: Can't scan the second time"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0297.html">Steve Underwood: "Re: [snapscan] More USB Updates"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0297.html">Steve Underwood: "Re: [snapscan] More USB Updates"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#294">[ date ]</A>
|
|
<A HREF="index.html#294">[ thread ]</A>
|
|
<A HREF="subject.html#294">[ subject ]</A>
|
|
<A HREF="author.html#294">[ 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 Nov 20 2000 - 19:52:02 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|