Handle video encoding and decoding using libavcodec.
More...
#include <common/common.hh>
Handle video encoding and decoding using libavcodec.
§ Video()
§ ~Video()
§ GetHeight()
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] | _img | Image in which the frame is stored |
- Returns
- false if HAVE_FFMPEG is not defined, true otherwise
§ GetWidth()
Get the width of the video in pixels.
- Returns
- the width
§ Load()
bool Load |
( |
const std::string & |
_filename | ) |
|
Load a video file.
- Parameters
-
[in] | _filename | Full 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: