Geoffrey wrote:
Well, I've successfully tested my quickcam, output:
*** Camera Info ***
Name: Logitech USB Camera
Type: 513
Minimum Width: 176
Maximum Width: 352
Minimum Height: 144
Maximum Height: 288
X: 0
Y: 0
Width: 352
Height: 288
Depth: 24
Color true
Version: $Id: testquickcam.c,v 1.11 2001/05/03 22:38:40 jfclere
Exp $
but when I use it with xawtv, it responds with 'no way to get 352x288
16 bit TrueColor (LE)'
Anyone know what that's all about?
I've tried forcing it to 16 bit via the bpp setting for xawtv
Suggestions?
I have an idea. I think there's a bug in quickcam.c. For me, xawtv
worked fine, but when I tried to use camstream I got only black images.
I traced the problem down to a check in quickcam.c that looks like a
workaround that went wrong--basically, the code is supposed ot check if
the palette is supported, but instead it rejects the palette if it
doesn't have 24 bits. This worked for my xawtv, which apparently ignored
this check, but maybe your xawtv pays attention to the check.. I fixed
this with the attached diff file for quickcam.c. Try applying it to
quickcam.c and see if you have better results.
BTW I reported this bug on the qce SourceForge page, no action so far.
-- Jon Webb
1662,1668c1662,1664
< if (p.depth!=24)
< retval = -EINVAL;
< else {
< retval = IsSupported(p.palette);
< if (!retval)
< quickcam->vpic.palette = p.palette;
< }
---
> retval = IsSupported(p.palette);
> if (!retval)
> quickcam->vpic.palette = p.palette;