avutil/hwcontext_videotoolbox: add support for AYUV pixel format

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-10-06 15:00:15 -03:00
parent 8b208362ae
commit d41e5b0fc7
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ static const struct {
#ifdef kCFCoreFoundationVersionNumber10_7 #ifdef kCFCoreFoundationVersionNumber10_7
{ kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange, false, AV_PIX_FMT_NV12 }, { kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange, false, AV_PIX_FMT_NV12 },
{ kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, true, 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 }, { kCVPixelFormatType_4444AYpCbCr16, false, AV_PIX_FMT_AYUV64 },
#endif #endif
#if HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE #if HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE
@ -86,6 +87,7 @@ static const struct {
static const enum AVPixelFormat supported_formats[] = { static const enum AVPixelFormat supported_formats[] = {
#ifdef kCFCoreFoundationVersionNumber10_7 #ifdef kCFCoreFoundationVersionNumber10_7
AV_PIX_FMT_NV12, AV_PIX_FMT_NV12,
AV_PIX_FMT_AYUV,
AV_PIX_FMT_AYUV64, AV_PIX_FMT_AYUV64,
#endif #endif
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV420P,