[vlc-devel] [PATCH] vaapi: add support for VP8/9 decoding
Jean-Baptiste Kempf
jb at videolan.org
Tue Nov 29 01:45:02 CET 2016
Hello Mathieu,
Doesn't this require some #ifdefery then?
Bes,
On Mon, 28 Nov 2016, at 22:24, Mathieu Velten wrote:
> 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
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
Jean-Baptiste Kempf - President
+33 672 704 734
More information about the vlc-devel
mailing list