/* * Decoder * 2022.09.23 sugon * */ #ifndef __DECODER_H__ #define __DECODER_H__ extern "C" { #include #include #include #include #include #include #include #include #include #include #include } class Decoder { public: Decoder(); virtual ~Decoder(); virtual int 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/Images/cr7_1920x1080.h264"; //const char *src_filename = "../Resource/Images/Mean.mp4"; }; #endif