From 5258c012febdfba0ef56ad8ce6f7cb003611c47b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 11 Apr 2015 17:17:52 +0200 Subject: 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. --- wscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wscript') 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', -- cgit v1.2.3