Reduce code duplication in renderers

This commit is contained in:
Cameron Gutman committed 2019-04-12 22:12:53 -07:00
1 parent 25e5175c54
commit ada2270bd1
10 files changed
+31 -105

No files matched your search

+5 -8
View File
@@ -29,14 +29,11 @@ class VAAPIRenderer : public IFFmpegRenderer
{
public:
VAAPIRenderer();
virtual ~VAAPIRenderer();
virtual bool initialize(PDECODER_PARAMETERS params);
virtual bool prepareDecoderContext(AVCodecContext* context);
virtual void renderFrame(AVFrame* frame);
virtual bool needsTestFrame();
virtual int getDecoderCapabilities();
virtual FramePacingConstraint getFramePacingConstraint();
virtual bool isRenderThreadSupported();
virtual ~VAAPIRenderer() override;
virtual bool initialize(PDECODER_PARAMETERS params) override;
virtual bool prepareDecoderContext(AVCodecContext* context) override;
virtual void renderFrame(AVFrame* frame) override;
virtual bool needsTestFrame() override;
private:
int m_WindowSystem;