kopia lustrzana https://gitlab.com/sane-project/website
73 wiersze
3.4 KiB
HTML
73 wiersze
3.4 KiB
HTML
<!-- received="Sun Apr 4 06:54:34 1999 PDT" -->
|
||
<!-- sent="Sun, 4 Apr 1999 14:54:35 +0100 (BST)" -->
|
||
<!-- name="Nick Lamb" -->
|
||
<!-- email="njl98r@ecs.soton.ac.uk" -->
|
||
<!-- subject="Re: 16 bit per sample support" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="m10TjSO-00018YC@hex" -->
|
||
<title>sane-devel: Re: 16 bit per sample support</title>
|
||
<h1>Re: 16 bit per sample support</h1>
|
||
<b>Nick Lamb</b> (<a href="mailto:njl98r@ecs.soton.ac.uk"><i>njl98r@ecs.soton.ac.uk</i></a>)<br>
|
||
<i>Sun, 4 Apr 1999 14:54:35 +0100 (BST)</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#57">[ date ]</a><a href="index.html#57">[ thread ]</a><a href="subject.html#57">[ subject ]</a><a href="author.html#57">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0058.html">Bernd Schroeder: "Re: microtek scanmaker again :-("</a>
|
||
<li> <b>Previous message:</b> <a href="0056.html">Christian Ordig: "RE: Epson Parallel Port Scanner"</a>
|
||
<li> <b>In reply to:</b> <a href="0053.html">Jonathan A. Buzzard: "Re: 16 bit per sample support"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
On Sun, 4 Apr 1999, Jonathan A. Buzzard wrote:<br>
|
||
<p>
|
||
<i>> </i><br>
|
||
<i>> <a href="mailto:David.Mosberger@acm.org">David.Mosberger@acm.org</a> said:</i><br>
|
||
<i>> > This is perfectly well defined in section 3.2:</i><br>
|
||
<i>> > ... Valid bit depths are 1, 8, or 16 bits per sample.</i><br>
|
||
<i>> > If a device's natural bit depth is something else, it is up</i><br>
|
||
<i>> > to the driver to scale the sample values appropriately (e.g.,</i><br>
|
||
<i>> > a 4 bit sample could be scaled by a factor of four to represent</i><br>
|
||
<i>> > a sample value of depth 8). </i><br>
|
||
<i>> </i><br>
|
||
<i>> Possibly depending on the device this should be configurable. If I</i><br>
|
||
<i>> was scanning an X-ray at say 12bits I would be very upset if the backend</i><br>
|
||
<i>> then stretched it to 16bits.</i><br>
|
||
<p>
|
||
I'm not sure why. The only (small) disadvantage is that there is an increase<br>
|
||
in bandwidth from the backend to the frontend. For most users, especially<br>
|
||
those looking for maximum performance, this is CPU bandwidth, and thus<br>
|
||
very expendable. <br>
|
||
<p>
|
||
There is no data loss (watch this...<br>
|
||
0xabc (12bit) --> 0xabca (16bit) --> 0xabc (12bit)<br>
|
||
0x123 (12bit) --> 0x1231 (16bit) --> 0x123 (12bit)<br>
|
||
<p>
|
||
All the file formats you're likely to use are either 8-bit (and will lose<br>
|
||
the bottom four bits however they're encoded) or 16-bit (and will stretch<br>
|
||
anything smaller just as the backend does to fit internal structures).<br>
|
||
<p>
|
||
If you're scanning X rays over a low-bandwidth (say 10Mbit) network and<br>
|
||
it sucks to have a 33% longer download time, then run the connection over<br>
|
||
a compressed virtual pipe using ssh :)<br>
|
||
<p>
|
||
Nick.<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="0058.html">Bernd Schroeder: "Re: microtek scanmaker again :-("</a>
|
||
<li> <b>Previous message:</b> <a href="0056.html">Christian Ordig: "RE: Epson Parallel Port Scanner"</a>
|
||
<li> <b>In reply to:</b> <a href="0053.html">Jonathan A. Buzzard: "Re: 16 bit per sample support"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|