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

#include <timeddiskbuffer.h>

Inheritance diagram for CVD::TimedDiskBuffer< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual CVD::DiskBuffer2Frame
< T > * 
get_frame ()
 Returns the next frame from the buffer. This function blocks until a frame is ready.
 TimedDiskBuffer (const std::vector< std::string > &names, const std::vector< double > &times, CVD::VideoBufferFlags::OnEndOfBuffer eob=CVD::VideoBufferFlags::RepeatLastFrame)

Protected Attributes

std::vector< double > file_times

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 50 of file timeddiskbuffer.h.


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 66 of file timeddiskbuffer.h.


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 78 of file timeddiskbuffer.h.


Member Data Documentation

template<class T >
std::vector<double> CVD::TimedDiskBuffer< T >::file_times [protected]

Definition at line 62 of file timeddiskbuffer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:53 2013