14#ifndef WEBCAMVIDEOV4L_H
15#define WEBCAMVIDEOV4L_H
19#if defined(HAVE_VIDEO4LINUX) && !defined(CPPPARSER)
23class WebcamVideoCursorV4L;
30 virtual PT(MovieVideoCursor) open();
32 friend class WebcamVideoCursorV4L;
33 friend void find_all_webcams_v4l();
34 static void add_options_for_size(
int fd,
const std::string &dev,
const char *name,
35 unsigned width,
unsigned height,
36 unsigned pixelformat);
42 static TypeHandle get_class_type() {
45 static void init_type() {
46 WebcamVideo::init_type();
48 WebcamVideo::get_class_type());
50 virtual TypeHandle get_type()
const {
51 return get_class_type();
53 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
56 static TypeHandle _type_handle;
Allows you to open a webcam or other video capture device as a video stream.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.