#include <timeddiskbuffer.h>
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 > ×, CVD::VideoBufferFlags::OnEndOfBuffer eob=CVD::VideoBufferFlags::RepeatLastFrame) | |
Protected Attributes | |
std::vector< double > | file_times |
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
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.
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.
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.
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.
std::vector<double> CVD::TimedDiskBuffer< T >::file_times [protected] |
Definition at line 62 of file timeddiskbuffer.h.