[FFmpeg-devel] [PATCH 1/3] avutil/hwcontext_cuda: Expands pixel formats support
Michael Niedermayer
michael at niedermayer.cc
Fri Jul 4 00:15:17 EEST 2025
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 at nvidia.com
> To: ffmpeg-devel at ffmpeg.org
> CC: Diego de Souza <ddesouza at nvidia.com>
> Subject: [PATCH 1/3] avutil/hwcontext_cuda: Expands pixel formats support
>
> From: Diego de Souza <ddesouza at 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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250703/d1c58e8d/attachment.sig>
More information about the ffmpeg-devel
mailing list