Add reference frame invalidation for the software decoder

This commit is contained in:
Cameron Gutman 2018-08-25 12:38:04 -07:00
commit 9be9934b8c
14 changed files with 46 additions and 0 deletions

View file

@ -18,6 +18,7 @@ public:
virtual bool prepareDecoderContext(AVCodecContext* context) = 0;
virtual void renderFrameAtVsync(AVFrame* frame) = 0;
virtual bool needsTestFrame() = 0;
virtual int getDecoderCapabilities() = 0;
};
class SdlRenderer : public IFFmpegRenderer {
@ -33,6 +34,7 @@ public:
virtual bool prepareDecoderContext(AVCodecContext* context);
virtual void renderFrameAtVsync(AVFrame* frame);
virtual bool needsTestFrame();
virtual int getDecoderCapabilities();
private:
SDL_Renderer* m_Renderer;