15 #ifndef WEBCAMVIDEOCURSORV4L_H
16 #define WEBCAMVIDEOCURSORV4L_H
18 #include "pandabase.h"
20 #ifdef HAVE_VIDEO4LINUX
22 #include "webcamVideo.h"
23 #include "movieVideoCursor.h"
25 #include <linux/videodev2.h>
41 WebcamVideoCursorV4L(WebcamVideoV4L *src);
42 virtual ~WebcamVideoCursorV4L();
43 virtual PT(
Buffer) fetch_buffer();
50 struct v4l2_format _format;
52 struct jpeg_decompress_struct _cinfo;
59 static void init_type() {
60 MovieVideoCursor::init_type();
61 register_type(_type_handle,
"WebcamVideoCursorV4L",
62 MovieVideoCursor::get_class_type());
65 return get_class_type();
67 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
73 #endif // HAVE_VIDEO4LINUX
A MovieVideo is actually any source that provides a sequence of video frames.
TypeHandle is the identifier used to differentiate C++ class types.