From 12341a70b836feca1bb32f3cb371b7f4449aa662 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 11 Jul 2023 13:50:38 +0300 Subject: [PATCH] test: di_info_get_default_gamma() Notifies us if the result ever changes. Signed-off-by: Pekka Paalanen --- test/data/acer-p1276.print | 1 + test/data/apple-xdr-dp.print | 1 + test/data/ayaneo-wxga.print | 1 + test/data/cta-timings.print | 1 + test/data/cta-vfpdb.print | 1 + test/data/custom-uncommon-cta-vesa.print | 1 + test/data/cvt.print | 1 + test/data/dell-2408wfp-dp.print | 1 + test/data/goldstar-e2441.print | 1 + test/data/goldstar-ite6604-hdmi.print | 1 + test/data/hitachi-55r6+.print | 1 + test/data/hp-5dq99aa-hdmi.print | 1 + test/data/msi-mag321curv-dp.print | 1 + test/data/panasonic-mei96a2-dp.print | 1 + test/data/philips-ftv-2017.print | 1 + test/data/philips-ftv-490.print | 1 + test/data/qemu.print | 1 + test/data/samsung-q800t-hdmi2.0.print | 1 + test/data/samsung-s27a950d-dp.print | 1 + test/data/sun-gh19ps-dvi.print | 1 + test/data/tcl-smart-tv-5655.print | 1 + test/data/viewsonic-vp2768-dp.print | 1 + test/di-edid-print.c | 2 ++ 23 files changed, 24 insertions(+) diff --git a/test/data/acer-p1276.print b/test/data/acer-p1276.print index 843a779..be778a9 100644 --- a/test/data/acer-p1276.print +++ b/test/data/acer-p1276.print @@ -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: diff --git a/test/data/apple-xdr-dp.print b/test/data/apple-xdr-dp.print index 4bd1870..238d1d5 100644 --- a/test/data/apple-xdr-dp.print +++ b/test/data/apple-xdr-dp.print @@ -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 diff --git a/test/data/ayaneo-wxga.print b/test/data/ayaneo-wxga.print index 4eca56e..af39be5 100644 --- a/test/data/ayaneo-wxga.print +++ b/test/data/ayaneo-wxga.print @@ -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: diff --git a/test/data/cta-timings.print b/test/data/cta-timings.print index 07a7e0c..7c81dde 100644 --- a/test/data/cta-timings.print +++ b/test/data/cta-timings.print @@ -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: diff --git a/test/data/cta-vfpdb.print b/test/data/cta-vfpdb.print index 1163249..9d9c94d 100644 --- a/test/data/cta-vfpdb.print +++ b/test/data/cta-vfpdb.print @@ -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: diff --git a/test/data/custom-uncommon-cta-vesa.print b/test/data/custom-uncommon-cta-vesa.print index 07a7e0c..7c81dde 100644 --- a/test/data/custom-uncommon-cta-vesa.print +++ b/test/data/custom-uncommon-cta-vesa.print @@ -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: diff --git a/test/data/cvt.print b/test/data/cvt.print index 62fb17d..1778d15 100644 --- a/test/data/cvt.print +++ b/test/data/cvt.print @@ -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: diff --git a/test/data/dell-2408wfp-dp.print b/test/data/dell-2408wfp-dp.print index f66003b..9ef0419 100644 --- a/test/data/dell-2408wfp-dp.print +++ b/test/data/dell-2408wfp-dp.print @@ -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: diff --git a/test/data/goldstar-e2441.print b/test/data/goldstar-e2441.print index 2d158d1..1d8a1f3 100644 --- a/test/data/goldstar-e2441.print +++ b/test/data/goldstar-e2441.print @@ -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: diff --git a/test/data/goldstar-ite6604-hdmi.print b/test/data/goldstar-ite6604-hdmi.print index 09e8844..221d579 100644 --- a/test/data/goldstar-ite6604-hdmi.print +++ b/test/data/goldstar-ite6604-hdmi.print @@ -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: diff --git a/test/data/hitachi-55r6+.print b/test/data/hitachi-55r6+.print index 3317ebd..8b281b8 100644 --- a/test/data/hitachi-55r6+.print +++ b/test/data/hitachi-55r6+.print @@ -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 diff --git a/test/data/hp-5dq99aa-hdmi.print b/test/data/hp-5dq99aa-hdmi.print index 4849b4f..868394a 100644 --- a/test/data/hp-5dq99aa-hdmi.print +++ b/test/data/hp-5dq99aa-hdmi.print @@ -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 diff --git a/test/data/msi-mag321curv-dp.print b/test/data/msi-mag321curv-dp.print index 9ab7306..223df9e 100644 --- a/test/data/msi-mag321curv-dp.print +++ b/test/data/msi-mag321curv-dp.print @@ -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 diff --git a/test/data/panasonic-mei96a2-dp.print b/test/data/panasonic-mei96a2-dp.print index c23a761..6610f6a 100644 --- a/test/data/panasonic-mei96a2-dp.print +++ b/test/data/panasonic-mei96a2-dp.print @@ -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: diff --git a/test/data/philips-ftv-2017.print b/test/data/philips-ftv-2017.print index 6b7c21e..385c599 100644 --- a/test/data/philips-ftv-2017.print +++ b/test/data/philips-ftv-2017.print @@ -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: diff --git a/test/data/philips-ftv-490.print b/test/data/philips-ftv-490.print index 7432abd..288dc76 100644 --- a/test/data/philips-ftv-490.print +++ b/test/data/philips-ftv-490.print @@ -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 diff --git a/test/data/qemu.print b/test/data/qemu.print index 4d49b40..9e10857 100644 --- a/test/data/qemu.print +++ b/test/data/qemu.print @@ -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: diff --git a/test/data/samsung-q800t-hdmi2.0.print b/test/data/samsung-q800t-hdmi2.0.print index a5da95c..bd3ae2c 100644 --- a/test/data/samsung-q800t-hdmi2.0.print +++ b/test/data/samsung-q800t-hdmi2.0.print @@ -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: diff --git a/test/data/samsung-s27a950d-dp.print b/test/data/samsung-s27a950d-dp.print index 8a30182..4521d23 100644 --- a/test/data/samsung-s27a950d-dp.print +++ b/test/data/samsung-s27a950d-dp.print @@ -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: diff --git a/test/data/sun-gh19ps-dvi.print b/test/data/sun-gh19ps-dvi.print index e247d53..497f293 100644 --- a/test/data/sun-gh19ps-dvi.print +++ b/test/data/sun-gh19ps-dvi.print @@ -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: diff --git a/test/data/tcl-smart-tv-5655.print b/test/data/tcl-smart-tv-5655.print index b84b14a..0b18f4d 100644 --- a/test/data/tcl-smart-tv-5655.print +++ b/test/data/tcl-smart-tv-5655.print @@ -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: diff --git a/test/data/viewsonic-vp2768-dp.print b/test/data/viewsonic-vp2768-dp.print index ac4e9cb..0800f72 100644 --- a/test/data/viewsonic-vp2768-dp.print +++ b/test/data/viewsonic-vp2768-dp.print @@ -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: diff --git a/test/di-edid-print.c b/test/di-edid-print.c index a5a92be..aabb508 100644 --- a/test/di-edid-print.c +++ b/test/di-edid-print.c @@ -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:");