From a74d9c1803462e0f7862f7b0659ab70939b92e15 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 13 Nov 2013 21:59:11 +0100 Subject: 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 :) --- old-configure | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'old-configure') 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 -- cgit v1.2.3