kopia lustrzana https://gitlab.com/sane-project/website
114 wiersze
5.0 KiB
HTML
114 wiersze
5.0 KiB
HTML
|
<!-- received="Thu May 15 07:55:14 1997 MST" -->
|
||
|
<!-- sent="Thu, 15 May 1997 07:25:35 -0700" -->
|
||
|
<!-- name="David Mosberger-Tang" -->
|
||
|
<!-- email="davidm@azstarnet.com" -->
|
||
|
<!-- subject="Re: [patch] Re: sane-0.57 available" -->
|
||
|
<!-- id="199705151425.HAA20538@panda.mosberger" -->
|
||
|
<!-- inreplyto="199705150739.JAA30562@hoggle.syscomp.de" -->
|
||
|
<title>sane-devel: Re: [patch] Re: sane-0.57 available</title>
|
||
|
<h1>Re: [patch] Re: sane-0.57 available</h1>
|
||
|
<b>David Mosberger-Tang</b> (<a href="mailto:davidm@azstarnet.com"><i>davidm@azstarnet.com</i></a>)<br>
|
||
|
<i>Thu, 15 May 1997 07:25:35 -0700</i>
|
||
|
<p>
|
||
|
<ul>
|
||
|
<li> <b>Messages sorted by:</b> <a href="date.html#3">[ date ]</a><a href="index.html#3">[ thread ]</a><a href="subject.html#3">[ subject ]</a><a href="author.html#3">[ author ]</a>
|
||
|
<!-- next="start" -->
|
||
|
<li> <b>Next message:</b> <a href="0004.html">David Mosberger-Tang: "Re: ScanJet 4p and sane"</a>
|
||
|
<li> <b>Previous message:</b> <a href="0002.html">Matthias Lautner: "Re: [patch] Re: sane-0.57 available"</a>
|
||
|
<li> <b>In reply to:</b> <a href="0002.html">Matthias Lautner: "Re: [patch] Re: sane-0.57 available"</a>
|
||
|
<!-- nextthread="start" -->
|
||
|
<!-- reply="end" -->
|
||
|
</ul>
|
||
|
<!-- body="start" -->
|
||
|
<i>>>>>> On Thu, 15 May 1997 09:39:24 +0200 (MET DST), Matthias Lautner <l=</i><br>
|
||
|
<a href="mailto:autner@hoggle.syscomp.de">autner@hoggle.syscomp.de</a>> said:<br>
|
||
|
<p>
|
||
|
Matthias> Hi! First some technical data about my scanner: The<br>
|
||
|
Matthias> scanner is labeled MFS-12000CX [mustek] attach: firmware<br>
|
||
|
Matthias> revision 2.71 [mustek] attach: found Mustek scanner model<br>
|
||
|
Matthias> MFS-12000CX (flatbed scanner), 3-pass<br>
|
||
|
<p>
|
||
|
Thanks for the info!<br>
|
||
|
<p>
|
||
|
Matthias> I implemented the patch for contrast & brightness Now the<br>
|
||
|
Matthias> maximum range in the brightness controll of xscanimage is<br>
|
||
|
Matthias> -36% .. 36% and -84% .. 84% for contrast. Is this right?<br>
|
||
|
<p>
|
||
|
Yup, according to the manual, that's correct.<br>
|
||
|
<p>
|
||
|
Matthias> The brightness and contrast is still calculated wrong for<br>
|
||
|
Matthias> 3-pass mustek scanners. The result ranges from 1 to 24,<br>
|
||
|
Matthias> it should be 0 to 24. change in function<br>
|
||
|
Matthias> encode_percentage() in mustek.c code =3D (int) ((value /<br>
|
||
|
Matthias> quant) + 0.5) + 0x0c; to code =3D (int) ((value / quant) +<br>
|
||
|
Matthias> 12.5);<br>
|
||
|
<p>
|
||
|
Ah, right, the negative values get truncated in the "wrong" direction.<br>
|
||
|
I changed my source to your (working) version.<br>
|
||
|
<p>
|
||
|
Matthias> The errors: "Failed to set value of option<br>
|
||
|
Matthias> red-gamma-table: Device busy." between the passes of a<br>
|
||
|
Matthias> 3-pass scan originates in a call to gsg_sync(dialog) in<br>
|
||
|
Matthias> the function scan_start(void) in xscanimage.c. It seems,<br>
|
||
|
Matthias> that a redraw of the gamma tables send the gamma values to<br>
|
||
|
Matthias> the scanner (which doesn=B4t want to be disturbed while<br>
|
||
|
Matthias> working.)<br>
|
||
|
<p>
|
||
|
Ouch. I'll look into this.<br>
|
||
|
<p>
|
||
|
Matthias> I enabled brightness and contrast in color mode. It works<br>
|
||
|
Matthias> pretty!<br>
|
||
|
<p>
|
||
|
Great! I changed the sources so the brightness/contrast controls are<br>
|
||
|
enabled for 3-pass scanners.<br>
|
||
|
<p>
|
||
|
Matthias> The progress bar stops at each scan after about 90% and<br>
|
||
|
Matthias> proceeds to 100% on the next pass of a 3 pass scan. The<br>
|
||
|
Matthias> value of the bar is calculated right, but it is not<br>
|
||
|
Matthias> updated on the screen.<br>
|
||
|
<p>
|
||
|
Hmmh, could you try putting:<br>
|
||
|
<p>
|
||
|
if (ScanWin.input_tag < 0)<br>
|
||
|
=09while (gdk_events_pending ())<br>
|
||
|
=09 gtk_main_iteration ();<br>
|
||
|
<p>
|
||
|
right below:<br>
|
||
|
<p>
|
||
|
=09 if (status =3D=3D SANE_STATUS_EOF)<br>
|
||
|
=09 {<br>
|
||
|
<p>
|
||
|
in xscanimage.c and see whether that helps (just search for<br>
|
||
|
SANE_STATUS_EOF---there is only one in the entire file).<br>
|
||
|
<p>
|
||
|
Matthias> My scanner manual says that there are 12 internal patterns<br>
|
||
|
Matthias> for halftone scanning. How can they be activated.<br>
|
||
|
<p>
|
||
|
The docs I have make no mention of builtin halftone patterns, so I<br>
|
||
|
don't know how to select them (does any other Mustek scanner program<br>
|
||
|
support this? if so, maybe you could find out from there).<br>
|
||
|
<p>
|
||
|
Matthias> Does<br>
|
||
|
Matthias> anybody knows something about the format of customized<br>
|
||
|
Matthias> half-tone patterns?<br>
|
||
|
<p>
|
||
|
I don't.<br>
|
||
|
<p>
|
||
|
=09--david<br>
|
||
|
<p>
|
||
|
<pre>
|
||
|
--
|
||
|
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
|
||
|
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
|
||
|
</pre>
|
||
|
<!-- body="end" -->
|
||
|
<p>
|
||
|
<ul>
|
||
|
<!-- next="start" -->
|
||
|
<li> <b>Next message:</b> <a href="0004.html">David Mosberger-Tang: "Re: ScanJet 4p and sane"</a>
|
||
|
<li> <b>Previous message:</b> <a href="0002.html">Matthias Lautner: "Re: [patch] Re: sane-0.57 available"</a>
|
||
|
<li> <b>In reply to:</b> <a href="0002.html">Matthias Lautner: "Re: [patch] Re: sane-0.57 available"</a>
|
||
|
<!-- nextthread="start" -->
|
||
|
<!-- reply="end" -->
|
||
|
</ul>
|