17#ifndef _GAZEBO_COMMON_VIDEO_HH_
18#define _GAZEBO_COMMON_VIDEO_HH_
23struct AVFormatContext;
50 public:
bool Load(
const std::string &_filename);
66 private:
void Cleanup();
69 private: AVFormatContext *formatCtx;
72 private: AVCodecContext *codecCtx;
75 private: AVFrame *avFrame;
78 private: AVFrame *avFrameDst;
81 private: SwsContext *swsCtx;
84 private:
int videoStream;
common
Definition FuelModelDatabase.hh:37
Handle video encoding and decoding using libavcodec.
Definition Video.hh:39
virtual ~Video()
Destructor.
int GetWidth() const
Get the width of the video in pixels.
int GetHeight() const
Get the height of the video in pixels.
bool GetNextFrame(unsigned char **_buffer)
Get the next frame of the video.
bool Load(const std::string &_filename)
Load a video file.
Forward declarations for the common classes.
Definition Animation.hh:27