#include <O2buffer.h>
Provides 32-bit colour frames of type CVD::O2VideoFrame.
Definition at line 37 of file O2buffer.h.
Public Member Functions | |
O2Buffer () | |
virtual ImageRef | size () |
virtual O2VideoFrame * | get_frame () |
virtual void | put_frame (VideoFrame< Rgb8 > *f) |
virtual bool | frame_pending () |
virtual double | frame_rate () |
CVD::O2Buffer::O2Buffer | ( | ) |
Construct an O2Buffer.
virtual ImageRef CVD::O2Buffer::size | ( | ) | [virtual] |
virtual O2VideoFrame* CVD::O2Buffer::get_frame | ( | ) | [virtual] |
Returns the next frame from the buffer. This function blocks until a frame is ready.
Implements CVD::VideoBuffer< T >.
virtual bool CVD::O2Buffer::frame_pending | ( | ) | [virtual] |
Is there a frame waiting in the buffer? This function does not block.
See is_live and is_flushable.
Implements CVD::VideoBuffer< T >.
virtual double CVD::O2Buffer::frame_rate | ( | ) | [virtual] |
What is the (expected) frame rate of this video buffer, in frames per second?
Implements CVD::VideoBuffer< T >.