Re: [nslu2-linux] Sane and scanner support, libusb working
- On Fr, 2005-07-01, 13:00, David Karlström skrev:
> My prevous subject-line was a bit wrong. libusb works, saned works, butOk, I've looked a bit at it. Here is what I get:
> the images gets nice color vertical lines all over, and the image looks
> black and white. I'll keep playing with it.
I get the same thing from both scanimage and from saned.
Everybody keeps saying alignment problems (probably expects 24 bit and
gets 32 bits), but I still don't know what to do.
Does anyone know anything about the SANE internals (allan?).
Does anybody else want to get their scanner working under openslug, and
has a usb scanner with another backend than plustek?
Does anybody have any idea at all?
- From: m. allan noah
>david/jbowler-The comment about doing it properly (peteru?) is valid - all uses of AnyPtr
>should i try to get this pushed upstream? is there a better way to wrap it
>so that it wont cause issues for other compilers?
should be rewritten to use simple byte pointers...
The fix I gave is GCC specific - indeed at least part of the need for it is
GCC-ARM specific (GCC has a half-baked implementation of packed/alignment
specification on ARM). It should be protected by checking for GCC (#if
__GCC__?) and the macros (PACKED8, PACKED16) set to empty otherwise. Then
it is safe and probably appropriate to all platforms if the plustek
maintainer doesn't want to rewrite the code...
John Bowler <jbowler@...>