[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Sane.ds units
From:       Yaron Shahrabani <sh.yaron () gmail ! com>
Date:       2010-10-28 17:03:44
Message-ID: AANLkTi=E6r2MTNnEzATv8ykQc2E+hBVPviUhX3-CyWDu () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Wed, Oct 27, 2010 at 1:31 PM, Marcus Meissner <meissner@suse.de> wrote:

> On Wed, Oct 27, 2010 at 11:58:22AM +0200, Yaron Shahrabani wrote:
> > Can someone please explain the units in the twain module (sane.ds)?
> > There are:
> > px - pixels
> > b - ? (bytes)
> > dpi - dots per inch
> > mm - milimeters
> > % - percent
> > ns - ? (nanosecond)
> >
> > I will add comments to the file so it will be clearer for other
> translators,
> > thanks!
> > Yaron Shahrabani
>
> It maps Sane defines...
>
> /usr/include/sane/sane.h:
>
>    SANE_UNIT_NONE = 0,         /* the value is unit-less (e.g., # of scans)
> */
>    SANE_UNIT_PIXEL,            /* value is number of pixels */
>    SANE_UNIT_BIT,              /* value is number of bits */
>    SANE_UNIT_MM,               /* value is millimeters */
>    SANE_UNIT_DPI,              /* value is resolution in dots/inch */
>    SANE_UNIT_PERCENT,          /* value is a percentage */
>    SANE_UNIT_MICROSECOND       /* value is micro seconds */
>
> So apparently "ns" might be wrong, and dpi and mm might be switched even...
>
> Aric?
>
I'll be waiting for his comment as well... I must say the ns thing look very
suspicious at first look ☺


>
> Ciao, Marcus
>

[Attachment #5 (text/html)]

<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>





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic