diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-02-16 09:16:12 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2021-02-16 09:16:12 +0100 |
commit | e10faae889b531ea1aa738db46869f1236f416da (patch) | |
tree | a5a4e9fa5e62e0350294ef5e4885493e406fa296 | |
parent | 5bca3ccaec53eff7ef9a1a16b95eb4a4b6c449b6 (diff) |
edid-decode: show byte/bit of established timings
This makes it a bit easier to map an established timing to a
specific bit.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | parse-base-block.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/parse-base-block.cpp b/parse-base-block.cpp index 28665ee..a2c12c5 100644 --- a/parse-base-block.cpp +++ b/parse-base-block.cpp @@ -356,7 +356,7 @@ static const struct timings *find_std_id(unsigned short std_id, unsigned char &d void edid_state::list_established_timings() { - printf("Established Timings I & II:\n\n"); + printf("Established Timings I & II, 'Byte' is the EDID address:\n\n"); for (unsigned i = 0; i < ARRAY_SIZE(established_timings12); i++) { unsigned char dmt_id = established_timings12[i].dmt_id; const struct timings *t; @@ -369,14 +369,16 @@ void edid_state::list_established_timings() t = &established_timings12[i].t; sprintf(type, "%-8s", established_timings12[i].type); } + printf("Byte 0x%02x, Bit %u: ", 0x23 + i / 8, 7 - i % 8); print_timings("", t, type, "", false, false); } - printf("\nEstablished timings III:\n\n"); + printf("\nEstablished timings III, 'Byte' is the offset from the start of the descriptor:\n\n"); for (unsigned i = 0; i < ARRAY_SIZE(established_timings3_dmt_ids); i++) { unsigned char dmt_id = established_timings3_dmt_ids[i]; char type[16]; sprintf(type, "DMT 0x%02x", dmt_id); + printf("Byte 0x%02x, Bit %u: ", 6 + i / 8, 7 - i % 8); print_timings("", find_dmt_id(dmt_id), type, "", false, false); } } |