Avoid the test frame for DXVA2 and VT APIs to address flickering in full-screen on Win7

This commit is contained in:
Cameron Gutman 2018-08-19 00:59:04 -07:00
commit 845e84adb7
10 changed files with 56 additions and 11 deletions

View file

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