From db6a4eec0a9a58a342147e526154c46f19e7c303 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 5 Nov 2013 22:06:48 +0100 Subject: 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.) --- configure | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure') 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 -- cgit v1.2.3