From ae781610c87ec561a6db75eb545c958a1c53ba92 Mon Sep 17 00:00:00 2001 From: Corentin Damman Date: Fri, 22 Apr 2022 16:37:34 +0200 Subject: [PATCH] cudaformat: add support for planar 4:2:2 YUV formats in CUDA D3D11 interop Part-of: --- subprojects/gst-plugins-bad/sys/nvcodec/gstcudaformat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/nvcodec/gstcudaformat.h b/subprojects/gst-plugins-bad/sys/nvcodec/gstcudaformat.h index 9140c3bc6e..8c6096720e 100644 --- a/subprojects/gst-plugins-bad/sys/nvcodec/gstcudaformat.h +++ b/subprojects/gst-plugins-bad/sys/nvcodec/gstcudaformat.h @@ -32,7 +32,8 @@ G_BEGIN_DECLS "BGRA, RGBA, RGBx, BGRx, ARGB, ABGR, RGB, BGR, BGR10A2_LE, RGB10A2_LE }" #define GST_CUDA_D3D11_FORMATS \ - "{ BGRA, RGBA, BGRx, RGBx }" + "{ I420, YV12, I420_10LE, Y444, Y444_16LE, " \ + "BGRA, RGBA, BGRx, RGBx, Y42B, I422_10LE, I422_12LE }" #define GST_CUDA_NVMM_FORMATS \ "{ I420, YV12, NV12, NV21, P010_10LE, Y444, " \