[vlc-devel] [PATCH] vaapi: add support for HEVC decoding

Rémi Denis-Courmont remi at remlab.net
Fri Nov 25 20:57:03 CET 2016


Le perjantaina 25. marraskuuta 2016, 16.14.21 EET Mathieu Velten a écrit :
> ---
>  modules/codec/avcodec/vaapi.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
> index 8671139..b58f69a 100644
> --- a/modules/codec/avcodec/vaapi.c
> +++ b/modules/codec/avcodec/vaapi.c
> @@ -317,7 +317,14 @@ static int Create( vlc_va_t *va, AVCodecContext *ctx,
> enum PixelFormat pix_fmt, case AV_CODEC_ID_H264:
>          i_profile = VAProfileH264High;
>          count = 18;
> -        break;;
> +        break;
> +    case AV_CODEC_ID_HEVC:
> +        if (ctx->profile == FF_PROFILE_HEVC_MAIN_10)
> +            i_profile = VAProfileHEVCMain10;
> +        else
> +            i_profile = VAProfileHEVCMain;

This looks rather dubious.

> +        count = 18;
> +        break;
>      default:
>          return VLC_EGENERIC;
>      }


-- 
Rémi Denis-Courmont
https://www.remlab.net/



More information about the vlc-devel mailing list