|
CVD 0.8
|
Decorator video buffer that preloads frames asynchronously in a separate thread. More...
#include <readaheadvideobuffer.h>
Public Member Functions | |
| ReadAheadVideoBuffer (VideoBuffer< T > &vb, size_t maxReadAhead=10) | |
| void | run () |
| ImageRef | size () |
| VideoFrame< T > * | get_frame () |
| void | put_frame (VideoFrame< T > *f) |
| bool | frame_pending () |
| double | frame_rate () |
| void | seek_to (double t) |
Decorator video buffer that preloads frames asynchronously in a separate thread.
| T | The pixel type of the video frames |
| vb | The video buffer to wrap/preload |
| maxReadAhead | The maximum number of frames to read ahead asynchronously; the underlying VideoBuffer must support this many concurrently existing VideoFrame's |
Definition at line 72 of file readaheadvideobuffer.h.
| void CVD::ReadAheadVideoBuffer< T >::put_frame | ( | VideoFrame< T > * | f | ) | [inline, 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 >.
Definition at line 144 of file readaheadvideobuffer.h.
| void CVD::ReadAheadVideoBuffer< T >::seek_to | ( | double | t | ) | [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::RawVideoBuffer.
Definition at line 153 of file readaheadvideobuffer.h.
References CVD::EventObject::triggerAll().
1.7.4