#include <O2buffer.h>
Public Member Functions | |
virtual bool | frame_pending () |
virtual double | frame_rate () |
What is the (expected) frame rate of this video buffer, in frames per second? | |
virtual O2VideoFrame * | get_frame () |
Returns the next frame from the buffer. This function blocks until a frame is ready. | |
O2Buffer () | |
Construct an O2Buffer. | |
virtual void | put_frame (VideoFrame< Rgb8 > *f) |
virtual ImageRef | size () |
The size of the VideoFrames returned by this buffer. | |
~O2Buffer () | |
Private Attributes | |
long | m_currentFrameNumber |
ImageRef | m_frameSize |
O2VideoFrame * | m_pFrame |
SGI::RawSGIVideo * | m_pVid |
A video buffer to play live video on an SGI O2. Provides 32-bit colour frames of type CVD::O2VideoFrame.
Definition at line 33 of file O2buffer.h.
CVD::O2Buffer::O2Buffer | ( | ) |
Construct an O2Buffer.
CVD::O2Buffer::~O2Buffer | ( | ) |
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::RawVideoBuffer.
virtual double CVD::O2Buffer::frame_rate | ( | ) | [virtual] |
What is the (expected) frame rate of this video buffer, in frames per second?
Implements CVD::RawVideoBuffer.
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< Rgb8 >.
virtual void CVD::O2Buffer::put_frame | ( | VideoFrame< Rgb8 > * | f | ) | [virtual] |
Tell the buffer that you are finished with this frame. Typically the VideoBuffer then destroys the frame.
f | The frame that you are finished with. |
Implements CVD::VideoBuffer< Rgb8 >.
virtual ImageRef CVD::O2Buffer::size | ( | ) | [virtual] |
The size of the VideoFrames returned by this buffer.
Implements CVD::RawVideoBuffer.
long CVD::O2Buffer::m_currentFrameNumber [private] |
Definition at line 44 of file O2buffer.h.
ImageRef CVD::O2Buffer::m_frameSize [private] |
Definition at line 41 of file O2buffer.h.
O2VideoFrame* CVD::O2Buffer::m_pFrame [private] |
Definition at line 43 of file O2buffer.h.
SGI::RawSGIVideo* CVD::O2Buffer::m_pVid [private] |
Definition at line 42 of file O2buffer.h.