Re: QuickCam bit depth wired to 8: why?

David Mosberger-Tang (davidm@azstarnet.com)
Wed, 18 Jun 1997 16:28:12 -0700

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

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

Andrew> Hmm... the sample color QuickCam image on the SANE page
Andrew> looks OK, but it doesn't seem as if the B&W version is doing
Andrew> the scaling.

The color version returns 8bpp, so scaling isn't needed.

Andrew> I'm willing to fix the problem and submit a
Andrew> patch if someone can tell me where the scaling code should
Andrew> go. Would it simply be a matter of adding a scaling loop
Andrew> just before the following code in reader_process()?

qc_readbytes() would be the right place. Cases 4 and 6 there can occur
with the b&w camera only.

--david

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