Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 1/3] avutil/hwcontext_cuda: Expands pixel formats support
@ 2025-07-03 14:25 Diego Felix de Souza via ffmpeg-devel
  2025-07-03 21:15 ` Michael Niedermayer
  0 siblings, 1 reply; 2+ messages in thread
From: Diego Felix de Souza via ffmpeg-devel @ 2025-07-03 14:25 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: ddesouza

[-- Attachment #1: Type: message/rfc822, Size: 9481 bytes --]

From: <ddesouza@nvidia.com>
To: <ffmpeg-devel@ffmpeg.org>
Cc: Diego de Souza <ddesouza@nvidia.com>
Subject: [PATCH 1/3] avutil/hwcontext_cuda: Expands pixel formats support
Date: Thu, 3 Jul 2025 16:25:18 +0200
Message-ID: <20250703142520.16586-1-ddesouza@nvidia.com>

From: Diego de Souza <ddesouza@nvidia.com>

Add support for additional pixel formats in CUDA hardware context:
- Planar formats (yuv420p10, yuv422p, yuv422p10, yuv444p10)
- Semiplanar formats (nv16, p210, p216)

Signed-off-by: Diego de Souza <ddesouza@nvidia.com>
---
 libavutil/hwcontext_cuda.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
index 5721612225..b33d527b00 100644
--- a/libavutil/hwcontext_cuda.c
+++ b/libavutil/hwcontext_cuda.c
@@ -48,7 +48,12 @@ static const enum AVPixelFormat supported_formats[] = {
     AV_PIX_FMT_YUV444P,
     AV_PIX_FMT_P010,
     AV_PIX_FMT_P016,
-    AV_PIX_FMT_P216LE,
+    AV_PIX_FMT_P210,
+    AV_PIX_FMT_P216,
+    AV_PIX_FMT_YUV422P,
+    AV_PIX_FMT_YUV420P10,
+    AV_PIX_FMT_YUV422P10,
+    AV_PIX_FMT_YUV444P10,
     AV_PIX_FMT_YUV444P16,
     AV_PIX_FMT_0RGB32,
     AV_PIX_FMT_0BGR32,
--
2.39.5 (Apple Git-154)

-----------------------------------------------------------------------------------
NVIDIA GmbH
Wuerselen
Amtsgericht Aachen
HRB 8361
Managing Directors: Rebecca Peters, Donald Robertson, Janet Hall, Ludwig von Reiche

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FFmpeg-devel] [PATCH 1/3] avutil/hwcontext_cuda: Expands pixel formats support
  2025-07-03 14:25 [FFmpeg-devel] [PATCH 1/3] avutil/hwcontext_cuda: Expands pixel formats support Diego Felix de Souza via ffmpeg-devel
@ 2025-07-03 21:15 ` Michael Niedermayer
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Niedermayer @ 2025-07-03 21:15 UTC (permalink / raw)
  To: FFmpeg development discussions and patches


[-- Attachment #1.1: Type: text/plain, Size: 1780 bytes --]

On Thu, Jul 03, 2025 at 04:25:18PM +0200, Diego Felix de Souza via ffmpeg-devel wrote:
> Date: Thu, 3 Jul 2025 16:25:18 +0200
> From: ddesouza@nvidia.com
> To: ffmpeg-devel@ffmpeg.org
> CC: Diego de Souza <ddesouza@nvidia.com>
> Subject: [PATCH 1/3] avutil/hwcontext_cuda: Expands pixel formats support
> 
> From: Diego de Souza <ddesouza@nvidia.com>
> 
> Add support for additional pixel formats in CUDA hardware context:
> - Planar formats (yuv420p10, yuv422p, yuv422p10, yuv444p10)
> - Semiplanar formats (nv16, p210, p216)
> 
> Signed-off-by: Diego de Souza <ddesouza@nvidia.com>
> ---
>  libavutil/hwcontext_cuda.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
> index 5721612225..b33d527b00 100644
> --- a/libavutil/hwcontext_cuda.c
> +++ b/libavutil/hwcontext_cuda.c
> @@ -48,7 +48,12 @@ static const enum AVPixelFormat supported_formats[] = {
>      AV_PIX_FMT_YUV444P,
>      AV_PIX_FMT_P010,
>      AV_PIX_FMT_P016,
> -    AV_PIX_FMT_P216LE,
> +    AV_PIX_FMT_P210,
> +    AV_PIX_FMT_P216,
> +    AV_PIX_FMT_YUV422P,
> +    AV_PIX_FMT_YUV420P10,
> +    AV_PIX_FMT_YUV422P10,
> +    AV_PIX_FMT_YUV444P10,
>      AV_PIX_FMT_YUV444P16,
>      AV_PIX_FMT_0RGB32,
>      AV_PIX_FMT_0BGR32,
> --
> 2.39.5 (Apple Git-154)

git seems not to like this patch:

Applying: avutil/hwcontext_cuda: Expands pixel formats support
error: corrupt patch at line 10
error: could not build fake ancestor
Patch failed at 0001 avutil/hwcontext_cuda: Expands pixel formats support


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-03 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-03 14:25 [FFmpeg-devel] [PATCH 1/3] avutil/hwcontext_cuda: Expands pixel formats support Diego Felix de Souza via ffmpeg-devel
2025-07-03 21:15 ` Michael Niedermayer

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git