diff --git a/test/data/acer-p1276.print b/test/data/acer-p1276.print index 7c20191..843a779 100644 --- a/test/data/acer-p1276.print +++ b/test/data/acer-p1276.print @@ -10,3 +10,4 @@ default color primaries: green: 0.300, 0.600 blue: 0.150, 0.060 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/data/apple-xdr-dp.print b/test/data/apple-xdr-dp.print index cf9b50e..4bd1870 100644 --- a/test/data/apple-xdr-dp.print +++ b/test/data/apple-xdr-dp.print @@ -10,3 +10,4 @@ default color primaries: green: 0.265, 0.690 blue: 0.150, 0.060 default white: 0.312, 0.329 +signal colorimetry: BT2020_RGB diff --git a/test/data/ayaneo-wxga.print b/test/data/ayaneo-wxga.print index 245b95d..4eca56e 100644 --- a/test/data/ayaneo-wxga.print +++ b/test/data/ayaneo-wxga.print @@ -10,3 +10,4 @@ default color primaries: green: 0.324, 0.613 blue: 0.157, 0.049 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/data/cta-timings.print b/test/data/cta-timings.print index 0fc9d68..07a7e0c 100644 --- a/test/data/cta-timings.print +++ b/test/data/cta-timings.print @@ -10,3 +10,4 @@ default color primaries: green: 0.300, 0.600 blue: 0.150, 0.060 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/data/cta-vfpdb.print b/test/data/cta-vfpdb.print index 42e304f..1163249 100644 --- a/test/data/cta-vfpdb.print +++ b/test/data/cta-vfpdb.print @@ -10,3 +10,4 @@ default color primaries: green: 0.300, 0.600 blue: 0.150, 0.060 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/data/custom-uncommon-cta-vesa.print b/test/data/custom-uncommon-cta-vesa.print index 0fc9d68..07a7e0c 100644 --- a/test/data/custom-uncommon-cta-vesa.print +++ b/test/data/custom-uncommon-cta-vesa.print @@ -10,3 +10,4 @@ default color primaries: green: 0.300, 0.600 blue: 0.150, 0.060 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/data/cvt.print b/test/data/cvt.print index 671b9cf..62fb17d 100644 --- a/test/data/cvt.print +++ b/test/data/cvt.print @@ -10,3 +10,4 @@ default color primaries: green: 0.300, 0.600 blue: 0.150, 0.060 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/data/dell-2408wfp-dp.print b/test/data/dell-2408wfp-dp.print index a743650..f66003b 100644 --- a/test/data/dell-2408wfp-dp.print +++ b/test/data/dell-2408wfp-dp.print @@ -10,3 +10,4 @@ default color primaries: green: 0.188, 0.706 blue: 0.148, 0.064 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/data/goldstar-e2441.print b/test/data/goldstar-e2441.print index f1af68a..2d158d1 100644 --- a/test/data/goldstar-e2441.print +++ b/test/data/goldstar-e2441.print @@ -10,3 +10,4 @@ default color primaries: green: 0.335, 0.608 blue: 0.145, 0.058 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/data/goldstar-ite6604-hdmi.print b/test/data/goldstar-ite6604-hdmi.print index 1b29a10..09e8844 100644 --- a/test/data/goldstar-ite6604-hdmi.print +++ b/test/data/goldstar-ite6604-hdmi.print @@ -10,3 +10,4 @@ default color primaries: green: 0.287, 0.610 blue: 0.146, 0.069 default white: 0.285, 0.293 +signal colorimetry: diff --git a/test/data/hitachi-55r6+.print b/test/data/hitachi-55r6+.print index 213005c..3317ebd 100644 --- a/test/data/hitachi-55r6+.print +++ b/test/data/hitachi-55r6+.print @@ -10,3 +10,4 @@ default color primaries: green: 0.322, 0.623 blue: 0.146, 0.056 default white: 0.280, 0.290 +signal colorimetry: BT2020_YCC BT2020_RGB diff --git a/test/data/hp-5dq99aa-hdmi.print b/test/data/hp-5dq99aa-hdmi.print index 75a08ad..4849b4f 100644 --- a/test/data/hp-5dq99aa-hdmi.print +++ b/test/data/hp-5dq99aa-hdmi.print @@ -10,3 +10,4 @@ default color primaries: green: 0.289, 0.644 blue: 0.149, 0.051 default white: 0.313, 0.329 +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 91ad74c..9ab7306 100644 --- a/test/data/msi-mag321curv-dp.print +++ b/test/data/msi-mag321curv-dp.print @@ -10,3 +10,4 @@ default color primaries: green: 0.300, 0.600 blue: 0.150, 0.060 default white: 0.313, 0.329 +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 77517d0..c23a761 100644 --- a/test/data/panasonic-mei96a2-dp.print +++ b/test/data/panasonic-mei96a2-dp.print @@ -10,3 +10,4 @@ default color primaries: green: 0.295, 0.608 blue: 0.153, 0.061 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/data/philips-ftv-2017.print b/test/data/philips-ftv-2017.print index 1f7834f..6b7c21e 100644 --- a/test/data/philips-ftv-2017.print +++ b/test/data/philips-ftv-2017.print @@ -10,3 +10,4 @@ default color primaries: green: 0.272, 0.593 blue: 0.144, 0.066 default white: 0.276, 0.278 +signal colorimetry: diff --git a/test/data/philips-ftv-490.print b/test/data/philips-ftv-490.print index a5c07b9..7432abd 100644 --- a/test/data/philips-ftv-490.print +++ b/test/data/philips-ftv-490.print @@ -10,3 +10,4 @@ default color primaries: green: 0.324, 0.589 blue: 0.145, 0.051 default white: 0.280, 0.290 +signal colorimetry: BT2020_YCC BT2020_RGB diff --git a/test/data/qemu.print b/test/data/qemu.print index e42fb97..4d49b40 100644 --- a/test/data/qemu.print +++ b/test/data/qemu.print @@ -10,3 +10,4 @@ default color primaries: green: 0.300, 0.600 blue: 0.150, 0.060 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/data/samsung-q800t-hdmi2.0.print b/test/data/samsung-q800t-hdmi2.0.print index 240ce2a..a5da95c 100644 --- a/test/data/samsung-q800t-hdmi2.0.print +++ b/test/data/samsung-q800t-hdmi2.0.print @@ -10,3 +10,4 @@ default color primaries: green: 0.271, 0.645 blue: 0.152, 0.054 default white: 0.281, 0.284 +signal colorimetry: diff --git a/test/data/samsung-s27a950d-dp.print b/test/data/samsung-s27a950d-dp.print index ad433b7..8a30182 100644 --- a/test/data/samsung-s27a950d-dp.print +++ b/test/data/samsung-s27a950d-dp.print @@ -10,3 +10,4 @@ default color primaries: green: 0.289, 0.609 blue: 0.146, 0.070 default white: 0.312, 0.329 +signal colorimetry: diff --git a/test/data/sun-gh19ps-dvi.print b/test/data/sun-gh19ps-dvi.print index db98992..e247d53 100644 --- a/test/data/sun-gh19ps-dvi.print +++ b/test/data/sun-gh19ps-dvi.print @@ -10,3 +10,4 @@ default color primaries: green: 0.300, 0.600 blue: 0.150, 0.066 default white: 0.313, 0.328 +signal colorimetry: diff --git a/test/data/tcl-smart-tv-5655.print b/test/data/tcl-smart-tv-5655.print index caae959..b84b14a 100644 --- a/test/data/tcl-smart-tv-5655.print +++ b/test/data/tcl-smart-tv-5655.print @@ -10,3 +10,4 @@ default color primaries: green: 0.280, 0.595 blue: 0.155, 0.070 default white: 0.283, 0.298 +signal colorimetry: diff --git a/test/data/viewsonic-vp2768-dp.print b/test/data/viewsonic-vp2768-dp.print index 99c1786..ac4e9cb 100644 --- a/test/data/viewsonic-vp2768-dp.print +++ b/test/data/viewsonic-vp2768-dp.print @@ -10,3 +10,4 @@ default color primaries: green: 0.300, 0.600 blue: 0.150, 0.060 default white: 0.313, 0.329 +signal colorimetry: diff --git a/test/di-edid-print.c b/test/di-edid-print.c index 454a3c0..a5a92be 100644 --- a/test/di-edid-print.c +++ b/test/di-edid-print.c @@ -29,6 +29,7 @@ print_info(const struct di_info *info) { const struct di_hdr_static_metadata *hdr_static; const struct di_color_primaries *primaries; + const struct di_supported_signal_colorimetry *ssc; char *str; str = di_info_get_make(info); @@ -65,6 +66,21 @@ print_info(const struct di_info *info) print_chromaticity(" green", &primaries->primary[1]); print_chromaticity(" blue", &primaries->primary[2]); print_chromaticity("default white", &primaries->default_white); + + ssc = di_info_get_supported_signal_colorimetry(info); + assert(ssc); + printf("signal colorimetry:"); + if (ssc->bt2020_cycc) + printf(" BT2020_cYCC"); + if (ssc->bt2020_ycc) + printf(" BT2020_YCC"); + if (ssc->bt2020_rgb) + printf(" BT2020_RGB"); + if (ssc->st2113_rgb) + printf(" P3D65+P3DCI"); + if (ssc->ictcp) + printf(" ICtCp"); + printf("\n"); } int