sane-project-website/old-archive/1999-08/0048.html

125 wiersze
6.2 KiB
HTML

<!-- received="Wed Aug 4 00:38:53 1999 PDT" -->
<!-- sent="Wed, 04 Aug 1999 09:36:30 +0200" -->
<!-- name="Andreas Rick" -->
<!-- email="rickand@gemse.fr" -->
<!-- subject="Re: SANE_FRAME Formats (was Re: xsane-0.31 available)" -->
<!-- id="37A7ED7E.338D078F@gemse.fr" -->
<!-- inreplyto="SANE_FRAME Formats (was Re: xsane-0.31 available)" -->
<title>sane-devel: Re: SANE_FRAME Formats (was Re: xsane-0.31 available)</title>
<h1>Re: SANE_FRAME Formats (was Re: xsane-0.31 available)</h1>
<b>Andreas Rick</b> (<a href="mailto:rickand@gemse.fr"><i>rickand@gemse.fr</i></a>)<br>
<i>Wed, 04 Aug 1999 09:36:30 +0200</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#48">[ date ]</a><a href="index.html#48">[ thread ]</a><a href="subject.html#48">[ subject ]</a><a href="author.html#48">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0049.html">BARONET Eric: ":-) Mit Sonnen-finsternis-brille / Wearing Eclipse glasses :-)"</a>
<li> <b>Previous message:</b> <a href="0047.html">Steve Gunnell: "Re: SANE_FRAME Formats (was Re: xsane-0.31 available)"</a>
<li> <b>Maybe in reply to:</b> <a href="0019.html">Andreas Rick: "SANE_FRAME Formats (was Re: xsane-0.31 available)"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0050.html">Ewald R. de Wit: "Re: SANE_FRAME Formats (was Re: xsane-0.31 available)"</a>
<li> <b>Reply:</b> <a href="0050.html">Ewald R. de Wit: "Re: SANE_FRAME Formats (was Re: xsane-0.31 available)"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Nick Lamb wrote:<br>
<i>&gt; </i><br>
<i>&gt; Am I fighting a losing battle here?</i><br>
<i>&gt; </i><br>
<i>&gt; Why is it so desirable to have</i><br>
<i>&gt; </i><br>
<i>&gt; This..... Instead of this...</i><br>
<i>&gt; </i><br>
<i>&gt; SANE_FRAME_RAW SANE_FRAME_G3</i><br>
<i>&gt; SANE_FRAME_RAW SANE_FRAME_G4</i><br>
<i>&gt; SANE_FRAME_RAW SANE_FRAME_JFIF</i><br>
<i>&gt; SANE_FRAME_RAW SANE_FRAME_RGBI</i><br>
<i>&gt; SANE_FRAME_RAW SANE_FRAME_TEXT</i><br>
<i>&gt; </i><br>
<i>&gt; How about...</i><br>
<i>&gt; </i><br>
<i>&gt; SANE_FRAME_RAW SANE_FRAME_RGB</i><br>
<i>&gt; SANE_FRAME_RAW SANE_FRAME_GREY</i><br>
<i>&gt; SANE_FRAME_RAW SANE_FRAME_BLUE</i><br>
<i>&gt; </i><br>
<i>&gt; Under what circumstances is it preferable NOT to know what kind of data</i><br>
<i>&gt; we are dealing with? Are default: labels in switch blocks suddenly being</i><br>
<i>&gt; taxed by the US government?</i><br>
<p>
Not now - but I'm sure this is about to come ;-|<br>
5% on internet use is already under evaluation :-(<br>
<br>
<i>&gt; Maybe I'm being REALLY REALLY STUPID here, but I can't see any down side</i><br>
<i>&gt; to knowing what the **** was in the data stream before someone like</i><br>
<i>&gt; Oliver decides to turn it into a JPEG and save it in a file.</i><br>
<p>
I don't think that "knowing" anything about the image hurts.<br>
I just don't want the frontend get confused about so many<br>
formats and say "I can't handle this format" because I tell<br>
it about the same data in 20 different ways.<br>
I just want to tell it: Here come 4 channels, the first 3 are<br>
RGB (which you may use for preview or other stuff) <br>
and the last one is something I want to be able to save <br>
as alpha channel to png or to gimp.<br>
I have no objections to add <br>
SANE_FRAME_G3<br>
SANE_FRAME_G4<br>
SANE_FRAME_JFIF<br>
SANE_FRAME_RGBI<br>
SANE_FRAME_TEXT<br>
and anything you want , but I would like to see at least:<br>
SANE_FRAME_RAW <br>
SANE_FRAME_RGBA<br>
too.<br>
<p>
The next version of the coolscan LS-30/2000 backend will probably use<br>
SANE_FRAME_RGBA for the 4 channel images, just because there<br>
is are backends that can handle it the way I want (xsane / (x)scanimage).<br>
<p>
I think all this confusion comes from the fact that we<br>
are mixing up two thing in SANE_FRAME_???, the first one is <br>
-- the handeling of the data and the second one is <br>
-- the interpretation of the data (or its origin).<br>
<p>
Right now the only link of the 4th channel of a Coolscan scanned<br>
image to "infrared" is that it has been scanned with an infrared LED as light<br>
source. After that I'm doing all kinds of transformation on it<br>
which mix R,G,B and I (and I will do even more in the future)<br>
to make it show only the dust in the image, and not the<br>
color information. That is to say: when you get the 4th channel<br>
out of the backend it is no longer an "infrared" image but a<br>
"dust" image, so we might as well define SANE_FRAME_RGBD(ust).<br>
<p>
<i>&gt; If you have some genuinely unexplained data, which can't be classified,</i><br>
<i>&gt; what makes you think anyone wants to process it anyway?</i><br>
<p>
You forget about the fact that there might be a user of <br>
a SANE system who knows more about the Scanner than the frontend.<br>
SANE was designed with this in mind, as the frontend can<br>
propose options of the backend to the user without knowing what<br>
they do.<br>
The user might want to tell the frontend to go ahead and save the data<br>
the frontend has no interpretation for (just save it, don't mess with it)<br>
After that he uses his knowledge (and his favoured programs)<br>
to do marvelous things whith the data.<br>
<p>
Andreas<br>
<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="0049.html">BARONET Eric: ":-) Mit Sonnen-finsternis-brille / Wearing Eclipse glasses :-)"</a>
<li> <b>Previous message:</b> <a href="0047.html">Steve Gunnell: "Re: SANE_FRAME Formats (was Re: xsane-0.31 available)"</a>
<li> <b>Maybe in reply to:</b> <a href="0019.html">Andreas Rick: "SANE_FRAME Formats (was Re: xsane-0.31 available)"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0050.html">Ewald R. de Wit: "Re: SANE_FRAME Formats (was Re: xsane-0.31 available)"</a>
<li> <b>Reply:</b> <a href="0050.html">Ewald R. de Wit: "Re: SANE_FRAME Formats (was Re: xsane-0.31 available)"</a>
<!-- reply="end" -->
</ul>