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: AVPicture *pic;
81 private: SwsContext *swsCtx;
84 private:
int videoStream;
#define GZ_COMMON_VISIBLE
Definition: system.hh:91
Handle video encoding and decoding using libavcodec.
Definition: Video.hh:38