finished merging earlier decoder code

This commit is contained in:
itsmattkc
2019-06-26 22:52:44 -07:00
parent f47de0be0d
commit d133ee9832
11 changed files with 570 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
#ifndef FFMPEGDECODER_H
#define FFMPEGDECODER_H
#include <QVector>
#include "decoder/decoder.h"
class FFmpegDecoder : public Decoder
{
public:
FFmpegDecoder();
virtual bool Open() override;
virtual void Close() override;
protected:
void FFmpegErr(int error_code);
void Error(const QString& s);
AVFormatContext* fmt_ctx_;
AVCodecContext* codec_ctx_;
AVStream* avstream_;
AVPacket* pkt_;
AVFrame* frame_;
AVDictionary* opts_;
QVector<int64_t> frame_index_;
};
#endif // FFMPEGDECODER_H