[sane-devel] Re: sane-devel digest, Vol 1 #826 - 6 msgs

Henning Meier-Geinitz henning at meier-geinitz.de
Fri Jul 15 18:13:05 UTC 2005


Hi,

On Mon, Jul 11, 2005 at 05:11:48PM +0200, Mattias Ellert wrote:
> Even better would be:
> 
>               *dst-- = ((*src << 4) & 0xf0) + ((*src)        & 0x0f);
>               *dst-- = ((*src)      & 0xf0) + ((*src-- >> 4) & 0x0f);
> 
> Then 0 would map to 0 and 15 to 255, i.e. white is white and black is
> black.

You're right. I've changed taht in sp15c.c in CVS.

Bye,
  Henning



More information about the sane-devel mailing list