15 #ifndef WEBCAMVIDEOV4L_H
16 #define WEBCAMVIDEOV4L_H
18 #include "pandabase.h"
20 #ifdef HAVE_VIDEO4LINUX
22 #include "webcamVideo.h"
24 class WebcamVideoCursorV4L;
34 friend class WebcamVideoCursorV4L;
35 friend
void find_all_webcams_v4l();
36 static
void add_options_for_size(
int fd, const
string &dev, const
char *name,
37 unsigned width,
unsigned height,
38 unsigned pixelformat);
47 static void init_type() {
48 WebcamVideo::init_type();
49 register_type(_type_handle,
"WebcamVideoV4L",
50 WebcamVideo::get_class_type());
53 return get_class_type();
55 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
61 #endif // HAVE_VIDEO4LINUX
Allows you to open a webcam or other video capture device as a video stream.
A MovieVideo is actually any source that provides a sequence of video frames.
TypeHandle is the identifier used to differentiate C++ class types.