2
0
Эх сурвалжийг харах

hopefully remove dependency on v4l 1

rdb 14 жил өмнө
parent
commit
d30f60c70f

+ 0 - 1
panda/src/vision/webcamVideoCursorV4L.cxx

@@ -19,7 +19,6 @@
 #include <fcntl.h>
 #include <fcntl.h>
 #include <sys/mman.h>
 #include <sys/mman.h>
 #include <sys/ioctl.h>
 #include <sys/ioctl.h>
-#include <linux/videodev.h>
 #include <linux/videodev2.h>
 #include <linux/videodev2.h>
 
 
 #ifdef HAVE_JPEG
 #ifdef HAVE_JPEG

+ 0 - 9
panda/src/vision/webcamVideoV4L.cxx

@@ -21,7 +21,6 @@
 
 
 #include <fcntl.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <sys/ioctl.h>
-#include <linux/videodev.h>
 #include <linux/videodev2.h>
 #include <linux/videodev2.h>
 
 
 TypeHandle WebcamVideoV4L::_type_handle;
 TypeHandle WebcamVideoV4L::_type_handle;
@@ -113,14 +112,6 @@ void find_all_webcams_v4l() {
           continue;
           continue;
         }
         }
       }
       }
-
-      // Check for Video4Linux capabilities
-      if (ioctl(fd, VIDIOCGCAP, &cap) != -1) {
-        if (cap.type & VID_TYPE_CAPTURE) {
-          //TODO: Video4Linux support
-          continue;
-        }
-      }
     }
     }
     close(fd);
     close(fd);
   }
   }