[Sumover-dev] [svn commit] r4062 - vic/branches/mpeg4/video
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Tue Jun 12 09:48:23 BST 2007
Author: piers
Date: Tue Jun 12 09:48:22 2007
New Revision: 4062
Modified:
vic/branches/mpeg4/video/grabber-v4l2.cpp
Log:
V4L2-interlaced.patch from Doug (11June 2007) - Thanks!:
Patch fixes:
Interlaced video sources no longer have an interlaced video effect.
Changed STREAMBUFS definition from 4 to 2, as bttv driver was producing
kernel messages and freezing vic.
Modified: vic/branches/mpeg4/video/grabber-v4l2.cpp
==============================================================================
--- vic/branches/mpeg4/video/grabber-v4l2.cpp (original)
+++ vic/branches/mpeg4/video/grabber-v4l2.cpp Tue Jun 12 09:48:22 2007
@@ -92,7 +92,7 @@
} VIMAGE;
-#define STREAMBUFS 4
+#define STREAMBUFS 2
class V4l2Grabber : public Grabber
{
@@ -1096,6 +1096,7 @@
ioctl(fd_, VIDIOC_G_FMT, &fmt);
fmt.fmt.pix.width = width_;
fmt.fmt.pix.height = height_;
+ fmt.fmt.pix.field = V4L2_FIELD_ANY;
fmt.fmt.pix.pixelformat = pixelformat;
if ( (err = ioctl(fd_, VIDIOC_S_FMT, &fmt) ) )
More information about the Sumover-dev
mailing list