sane-project-website/old-archive/1997-11/0174.html

121 wiersze
4.7 KiB
HTML

<!-- received="Sun Nov 30 12:51:17 1997 PST" -->
<!-- sent="Sun, 30 Nov 1997 21:12:21 +0100 (MET)" -->
<!-- name="Gernot Zander" -->
<!-- email="hifi@scorpio.in-berlin.de" -->
<!-- subject="Re: Mustek Bugreport (Gamma didn't work)" -->
<!-- id="m0xcFj3-001FUYC@scorpio.in-berlin.de" -->
<!-- inreplyto="199711301828.KAA17900@panda.mostang.com" -->
<title>sane-devel: Re: Mustek Bugreport (Gamma didn't work)</title>
<h1>Re: Mustek Bugreport (Gamma didn't work)</h1>
<b>Gernot Zander</b> (<a href="mailto:hifi@scorpio.in-berlin.de"><i>hifi@scorpio.in-berlin.de</i></a>)<br>
<i>Sun, 30 Nov 1997 21:12:21 +0100 (MET)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#174">[ date ]</a><a href="index.html#174">[ thread ]</a><a href="subject.html#174">[ subject ]</a><a href="author.html#174">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0175.html">Rogan Dawes: "Re: sane under aix"</a>
<li> <b>Previous message:</b> <a href="0173.html">David Mosberger-Tang: "Re: Unlisted Mustek scanner"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi,<br>
<p>
<i>&gt; Looks like your mail is incomplete:</i><br>
<i>&gt; </i><br>
<i>&gt; Gernot&gt; Hi, I tried sane today and wondered why the setting of gamma</i><br>
<i>&gt; Gernot&gt; table seemed to be ignored by the scanner (although it</i><br>
<i>&gt; Gernot&gt; worked with muscan) and after long houres I moved the 4</i><br>
<i>&gt; Gernot&gt; lines for start_scan() in sane_start() downwards below the</i><br>
<i>&gt; Gernot&gt; lines for the transmission of the gamma table, so it looks</i><br>
<i>&gt; Gernot&gt; now:</i><br>
<i>&gt; </i><br>
<p>
There was a . at the begin of the line, maybe this irritated<br>
one MTA.<br>
<p>
<i>&gt; Also, may I suggest to use <a href="mailto:sane-devel@mostang.com?">sane-devel@mostang.com?</a></i><br>
<p>
It affacts the mustek driver only, but I send a copy there...<br>
<p>
Here the mail again complete (without "."):<br>
<p>
I tried sane today and wondered why the setting of gamma table<br>
seemed to be ignored by the scanner (although it worked with muscan)<br>
and after long houres I moved the 4 lines for start_scan()<br>
in sane_start() downwards below the lines for the transmission<br>
of the gamma table, so it looks now:<br>
_.<br>
_. (more gamma_correction())<br>
_.<br>
status = gamma_correction (s, MUSTEK_CODE_BLUE);<br>
}<br>
}<br>
else<br>
status = gamma_correction (s, MUSTEK_CODE_GRAY);<br>
<p>
if (status != SANE_STATUS_GOOD)<br>
goto stop_scanner_and_return;<br>
/********* start_scan() _after_ gamma has been set *********/<br>
s-&gt;scanning = SANE_TRUE;<br>
<p>
status = start_scan (s);<br>
if (status != SANE_STATUS_GOOD)<br>
goto stop_scanner_and_return;<br>
<p>
s-&gt;ld.max_value = 0;<br>
if (s-&gt;hw-&gt;flags &amp; MUSTEK_FLAG_SINGLE_PASS)<br>
_.<br>
_.<br>
_.<br>
<p>
Now the gamma works. I've seen you have the lines for backtrack_and_adf<br>
twice, one above and one below the start_scan(). Maybe the same<br>
should be done with the gamma correction too, but I only have the<br>
600CX and don't know if other models require this after start_scan().<br>
<p>
I noticed a second problem: It depends of the position of<br>
custom-gamma[=yes] in the command line if the values for x and y<br>
are honored or not, if I give:<br>
<p>
scanimage -d net:localhost:mustek:/dev/scanner --mode gray -t 11 -l 30<br>
-x 150 -y 105 --custom-gamma --gamma-table=[0]0-[10]32-[64]128-[255]255<br>
--resolution 150 &gt; delme.pnm<br>
<p>
they are ignored (!), and a full page (from -t and -l) is scanned,<br>
<p>
if I do:<br>
scanimage -d net:localhost:mustek:/dev/scanner --mode gray -t 11 -l 30<br>
--custom-gamma -x 150 -y 105 --gamma-table=[0]0-[10]32-[64]128-[255]255<br>
--resolution 150 &gt; delme.pnm<br>
then it works fine.<br>
But I didn't found the reason for that.<br>
<p>
Version:<br>
lake:~# scanimage -V<br>
scanimage (sane) 0.67<br>
<p>
mfg.<br>
Gernot<br>
<p>
<pre>
--
&lt;<a href="mailto:hifi@scorpio.in-berlin.de">hifi@scorpio.in-berlin.de</a>&gt; (Gernot Zander)
Um Rekursion zu verstehen, mu<6D> man entweder einen kennen, der
sie versteht, oder sie schon verstanden haben. (M. Freericks)
<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="0175.html">Rogan Dawes: "Re: sane under aix"</a>
<li> <b>Previous message:</b> <a href="0173.html">David Mosberger-Tang: "Re: Unlisted Mustek scanner"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>