Add VAAPI DRM support

This commit is contained in:
Cameron Gutman committed 2019-07-07 15:32:38 -07:00
1 parent 66863789c7
commit 6468efd7e4
3 files changed
+55 -1

No files matched your search

@@ -22,6 +22,9 @@ extern "C" {
#ifdef HAVE_LIBVA_WAYLAND
#include <va/va_wayland.h>
#endif
#ifdef HAVE_LIBVA_DRM
#include <va/va_drm.h>
#endif
#include <libavutil/hwcontext_vaapi.h>
}
@@ -39,6 +42,7 @@ public:
private:
int m_WindowSystem;
AVBufferRef* m_HwContext;
int m_DrmFd;
#ifdef HAVE_LIBVA_X11
Window m_XWindow;