69 if (!_pixel_format.empty()) {
70 out <<
" " << _pixel_format;
73 out <<
" @ " <<
get_fps() <<
"Hz";
76 INLINE ostream &operator << (ostream &out,
const WebcamVideo &n) {
void output(ostream &out) const
Outputs the WebcamVideo.
double get_fps() const
Returns the camera's framerate.
Allows you to open a webcam or other video capture device as a video stream.
int get_size_y() const
Returns the camera's size_y.
int get_size_x() const
Returns the camera's size_x.
const string & get_pixel_format() const
Returns the camera's pixel format, as a FourCC code, if known.