[FFmpeg-devel] [PATCH] lavc/nvenc: encode all RGB input as YUV444 rather than 420
Anton Khirnov
anton at khirnov.net
Mon Oct 2 17:37:51 EEST 2023
---
libavcodec/nvenc.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 65b96d6cf6..feda0ca4a5 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -94,7 +94,11 @@ const AVCodecHWConfigInternal *const ff_nvenc_hw_configs[] = {
#define IS_YUV444(pix_fmt) (pix_fmt == AV_PIX_FMT_YUV444P || \
pix_fmt == AV_PIX_FMT_YUV444P16 || \
pix_fmt == AV_PIX_FMT_GBRP || \
- pix_fmt == AV_PIX_FMT_GBRP16)
+ pix_fmt == AV_PIX_FMT_GBRP16 || \
+ pix_fmt == AV_PIX_FMT_RGB32 || \
+ pix_fmt == AV_PIX_FMT_BGR32 || \
+ pix_fmt == AV_PIX_FMT_X2RGB10 || \
+ pix_fmt == AV_PIX_FMT_X2BGR10)
#define IS_GBRP(pix_fmt) (pix_fmt == AV_PIX_FMT_GBRP || \
pix_fmt == AV_PIX_FMT_GBRP16)
--
2.40.1
More information about the ffmpeg-devel
mailing list