[FFmpeg-devel] [PATCH 13/13] lavc/videotoolboxenc: Set colorimetry values

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Apr 10 06:27:54 CEST 2016

Rick Kern <kernrj <at> gmail.com> writes:

> +enabled kCVImageBufferColorPrimaries_ITU_R_2020 && 
> add_cppflags -DHAVE_VT_BT2020_KEYS

This is not ok, the define should be added to config.h.

> +#ifndef HAVE_VT_BT2020_KEYS
> +# define kCVImageBufferColorPrimaries_ITU_R_2020   CFSTR("ITU_R_2020")
> +# define kCVImageBufferTransferFunction_ITU_R_2020 CFSTR("ITU_R_2020")
> +# define kCVImageBufferYCbCrMatrix_ITU_R_2020      CFSTR("ITU_R_2020")
> +#endif

Is this safer than #ifndef kCVImageBufferYCbCrMatrix_ITU_R_2020?

Carl Eugen

More information about the ffmpeg-devel mailing list