diff options
author | Burt P <pburt0@gmail.com> | 2019-08-24 00:32:19 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-08-28 13:15:48 +0200 |
commit | f52c88bdfe5ab69a1141b45b40311b172a6d8ea1 (patch) | |
tree | 0a158f739a01a10f35dacb60c77802abb1bbb8d3 /deps/sysobj_early/include | |
parent | e297217fad830e2c2b353ce594dbd80d3bf60c90 (diff) |
monitors: safer strings, some DI-EXT
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'deps/sysobj_early/include')
-rw-r--r-- | deps/sysobj_early/include/util_edid.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/deps/sysobj_early/include/util_edid.h b/deps/sysobj_early/include/util_edid.h index b7204568..d2fe947b 100644 --- a/deps/sysobj_early/include/util_edid.h +++ b/deps/sysobj_early/include/util_edid.h @@ -59,6 +59,13 @@ typedef struct { uint8_t bounds_ok; } DisplayIDBlock; +typedef struct { + edid_addy addy; + uint8_t interface; + uint8_t supports_hdcp; + uint8_t exists; +} DIExtData; + /* order by rising priority */ enum { OUTSRC_INVALID = -1, @@ -86,7 +93,7 @@ typedef struct { uint64_t pixel_clock_khz; int src; /* enum OUTSRC_* */ uint64_t pixels; /* h*v: easier to compare */ - char class_inch[6]; + char class_inch[12]; } edid_output; struct edid_std { @@ -207,6 +214,8 @@ typedef struct _edid { edid_output img_max; uint32_t speaker_alloc_bits; + DIExtData di; + DisplayIDMeta did; int did_block_count; DisplayIDBlock *did_blocks; @@ -224,9 +233,10 @@ edid *edid_new_from_file(const char *path); void edid_free(edid *e); char *edid_dump_hex(edid *e, int tabs, int breaks); -const char *edid_standard(int type); +const char *edid_standard(int std); const char *edid_output_src(int src); const char *edid_interface(int type); +const char *edid_di_interface(int type); const char *edid_descriptor_type(int type); const char *edid_ext_block_type(int type); const char *edid_cea_block_type(int type); |