summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-28 21:56:13 +0200
committerwm4 <wm4@nowhere>2015-05-28 21:56:13 +0200
commit6f5a10542c276ad4fa87a2f449dc4173e10fc47d (patch)
treef27fd184990556233bdfb19fb9de21ddc2063219 /wscript
parent0699a6c598bc1c8968f426be37b62052f7cb1eb9 (diff)
downloadmpv-6f5a10542c276ad4fa87a2f449dc4173e10fc47d.tar.bz2
mpv-6f5a10542c276ad4fa87a2f449dc4173e10fc47d.tar.xz
vdpau: add support for the "new" libavcodec vdpau API
Yet another of these dozens of hwaccel changes. This time, libavcodec provides utility functions, which initialize the vdpau decoder and map codec profiles. So a lot of work the API user had to do falls away. This also will give us support for high bit depth profiles, and possibly HEVC once libavcodec supports it.
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/wscript b/wscript
index c4c980d026..ebbcdee2c1 100644
--- a/wscript
+++ b/wscript
@@ -719,6 +719,14 @@ hwaccel_features = [
'desc': 'libavcodec VDPAU hwaccel',
'deps': [ 'vdpau' ],
'func': check_statement('libavcodec/vdpau.h',
+ 'av_vdpau_bind_context(0,0,0,AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH)',
+ use='libav'),
+ }, {
+ 'name': '--vdpau-old-hwaccel',
+ 'desc': 'libavcodec VDPAU hwaccel (old API)',
+ 'deps': [ 'vdpau' ],
+ 'deps_neg': [ 'vdpau-hwaccel' ],
+ 'func': check_statement('libavcodec/vdpau.h',
'av_vdpau_alloc_context()',
use='libav'),
}, {