<div dir="ltr"><div class="gmail_quote">On Wed, Oct 27, 2010 at 1:31 PM, Marcus Meissner <span dir="ltr"><<a href="mailto:meissner@suse.de">meissner@suse.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Wed, Oct 27, 2010 at 11:58:22AM +0200, Yaron Shahrabani wrote:<br>
> Can someone please explain the units in the twain module (sane.ds)?<br>
> There are:<br>
> px - pixels<br>
> b - ? (bytes)<br>
> dpi - dots per inch<br>
> mm - milimeters<br>
> % - percent<br>
> ns - ? (nanosecond)<br>
><br>
> I will add comments to the file so it will be clearer for other translators,<br>
> thanks!<br>
> Yaron Shahrabani<br>
<br>
</div></div>It maps Sane defines...<br>
<br>
/usr/include/sane/sane.h:<br>
<br>
SANE_UNIT_NONE = 0, /* the value is unit-less (e.g., # of scans) */<br>
SANE_UNIT_PIXEL, /* value is number of pixels */<br>
SANE_UNIT_BIT, /* value is number of bits */<br>
SANE_UNIT_MM, /* value is millimeters */<br>
SANE_UNIT_DPI, /* value is resolution in dots/inch */<br>
SANE_UNIT_PERCENT, /* value is a percentage */<br>
SANE_UNIT_MICROSECOND /* value is micro seconds */<br>
<br>
So apparently "ns" might be wrong, and dpi and mm might be switched even...<br>
<br>
Aric?<br></blockquote><div>I'll be waiting for his comment as well... I must say the ns thing look very suspicious at first look ☺<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Ciao, Marcus<br>
</blockquote></div><br></div>