began custom pix fmt converter

This commit is contained in:
itsmattkc
2019-05-23 02:22:45 +10:00
parent a82e5ccbce
commit d76ac6ff38
22 changed files with 472 additions and 77 deletions
+15 -2
View File
@@ -1,11 +1,24 @@
#ifndef FFMPEGDECODER_H
#define FFMPEGDECODER_H
#include "decoder.h"
class FFmpegDecoder
class FFmpegDecoder : public Decoder
{
public:
FFmpegDecoder();
virtual bool Open();
virtual void Request(const rational& timecode);
virtual void Retrieve(uint8_t** buffer, int* linesize);
virtual void Close();
private:
AVFormatContext* fmt_ctx_;
AVCodecContext* codec_ctx_;
AVStream* stream_;
AVPacket* pkt_;
AVFrame* frame_;
};
#endif // FFMPEGDECODER_H
#endif // FFMPEGDECODER_H