kopia lustrzana https://gitlab.com/sane-project/website
113 wiersze
4.4 KiB
HTML
113 wiersze
4.4 KiB
HTML
|
<!-- received="Mon Jun 28 00:46:56 1999 PDT" -->
|
|||
|
<!-- sent="Mon, 28 Jun 1999 09:45:30 +0200" -->
|
|||
|
<!-- name="Oliver Rauch" -->
|
|||
|
<!-- email="oliver.rauch@Wolfsburg.DE" -->
|
|||
|
<!-- subject="Re: calculation of bytes to read, bytes per line etc" -->
|
|||
|
<!-- id="" -->
|
|||
|
<!-- inreplyto="calculation of bytes to read, bytes per line etc" -->
|
|||
|
<title>sane-devel: Re: calculation of bytes to read, bytes per line etc</title>
|
|||
|
<h1>Re: calculation of bytes to read, bytes per line etc</h1>
|
|||
|
<b>Oliver Rauch</b> (<a href="mailto:oliver.rauch@Wolfsburg.DE"><i>oliver.rauch@Wolfsburg.DE</i></a>)<br>
|
|||
|
<i>Mon, 28 Jun 1999 09:45:30 +0200</i>
|
|||
|
<p>
|
|||
|
<ul>
|
|||
|
<li> <b>Messages sorted by:</b> <a href="date.html#221">[ date ]</a><a href="index.html#221">[ thread ]</a><a href="subject.html#221">[ subject ]</a><a href="author.html#221">[ author ]</a>
|
|||
|
<!-- next="start" -->
|
|||
|
<li> <b>Next message:</b> <a href="0222.html">Thomas Ziegler: "Re: xsane-26: Options for normal/fine were not saved"</a>
|
|||
|
<li> <b>Previous message:</b> <a href="0220.html">Meino Christian Cramer: "calculation of bytes to read, bytes per line etc"</a>
|
|||
|
<li> <b>Maybe in reply to:</b> <a href="0220.html">Meino Christian Cramer: "calculation of bytes to read, bytes per line etc"</a>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<li> <b>Next in thread:</b> <a href="0226.html">abel deuring: "Re: calculation of bytes to read, bytes per line etc"</a>
|
|||
|
<!-- reply="end" -->
|
|||
|
</ul>
|
|||
|
<!-- body="start" -->
|
|||
|
Meino Christian Cramer wrote:<br>
|
|||
|
<p>
|
|||
|
<i>> Hi all!</i><br>
|
|||
|
<i>></i><br>
|
|||
|
<i>> Currently I am programming a backend for</i><br>
|
|||
|
<i>> the AVISION AV630CS.</i><br>
|
|||
|
<i>></i><br>
|
|||
|
<i>> One problem appears, to which I have no idea</i><br>
|
|||
|
<i>> how to solve.</i><br>
|
|||
|
<i>></i><br>
|
|||
|
<i>> At different places of the code, things like</i><br>
|
|||
|
<i>> bytes per line, bytes per page, lines per page,</i><br>
|
|||
|
<i>> dots perl line etc are calculated.</i><br>
|
|||
|
<i>></i><br>
|
|||
|
<i>> Unfortunatly, there most be some round errors or</i><br>
|
|||
|
<i>> something like that, cause Xscanimage gets (or means)</i><br>
|
|||
|
<i>> a greater amount of bytes to read, than my scanner is</i><br>
|
|||
|
<i>> willing to send.</i><br>
|
|||
|
<p>
|
|||
|
Hi Meino,<br>
|
|||
|
<p>
|
|||
|
I had the same problems with umax scanners.<br>
|
|||
|
In the umax docs there is defined how to calculate<br>
|
|||
|
pixels/line and lines - although that sometimes does<br>
|
|||
|
not work too -<br>
|
|||
|
<p>
|
|||
|
The princip is the following:<br>
|
|||
|
The scanner has an Optical resolution (O) and you<br>
|
|||
|
want to scan with the resolution (S)<br>
|
|||
|
<p>
|
|||
|
Example:<br>
|
|||
|
Optical Resolution O=300 dpi<br>
|
|||
|
Scan Resolution: S=250 dpi<br>
|
|||
|
<p>
|
|||
|
If you scan a full inch, it is simple,<br>
|
|||
|
you get 250 pixels.<br>
|
|||
|
<p>
|
|||
|
If you only scan a part of an inch,<br>
|
|||
|
you must know which pixels are<br>
|
|||
|
used and which are thrown away.<br>
|
|||
|
<p>
|
|||
|
You can calculate this with:<br>
|
|||
|
INT[n * O/D]<br>
|
|||
|
<p>
|
|||
|
Example:<br>
|
|||
|
The (un)wanted pixles are<br>
|
|||
|
1. pixel = INT[0 * O/D]<br>
|
|||
|
2. pixel = INT[1 * O/D]<br>
|
|||
|
3. pixel = INT[2 * O/D]<br>
|
|||
|
4. pixel = INT[3 * O/D]<br>
|
|||
|
<p>
|
|||
|
The number of pixels in full inches is simple the dpi*full inches.<br>
|
|||
|
The last broken inch must be calculated the way above.<br>
|
|||
|
<p>
|
|||
|
You can download the recent update (build6) of the umax backend<br>
|
|||
|
from my homepage, in the function umax_calculate_pixels<br>
|
|||
|
the routine is implemented.<br>
|
|||
|
<p>
|
|||
|
There is still an error in it because I sometimes still have your problem,<br>
|
|||
|
but the number of errors is reduced by 90%!<br>
|
|||
|
<p>
|
|||
|
Bye<br>
|
|||
|
Oliver<br>
|
|||
|
<p>
|
|||
|
<p>
|
|||
|
<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>
|
|||
|
<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="0222.html">Thomas Ziegler: "Re: xsane-26: Options for normal/fine were not saved"</a>
|
|||
|
<li> <b>Previous message:</b> <a href="0220.html">Meino Christian Cramer: "calculation of bytes to read, bytes per line etc"</a>
|
|||
|
<li> <b>Maybe in reply to:</b> <a href="0220.html">Meino Christian Cramer: "calculation of bytes to read, bytes per line etc"</a>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<li> <b>Next in thread:</b> <a href="0226.html">abel deuring: "Re: calculation of bytes to read, bytes per line etc"</a>
|
|||
|
<!-- reply="end" -->
|
|||
|
</ul>
|