[FFmpeg-cvslog] avcodec: Add more kCVImageBufferColorPrimaries to videotoolboxenc
Nomis101
git at videolan.org
Sun Nov 17 23:32:01 EET 2019
ffmpeg | branch: master | Nomis101 <Nomis101 at web.de> | Sun Nov 3 01:20:38 2019 +0100| [5e0a3278bb7385f9fee158ccd69b07bf76a9e5df] | committer: Rick Kern
avcodec: Add more kCVImageBufferColorPrimaries to videotoolboxenc
Signed-off-by: Rick Kern <kernrj at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5e0a3278bb7385f9fee158ccd69b07bf76a9e5df
---
libavcodec/videotoolboxenc.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index 40a7f643e0..cc08cf6a50 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -894,6 +894,14 @@ static int get_cv_color_primaries(AVCodecContext *avctx,
*primaries = NULL;
break;
+ case AVCOL_PRI_BT470BG:
+ *primaries = kCVImageBufferColorPrimaries_EBU_3213;
+ break;
+
+ case AVCOL_PRI_SMPTE170M:
+ *primaries = kCVImageBufferColorPrimaries_SMPTE_C;
+ break;
+
case AVCOL_PRI_BT709:
*primaries = kCVImageBufferColorPrimaries_ITU_R_709_2;
break;
More information about the ffmpeg-cvslog
mailing list