summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorfumoboy007 <fumoboy007@me.com>2019-04-13 16:36:00 +0200
committerJan Ekström <jeebjp@gmail.com>2019-04-16 03:43:06 +0300
commit036b4b0f85933f49a7094b5b568a93f68c9cd544 (patch)
tree78fa57f042010bb097b223c92d0aa8b00688968f /libavutil
parentc3aa4844f393f781df604878ef7896a99917f37b (diff)
downloadffmpeg-036b4b0f85933f49a7094b5b568a93f68c9cd544.tar.gz
avcodec/videotoolbox: add support for 10bit pixel format
this patch was originally posted on issue #7704 and was slightly adjusted to check for the availability of the pixel format.
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/hwcontext_videotoolbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c
index cc00f1f2f2..6eac2c0774 100644
--- a/libavutil/hwcontext_videotoolbox.c
+++ b/libavutil/hwcontext_videotoolbox.c
@@ -42,6 +42,9 @@ static const struct {
#ifdef kCFCoreFoundationVersionNumber10_7
{ kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange, AV_PIX_FMT_NV12 },
#endif
+#if HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE
+ { kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange, AV_PIX_FMT_P010 },
+#endif
};
enum AVPixelFormat av_map_videotoolbox_format_to_pixfmt(uint32_t cv_fmt)