summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-08-01 09:16:42 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-08-01 10:38:18 +0200
commit6aac17cebbcec645a9c07043b78d57a9b04f2578 (patch)
tree0f5d78f2e7e157e3a2320ce23b4df1e63fcce7ac /wscript
parent33137606e9fba8677f1cb1f5424aff2067075147 (diff)
downloadmpv-6aac17cebbcec645a9c07043b78d57a9b04f2578.tar.bz2
mpv-6aac17cebbcec645a9c07043b78d57a9b04f2578.tar.xz
vda: only support the new hwaccel 1.2 API (remove old code)
Since the new hwaccel API is now merged in ffmpeg's stable release, we can finally remove support for the old API. I pretty much kept lu_zero's new code unchanged and just added some error printing (that we had with the old glue code) to make the life of our users less miserable.
Diffstat (limited to 'wscript')
-rw-r--r--wscript18
1 files changed, 2 insertions, 16 deletions
diff --git a/wscript b/wscript
index 148432dabd..2c82eac3e2 100644
--- a/wscript
+++ b/wscript
@@ -683,27 +683,13 @@ hwaccel_features = [
} , {
'name': '--vda-hwaccel',
'desc': 'libavcodec VDA hwaccel',
- 'deps': [ 'corevideo'],
+ 'deps': [ 'corevideo' ],
'func': compose_checks(
check_headers('VideoDecodeAcceleration/VDADecoder.h'),
check_statement('libavcodec/vda.h',
- 'ff_vda_create_decoder(NULL, NULL, NULL)',
+ 'av_vda_alloc_context()',
framework='IOSurface',
use='libav')),
- } , {
- 'name': 'vda-libavcodec-refcounting',
- 'desc': "libavcodec VDA ref-counted CVPixelBuffers",
- 'deps': [ 'vda-hwaccel' ],
- 'func': check_statement ('libavcodec/vda.h',
- """struct vda_context a = (struct vda_context) {
- .use_ref_buffer = 1 }""", use='libav')
- }, {
- 'name': 'vda-av-vda-alloc-context',
- 'desc': "libavcodec VDA hwaccel 1.2",
- 'deps': [ 'vda-hwaccel' ],
- 'func': check_statement('libavcodec/vda.h',
- 'av_vda_alloc_context()',
- use='libav')
}, {
'name': '--vda-gl',
'desc': 'VDA with OpenGL',