[vlc-commits] vaapi: add support for VP8/9 decoding
Mathieu Velten
git at videolan.org
Tue Dec 20 19:46:05 CET 2016
vlc | branch: master | Mathieu Velten <matmaul at gmail.com> | Mon Nov 28 22:24:11 2016 +0100| [0cf9523666b43e7aca7779db547a6a9a53a94d8e] | committer: Jean-Baptiste Kempf
vaapi: add support for VP8/9 decoding
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0cf9523666b43e7aca7779db547a6a9a53a94d8e
---
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 28daa58..07daf0c 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -328,6 +328,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;
}
More information about the vlc-commits
mailing list