<div dir="ltr"><div class="gmail_quote">On Wed, Oct 27, 2010 at 1:31 PM, Marcus Meissner <span dir="ltr">&lt;<a href="mailto:meissner@suse.de">meissner@suse.de</a>&gt;</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>
&gt; Can someone please explain the units in the twain module (sane.ds)?<br>
&gt; There are:<br>
&gt; px - pixels<br>
&gt; b - ? (bytes)<br>
&gt; dpi - dots per inch<br>
&gt; mm - milimeters<br>
&gt; % - percent<br>
&gt; ns - ? (nanosecond)<br>
&gt;<br>
&gt; I will add comments to the file so it will be clearer for other translators,<br>
&gt; thanks!<br>
&gt; 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 &quot;ns&quot; might be wrong, and dpi and mm might be switched even...<br>
<br>
Aric?<br></blockquote><div>I&#39;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>