diff mbox series

[v2,28/29] edid-decode: add interesting EDID

Message ID 20210926083330.5206-29-joevt@shaw.ca (mailing list archive)
State New, archived
Headers show
Series edid-decode: bug fixes, additions, changes | expand

Commit Message

joevt Sept. 26, 2021, 8:33 a.m. UTC
It contains "Audio information is present, but bit ..." message and "CTA-861 DisplayID Data Block" data block.

Looks like nested blocks (CTA blocks in a DisplayID block) need more indenting. Currently, indents are mostly hardcoded so they aren't suited for nested blocks.
Maybe we could add indenting using the following:
- Store current indent level in edid_state.
- Replace printf with printi which will print spaces for current indent level.
- For changing indent, you could use indent++ to indent and indent-- to outdent.
- Maybe some C++ tricks can be used to automatically outdent:
  - Call a function that returns an object that has a constructor that increments indent.
  - Then the destructor can automatically decrement indent when the scope of the object ends.
- We could also add a custom indenting string (currently it's two spaces per indent, but we could make it 4 or 8 spaces, or we could make it a tab).

Signed-off-by: Joe van Tunen <joevt@shaw.ca>
---
 data/apple-imac-retina-4k-21.5-inch-late-2015 | Bin 0 -> 256 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 data/apple-imac-retina-4k-21.5-inch-late-2015

GIT binary patch
literal 256
zcmZSh4+acu0!9mz_k8u2lw@RCY9L*q;6HI)pz{Vb{(uk$1_nkn;Cq2#!G{971_K3C
zhTGhN3=C3IW(^ApEaV*!B0z0_7&3hmlerY204VaG!OYmg$iUgn$k@r**pzW;fp8@=
z12cn7@EeAf|NQeA^c&<E{&P4oFfp(&L@r=pk>`boC9<1>#X{p4SpIWD#OAYVfW_(?
r#eN9@-N+zRX85OK<6b6#4#!KMzyAB*$iSh@$<E%)2(%e1xH$m;)b2b1

literal 0
HcmV?d00001
diff mbox series

Patch

diff --git a/data/apple-imac-retina-4k-21.5-inch-late-2015 b/data/apple-imac-retina-4k-21.5-inch-late-2015
new file mode 100644
index 0000000000000000000000000000000000000000..0a28a06cf6b2fb0332c64a21a476c3919173c26d