Sane.ds units

Yaron Shahrabani sh.yaron at gmail.com
Thu Oct 28 12:03:44 CDT 2010


On Wed, Oct 27, 2010 at 1:31 PM, Marcus Meissner <meissner at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20101028/c72abd3c/attachment.htm>


More information about the wine-devel mailing list