summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2015-04-11 17:17:52 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2015-05-13 19:57:39 +0200
commit5258c012febdfba0ef56ad8ce6f7cb003611c47b (patch)
tree6507121926e212b9e8116737491677e6b13a5797 /wscript
parent5b085fd8b172648a03244d6546d130144b7870bf (diff)
downloadmpv-5258c012febdfba0ef56ad8ce6f7cb003611c47b.tar.bz2
mpv-5258c012febdfba0ef56ad8ce6f7cb003611c47b.tar.xz
vda: add support for nv12 image formats
The hardware always decodes to nv12 so using this image format causes less cpu usage than uyvy (which we are currently using, since Apple examples and other free software use that). The reduction in cpu usage can add up to quite a bit, especially for 4k or high fps video. This needs an accompaning commit in libavcodec.
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript b/wscript
index 0bf62e983c..c4c980d026 100644
--- a/wscript
+++ b/wscript
@@ -702,6 +702,13 @@ hwaccel_features = [
'av_vda_alloc_context()',
framework='IOSurface',
use='libav')),
+ } , {
+ 'name': 'vda-default-init2',
+ 'desc': 'libavcodec VDA hwaccel (configurable AVVDAContext)',
+ 'deps': [ 'vda-hwaccel' ],
+ 'func': check_statement('libavcodec/vda.h',
+ 'av_vda_default_init2(NULL, NULL)',
+ use='libav'),
}, {
'name': '--vda-gl',
'desc': 'VDA with OpenGL',