avutil/hwcontext_vt: add pixel format map for full range YUV420P
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@@ -43,6 +43,7 @@ static const struct {
|
|||||||
enum AVPixelFormat pix_fmt;
|
enum AVPixelFormat pix_fmt;
|
||||||
} cv_pix_fmts[] = {
|
} cv_pix_fmts[] = {
|
||||||
{ kCVPixelFormatType_420YpCbCr8Planar, false, AV_PIX_FMT_YUV420P },
|
{ kCVPixelFormatType_420YpCbCr8Planar, false, AV_PIX_FMT_YUV420P },
|
||||||
|
{ kCVPixelFormatType_420YpCbCr8PlanarFullRange, true, AV_PIX_FMT_YUV420P },
|
||||||
{ kCVPixelFormatType_422YpCbCr8, false, AV_PIX_FMT_UYVY422 },
|
{ kCVPixelFormatType_422YpCbCr8, false, AV_PIX_FMT_UYVY422 },
|
||||||
{ kCVPixelFormatType_32BGRA, true, AV_PIX_FMT_BGRA },
|
{ kCVPixelFormatType_32BGRA, true, AV_PIX_FMT_BGRA },
|
||||||
#ifdef kCFCoreFoundationVersionNumber10_7
|
#ifdef kCFCoreFoundationVersionNumber10_7
|
||||||
|
|||||||
Reference in New Issue
Block a user