# Re: QuickCam bit depth wired to 8: why?

Andrew Kuchling (amk@magnet.com)
Wed, 18 Jun 1997 19:14:37 -0400 (EDT)

- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"
- Previous message: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"
- In reply to: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"
- Next in thread: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"
- Reply: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"
- Reply: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"

> So, the intent is that the qcam backend scales 4 and 6 bit samples to
> 8 bit samples. Then everything will work as intended.

Hmm... the sample color QuickCam image on the SANE page looks
OK, but it doesn't seem as if the B&W version is doing the scaling.
I'm willing to fix the problem and submit a patch if someone can tell
me where the scaling code should go. Would it simply be a matter of
adding a scaling loop just before the following code in
reader_process()?

/* now write the whole thing to the main process: */
if (fwrite (src, 1, num_bytes, ofp) != num_bytes)
...

Andrew Kuchling
amk@magnet.com
http://people.magnet.com/%7Eamk/

    --
    Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
    To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com

- Next message: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"
- Previous message: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"
- In reply to: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"
- Next in thread: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"
- Reply: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"
- Reply: David Mosberger-Tang: "Re: QuickCam bit depth wired to 8: why?"