Hello,

I had this problem too. The right palette to use is VIDEO_PALETTE_JPEG if you 
are using the Labtec Webcam Pro with V4L. But the image captured seems not 
complete. The bottom of image was grey (there was an other post on that problem 
but I can't find it :s).
I had many troubles to use this cam with V4L/V4L2. I manage to make it work 
very well on my laptop with V4L2 but not on the foxboard. My application 
crashes with V4L2 on the fox.
I will give you more details tonight with my source code.

++
Gilles


----- Message d'origine ----
De : adil_nazir50 <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Mardi, 6 Mai 2008, 7h54mn 25s
Objet : [foxboard] please help in spca5xx


i am trying to capture image from web cam which is attached on my 
fox kit i have already installed the modules of spcafxx. i am using 
V4L every thing is going well but when i try to
set palette it returns -1 which is error. my code is this.

struct video_picture pic;

pic.depth = 24; /* use 24 for color or 8 for b&w */

pic.palette = VIDEO_PALETTE_ YUV420;

pic.brightness = pic.hue = pic.colour = pic.contrast = pic.whiteness 
=
32767;
ioctl(filediscripto r,VIDIOCSPICT, &pict);

it gives me error of

...invlid arguments
and

...format not supported

please help me in this regard.
thanks

    

__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible 
contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 

Reply via email to