1 --- /home/bas/webcamVideoV4L.cxx 2011-05-22 16:13:34.785441458 +0200
2 +++ src/panda3d-1.7.2/panda/src/vision/webcamVideoV4L.cxx 2011-05-24 16:10:09.883188149 +0200
7 -#include <linux/videodev.h>
8 #include <linux/videodev2.h>
10 TypeHandle WebcamVideoV4L::_type_handle;
12 // the global list _all_webcams.
13 ////////////////////////////////////////////////////////////////////
14 void find_all_webcams_v4l() {
15 - struct video_capability cap;
16 struct v4l2_capability cap2;
24 - // Check for Video4Linux capabilities
25 - if (ioctl(fd, VIDIOCGCAP, &cap) != -1) {
26 - if (cap.type & VID_TYPE_CAPTURE) {
27 - //TODO: Video4Linux support
35 --- /home/bas/webcamVideoCursorV4L.cxx 2011-05-22 16:13:39.522115838 +0200
36 +++ webcamVideoCursorV4L.cxx 2011-05-22 16:14:13.848838406 +0200
40 #include <sys/ioctl.h>
41 -#include <linux/videodev.h>
42 #include <linux/videodev2.h>