Don't use VAAPI drivers that lack VPP support

intel-media-va-driver (free) is one example of such a driver which
is apparently missing the shaders to perform colorspace conversion.
This commit is contained in:
Cameron Gutman
2020-04-26 15:38:05 -07:00
parent dc0fa9c64d
commit aaa112c3f3
2 changed files with 142 additions and 77 deletions
@@ -41,6 +41,9 @@ public:
virtual int getDecoderColorspace() override;
private:
bool validateDriver(VADisplay display);
VADisplay openDisplay(SDL_Window* window);
int m_WindowSystem;
AVBufferRef* m_HwContext;
int m_DrmFd;