All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
gazebo::common::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

gazebo::common::Video::Video ( )

Constructor.

virtual gazebo::common::Video::~Video ( )
virtual

Destructor.

Member Function Documentation

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]_imgImage 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]_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: