Signed-off-by: Vittorio Giovara <vittorio.giov...@gmail.com> --- (no I don't have samples, but the numbers should be correct) Please CC. Vittorio
doc/filters.texi | 3 +++ libavfilter/vf_colorspace.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 4a4aeca..82d1047 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -5424,6 +5424,9 @@ SMPTE-432 @item bt2020 BT.2020 +@item jedec-p22 +JEDEC P22 phosphors + @end table @anchor{range} diff --git a/libavfilter/vf_colorspace.c b/libavfilter/vf_colorspace.c index 0024505..8daa8f9 100644 --- a/libavfilter/vf_colorspace.c +++ b/libavfilter/vf_colorspace.c @@ -282,6 +282,7 @@ static const struct ColorPrimaries color_primaries[AVCOL_PRI_NB] = { [AVCOL_PRI_SMPTE432] = { WP_D65, 0.680, 0.320, 0.265, 0.690, 0.150, 0.060 }, [AVCOL_PRI_FILM] = { WP_C, 0.681, 0.319, 0.243, 0.692, 0.145, 0.049 }, [AVCOL_PRI_BT2020] = { WP_D65, 0.708, 0.292, 0.170, 0.797, 0.131, 0.046 }, + [AVCOL_PRI_JEDEC_P22] = { WP_D65, 0.630, 0.340, 0.290, 0.610, 0.160, 0.008 }, }; static const struct ColorPrimaries *get_color_primaries(enum AVColorPrimaries prm) @@ -1096,6 +1097,7 @@ static const AVOption colorspace_options[] = { ENUM("smpte431", AVCOL_PRI_SMPTE431, "prm"), ENUM("smpte432", AVCOL_PRI_SMPTE432, "prm"), ENUM("bt2020", AVCOL_PRI_BT2020, "prm"), + ENUM("jedec-p22", AVCOL_PRI_JEDEC_P22, "prm"), { "trc", "Output transfer characteristics", OFFSET(user_trc), AV_OPT_TYPE_INT, { .i64 = AVCOL_TRC_UNSPECIFIED }, -- 2.10.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel