mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_ciescope: add DCI-P3
This commit is contained in:
parent
b696caba1a
commit
3883c9d147
@ -6685,6 +6685,7 @@ Set color system.
|
|||||||
@item cie1931
|
@item cie1931
|
||||||
@item rec709, hdtv
|
@item rec709, hdtv
|
||||||
@item uhdtv, rec2020
|
@item uhdtv, rec2020
|
||||||
|
@item dcip3
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
@item cie
|
@item cie
|
||||||
|
@ -46,6 +46,7 @@ enum ColorsSystems {
|
|||||||
CIE1931system,
|
CIE1931system,
|
||||||
Rec709system,
|
Rec709system,
|
||||||
Rec2020system,
|
Rec2020system,
|
||||||
|
DCIP3,
|
||||||
NB_CS
|
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" },
|
{ "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" },
|
{ "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" },
|
{ "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" },
|
{ "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" },
|
{ "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" },
|
{ "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<<Rec709system}, 0, 0, FLAGS, "gamuts" },
|
{ "rec709", NULL, 0, AV_OPT_TYPE_CONST, {.i64=1<<Rec709system}, 0, 0, FLAGS, "gamuts" },
|
||||||
{ "uhdtv", NULL, 0, AV_OPT_TYPE_CONST, {.i64=1<<Rec2020system}, 0, 0, FLAGS, "gamuts" },
|
{ "uhdtv", NULL, 0, AV_OPT_TYPE_CONST, {.i64=1<<Rec2020system}, 0, 0, FLAGS, "gamuts" },
|
||||||
{ "rec2020", NULL, 0, AV_OPT_TYPE_CONST, {.i64=1<<Rec2020system}, 0, 0, FLAGS, "gamuts" },
|
{ "rec2020", NULL, 0, AV_OPT_TYPE_CONST, {.i64=1<<Rec2020system}, 0, 0, FLAGS, "gamuts" },
|
||||||
|
{ "dcip3", NULL, 0, AV_OPT_TYPE_CONST, {.i64=1<<DCIP3}, 0, 0, FLAGS, "gamuts" },
|
||||||
{ "size", "set ciescope size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=512}, 256, 8192, FLAGS },
|
{ "size", "set ciescope size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=512}, 256, 8192, FLAGS },
|
||||||
{ "s", "set ciescope size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=512}, 256, 8192, FLAGS },
|
{ "s", "set ciescope size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=512}, 256, 8192, FLAGS },
|
||||||
{ "intensity", "set ciescope intensity", OFFSET(intensity), AV_OPT_TYPE_FLOAT, {.dbl=0.001}, 0, 1, FLAGS },
|
{ "intensity", "set ciescope intensity", OFFSET(intensity), AV_OPT_TYPE_FLOAT, {.dbl=0.001}, 0, 1, FLAGS },
|
||||||
@ -694,6 +697,10 @@ static const struct ColorSystem color_systems[] = {
|
|||||||
0.708, 0.292, 0.170, 0.797, 0.131, 0.046,
|
0.708, 0.292, 0.170, 0.797, 0.131, 0.046,
|
||||||
D65, GAMMA_REC709
|
D65, GAMMA_REC709
|
||||||
},
|
},
|
||||||
|
[DCIP3] = {
|
||||||
|
0.680, 0.320, 0.265, 0.690, 0.150, 0.060,
|
||||||
|
0.314, 0.351, GAMMA_REC709
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user