mirror of
https://gitlab.freedesktop.org/emersion/libdisplay-info.git
synced 2024-11-16 19:48:30 +01:00
test: di_info_get_hdr_static_metadata()
Makes sure the results won't change unnoticed. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
f2c1b01bd2
commit
6bc398e6db
23 changed files with 111 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
make: Acer Technologies
|
||||
model: P1276
|
||||
serial: JGG110015900
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.640, 0.330
|
||||
green: 0.300, 0.600
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Apple Computer Inc
|
||||
model: ProDisplayXDR
|
||||
serial: 0x250D0E02
|
||||
HDR static metadata:
|
||||
luminance 0.000246-1600.000000, maxFALL 507.620392
|
||||
metadata type1=yes
|
||||
EOTF tSDR=yes, tHDR=yes, PQ=yes, HLG=no
|
||||
default color primaries:
|
||||
red: 0.680, 0.320
|
||||
green: 0.265, 0.690
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: PNP(AYA)
|
||||
model: AYANEOWXGA
|
||||
serial: 0x20210607
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.650, 0.339
|
||||
green: 0.324, 0.613
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: The Linux Foundation
|
||||
model: hdmi-4k-600
|
||||
serial: {null}
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.640, 0.330
|
||||
green: 0.300, 0.600
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Cisco Systems Inc
|
||||
model: CS-CODECPLU-2
|
||||
serial: 123456
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.640, 0.330
|
||||
green: 0.300, 0.600
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: The Linux Foundation
|
||||
model: hdmi-4k-600
|
||||
serial: {null}
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.640, 0.330
|
||||
green: 0.300, 0.600
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: The Linux Foundation
|
||||
model: hdmi-1080p
|
||||
serial: {null}
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.640, 0.330
|
||||
green: 0.300, 0.600
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Dell Inc.
|
||||
model: DELL 2408WFP
|
||||
serial: G283H8BI21MS
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.674, 0.319
|
||||
green: 0.188, 0.706
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: LG Electronics
|
||||
model: E2441
|
||||
serial: 0x00009F69
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.633, 0.351
|
||||
green: 0.335, 0.608
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: LG Electronics
|
||||
model: ITE6604
|
||||
serial: 0x01010101
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.640, 0.341
|
||||
green: 0.287, 0.610
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Hisense Electric Co., Ltd.
|
||||
model: 55R6+
|
||||
serial: 0x000001D8
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=yes
|
||||
EOTF tSDR=yes, tHDR=no, PQ=yes, HLG=yes
|
||||
default color primaries:
|
||||
red: 0.643, 0.332
|
||||
green: 0.322, 0.623
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: HP Inc.
|
||||
model: HP 27 QD
|
||||
serial: CN49120J6N
|
||||
HDR static metadata:
|
||||
luminance 0.000093-603.665771, maxFALL 351.250427
|
||||
metadata type1=yes
|
||||
EOTF tSDR=yes, tHDR=yes, PQ=yes, HLG=no
|
||||
default color primaries:
|
||||
red: 0.665, 0.326
|
||||
green: 0.289, 0.644
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Microstep
|
||||
model: MAG321CURV
|
||||
serial: DA2A019360041
|
||||
HDR static metadata:
|
||||
luminance 0.000000-366.801605, maxFALL 366.801605
|
||||
metadata type1=yes
|
||||
EOTF tSDR=yes, tHDR=yes, PQ=yes, HLG=no
|
||||
default color primaries:
|
||||
red: 0.640, 0.330
|
||||
green: 0.300, 0.600
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Panasonic Industry Company
|
||||
model: 0x96A2
|
||||
serial: {null}
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.642, 0.318
|
||||
green: 0.295, 0.608
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Philips Consumer Electronics Company
|
||||
model: Philips FTV
|
||||
serial: {null}
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.637, 0.330
|
||||
green: 0.272, 0.593
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Philips Consumer Electronics Company
|
||||
model: Philips FTV
|
||||
serial: 0x01010101
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=yes
|
||||
EOTF tSDR=yes, tHDR=no, PQ=yes, HLG=yes
|
||||
default color primaries:
|
||||
red: 0.649, 0.334
|
||||
green: 0.324, 0.589
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Red Hat, Inc.
|
||||
model: QEMU Monitor
|
||||
serial: {null}
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.640, 0.330
|
||||
green: 0.300, 0.600
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Samsung Electric Company
|
||||
model: SAMSUNG
|
||||
serial: 0x01000E00
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=yes
|
||||
EOTF tSDR=yes, tHDR=no, PQ=yes, HLG=yes
|
||||
default color primaries:
|
||||
red: 0.670, 0.314
|
||||
green: 0.271, 0.645
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Samsung Electric Company
|
||||
model: S27A950D
|
||||
serial: {null}
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.649, 0.338
|
||||
green: 0.289, 0.609
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Sun Electronics Corporation
|
||||
model: GH19PS
|
||||
serial: 0432MR0406
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.640, 0.330
|
||||
green: 0.300, 0.600
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: Technical Concepts Ltd
|
||||
model: TCL SMART TV
|
||||
serial: 0x00011011
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.625, 0.340
|
||||
green: 0.280, 0.595
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
make: ViewSonic Corporation
|
||||
model: VP2768 Series
|
||||
serial: UY5171500307
|
||||
HDR static metadata:
|
||||
luminance 0.000000-0.000000, maxFALL 0.000000
|
||||
metadata type1=no
|
||||
EOTF tSDR=yes, tHDR=no, PQ=no, HLG=no
|
||||
default color primaries:
|
||||
red: 0.640, 0.330
|
||||
green: 0.300, 0.600
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <libdisplay-info/info.h>
|
||||
|
@ -11,6 +12,12 @@ str_or_null(const char *str)
|
|||
return str ? str : "{null}";
|
||||
}
|
||||
|
||||
static const char *
|
||||
yes_no(bool cond)
|
||||
{
|
||||
return cond ? "yes" : "no";
|
||||
}
|
||||
|
||||
static void
|
||||
print_chromaticity(const char *prefix, const struct di_chromaticity_cie1931 *c)
|
||||
{
|
||||
|
@ -20,6 +27,7 @@ print_chromaticity(const char *prefix, const struct di_chromaticity_cie1931 *c)
|
|||
static void
|
||||
print_info(const struct di_info *info)
|
||||
{
|
||||
const struct di_hdr_static_metadata *hdr_static;
|
||||
const struct di_color_primaries *primaries;
|
||||
char *str;
|
||||
|
||||
|
@ -35,6 +43,21 @@ print_info(const struct di_info *info)
|
|||
printf("serial: %s\n", str_or_null(str));
|
||||
free(str);
|
||||
|
||||
hdr_static = di_info_get_hdr_static_metadata(info);
|
||||
assert(hdr_static);
|
||||
printf("HDR static metadata:\n"
|
||||
"luminance %f-%f, maxFALL %f\n"
|
||||
"metadata type1=%s\n"
|
||||
"EOTF tSDR=%s, tHDR=%s, PQ=%s, HLG=%s\n",
|
||||
hdr_static->desired_content_min_luminance,
|
||||
hdr_static->desired_content_max_luminance,
|
||||
hdr_static->desired_content_max_frame_avg_luminance,
|
||||
yes_no(hdr_static->type1),
|
||||
yes_no(hdr_static->traditional_sdr),
|
||||
yes_no(hdr_static->traditional_hdr),
|
||||
yes_no(hdr_static->pq),
|
||||
yes_no(hdr_static->hlg));
|
||||
|
||||
primaries = di_info_get_default_color_primaries(info);
|
||||
assert(primaries);
|
||||
printf("default color primaries:\n");
|
||||
|
|
Loading…
Reference in a new issue