> Oliver Rauch wrote:
> > xsane should work with color and grayscale images with 16 bits/pixel.
>
> Nope! From xsane-0.39/frontend/xsane-preview.c, function
> preview_read_image_data:
>
> ----------8<----------8<----------8<----------8<----------
> case SANE_FRAME_GRAY:
> switch (p->params.depth)
> {
> case 1:
> [...]
> case 8:
> [...]
> default:
> goto bad_depth;
> ----------8<----------8<----------8<----------8<----------
>
> I tried to add a case 16, but as I don't exactly understand what's going
> on here it does not really work. The frontend aquires an image and
> displays it, but there seems to be a problem with byte order or
> interpretation of pixel "short"s, as every second row becomes black.
> Would you mind having a closer look at this?
>
>
You did not see the following line before the block you quoted:
if ( (xsane.param.depth == 1) || (xsane.param.depth == 8) )
{
there also is a
else if ( xsane.param.depth == 16 )
{
after that block.
Bye
Oliver
-- EMAIL: Oliver.Rauch@Wolfsburg.DE WWW: http://www.wolfsburg.de/~rauch
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com