CVD 0.8
Public Member Functions
CVD::ReadAheadVideoBuffer< T > Class Template Reference

Decorator video buffer that preloads frames asynchronously in a separate thread. More...

#include <readaheadvideobuffer.h>

Inheritance diagram for CVD::ReadAheadVideoBuffer< T >:
CVD::VideoBuffer< T > CVD::Runnable CVD::RawVideoBuffer

List of all members.

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)

Detailed Description

template<class T>
class CVD::ReadAheadVideoBuffer< T >

Decorator video buffer that preloads frames asynchronously in a separate thread.

Parameters:
TThe pixel type of the video frames
vbThe video buffer to wrap/preload
maxReadAheadThe 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.


Member Function Documentation

template<class T >
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.

Parameters:
fThe frame that you are finished with.

Implements CVD::VideoBuffer< T >.

Definition at line 144 of file readaheadvideobuffer.h.

template<class T >
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)

Parameters:
tThe frame time in seconds

Reimplemented from CVD::RawVideoBuffer.

Definition at line 153 of file readaheadvideobuffer.h.

References CVD::EventObject::triggerAll().


The documentation for this class was generated from the following file: