Plumb the ability to disable V-sync through the video renderers
This commit is contained in:
parent
6b395c816f
commit
f7d3c10c9d
18 changed files with 90 additions and 49 deletions
|
|
@ -19,7 +19,8 @@ public:
|
|||
int videoFormat,
|
||||
int width,
|
||||
int height,
|
||||
int maxFps);
|
||||
int maxFps,
|
||||
bool enableVsync);
|
||||
virtual bool prepareDecoderContext(AVCodecContext* context);
|
||||
virtual void renderFrameAtVsync(AVFrame* frame);
|
||||
virtual bool needsTestFrame();
|
||||
|
|
@ -27,7 +28,7 @@ public:
|
|||
private:
|
||||
bool initializeDecoder();
|
||||
bool initializeRenderer();
|
||||
bool initializeDevice(SDL_Window* window);
|
||||
bool initializeDevice(SDL_Window* window, bool enableVsync);
|
||||
bool isDecoderBlacklisted();
|
||||
|
||||
static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue