Play a series of image files as a video stream.
More...
#include <diskbuffer2.h>
|
ImageRef | my_size |
|
int | next_frame |
|
double | start_time |
|
double | time_per_frame |
|
double | frames_per_sec |
|
bool | frame_ready |
|
std::vector< std::string > | file_names |
|
VideoBufferFlags::OnEndOfBuffer | end_of_buffer_behaviour |
|
|
(Note that these are not member functions.)
|
std::vector< std::string > | globlist (const std::string &gl) |
| Make a list of strings from a UNIX-style pattern pathname expansion. More...
|
|
template<typename T>
class CVD::DiskBuffer2< T >
Play a series of image files as a video stream.
Provides frames of type CVD::DiskBuffer2Frame and throws exceptions of type CVD::Exceptions::DiskBuffer2
- Parameters
-
◆ DiskBuffer2()
Construct a DiskBuffer2 from a vector of filenames.
Typically the globlist() helper function is used to provide the filenames e.g. DiskBuffer2 buffer(globlist("~/Images/lab*.jpg"), 25);
- Parameters
-
names | The filenames to use (played in the order that they are in the vector) |
fps | The frames per second to report for this VideoBuffer |
eob | What should the buffer do when it reaches the end of the list of files? |
◆ on_end_of_buffer()
What should the buffer do when it reaches the end of the list of files?
- Parameters
-
◆ put_frame()
Tell the buffer that you are finished with this frame.
Typically the VideoBuffer then destroys the frame.
- Parameters
-
f | The frame that you are finished with. |
Implements CVD::LocalVideoBuffer< T >.
◆ seek_to()
Go to a particular point in the video buffer (only implemented in buffers of recorded video)
- Parameters
-
t | The frame time in seconds |
Reimplemented from CVD::LocalVideoBuffer< T >.
◆ globlist()
template<typename T>
std::vector< std::string > globlist |
( |
const std::string & |
gl | ) |
|
|
related |
Make a list of strings from a UNIX-style pattern pathname expansion.
Tilde expansion is done, and * ? [] and {} can all be used as normal. The filenames are returned in alphabetical (and numerical) order.
- Parameters
-
gl | The pattern from which to generate the strings |
The documentation for this class was generated from the following file: