Commit 0cf95236 authored by Mathieu Velten's avatar Mathieu Velten Committed by Jean-Baptiste Kempf
Browse files

vaapi: add support for VP8/9 decoding


Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 65deffb0
...@@ -328,6 +328,19 @@ static int Create( vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt, ...@@ -328,6 +328,19 @@ static int Create( vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
return VLC_EGENERIC; return VLC_EGENERIC;
count = 18; count = 18;
break; 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: default:
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment