sane-project-website/old-archive/1999-03/0151.html

78 wiersze
3.6 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="Mon Mar 15 12:56:37 1999 PST" -->
<!-- sent="Mon, 15 Mar 1999 17:50:56 +0100" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@Wolfsburg.DE" -->
<!-- subject="Re: 16 bit per sample support" -->
<!-- id="" -->
<!-- inreplyto="16 bit per sample support" -->
<title>sane-devel: Re: 16 bit per sample support</title>
<h1>Re: 16 bit per sample support</h1>
<b>Oliver Rauch</b> (<a href="mailto:oliver.rauch@Wolfsburg.DE"><i>oliver.rauch@Wolfsburg.DE</i></a>)<br>
<i>Mon, 15 Mar 1999 17:50:56 +0100</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#151">[ date ]</a><a href="index.html#151">[ thread ]</a><a href="subject.html#151">[ subject ]</a><a href="author.html#151">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0152.html">Oliver Rauch: "xsane-0.16 with experimental 16 bpp support available"</a>
<li> <b>Previous message:</b> <a href="0150.html">Peter Kirchgessner: "Re: HP Photosmart R032"</a>
<li> <b>Maybe in reply to:</b> <a href="0126.html">Oliver Rauch: "16 bit per sample support"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Andreas Dilger wrote:<br>
<p>
<i>&gt; &gt; In the sane api it is not define how bit depths between 8 and 16 bits are</i><br>
<i>&gt; &gt; handled. So if the scanner gives back 12 bpp is this bit 0-11 or bit 5-16</i><br>
<i>&gt; &gt; or does this mean the colors are mixed togeht in some bytes:</i><br>
<i>&gt; &gt; (8 bits red) (4 bits red, 4 bits green) (8 bits green) (8 bits blue) (4 bits</i><br>
<i>&gt; &gt; blue, whats with the rest?)</i><br>
<i>&gt;</i><br>
<i>&gt; I would suggest that for backends that support &gt; 8 bit/sample output, that sane</i><br>
<i>&gt; return the data in the high-order bits, and then if you don't need the extra</i><br>
<i>&gt; bits (eg for display on the screen), you can simply truncate the low-order</i><br>
<i>&gt; bits and treat it like 8 bits/sample. This is how PNG stores the data, whether</i><br>
<i>&gt; 5 bps or 12 bps -&gt; it only really "stores" either 8 or 16 bits/sample, and</i><br>
<i>&gt; converts all other bit depths to fit.</i><br>
<i>&gt;</i><br>
<p>
It does not matter how we define it, there are advantages and disadvantages<br>
for both possibilities. The point is that is has to be defined!<br>
<p>
We also can add a maxvalue item to the parameters block and let<br>
<p>
<i>&gt; As a side note, it should be defined whether you have high-byte first (network</i><br>
<i>&gt; byte order), or low byte first (intel order). I would vote for network byte</i><br>
<i>&gt; order, since this is the same as PNG, and then you can just dump the data</i><br>
<i>&gt; into a PNG file.</i><br>
<i>&gt;</i><br>
<p>
That already is defined in the sane api and hsould not be changed any more!<br>
<p>
Bye<br>
Oliver<br>
<p>
<pre>
--
EMAIL: <a href="mailto:Oliver.Rauch@Wolfsburg.DE">Oliver.Rauch@Wolfsburg.DE</a>
WWW: <a href="http://www.wolfsburg.de/~rauch">http://www.wolfsburg.de/~rauch</a>
<p>
<p>
<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="0152.html">Oliver Rauch: "xsane-0.16 with experimental 16 bpp support available"</a>
<li> <b>Previous message:</b> <a href="0150.html">Peter Kirchgessner: "Re: HP Photosmart R032"</a>
<li> <b>Maybe in reply to:</b> <a href="0126.html">Oliver Rauch: "16 bit per sample support"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>