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];
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.
get_num_options
Returns the number of webcam options.
static void find_all_webcams()
Scans the hardware for webcams, and pushes them onto the global list of all webcams.
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.
PT(WebcamVideo) WebcamVideo
Returns the nth webcam option.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.