test: di_info_get_default_gamma()

Notifies us if the result ever changes.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2023-07-11 13:50:38 +03:00
parent 5d2af9a882
commit 12341a70b8
23 changed files with 24 additions and 0 deletions

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.300, 0.600
blue: 0.150, 0.060
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.265, 0.690
blue: 0.150, 0.060
default white: 0.312, 0.329
default gamma: 2.20
signal colorimetry: BT2020_RGB

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.324, 0.613
blue: 0.157, 0.049
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.300, 0.600
blue: 0.150, 0.060
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.300, 0.600
blue: 0.150, 0.060
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.300, 0.600
blue: 0.150, 0.060
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.300, 0.600
blue: 0.150, 0.060
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.188, 0.706
blue: 0.148, 0.064
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.335, 0.608
blue: 0.145, 0.058
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.287, 0.610
blue: 0.146, 0.069
default white: 0.285, 0.293
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.322, 0.623
blue: 0.146, 0.056
default white: 0.280, 0.290
default gamma: 2.20
signal colorimetry: BT2020_YCC BT2020_RGB

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.289, 0.644
blue: 0.149, 0.051
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry: BT2020_cYCC BT2020_YCC BT2020_RGB

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.300, 0.600
blue: 0.150, 0.060
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry: BT2020_cYCC BT2020_YCC BT2020_RGB

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.295, 0.608
blue: 0.153, 0.061
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.272, 0.593
blue: 0.144, 0.066
default white: 0.276, 0.278
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.324, 0.589
blue: 0.145, 0.051
default white: 0.280, 0.290
default gamma: 2.20
signal colorimetry: BT2020_YCC BT2020_RGB

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.300, 0.600
blue: 0.150, 0.060
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.271, 0.645
blue: 0.152, 0.054
default white: 0.281, 0.284
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.289, 0.609
blue: 0.146, 0.070
default white: 0.312, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.300, 0.600
blue: 0.150, 0.066
default white: 0.313, 0.328
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.280, 0.595
blue: 0.155, 0.070
default white: 0.283, 0.298
default gamma: 2.20
signal colorimetry:

View file

@ -10,4 +10,5 @@ default color primaries:
green: 0.300, 0.600
blue: 0.150, 0.060
default white: 0.313, 0.329
default gamma: 2.20
signal colorimetry:

View file

@ -67,6 +67,8 @@ print_info(const struct di_info *info)
print_chromaticity(" blue", &primaries->primary[2]);
print_chromaticity("default white", &primaries->default_white);
printf("default gamma: %.2f\n", di_info_get_default_gamma(info));
ssc = di_info_get_supported_signal_colorimetry(info);
assert(ssc);
printf("signal colorimetry:");