diff options
author | fumoboy007 <fumoboy007@me.com> | 2019-04-13 16:36:00 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2019-04-16 03:43:06 +0300 |
commit | 036b4b0f85933f49a7094b5b568a93f68c9cd544 (patch) | |
tree | 78fa57f042010bb097b223c92d0aa8b00688968f /fftools/ffmpeg_videotoolbox.c | |
parent | c3aa4844f393f781df604878ef7896a99917f37b (diff) | |
download | ffmpeg-streaming-036b4b0f85933f49a7094b5b568a93f68c9cd544.zip ffmpeg-streaming-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 'fftools/ffmpeg_videotoolbox.c')
-rw-r--r-- | fftools/ffmpeg_videotoolbox.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg_videotoolbox.c b/fftools/ffmpeg_videotoolbox.c index b820aec..ad6174d 100644 --- a/fftools/ffmpeg_videotoolbox.c +++ b/fftools/ffmpeg_videotoolbox.c @@ -53,6 +53,9 @@ static int videotoolbox_retrieve_data(AVCodecContext *s, AVFrame *frame) #ifdef kCFCoreFoundationVersionNumber10_7 case kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange: vt->tmp_frame->format = AV_PIX_FMT_NV12; break; #endif +#if HAVE_KCVPIXELFORMATTYPE_420YPCBCR10BIPLANARVIDEORANGE + case kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange: vt->tmp_frame->format = AV_PIX_FMT_P010; break; +#endif default: av_log(NULL, AV_LOG_ERROR, "%s: Unsupported pixel format: %s\n", |