sane-project-website/old-archive/2000-11/0271.html

111 wiersze
4.3 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: [snapscan] More USB updates</TITLE>
<META NAME="Author" CONTENT="cbagwell@sprynet.com (cbagwell@sprynet.com)">
<META NAME="Subject" CONTENT="[snapscan] More USB updates">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>[snapscan] More USB updates</H1>
<!-- received="Sun Nov 19 17:01:59 2000" -->
<!-- isoreceived="20001120010159" -->
<!-- sent="Sun, 19 Nov 2000 20:16:19 -0500" -->
<!-- isosent="20001120011619" -->
<!-- name="cbagwell@sprynet.com" -->
<!-- email="cbagwell@sprynet.com" -->
<!-- subject="[snapscan] More USB updates" -->
<!-- id="Springmail.105.974682979.0.26662100@www.springmail.com" -->
<STRONG>From:</STRONG> <A HREF="mailto:cbagwell@sprynet.com?Subject=Re:%20[snapscan]%20More%20USB%20updates&In-Reply-To=&lt;Springmail.105.974682979.0.26662100@www.springmail.com&gt;"><EM>cbagwell@sprynet.com</EM></A><BR>
<STRONG>Date:</STRONG> Sun Nov 19 2000 - 17:16:19 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0272.html">Steve Underwood: "Re: [snapscan] More USB updates"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0270.html">Nick Lamb: "Re: sane and gcc 2.96"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0272.html">Steve Underwood: "Re: [snapscan] More USB updates"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0272.html">Steve Underwood: "Re: [snapscan] More USB updates"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#271">[ date ]</A>
<A HREF="index.html#271">[ thread ]</A>
<A HREF="subject.html#271">[ subject ]</A>
<A HREF="author.html#271">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
I've committed to snapscan's CVS server a few changes needed to get
<BR>
USB working on my Acer 640BU scanner. There are only two changes.
<BR>
The first is so that usb read()'s will retry if it ever returns
<BR>
EAGAIN.
<BR>
<P>The second is a fix for the problem as first described by
<BR>
Lawrence Glaister. There is a case upon initial startup of
<BR>
the scan that RGBRouter_remaining() could return a negative value
<BR>
which would in turn cause the rest of the code to go into an
<BR>
infinite loop. This seems to only happen for me at 600 dpi
<BR>
but it seems like it should happen in all cases.
<BR>
<P>Would a few people please code review my changes to snapscan_sources.c:RGBRouter_remaining() and verify the bad effects
<BR>
that could happen if cb_start == -1. The main thing that was
<BR>
happening was that it caused the code to subtract cb_size from
<BR>
the current remaining buffer length. Since your never going to
<BR>
have more data then the cb_size, it was always negative.
<BR>
<P>Perhaps I'm missing what the original purpose of that code was
<BR>
meant to do.
<BR>
<P>Now that I got this done, I'll attempt to get the code compiling
<BR>
on OS/2 boxes by forcing it to use stub functions on unsupported
<BR>
platforms.
<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:%20[snapscan]%20More%20USB%20updates&In-Reply-To=&lt;Springmail.105.974682979.0.26662100@www.springmail.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0272.html">Steve Underwood: "Re: [snapscan] More USB updates"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0270.html">Nick Lamb: "Re: sane and gcc 2.96"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0272.html">Steve Underwood: "Re: [snapscan] More USB updates"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0272.html">Steve Underwood: "Re: [snapscan] More USB updates"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#271">[ date ]</A>
<A HREF="index.html#271">[ thread ]</A>
<A HREF="subject.html#271">[ subject ]</A>
<A HREF="author.html#271">[ 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>Sun Nov 19 2000 - 17:02:44 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>