#ifndef __DECODER_H__ #define __DECODER_H__ extern "C" { #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include } class Decoder { public: Decoder(); ~Decoder(); void DecoderInit(); AVFormatContext *fmt_ctx = NULL; AVCodecContext *video_dec_ctx = NULL; AVStream *video_stream = NULL; AVFrame *frame = NULL; AVPacket *pkt = NULL; const AVCodec *dec = NULL; int video_stream_idx = -1; const char *src_filename = "./Resource/cr7_1920x1080.h264"; }; #endif