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;
    80       private: AVPicture *pic;
    83       private: SwsContext *swsCtx;
    86       private: 
int videoStream;
 Forward declarations for the common classes. 
Definition: Animation.hh:33
 
Handle video encoding and decoding using libavcodec. 
Definition: Video.hh:38