#include <localvideobuffer.h>
(In contrast to most buffers, where the memory is managed by the video hardware.)
T | The pixel type of the video frames |
Definition at line 36 of file localvideobuffer.h.
Public Member Functions | |
LocalVideoBuffer (typename VideoBufferType::Type t) | |
virtual | ~LocalVideoBuffer () |
virtual ImageRef | size ()=0 |
virtual LocalVideoFrame< T > * | get_frame ()=0 |
virtual void | put_frame (VideoFrame< T > *f)=0 |
virtual bool | frame_pending ()=0 |
virtual void | seek_to (double) |
virtual ImageRef CVD::LocalVideoBuffer< T >::size | ( | ) | [pure virtual] |
The size of the VideoFrames returned by this buffer.
Implements CVD::VideoBuffer< T >.
Implemented in CVD::ColourspaceBuffer< T, From >, CVD::DiskBuffer2< T >, CVD::ServerPushJpegBuffer< C >, and CVD::VideoFileBuffer< T >.
virtual LocalVideoFrame<T>* CVD::LocalVideoBuffer< T >::get_frame | ( | ) | [pure virtual] |
Returns the next frame from the buffer. This function blocks until a frame is ready.
Implements CVD::VideoBuffer< T >.
Implemented in CVD::ColourspaceBuffer< T, From >, CVD::DiskBuffer2< T >, CVD::ServerPushJpegBuffer< C >, CVD::TimedDiskBuffer< T >, and CVD::VideoFileBuffer< T >.
virtual void CVD::LocalVideoBuffer< T >::put_frame | ( | VideoFrame< T > * | f | ) | [pure 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< T >.
Implemented in CVD::ColourspaceBuffer< T, From >, CVD::DiskBuffer2< T >, CVD::ServerPushJpegBuffer< C >, and CVD::VideoFileBuffer< T >.
virtual bool CVD::LocalVideoBuffer< T >::frame_pending | ( | ) | [pure virtual] |
Is there a frame waiting in the buffer? This function does not block.
See is_live and is_flushable.
Implements CVD::VideoBuffer< T >.
Implemented in CVD::ColourspaceBuffer< T, From >, CVD::DiskBuffer2< T >, CVD::ServerPushJpegBuffer< C >, and CVD::VideoFileBuffer< T >.
virtual void CVD::LocalVideoBuffer< T >::seek_to | ( | double | ) | [inline, virtual] |
Go to a particular point in the video buffer (only implemented in buffers of recorded video).
t | The frame time in seconds |
Reimplemented from CVD::VideoBuffer< T >.
Reimplemented in CVD::ColourspaceBuffer< T, From >, CVD::DiskBuffer2< T >, CVD::ServerPushJpegBuffer< C >, and CVD::VideoFileBuffer< T >.
Definition at line 49 of file localvideobuffer.h.