Browse Source

avcodec: Add more kCVImageBufferColorPrimaries to videotoolboxenc

Signed-off-by: Rick Kern <kernrj@gmail.com>
tags/n4.3
Nomis101 Rick Kern 6 years ago
parent
commit
5e0a3278bb
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      libavcodec/videotoolboxenc.c

+ 8
- 0
libavcodec/videotoolboxenc.c View File

@@ -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;


Loading…
Cancel
Save