[sane-devel] Scanning with 16 bits color depth (2 bytes/color)

Nicolas nicolas.martin at freesurf.fr
Thu Oct 2 21:20:41 UTC 2008


I'm on the way to upgrade the pixma backend to support TPU scanning, at
least for MP970.

TPU scanning with this PIXMA model requires to set up the 48 bits mode,
the images supplied seems (but still to be confirmed) to be 2
bytes/color (so 6 bytes/pixel), in the form: 

rRgGbBrRgGbB...

The backend currently deals with that, but when running with a frontend
like scanimage, it segfaults at scan image end.

So my question is: I know Sane standard defines image format to be RGB,
8 bits/color.
But is it possible to request a Sane frontend to get a 16 bits/color
image format and deal with that, or do I have to transform this 48 bits
image format into 24 bits in the backend, before returning the image
data to the frontend ?

Nicolas




More information about the sane-devel mailing list