CVD 0.8
Public Member Functions
CVD::VFB::RawVideoFileBuffer Class Reference

Internal (non type-safe) class used by VideoFileBuffer This does the real interfacing with the ffmpeg library. More...

#include <videofilebuffer.h>

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

CVD::VFB::RawVideoFileBuffer::RawVideoFileBuffer ( const std::string &  file,
bool  is_rgb 
)

Construct a video buffer to play this file.

Parameters:
fileThe path to the video file
is_rgbIs RGB data wanted?

Member Function Documentation

void CVD::VFB::RawVideoFileBuffer::put_frame ( void *  f)

Tell the buffer that you are finished with this frame.

Parameters:
fThe 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)

Parameters:
tThe 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?

Parameters:
behaviourThe desired behaviour

Referenced by CVD::VideoFileBuffer< T >::on_end_of_buffer().


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