[FFmpeg-devel] [PATCH] libavformat/yuv4mpeg: Add color range support for Y4M Add color_range support in Y4M. Also set pixel format and color_range for YUVJ pixel formats.
Wang Cao
doubleecao at gmail.com
Wed Jun 20 12:42:07 EEST 2018
It's in the yuv4mpegenc.c. I added a support for color range by specifying
metadata in the Y4M header.
On Thu, Jun 14, 2018 at 12:19 AM Carl Eugen Hoyos <ceffmpeg at gmail.com>
wrote:
> 2018-06-13 18:03 GMT+02:00, Wang Cao <doubleecao at gmail.com>:
>
> > @@ -220,6 +221,12 @@ static int yuv4_read_header(AVFormatContext *s)
> > alt_pix_fmt = AV_PIX_FMT_YUV422P;
> > else if (strncmp("444", tokstart, 3) == 0)
> > alt_pix_fmt = AV_PIX_FMT_YUV444P;
> > + } else if (strncmp("COLORRANGE=", tokstart, 11) == 0) {
>
> Where is this specified?
Carl Eugen
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
--
Wang Cao
More information about the ffmpeg-devel
mailing list