CVD::TimedDiskBuffer< T > Class Template Reference
[Video buffers]

#include <timeddiskbuffer.h>

Inheritance diagram for CVD::TimedDiskBuffer< T >:

CVD::DiskBuffer2< T > CVD::LocalVideoBuffer< T > CVD::VideoBuffer< T >

List of all members.


Detailed Description

template<class T>
class CVD::TimedDiskBuffer< T >

Play a series of image files as a video stream and use a list of provided timestamps.

Provides frames of type CVD::DiskBuffer2Frame and throws exceptions of type CVD::Exceptions::DiskBuffer2 and CVD::Exceptions::TimedDiskBuffer

Parameters:
T The pixel type of the frames to provide (usually CVD::Rgb<CVD::byte> or CVD::byte. If the image files are of a different type, they will be automatically converted (see Image loading and saving, and format conversion).

Definition at line 51 of file timeddiskbuffer.h.


Public Member Functions

 TimedDiskBuffer (const std::vector< std::string > &names, const std::vector< double > &times, CVD::VideoBufferFlags::OnEndOfBuffer eob=CVD::VideoBufferFlags::RepeatLastFrame)
virtual
CVD::DiskBuffer2Frame
< T > * 
get_frame ()

Protected Attributes

std::vector< double > file_times

Constructor & Destructor Documentation

template<class T>
CVD::TimedDiskBuffer< T >::TimedDiskBuffer ( const std::vector< std::string > &  names,
const std::vector< double > &  times,
CVD::VideoBufferFlags::OnEndOfBuffer  eob = CVD::VideoBufferFlags::RepeatLastFrame 
) [inline]

Construct a TimedDiskBuffer2 from a vector of filenames and timestamps.

see Diskbuffer2 for details on how to use it.

Parameters:
names The filenames to use (played in the order that they are in the vector)
times The frame time stamps
eob What should the buffer do when it reaches the end of the list of files?

Definition at line 67 of file timeddiskbuffer.h.

References CVD::TimedDiskBuffer< T >::file_times.


Member Function Documentation

template<class T>
CVD::DiskBuffer2Frame< T > * CVD::TimedDiskBuffer< T >::get_frame (  )  [inline, virtual]

Returns the next frame from the buffer. This function blocks until a frame is ready.

Reimplemented from CVD::DiskBuffer2< T >.

Definition at line 79 of file timeddiskbuffer.h.

References CVD::TimedDiskBuffer< T >::file_times, CVD::DiskBuffer2< T >::get_frame(), CVD::DiskBuffer2< T >::next_frame, and CVD::DiskBuffer2Frame< T >::timestamp().


The documentation for this class was generated from the following file:
Generated on Wed Feb 18 10:23:08 2009 for CVD by  doxygen 1.5.3