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
|
|
@ -17,7 +17,8 @@ public:
|
|||
int videoFormat,
|
||||
int width,
|
||||
int height,
|
||||
int maxFps) override;
|
||||
int maxFps,
|
||||
bool enableVsync) override;
|
||||
virtual bool isHardwareAccelerated() override;
|
||||
virtual int submitDecodeUnit(PDECODE_UNIT du) override;
|
||||
virtual void renderFrame(SDL_UserEvent* event) override;
|
||||
|
|
@ -28,7 +29,7 @@ public:
|
|||
private:
|
||||
bool completeInitialization(AVCodec* decoder, SDL_Window* window,
|
||||
int videoFormat, int width, int height,
|
||||
int maxFps, bool testOnly);
|
||||
int maxFps, bool enableVsync, bool testOnly);
|
||||
|
||||
IFFmpegRenderer* createAcceleratedRenderer(const AVCodecHWConfig* hwDecodeCfg);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue