Split SdlRenderer from renderer.h

This commit is contained in:
Cameron Gutman
2019-02-12 19:58:36 -08:00
parent 4499ed3878
commit d077c6450f
5 changed files with 29 additions and 23 deletions
@@ -33,24 +33,3 @@ public:
// Nothing
}
};
class SdlRenderer : public IFFmpegRenderer {
public:
SdlRenderer();
virtual ~SdlRenderer();
virtual bool initialize(SDL_Window* window,
int videoFormat,
int width,
int height,
int maxFps,
bool enableVsync);
virtual bool prepareDecoderContext(AVCodecContext* context);
virtual void renderFrameAtVsync(AVFrame* frame);
virtual bool needsTestFrame();
virtual int getDecoderCapabilities();
virtual FramePacingConstraint getFramePacingConstraint();
private:
SDL_Renderer* m_Renderer;
SDL_Texture* m_Texture;
};