Video Class Reference

Handle video encoding and decoding using libavcodec. More...

#include <common/common.hh>

Public Member Functions

 Video ()
 Constructor. More...
 
virtual ~Video ()
 Destructor. More...
 
int GetHeight () const
 Get the height of the video in pixels. More...
 
bool GetNextFrame (unsigned char **_buffer)
 Get the next frame of the video. More...
 
int GetWidth () const
 Get the width of the video in pixels. More...
 
bool Load (const std::string &_filename)
 Load a video file. More...
 

Detailed Description

Handle video encoding and decoding using libavcodec.

Constructor & Destructor Documentation

§ Video()

Video ( )

Constructor.

§ ~Video()

virtual ~Video ( )
virtual

Destructor.

Member Function Documentation

§ GetHeight()

int GetHeight ( ) const

Get the height of the video in pixels.

Returns
the height

§ GetNextFrame()

bool GetNextFrame ( unsigned char **  _buffer)

Get the next frame of the video.

Parameters
[out]_imgImage in which the frame is stored
Returns
false if HAVE_FFMPEG is not defined, true otherwise

§ GetWidth()

int GetWidth ( ) const

Get the width of the video in pixels.

Returns
the width

§ Load()

bool Load ( const std::string &  _filename)

Load a video file.

Parameters
[in]_filenameFull path of the video file
Returns
false if HAVE_FFMPEG is not defined or if a video stream can't be found

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