40 INLINE
void output(std::ostream &out)
const;
49 std::string _pixel_format;
57 static void init_type() {
58 MovieVideo::init_type();
60 MovieVideo::get_class_type());
62 virtual TypeHandle get_type()
const {
63 return get_class_type();
65 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
68 static TypeHandle _type_handle;
71INLINE std::ostream &operator << (std::ostream &out,
const WebcamVideo &n);
A MovieVideo is actually any source that provides a sequence of video frames.
MovieVideo(const std::string &name="Blank Video")
This constructor returns a null video stream — a stream of plain blue and white frames that last one ...
void output(std::ostream &out) const
Outputs the Namable.
TypeHandle is the identifier used to differentiate C++ class types.
Allows you to open a webcam or other video capture device as a video stream.
double get_fps() const
Returns the camera's framerate.
get_num_options
Returns the number of webcam options.
int get_size_y() const
Returns the camera's size_y.
int get_size_x() const
Returns the camera's size_x.
static void find_all_webcams()
Scans the hardware for webcams, and pushes them onto the global list of all webcams.
const std::string & get_pixel_format() const
Returns the camera's pixel format, as a FourCC code, if known.
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.