lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Spca50x-devs] Need gspcav2.c driver information
Hi, Parag,
> I am not able to use VIDIOC_G_FMT ioctl. I want to get default frame
> format used by webcam. I am using gspcaV2 driver.
It is bug ( just missprint I mean ) in gspca_get_fmt() function.
See attached patch.
Regards,
Serge A. Suchkov
--
"All my friends and I are crazy. That's the only thing that keeps us
sane."
diff -u -r -N gspcaV2.c gspcaV2.c
--- gspcaV2.c 2006-06-18 14:35:00.000000000 +0200
+++ gspcaV2.c 2006-08-28 18:12:22.000000000 +0200
@@ -2016,13 +2016,14 @@
return -EINVAL;
fmt->fmt.pix.width = gspca_dev->stream_param.width;
fmt->fmt.pix.height = gspca_dev->stream_param.height;
- if((fmt->fmt.pix.pixelformat = gspca_to_v4l(gspca_dev->stream_param.format)) < 0);
+ if((fmt->fmt.pix.pixelformat = gspca_to_v4l(gspca_dev->stream_param.format)) < 0)
return -EINVAL;
fmt->fmt.pix.field = V4L2_FIELD_NONE;
fmt->fmt.pix.bytesperline = (get_v4l2_depth(fmt->fmt.pix.pixelformat)*fmt->fmt.pix.width ) >> 3;
fmt->fmt.pix.sizeimage = fmt->fmt.pix.bytesperline*fmt->fmt.pix.height;
fmt->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB;
fmt->fmt.pix.priv = 0;
+ return 0;
}
static int
gspca_set_fmt(struct gspca_device *gspca_dev,struct v4l2_format *fmt)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs