sane-project-website/old-archive/1998-05/0127.html

82 wiersze
4.0 KiB
HTML

<!-- received="Mon May 11 20:43:26 1998 PDT" -->
<!-- sent="Mon, 11 May 1998 21:42:28 -0600 (MDT)" -->
<!-- name="charter@cs.ualberta.ca" -->
<!-- email="charter@cs.ualberta.ca" -->
<!-- subject="Re: problems with snapscan and scanimage" -->
<!-- id="19980512034234Z13333-19035+343@scapa.cs.ualberta.ca" -->
<!-- inreplyto="Pine.BSF.3.96.980511203725.299A-100000@atlas.home.dynas.se" -->
<title>sane-devel: Re: problems with snapscan and scanimage</title>
<h1>Re: problems with snapscan and scanimage</h1>
<a href="mailto:charter@cs.ualberta.ca"><i>charter@cs.ualberta.ca</i></a><br>
<i>Mon, 11 May 1998 21:42:28 -0600 (MDT)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#127">[ date ]</a><a href="index.html#127">[ thread ]</a><a href="subject.html#127">[ subject ]</a><a href="author.html#127">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0128.html">David Mosberger-Tang: "Re: [patch] 0.72 sane-dll.so changes..."</a>
<li> <b>Previous message:</b> <a href="0126.html">=?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?=: "Re: problems with snapscan and scanimage"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0130.html">David Mosberger-Tang: "Re: problems with snapscan and scanimage"</a>
<li> <b>Reply:</b> <a href="0130.html">David Mosberger-Tang: "Re: problems with snapscan and scanimage"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt; </i><br>
<i>&gt; </i><br>
<i>&gt; On Mon, 11 May 1998, KH Jeron wrote:</i><br>
<i>&gt; </i><br>
<i>&gt; --- ../../sane-pre0.72.org/backend/snapscan.c Fri Apr 3 11:14:09 1998</i><br>
<i>&gt; +++ snapscan.c Sun Apr 5 20:47:10 1998</i><br>
<i>&gt; @@ -2594,7 +2594,7 @@</i><br>
<i>&gt; for black and white */</i><br>
<i>&gt; p-&gt;depth = pss-&gt;pdev-&gt;depths[mode];</i><br>
<i>&gt; </i><br>
<i>&gt; - if (pss-&gt;preview &amp;&amp; p-&gt;depth &gt; 8)</i><br>
<i>&gt; + if (/* pss-&gt;preview &amp;&amp; */ p-&gt;depth &gt; 8)</i><br>
<i>&gt; p-&gt;depth = 8;</i><br>
<i>&gt; </i><br>
<i>&gt; switch (mode)</i><br>
<i>&gt; </i><br>
<i>&gt; </i><br>
<i>&gt; This may be diffed from a slightly hacked version of snapscan.c, but</i><br>
<i>&gt; you get the point -- force depth to never be more than eight bits...</i><br>
<i>&gt; </i><br>
<p>
Yes, this should do the trick.<br>
<p>
<i>&gt; (*) After a closer look I'd say it does not produce 10 bits -- it just</i><br>
<i>&gt; *claims* to :-)</i><br>
<p>
The output from the scanner to the host is 8 bits per sample, but the<br>
scanner allows the host to download a 10-bit gamma table for each<br>
channel. Presumably this gives finer control over gamma correction (or<br>
"tone curving") than the 8-bit tables, despite the fact that the data<br>
is being converted to 8 bits before it's sent to the host.<br>
<p>
other scanner models too.<br>
<p>
Kevin<br>
<pre>
--
Kevin Charter /\ Grad Studies
<a href="mailto:charter@cs.ualberta.ca">charter@cs.ualberta.ca</a> /\/ \ Department of Computing Science
<a href="http://web.cs.ualberta.ca/~charter">http://web.cs.ualberta.ca/~charter</a> \ -------- University of Alberta
-------------- Edmonton AB CANADA
<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="0128.html">David Mosberger-Tang: "Re: [patch] 0.72 sane-dll.so changes..."</a>
<li> <b>Previous message:</b> <a href="0126.html">=?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?=: "Re: problems with snapscan and scanimage"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0130.html">David Mosberger-Tang: "Re: problems with snapscan and scanimage"</a>
<li> <b>Reply:</b> <a href="0130.html">David Mosberger-Tang: "Re: problems with snapscan and scanimage"</a>
<!-- reply="end" -->
</ul>