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

88 wiersze
4.8 KiB
HTML

<!-- received="Thu May 7 21:59:16 1998 PDT" -->
<!-- sent="Fri, 8 May 1998 00:55:24 -0400 (EDT)" -->
<!-- name="Matt Martin" -->
<!-- email="mmartin@Calvin.SFC.Lehigh.Edu" -->
<!-- subject="Re: DS-7 Backend" -->
<!-- id="Pine.SUN.3.95.980508004213.4582A-100000@spiff.sfc.lehigh.edu" -->
<!-- inreplyto="199805080212.TAA28783@panda.mostang.com" -->
<title>sane-devel: Re: DS-7 Backend</title>
<h1>Re: DS-7 Backend</h1>
<b>Matt Martin</b> (<a href="mailto:mmartin@Calvin.SFC.Lehigh.Edu"><i>mmartin@Calvin.SFC.Lehigh.Edu</i></a>)<br>
<i>Fri, 8 May 1998 00:55:24 -0400 (EDT)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#94">[ date ]</a><a href="index.html#94">[ thread ]</a><a href="subject.html#94">[ subject ]</a><a href="author.html#94">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0095.html">David Mosberger-Tang: "Re: DS-7 Backend"</a>
<li> <b>Previous message:</b> <a href="0093.html">Paul D. Robertson: "Re: [umax] Can't use 10-bit scan: "preview cannot handle depth 16""</a>
<li> <b>In reply to:</b> <a href="0091.html">David Mosberger-Tang: "Re: DS-7 Backend"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0095.html">David Mosberger-Tang: "Re: DS-7 Backend"</a>
<li> <b>Reply:</b> <a href="0095.html">David Mosberger-Tang: "Re: DS-7 Backend"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
<i>&gt; What I would like to see is a library of conversion filters, e.g.,</i><br>
<i>&gt; JPG-&gt;PPM, FlashPix-&gt;PPM, PPM-&gt;JPG, PPM-&gt;FlashPix and so on (much like</i><br>
<i>&gt; the PNM utilities). Then, a frontend could declare what image types</i><br>
<i>&gt; it supports and the backend declares what image type it supports. If</i><br>
<i>&gt; there is a mismatch, a pipeline of available filters can be</i><br>
<i>&gt; constructed that will make it possible for the frontend to interpret</i><br>
<i>&gt; the backends data. E.g., xscanimage when running under GIMP would</i><br>
<i>&gt; declare "PPM" only, then when you'd attempt to read from a JPG-only</i><br>
<i>&gt; camera, the JPG-&gt;PPM filter would be used.</i><br>
<i>&gt; </i><br>
<p>
Looks like right now the entire image must be buffered,converted and<br>
then sent to the frontend piecemeal (kind of like the fake pnm<br>
driver). Can't imagine that the current API would allow any other<br>
approach, as it "steals" away the data as soon as it arrives from the<br>
scanner; no chance for subsequent manipulation.<br>
<p>
Wondering if Rasterman's Imlib would be a good way to go for image<br>
conversion. Supposedly it can display and convert all kinds of<br>
formats. (haven't programmed with it, only used it)<br>
<p>
<i>&gt; Since this would be a fairly significant change to the SANE API, I</i><br>
<i>&gt; think we should do this extension as part of a next major revision.</i><br>
<i>&gt; If you're interested in working on this, you could design the DS-7</i><br>
<i>&gt; backend in a way that works with the existing SANE (i.e., JPG always</i><br>
<i>&gt; gets converted to PPM) but makes it easy to adapt to the new</i><br>
<i>&gt; environment once work on the extended API begins.</i><br>
<i>&gt; </i><br>
<p>
Might be easier to re-write when the new API is defined... (any plans?)<br>
For now I will try to shoehorn some conversion into the backend.<br>
<p>
Thanks for the advice.<br>
Matt Martin<br>
<a href="mailto:matt.martin@ieee.org">matt.martin@ieee.org</a><br>
<p>
Lehigh U. Microelectronics Research Lab "The Clubhouse"<br>
16A Memorial Dr. E., Bethlehem,PA,18015 126 East 4th St.<br>
mmartin @ calvin.sfc.lehigh.edu Bethlehem, PA,18015-1702<br>
Work:(610) 758-3951 (Office) MGM1 @ LEHIGH.EDU<br>
-4518 (Lab) Home: (610) 758-9662<br>
WWW: "<a href="http://www.lehigh.edu/~mgm1/mgm1.html">http://www.lehigh.edu/~mgm1/mgm1.html</a>" AIM ID: MmAaRtTtIN<br>
PGP Public key at "finger <a href="mailto:mmartin@calvin.sfc.lehigh.edu">mmartin@calvin.sfc.lehigh.edu</a>"<br>
<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="0095.html">David Mosberger-Tang: "Re: DS-7 Backend"</a>
<li> <b>Previous message:</b> <a href="0093.html">Paul D. Robertson: "Re: [umax] Can't use 10-bit scan: "preview cannot handle depth 16""</a>
<li> <b>In reply to:</b> <a href="0091.html">David Mosberger-Tang: "Re: DS-7 Backend"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0095.html">David Mosberger-Tang: "Re: DS-7 Backend"</a>
<li> <b>Reply:</b> <a href="0095.html">David Mosberger-Tang: "Re: DS-7 Backend"</a>
<!-- reply="end" -->
</ul>