[FFmpeg-cvslog] avutil/hwcontext_videotoolbox: add support for AYUV pixel format

James Almer git at videolan.org
Sat Oct 12 18:02:12 EEST 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Oct  6 15:00:15 2024 -0300| [d41e5b0fc7e1953414cbb9e56800aa724981b38f] | committer: James Almer

avutil/hwcontext_videotoolbox: add support for AYUV pixel format

Signed-off-by: James Almer <jamrial at gmail.com>

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

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

diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c
index 122a61d5e7..1d7dff4a7d 100644
--- a/libavutil/hwcontext_videotoolbox.c
+++ b/libavutil/hwcontext_videotoolbox.c
@@ -53,6 +53,7 @@ static const struct {
 #ifdef kCFCoreFoundationVersionNumber10_7
     { kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange,  false, AV_PIX_FMT_NV12 },
     { kCVPixelFormatType_420YpCbCr8BiPlanarFullRange,   true,  AV_PIX_FMT_NV12 },
+    { kCVPixelFormatType_4444AYpCbCr8,                  false, AV_PIX_FMT_AYUV },
     { kCVPixelFormatType_4444AYpCbCr16,                 false, AV_PIX_FMT_AYUV64 },
 #endif
 #if HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE
@@ -86,6 +87,7 @@ static const struct {
 static const enum AVPixelFormat supported_formats[] = {
 #ifdef kCFCoreFoundationVersionNumber10_7
     AV_PIX_FMT_NV12,
+    AV_PIX_FMT_AYUV,
     AV_PIX_FMT_AYUV64,
 #endif
     AV_PIX_FMT_YUV420P,



More information about the ffmpeg-cvslog mailing list