CVD 0.8
|
Internal (non type-safe) class used by VideoFileBuffer This does the real interfacing with the ffmpeg library. More...
#include <videofilebuffer.h>
Public Member Functions | |
RawVideoFileBuffer (const std::string &file, bool is_rgb) | |
ImageRef | size () |
void * | get_frame () |
void | put_frame (void *f) |
bool | frame_pending () |
void | seek_to (double t) |
void | on_end_of_buffer (VideoBufferFlags::OnEndOfBuffer behaviour) |
double | frames_per_second () |
std::string | file_name () |
std::string | codec_name () |
Internal (non type-safe) class used by VideoFileBuffer This does the real interfacing with the ffmpeg library.
Definition at line 99 of file videofilebuffer.h.
CVD::VFB::RawVideoFileBuffer::RawVideoFileBuffer | ( | const std::string & | file, |
bool | is_rgb | ||
) |
Construct a video buffer to play this file.
file | The path to the video file |
is_rgb | Is RGB data wanted? |
void CVD::VFB::RawVideoFileBuffer::put_frame | ( | void * | f | ) |
Tell the buffer that you are finished with this frame.
f | The frame that you are finished with. |
Referenced by CVD::VideoFileBuffer< T >::put_frame().
void CVD::VFB::RawVideoFileBuffer::seek_to | ( | double | t | ) |
Go to a particular point in the video buffer (only implemented in buffers of recorded video)
t | The frame time in seconds |
Referenced by CVD::VideoFileBuffer< T >::seek_to().
void CVD::VFB::RawVideoFileBuffer::on_end_of_buffer | ( | VideoBufferFlags::OnEndOfBuffer | behaviour | ) |
What should the buffer do when it reaches the end of the list of files?
behaviour | The desired behaviour |
Referenced by CVD::VideoFileBuffer< T >::on_end_of_buffer().