From 3883c9d1479d3e653bb66c9960fdd2ebd6ba9594 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 22 Jul 2019 21:19:34 +0200 Subject: [PATCH] avfilter/vf_ciescope: add DCI-P3 --- doc/filters.texi | 1 + libavfilter/vf_ciescope.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 604e44d569..b48a0cda91 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -6685,6 +6685,7 @@ Set color system. @item cie1931 @item rec709, hdtv @item uhdtv, rec2020 +@item dcip3 @end table @item cie diff --git a/libavfilter/vf_ciescope.c b/libavfilter/vf_ciescope.c index 7c0cfed061..5a7c3d7b5d 100644 --- a/libavfilter/vf_ciescope.c +++ b/libavfilter/vf_ciescope.c @@ -46,6 +46,7 @@ enum ColorsSystems { CIE1931system, Rec709system, Rec2020system, + DCIP3, NB_CS }; @@ -87,6 +88,7 @@ static const AVOption ciescope_options[] = { { "rec709", "ITU.BT-709 Y'CbCr", 0, AV_OPT_TYPE_CONST, {.i64=Rec709system}, 0, 0, FLAGS, "system" }, { "uhdtv", "ITU-R.BT-2020", 0, AV_OPT_TYPE_CONST, {.i64=Rec2020system}, 0, 0, FLAGS, "system" }, { "rec2020", "ITU-R.BT-2020", 0, AV_OPT_TYPE_CONST, {.i64=Rec2020system}, 0, 0, FLAGS, "system" }, + { "dcip3", "DCI-P3", 0, AV_OPT_TYPE_CONST, {.i64=DCIP3}, 0, 0, FLAGS, "system" }, { "cie", "set cie system", OFFSET(cie), AV_OPT_TYPE_INT, {.i64=XYY}, 0, NB_CIE-1, FLAGS, "cie" }, { "xyy", "CIE 1931 xyY", 0, AV_OPT_TYPE_CONST, {.i64=XYY}, 0, 0, FLAGS, "cie" }, { "ucs", "CIE 1960 UCS", 0, AV_OPT_TYPE_CONST, {.i64=UCS}, 0, 0, FLAGS, "cie" }, @@ -105,6 +107,7 @@ static const AVOption ciescope_options[] = { { "rec709", NULL, 0, AV_OPT_TYPE_CONST, {.i64=1<