[FFmpeg-devel] [PATCH 8/9] lavc/hevcdec: add 4:2:2 8-bit/10-bit VAAPI decode support

Mark Thompson sw at jkqxz.net
Mon Feb 24 02:24:50 EET 2020


On 15/01/2020 07:02, Linjie Fu wrote:
> Add decode support for 4:2:2 8-bt and 10-bit HEVC Range Extension clips.
> 
> Signed-off-by: Linjie Fu <linjie.fu at intel.com>
> ---
>  libavcodec/hevcdec.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
> index 19b0cd8..f60bcf6 100644
> --- a/libavcodec/hevcdec.c
> +++ b/libavcodec/hevcdec.c
> @@ -427,6 +427,12 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
>          *fmt++ = AV_PIX_FMT_CUDA;
>  #endif
>          break;
> +    case AV_PIX_FMT_YUV422P:
> +    case AV_PIX_FMT_YUV422P10LE:
> +#if CONFIG_HEVC_VAAPI_HWACCEL
> +       *fmt++ = AV_PIX_FMT_VAAPI;
> +#endif
> +        break;
>      case AV_PIX_FMT_YUV420P12:
>      case AV_PIX_FMT_YUV444P10:
>      case AV_PIX_FMT_YUV444P12:
> 

We seem to have agreement that the Y210 / wider YUYV is fine (bit-packed Y410 was the case people had problems with) and everything else looks good, so set tested and applied.

Thanks,

- Mark


More information about the ffmpeg-devel mailing list