15 #ifndef WEBCAMVIDEOCURSOROPENCV_H 16 #define WEBCAMVIDEOCURSOROPENCV_H 18 #include "pandabase.h" 22 #include "webcamVideo.h" 23 #include "movieVideoCursor.h" 25 class WebcamVideoOpenCV;
33 WebcamVideoCursorOpenCV(WebcamVideoOpenCV *src);
34 virtual ~WebcamVideoCursorOpenCV();
35 virtual PT(
Buffer) fetch_buffer();
38 bool get_frame_data(
const unsigned char *&r,
39 const unsigned char *&g,
40 const unsigned char *&b,
41 int &x_pitch,
int &y_pitch);
49 static void init_type() {
50 MovieVideoCursor::init_type();
51 register_type(_type_handle,
"WebcamVideoCursorOpenCV",
52 MovieVideoCursor::get_class_type());
55 return get_class_type();
57 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
A MovieVideo is actually any source that provides a sequence of video frames.
TypeHandle is the identifier used to differentiate C++ class types.