Handle video encoding and decoding using libavcodec.
More...
#include <common/common.hh>
Handle video encoding and decoding using libavcodec.
gazebo::common::Video::Video |
( |
) | |
|
virtual gazebo::common::Video::~Video |
( |
) | |
|
|
virtual |
int gazebo::common::Video::GetHeight |
( |
) | |
const |
Get the height of the video in pixels.
- Returns
- the height
bool gazebo::common::Video::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
int gazebo::common::Video::GetWidth |
( |
) | |
const |
Get the width of the video in pixels.
- Returns
- the width
bool gazebo::common::Video::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: