[vlc-devel] [PATCH] vaapi: add support for VP8/9 decoding
Mathieu Velten
matmaul at gmail.com
Mon Nov 28 22:24:11 CET 2016
Tested with VP9, both profiles.
Profile 2 needs this ffmpeg patch to be merged to work.
http://ffmpeg.org/pipermail/ffmpeg-devel/2016-November/203581.html
VP8 untested, the needed code is coming to ffmpeg soon.
http://ffmpeg.org/pipermail/ffmpeg-devel/2016-November/202722.html
---
modules/codec/avcodec/vaapi.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index c9e51fe..f2459bc 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -327,6 +327,19 @@ static int Create( vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
return VLC_EGENERIC;
count = 18;
break;
+ case AV_CODEC_ID_VP8:
+ i_profile = VAProfileVP8Version0_3;
+ count = 5;
+ break;
+ case AV_CODEC_ID_VP9:
+ if (ctx->profile == FF_PROFILE_VP9_0)
+ i_profile = VAProfileVP9Profile0;
+ else if (ctx->profile == FF_PROFILE_VP9_2)
+ i_profile = VAProfileVP9Profile2;
+ else
+ return VLC_EGENERIC;
+ count = 10;
+ break;
default:
return VLC_EGENERIC;
}
--
2.9.3
More information about the vlc-devel
mailing list