28 static int get_num_options();
30 MAKE_SEQ(get_options, get_num_options, get_option);
31 MAKE_SEQ_PROPERTY(options, get_num_options, get_option);
33 INLINE
int get_size_x()
const;
34 INLINE
int get_size_y()
const;
35 INLINE
double get_fps()
const;
36 INLINE
const std::string &get_pixel_format()
const;
40 INLINE
void output(std::ostream &out)
const;
43 static void find_all_webcams();
49 std::string _pixel_format;
57 static void init_type() {
58 MovieVideo::init_type();
60 MovieVideo::get_class_type());
63 return get_class_type();
65 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
71 INLINE std::ostream &operator << (std::ostream &out,
const WebcamVideo &n);
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.
Allows you to open a webcam or other video capture device as a video stream.
This is our own Panda specialization on the default STL vector.
void output(std::ostream &out) const
Outputs the Namable.
A MovieVideo is actually any source that provides a sequence of video frames.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A MovieVideo is actually any source that provides a sequence of video frames.
TypeHandle is the identifier used to differentiate C++ class types.