[FFmpeg-devel] [PATCH] avfilter/vf_hwupload_cuda: add transparent pix_fmts

Timo Rothenpieler timo at rothenpieler.org
Fri Dec 4 15:56:47 EET 2020


On 03.12.2020 16:56, Daniel Raniz Raneland wrote:
> Signed-off-by: Daniel Raniz Raneland <raniz at raneland.se>
> ---
>   libavfilter/vf_hwupload_cuda.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/libavfilter/vf_hwupload_cuda.c b/libavfilter/vf_hwupload_cuda.c
> index 33906f2515..83b7babeaa 100644
> --- a/libavfilter/vf_hwupload_cuda.c
> +++ b/libavfilter/vf_hwupload_cuda.c
> @@ -60,6 +60,7 @@ static int cudaupload_query_formats(AVFilterContext *ctx)
>           AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P,
>           AV_PIX_FMT_P010, AV_PIX_FMT_P016, AV_PIX_FMT_YUV444P16,
>           AV_PIX_FMT_0RGB32, AV_PIX_FMT_0BGR32,
> +        AV_PIX_FMT_YUVA420P, AV_PIX_FMT_YUVA444P,
>   #if CONFIG_VULKAN
>           AV_PIX_FMT_VULKAN,
>   #endif
> 

AV_PIX_FMT_YUVA444P is not supported by the CUDA hwcontext.
AV_PIX_FMT_YUVA420P however is.


More information about the ffmpeg-devel mailing list