CVD 0.8
Public Member Functions | Protected Attributes
CVD::TimedDiskBuffer< T > Class Template Reference

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

#include <timeddiskbuffer.h>

Inheritance diagram for CVD::TimedDiskBuffer< T >:
CVD::DiskBuffer2< T > CVD::LocalVideoBuffer< T > CVD::VideoBuffer< T > CVD::RawVideoBuffer

List of all members.

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

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

TThe 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.

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.

namesThe filenames to use (played in the order that they are in the vector)
timesThe frame time stamps
eobWhat should the buffer do when it reaches the end of the list of files?

Definition at line 67 of file timeddiskbuffer.h.

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