summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-12 15:08:38 +0200
committerwm4 <wm4@nowhere>2016-09-12 19:58:58 +0200
commit274e71ee8b774d6c9c69929a548a83c343202be1 (patch)
tree1176b9933fb04d730e0eeec4bcb3bc024725d618 /video/out/opengl/hwdec.c
parent343f5ca24beeddc69f49d43448acc05b982176ad (diff)
downloadmpv-274e71ee8b774d6c9c69929a548a83c343202be1.tar.bz2
mpv-274e71ee8b774d6c9c69929a548a83c343202be1.tar.xz
vo_opengl: add hw overlay support and use it for RPI
This overlay support specifically skips the OpenGL rendering chain, and uses GL rendering only for OSD/subtitles. This is for devices which don't have performant GL support. hwdec_rpi.c contains code ported from vo_rpi.c. vo_rpi.c is going to be deprecated. I left in the code for uploading sw surfaces (as it might be slightly more efficient for rendering sw decoded video), although it's dead code for now.
Diffstat (limited to 'video/out/opengl/hwdec.c')
-rw-r--r--video/out/opengl/hwdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/opengl/hwdec.c b/video/out/opengl/hwdec.c
index b6c2ba1070..f5943aa61b 100644
--- a/video/out/opengl/hwdec.c
+++ b/video/out/opengl/hwdec.c
@@ -34,6 +34,7 @@ extern const struct gl_hwdec_driver gl_hwdec_d3d11eglrgb;
extern const struct gl_hwdec_driver gl_hwdec_dxva2gldx;
extern const struct gl_hwdec_driver gl_hwdec_dxva2;
extern const struct gl_hwdec_driver gl_hwdec_cuda;
+extern const struct gl_hwdec_driver gl_hwdec_rpi_overlay;
static const struct gl_hwdec_driver *const mpgl_hwdec_drivers[] = {
#if HAVE_VAAPI_EGL
@@ -62,6 +63,9 @@ static const struct gl_hwdec_driver *const mpgl_hwdec_drivers[] = {
#if HAVE_CUDA_GL
&gl_hwdec_cuda,
#endif
+#if HAVE_RPI
+ &gl_hwdec_rpi_overlay,
+#endif
NULL
};