15 #include "webcamVideo.h" 16 #include "pandabase.h" 17 #include "movieVideoCursor.h" 49 static bool initialized =
false;
50 if (initialized)
return;
54 extern void find_all_webcams_ds();
55 find_all_webcams_ds();
58 #ifdef HAVE_VIDEO4LINUX 59 extern void find_all_webcams_v4l();
60 find_all_webcams_v4l();
63 #if defined(HAVE_OPENCV) && !defined(HAVE_DIRECTCAM) && !defined(HAVE_VIDEO4LINUX) 64 extern void find_all_webcams_opencv();
65 find_all_webcams_opencv();
80 return _all_webcams.size();
91 nassertr((n >= 0) && (n < (
int)_all_webcams.size()), NULL);
92 return _all_webcams[n];
Allows you to open a webcam or other video capture device as a video stream.
static int get_num_options()
Returns the number of webcam options.
TypeHandle is the identifier used to differentiate C++ class types.
static void find_all_webcams()
Scans the hardware for webcams, and pushes them onto the global list of all webcams.