aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2024-01-03 21:40:17 +0800
committerZhao Zhili <zhilizhao@tencent.com>2024-01-12 10:49:36 +0800
commitbba5a563c8ebfd7d332c8bee8511f06d399e6b7a (patch)
treed263d87528ff72060987cbc0462a8237356e52d8
parent13c1fea92f8abff66f71365759f006e7da8e832c (diff)
downloadffmpeg-bba5a563c8ebfd7d332c8bee8511f06d399e6b7a.tar.gz
avutil/hwcontext_vt: add pixel format map for full range YUV420P
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r--libavutil/hwcontext_videotoolbox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c
index bb5b7e2764..fe469dc161 100644
--- a/libavutil/hwcontext_videotoolbox.c
+++ b/libavutil/hwcontext_videotoolbox.c
@@ -43,6 +43,7 @@ static const struct {
enum AVPixelFormat pix_fmt;
} cv_pix_fmts[] = {
{ kCVPixelFormatType_420YpCbCr8Planar, false, AV_PIX_FMT_YUV420P },
+ { kCVPixelFormatType_420YpCbCr8PlanarFullRange, true, AV_PIX_FMT_YUV420P },
{ kCVPixelFormatType_422YpCbCr8, false, AV_PIX_FMT_UYVY422 },
{ kCVPixelFormatType_32BGRA, true, AV_PIX_FMT_BGRA },
#ifdef kCFCoreFoundationVersionNumber10_7