sane-project-website/old-archive/1998-04/0085.html

142 wiersze
5.4 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Wed Apr 8 16:59:50 1998 PDT" -->
<!-- sent="Thu, 9 Apr 1998 01:56:51 +0200" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="hmg-ml@gmx.de" -->
<!-- subject="sane-0.72 and mustek 600 II N" -->
<!-- id="" -->
<!-- inreplyto="" -->
<title>sane-devel: sane-0.72 and mustek 600 II N</title>
<h1>sane-0.72 and mustek 600 II N</h1>
<b>Henning Meier-Geinitz</b> (<a href="mailto:hmg-ml@gmx.de"><i>hmg-ml@gmx.de</i></a>)<br>
<i>Thu, 9 Apr 1998 01:56:51 +0200</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#85">[ date ]</a><a href="index.html#85">[ thread ]</a><a href="subject.html#85">[ subject ]</a><a href="author.html#85">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0086.html">David Wolfskill: "Re: find scanner via /proc/scsi/scsi"</a>
<li> <b>Previous message:</b> <a href="0084.html">Matto Marjanovic: "Re: Question regarding PNM-Format (OS/2)"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi!<br>
<p>
I tried sane-0.72 with the following system:<br>
<p>
Linux 2.0.33 (Pentium166), gtk+ 0.99.8, gimp 0.99.22, mustek 600 II N<br>
parallel port scanner.<br>
<p>
Some comments:<br>
<p>
1)<br>
Sane compiles without errors. As reported some time ago, the scanner<br>
only works (most of the time) if SANE_DEBUG_SANEI_AB306 is set to 4<br>
or higher. I couldn't locate exactly this problem.<br>
<p>
2)<br>
Lineart, halftone and greyscale work. Color doesn't, there are<br>
horizontal stripes and wrong colors. I did some changes in mustek.c<br>
and that works for me. But it's more a hack. Please try the enclosed<br>
patch because I don't know if this works with all mustek 600 II N<br>
scanners. line-distance-fix must be *disabled*, my scanner sends the<br>
correct line-distance values. The data color sequence is RGB. In the<br>
scanner the first lcd line is red, second blue, third green. <br>
<p>
I got errors with resolutions &gt; 300 dpi in color mode:<br>
"Xlib: unexpected async reply (sequence 0xe5c)!". These can be<br>
ommitted by changing the standard buffer size from 32k to something<br>
higher, for example in mustek.c, reader_process (hack!):<br>
<p>
lines_per_buffer = sanei_scsi_max_request_size / bpl;<br>
<br>
--&gt; lines_per_buffer = 128 * 1024 / bpl;<br>
<p>
3)<br>
After using xscanimage the light istn't shut off.<br>
<p>
4)<br>
If the scan process is stopped manually, mustek.c waits 60 s<br>
(timeout) everytime before resetting the scanner. Bug or feature?<br>
<p>
5)<br>
If I want to leave xscanimage, X seems to hang f<>r about 5 seconds. No<br>
key or mouse click is accepted anywhere.<br>
<p>
6)<br>
If the scanning process is aborted by killing xscanimage, the scanner<br>
won't react any more. A newly started xscanimage waits forever. I have<br>
to turn off and on the scanner manually.<br>
<p>
7)<br>
mustek.c doesn't ignore empty lines in mustek.conf. It tries to open<br>
"" as a device for every empty line.<br>
<p>
8)<br>
My scanner is much faster in color mode than in grey mode. It seems to<br>
backtrack in grey mode but not in color mode.<br>
<p>
Keep on the good work!<br>
<p>
Ciao, Henning<br>
<p>
And now the patch for color-support:<br>
<p>
diff -ruN sane-0.72.orig/backend/mustek.c sane-0.72/backend/mustek.c<br>
--- sane-0.72.orig/backend/mustek.c Tue Mar 3 04:02:43 1998<br>
+++ sane-0.72/backend/mustek.c Thu Apr 9 01:10:58 1998<br>
@@ -1394,7 +1394,7 @@<br>
}<br>
}<br>
<br>
- num_saved_lines = s-&gt;ld.index[0] - s-&gt;ld.index[2];<br>
+ num_saved_lines = s-&gt;ld.index[0] - s-&gt;ld.index[1];<br>
if (num_saved_lines &gt; 0)<br>
/* restore the previously saved lines: */<br>
memcpy (out, s-&gt;ld.buf[0], num_saved_lines * bpl);<br>
@@ -1404,7 +1404,7 @@<br>
if (++s-&gt;ld.lmod3 &gt;= 3)<br>
s-&gt;ld.lmod3 = 0;<br>
<br>
- c = color_seq[s-&gt;ld.lmod3];<br>
+ c = s-&gt;ld.lmod3;<br>
if (s-&gt;ld.index[c] &lt; 0)<br>
++s-&gt;ld.index[c];<br>
else if (s-&gt;ld.index[c] &lt; s-&gt;params.lines)<br>
@@ -1421,17 +1421,17 @@<br>
DBG (1, "fix_line_distance_pp: lmod3=%d, index=(%d,%d,%d)\n",<br>
s-&gt;ld.lmod3,<br>
s-&gt;ld.index[0], s-&gt;ld.index[1], s-&gt;ld.index[2]);<br>
- num_lines = s-&gt;ld.index[2] - s-&gt;ld.ld_line;<br>
+ num_lines = s-&gt;ld.index[1] - s-&gt;ld.ld_line;<br>
<br>
/* copy away the lines with at least one missing<br>
color component, so that we can interleave them<br>
with new scan data on the next call */<br>
- num_saved_lines = s-&gt;ld.index[0] - s-&gt;ld.index[2];<br>
+ num_saved_lines = s-&gt;ld.index[0] - s-&gt;ld.index[1];<br>
memcpy (s-&gt;ld.buf[0], out + num_lines * bpl,<br>
num_saved_lines * bpl);<br>
<br>
/* notice the number of lines we processed */<br>
- s-&gt;ld.ld_line = s-&gt;ld.index[2];<br>
+ s-&gt;ld.ld_line = s-&gt;ld.index[1];<br>
/* return number of complete (r+g+b) lines */<br>
return num_lines;<br>
}<br>
<p>
<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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0086.html">David Wolfskill: "Re: find scanner via /proc/scsi/scsi"</a>
<li> <b>Previous message:</b> <a href="0084.html">Matto Marjanovic: "Re: Question regarding PNM-Format (OS/2)"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>