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(filediscriptor,VIDIOCSPICT,&pict);


it gives me error of

...invlid arguments
and

...format not supported

please help me in this regard.
thanks


Reply via email to