summaryrefslogtreecommitdiffstats
path: root/old-configure
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-11-13 21:59:11 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-12-02 09:03:31 +0100
commita74d9c1803462e0f7862f7b0659ab70939b92e15 (patch)
tree5a7e5e20b02a0db1d668957b0a3fa4d9515163d3 /old-configure
parent36eebc231e0ad94f31ed27f43e52b439a77a2560 (diff)
downloadmpv-a74d9c1803462e0f7862f7b0659ab70939b92e15.tar.bz2
mpv-a74d9c1803462e0f7862f7b0659ab70939b92e15.tar.xz
vo_opengl: support for vda hardware decoding
The harder work was done in the previous commits. After that this feature comes out almost for free. The only problem is I can't get the textures created with CGLTexImageIOSurface2D to download properly, thus the code performs download using some CoreVideo APIs. If someone knows why download of textures created with CGLTexImageIOSurface2D doesn't work please contact me :)
Diffstat (limited to 'old-configure')
-rwxr-xr-xold-configure13
1 files changed, 13 insertions, 0 deletions
diff --git a/old-configure b/old-configure
index 526991e72d..45e7add61b 100755
--- a/old-configure
+++ b/old-configure
@@ -2851,9 +2851,20 @@ else
fi
echores "$_vda_refcounting"
+echocheck "VDA with OpenGL"
+if test "$_gl_cocoa" = yes && test "$_vda" = yes ; then
+ def_vda_gl='#define HAVE_VDA_GL 1'
+ _vda_gl=yes
+else
+ def_vda_gl='#define HAVE_VDA_GL 0'
+ _vda_gl=no
+fi
+echores "$_vda_gl"
+
else
def_vda='#define HAVE_VDA_HWACCEL 0'
def_vda_refcounting='#define HAVE_VDA_LIBAVCODEC_REFCOUNTING 0'
+ def_vda_gl='#define HAVE_VDA_GL 0'
fi
@@ -3290,6 +3301,7 @@ VDPAU_DEC_OLD = $_vdpau_dec_old
VDPAU_GL_X11 = $_vdpau_gl_x11
VDA = $_vda
VDA_REFCOUNTING = $_vda_refcounting
+VDA_GL = $_vda_gl
VAAPI = $_vaapi
VAAPI_VPP = $_vaapi_vpp
VAAPI_GLX = $_vaapi_glx
@@ -3471,6 +3483,7 @@ $def_vdpau_dec
$def_vdpau_dec_old
$def_vdpau_gl_x11
$def_vda
+$def_vda_gl
$def_vda_refcounting
$def_vaapi
$def_vaapi_vpp