Go to the documentation of this file.
41 static bool initialized =
false;
42 if (initialized)
return;
46 extern void find_all_webcams_ds();
47 find_all_webcams_ds();
50 #ifdef HAVE_VIDEO4LINUX
51 extern void find_all_webcams_v4l();
52 find_all_webcams_v4l();
55 #if defined(HAVE_OPENCV) && !defined(HAVE_DIRECTCAM) && !defined(HAVE_VIDEO4LINUX)
56 extern void find_all_webcams_opencv();
57 find_all_webcams_opencv();
69 return _all_webcams.size();
78 nassertr((n >= 0) && (n < (
int)_all_webcams.size()),
nullptr);
79 return _all_webcams[n];
get_num_options
Returns the number of webcam options.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Allows you to open a webcam or other video capture device as a video stream.
PT(WebcamVideo) WebcamVideo
Returns the nth webcam option.
static void find_all_webcams()
Scans the hardware for webcams, and pushes them onto the global list of all webcams.