kopia lustrzana https://gitlab.com/sane-project/website
119 wiersze
4.2 KiB
HTML
119 wiersze
4.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: Snapscan Code</TITLE>
|
|
<META NAME="Author" CONTENT="Ian Cartwright (icartwright@mediaone.net)">
|
|
<META NAME="Subject" CONTENT="Snapscan Code">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Snapscan Code</H1>
|
|
<!-- received="Sat Dec 9 19:58:23 2000" -->
|
|
<!-- isoreceived="20001210035823" -->
|
|
<!-- sent="Sat, 9 Dec 2000 23:00:51 -0500" -->
|
|
<!-- isosent="20001210040051" -->
|
|
<!-- name="Ian Cartwright" -->
|
|
<!-- email="icartwright@mediaone.net" -->
|
|
<!-- subject="Snapscan Code" -->
|
|
<!-- id="00120920181700.06716@ian.batcave.com" -->
|
|
<STRONG>From:</STRONG> Ian Cartwright (<A HREF="mailto:icartwright@mediaone.net?Subject=Re:%20Snapscan%20Code&In-Reply-To=<00120920181700.06716@ian.batcave.com>"><EM>icartwright@mediaone.net</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Sat Dec 09 2000 - 20:00:51 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0090.html">Ian Cartwright: "Prisa 320U and Sane Solved"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0088.html">Jerry Fritschle: "Re: Sg devices on Mac hardware."</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#89">[ date ]</A>
|
|
<A HREF="index.html#89">[ thread ]</A>
|
|
<A HREF="subject.html#89">[ subject ]</A>
|
|
<A HREF="author.html#89">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hello,
|
|
<BR>
|
|
<P>It's me again (the guy with the Acer 320U ;-). I've been hunting through the
|
|
<BR>
|
|
code, trying to see if I can something that might help me, and I ran across
|
|
<BR>
|
|
something interesting. I don't think it has anything to do with my particular
|
|
<BR>
|
|
problem, but I thought I'd pass it along...
|
|
<BR>
|
|
<P>When I run xscanimage with SANE_DEBUG_SNAPSCAN set to 255, this is a bit of
|
|
<BR>
|
|
the output I get:
|
|
<BR>
|
|
<P>[snapscan] inquiry: pixels per scan line = 308
|
|
<BR>
|
|
[snapscan] inquiry: bytes per scan line = 924
|
|
<BR>
|
|
[snapscan] inquiry: number of scan lines = 256
|
|
<BR>
|
|
[snapscan] inquiry: effective buffer size = 31416 bytes, 122 lines
|
|
<BR>
|
|
[snapscan] inquiry: expected total scan data: 236544 bytes
|
|
<BR>
|
|
<P><P>If the effective buffer size is 31416 bytes and there are 924 bytes per line
|
|
<BR>
|
|
shouldn't the buffer be 34 lines, not 122? I looked at the code in
|
|
<BR>
|
|
snapscan-scsi.c and the lines that produce this output (starting at 441) are:
|
|
<BR>
|
|
<P><P> DBG (DL_DATA_TRACE,
|
|
<BR>
|
|
"%s: effective buffer size = %lu bytes, %lu lines\n",
|
|
<BR>
|
|
me,
|
|
<BR>
|
|
(u_long) pss->buf_sz,
|
|
<BR>
|
|
(u_long) (pss->buf_sz ? pss->buf_sz / pss->lines : 0));
|
|
<BR>
|
|
<P>It looks like the number of lines in the buffer is being calculated by
|
|
<BR>
|
|
dividing the effective buffer size by the number of lines in the scan instead
|
|
<BR>
|
|
of by the number of bytes in a line (i.e. pss->bytes_per_line).
|
|
<BR>
|
|
<P>Unless of course the numbers are correct and the labels are ambiguous?
|
|
<BR>
|
|
<P>Cheers,
|
|
<BR>
|
|
<P>Ian
|
|
<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:%20Snapscan%20Code&In-Reply-To=<00120920181700.06716@ian.batcave.com>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0090.html">Ian Cartwright: "Prisa 320U and Sane Solved"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0088.html">Jerry Fritschle: "Re: Sg devices on Mac hardware."</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#89">[ date ]</A>
|
|
<A HREF="index.html#89">[ thread ]</A>
|
|
<A HREF="subject.html#89">[ subject ]</A>
|
|
<A HREF="author.html#89">[ 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>Sat Dec 09 2000 - 19:59:08 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|