summaryrefslogtreecommitdiffstats
path: root/video/out/gl_common.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-04 00:02:21 +0100
committerwm4 <wm4@nowhere>2013-11-04 00:11:43 +0100
commit2d58fb3b8e7e87a939220f50a51294f8efdc51e1 (patch)
treefa8eae8b6a759dea1bd086834071521a8781315b /video/out/gl_common.c
parent571e697a7c557d10bcc9130915c431829981d877 (diff)
downloadmpv-2d58fb3b8e7e87a939220f50a51294f8efdc51e1.tar.bz2
mpv-2d58fb3b8e7e87a939220f50a51294f8efdc51e1.tar.xz
vo_opengl: add support for VA-API OpenGL interop
VA-API's OpenGL/GLX interop is pretty bad and perhaps slow (renders a X11 pixmap into a FBO, and has to go over X11, probably involves one or more copies), and this code serves more as an example, rather than for serious use. On the other hand, this might be work much better than vo_vaapi, even if slightly slower.
Diffstat (limited to 'video/out/gl_common.c')
-rw-r--r--video/out/gl_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/gl_common.c b/video/out/gl_common.c
index 9482f9de55..3216b0037e 100644
--- a/video/out/gl_common.c
+++ b/video/out/gl_common.c
@@ -1009,6 +1009,11 @@ void mp_log_source(struct mp_log *log, int lev, const char *src)
}
}
+extern const struct gl_hwdec_driver gl_hwdec_vaglx;
+
const struct gl_hwdec_driver *mpgl_hwdec_drivers[] = {
+#if CONFIG_VAAPI_GLX
+ &gl_hwdec_vaglx,
+#endif
NULL
};