[FFmpeg-devel] [PATCH] [PATCH] avcodec: Add more kCVImageBufferColorPrimaries to videotoolboxenc

Nomis101 Nomis101 at web.de
Tue Nov 12 13:27:43 EET 2019


Videotoolbox currently only supports the color primaries gamut ITU R 709 and 2020. This patch adds support for EBU 3213 (PAL video) and SMPTE C (standard definition video). That is importand for video
convertion applications, based on FFmpeg. Would be nice to get this reviewed.


Am 03.11.19 um 01:20 schrieb Nomis101:
> ---
>  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;
> --
> 2.21.0 (Apple Git-122)
>



More information about the ffmpeg-devel mailing list