17 #ifndef _GAZEBO_COMMON_VIDEO_HH_
18 #define _GAZEBO_COMMON_VIDEO_HH_
23 struct AVFormatContext;
24 struct AVCodecContext;
44 public:
virtual ~
Video();
50 public:
bool Load(
const std::string &_filename);
54 public:
int GetWidth()
const;
58 public:
int GetHeight()
const;
63 public:
bool GetNextFrame(
unsigned char **_buffer);
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;
Handle video encoding and decoding using libavcodec.
Definition: Video.hh:38