summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-05 22:06:48 +0100
committerwm4 <wm4@nowhere>2013-11-05 22:28:15 +0100
commitdb6a4eec0a9a58a342147e526154c46f19e7c303 (patch)
tree673b058f5423592b2a2297a54f54921f3645e42c /configure
parent5cca9143abdbf413641dc8a657ca869a9425b5a9 (diff)
downloadmpv-db6a4eec0a9a58a342147e526154c46f19e7c303.tar.bz2
mpv-db6a4eec0a9a58a342147e526154c46f19e7c303.tar.xz
vo_opengl: support for vdpau hardware decoding
This uses vdpau OpenGL interop to convert a vdpau surface to a texture. Note that this is a bit weak and primitive. Deinterlacing (or any other form of vdpau postprocessing) is not supported. vo_opengl chroma scaling and chroma sample position are not supported. Internally, the vdpau video surfaces are converted to a RGBA surface first, because using the video surfaces directly is too complicated. (These surfaces are always split into separate fields, and the vo_opengl core expects progressive frames or frames with weaved fields.)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 09f4ed8161..9905394f6a 100755
--- a/configure
+++ b/configure
@@ -2142,6 +2142,16 @@ fi
echores "$_gl"
+echocheck "VDPAU with OpenGL/X11"
+if test "$_gl_x11" = yes && test "$_vdpau" = yes ; then
+ def_vdpau_gl_x11='#define HAVE_VDPAU_GL_X11 1'
+ _vdpau_gl_x11=yes
+else
+ def_vdpau_gl_x11='#define HAVE_VDPAU_GL_X11 0'
+ _vdpau_gl_x11=no
+fi
+echores "$_vdpau_gl_x11"
+
if win32; then
@@ -3328,6 +3338,7 @@ VCD = $_vcd
VDPAU = $_vdpau
VDPAU_DEC = $_vdpau_dec
VDPAU_DEC_OLD = $_vdpau_dec_old
+VDPAU_GL_X11 = $_vdpau_gl_x11
VDA = $_vda
VDA_REFCOUNTING = $_vda_refcounting
VAAPI = $_vaapi
@@ -3509,6 +3520,7 @@ $def_v4l2
$def_vdpau
$def_vdpau_dec
$def_vdpau_dec_old
+$def_vdpau_gl_x11
$def_vda
$def_vda_refcounting
$def_vaapi