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];
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Allows you to open a webcam or other video capture device as a video stream.
This is our own Panda specialization on the default STL vector.
PT(WebcamVideo) WebcamVideo
Returns the nth webcam option.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.