sane-project-website/old-archive/1997-05/0018.html

75 wiersze
2.8 KiB
HTML

<!-- received="Mon May 26 09:22:54 1997 MST" -->
<!-- sent="26 May 1997 09:44:37 -0600" -->
<!-- name="Gordon Matzigkeit" -->
<!-- email="gord@m-tech.ab.ca" -->
<!-- subject="a priori image dimensions" -->
<!-- id="m0wVlMb-000BVpC@charon.beck-sw.de" -->
<!-- inreplyto="" -->
<title>sane-devel: a priori image dimensions</title>
<h1>a priori image dimensions</h1>
<b>Gordon Matzigkeit</b> (<a href="mailto:gord@m-tech.ab.ca"><i>gord@m-tech.ab.ca</i></a>)<br>
<i>26 May 1997 09:44:37 -0600</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#18">[ date ]</a><a href="index.html#18">[ thread ]</a><a href="subject.html#18">[ subject ]</a><a href="author.html#18">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0019.html">David Mosberger-Tang: "Re: a priori image dimensions"</a>
<li> <b>Previous message:</b> <a href="0017.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: mustek-probs: color, preview"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Hi!<br>
<p>
Here's question for the list before I spend the time to download<br>
sane-0.57...<br>
<p>
A problem that I've discovered in my PINT backend is that the<br>
dimensions (both X and Y) cannot be known until the scan is started.<br>
I've noticed the following line in the TODO:<br>
<p>
- xscan: scanning of images whose heights is not known a priori is not<br>
supported yet; this is going to be important for handheld scanners<br>
<p>
Does anybody have ideas on how to implement this, and/or has it been<br>
done in 0.57?<br>
<p>
The easiest way I can think of is to have a call to<br>
sane_get_parameters after the scan has completed to find out what<br>
actually happened.<br>
<p>
Maybe space for the PNM header could be reserved before the raw data<br>
is written, such as:<br>
<p>
-----<br>
PX<br>
# SANE data follows<br>
# [reserved space, as many bytes as seems appropriate]<br>
[raw data]<br>
-----<br>
<p>
Then, this could be transformed into a correct PNM header after the<br>
raw scanner data had been written.<br>
<p>
Comments?<br>
<p>
<pre>
--
Gord Matzigkeit | Proudly running pieces of the GNU operating system.
gord@m-tech.ab.ca | Jacques Cousteau loved programming in assembler.
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.azstarnet.com/~axplinux/sane/">http://www.azstarnet.com/~axplinux/sane/</a>
To unsubscribe: mail -s unsubscribe <a href="mailto:sane-devel-request@listserv.azstarnet.com">sane-devel-request@listserv.azstarnet.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0019.html">David Mosberger-Tang: "Re: a priori image dimensions"</a>
<li> <b>Previous message:</b> <a href="0017.html">becka@sunserver1.rz.uni-duesseldorf.de: "Re: mustek-probs: color, preview"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>