[FFmpeg-devel] [PATCH] avcodec/hevc: Enable d3d11va for yuv422p and yuv422p10

Zhao Zhili quinkblack at foxmail.com
Sun Apr 13 11:14:35 EEST 2025


> On Apr 12, 2025, at 20:51, Zhao Zhili <quinkblack-at-foxmail.com at ffmpeg.org> wrote:
> 
> From: Zhao Zhili <zhilizhao at tencent.com>
> 
> ---
> I don't have hardware which support 4:2:2. Please help test this feature.

Please ignore this patch. There is a more complete patch on the mailing list

https://patchwork.ffmpeg.org/project/ffmpeg/patch/20241113032625.1243-1-aicommander@gmail.com/

> 
> libavcodec/hevc/hevcdec.c | 4 ++++
> 1 file changed, 4 insertions(+)
> 
> diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
> index da8fdc5935..e5e63f57fe 100644
> --- a/libavcodec/hevc/hevcdec.c
> +++ b/libavcodec/hevc/hevcdec.c
> @@ -681,6 +681,10 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
>         break;
>     case AV_PIX_FMT_YUV422P:
>     case AV_PIX_FMT_YUV422P10LE:
> +#if CONFIG_HEVC_D3D11VA_HWACCEL
> +        *fmt++ = AV_PIX_FMT_D3D11VA_VLD;
> +        *fmt++ = AV_PIX_FMT_D3D11;
> +#endif
> #if CONFIG_HEVC_VAAPI_HWACCEL
>        *fmt++ = AV_PIX_FMT_VAAPI;
> #endif
> -- 
> 2.42.0
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-devel mailing list