[FFmpeg-cvslog] avutil/hwcontext_cuda: add 4:2:2 pixel format support

Diego de Souza git at videolan.org
Sun Feb 2 21:04:07 EET 2025


ffmpeg | branch: master | Diego de Souza <ddesouza at nvidia.com> | Wed Jan  8 10:26:57 2025 +0100| [7454a07d583ad92dd2cafeff8afcb385df64c560] | committer: Timo Rothenpieler

avutil/hwcontext_cuda: add 4:2:2 pixel format support

This commit adds support for 4:2:2 pixel formats, namely NV16 and
P216 for NVIDIA GPUs.

Signed-off-by: Diego de Souza <ddesouza at nvidia.com>
Signed-off-by: Timo Rothenpieler <timo at rothenpieler.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7454a07d583ad92dd2cafeff8afcb385df64c560
---

 libavutil/hwcontext_cuda.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
index 3de3847399..5721612225 100644
--- a/libavutil/hwcontext_cuda.c
+++ b/libavutil/hwcontext_cuda.c
@@ -42,11 +42,13 @@ typedef struct CUDADeviceContext {
 
 static const enum AVPixelFormat supported_formats[] = {
     AV_PIX_FMT_NV12,
+    AV_PIX_FMT_NV16,
     AV_PIX_FMT_YUV420P,
     AV_PIX_FMT_YUVA420P,
     AV_PIX_FMT_YUV444P,
     AV_PIX_FMT_P010,
     AV_PIX_FMT_P016,
+    AV_PIX_FMT_P216LE,
     AV_PIX_FMT_YUV444P16,
     AV_PIX_FMT_0RGB32,
     AV_PIX_FMT_0BGR32,



More information about the ffmpeg-cvslog mailing list