[sane-devel] Does sane_read return multiple scanlines?
Peter Kirchgessner
peter at kirchgessner.net
Wed Apr 30 05:56:32 BST 2003
Hi,
sane_read can return multiple lines. Depending on the type of the scan
and the used depth (1,8,16) parm.bytes per line could be
(parm.pixels_per_line+7)/8, parm.pixels_per_line,
parm.pixels_per_line*2, parm.pixels_per_line*3,
parm.pixels_per_line*2*2, parm.pixels_per_line*3*2.
--Peter
Peter Chen schrieb:
> Hi,
>
> I am a little confused about this. I guess sane_read could return multiple
> scanlines, the number of bytes returned is in len. The width of the image is
> in parm.pixels_per_line, the height of the image is in parm.lines,
> parm.bytes_per_line could be the same as parm.pixels_per_line or
> parm.pixels_per_line*3, is this correct?
>
> Thanks,
>
> Peter
> _______________________________________________
> Sane-devel mailing list
> Sane-devel at www.mostang.com
> http://www.mostang.com/mailman/listinfo/sane-devel
>
--
Peter Kirchgessner
http://www.kirchgessner.net
mailto:peter at kirchgessner.net
More information about the sane-devel
mailing list