sane-project-website/old-archive/1999-10/0150.html

90 wiersze
3.5 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="Tue Oct 19 08:28:12 1999 PDT" -->
<!-- sent="Tue, 19 Oct 1999 17:29:13 +0200" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@Wolfsburg.DE" -->
<!-- subject="Re: 16 bit images" -->
<!-- id="" -->
<!-- inreplyto="16 bit images" -->
<title>sane-devel: Re: 16 bit images</title>
<h1>Re: 16 bit images</h1>
<b>Oliver Rauch</b> (<a href="mailto:oliver.rauch@Wolfsburg.DE"><i>oliver.rauch@Wolfsburg.DE</i></a>)<br>
<i>Tue, 19 Oct 1999 17:29:13 +0200</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#150">[ date ]</a><a href="index.html#150">[ thread ]</a><a href="subject.html#150">[ subject ]</a><a href="author.html#150">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0151.html">Oliver Rauch: "Re: Can a scanner be faster on Windows 98 than on Linux?"</a>
<li> <b>Previous message:</b> <a href="0149.html">Oliver Rauch: "Re: updating scsi bois?"</a>
<li> <b>Maybe in reply to:</b> <a href="0138.html">Robert Schwebel: "16 bit images"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0157.html">Robert Schwebel: "Re: 16 bit images"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Robert Schwebel wrote:<br>
<p>
<i>&gt; Oliver Rauch wrote:</i><br>
<i>&gt; &gt; xsane should work with color and grayscale images with 16 bits/pixel.</i><br>
<i>&gt;</i><br>
<i>&gt; Nope! From xsane-0.39/frontend/xsane-preview.c, function</i><br>
<i>&gt; preview_read_image_data:</i><br>
<i>&gt;</i><br>
<i>&gt; ----------8&lt;----------8&lt;----------8&lt;----------8&lt;----------</i><br>
<i>&gt; case SANE_FRAME_GRAY:</i><br>
<i>&gt; switch (p-&gt;params.depth)</i><br>
<i>&gt; {</i><br>
<i>&gt; case 1:</i><br>
<i>&gt; [...]</i><br>
<i>&gt; case 8:</i><br>
<i>&gt; [...]</i><br>
<i>&gt; default:</i><br>
<i>&gt; goto bad_depth;</i><br>
<i>&gt; ----------8&lt;----------8&lt;----------8&lt;----------8&lt;----------</i><br>
<i>&gt;</i><br>
<i>&gt; I tried to add a case 16, but as I don't exactly understand what's going</i><br>
<i>&gt; on here it does not really work. The frontend aquires an image and</i><br>
<i>&gt; displays it, but there seems to be a problem with byte order or</i><br>
<i>&gt; interpretation of pixel "short"s, as every second row becomes black.</i><br>
<i>&gt; Would you mind having a closer look at this?</i><br>
<i>&gt;</i><br>
<i>&gt;</i><br>
<p>
You did not see the following line before the block you quoted:<br>
<p>
if ( (xsane.param.depth == 1) || (xsane.param.depth == 8) )<br>
{<br>
<p>
there also is a<br>
else if ( xsane.param.depth == 16 )<br>
{<br>
<p>
after that block.<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="0151.html">Oliver Rauch: "Re: Can a scanner be faster on Windows 98 than on Linux?"</a>
<li> <b>Previous message:</b> <a href="0149.html">Oliver Rauch: "Re: updating scsi bois?"</a>
<li> <b>Maybe in reply to:</b> <a href="0138.html">Robert Schwebel: "16 bit images"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0157.html">Robert Schwebel: "Re: 16 bit images"</a>
<!-- reply="end" -->
</ul>