[FFmpeg-devel] [PATCH] lavu/hwcontext_cuda: declare support for argb/abgr/rgba/bgra

Philip Langdale philipl at overt.org
Sun Jun 11 05:59:35 EEST 2023


These are physically compatible formats and are potentially useful.

Signed-off-by: Philip Langdale <philipl at overt.org>
---
 libavutil/hwcontext_cuda.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
index 5ae7711c94..22eb9f5513 100644
--- a/libavutil/hwcontext_cuda.c
+++ b/libavutil/hwcontext_cuda.c
@@ -45,6 +45,10 @@ static const enum AVPixelFormat supported_formats[] = {
     AV_PIX_FMT_YUV444P16,
     AV_PIX_FMT_0RGB32,
     AV_PIX_FMT_0BGR32,
+    AV_PIX_FMT_ARGB,
+    AV_PIX_FMT_ABGR,
+    AV_PIX_FMT_RGBA,
+    AV_PIX_FMT_BGRA,
 #if CONFIG_VULKAN
     AV_PIX_FMT_VULKAN,
 #endif
-- 
2.39.2



More information about the ffmpeg-devel mailing list