diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2017-08-31 13:41:09 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-09-07 12:13:32 -0400 |
commit | 86a43ab066079e63b1f22f6954b31a55c9877aed (patch) | |
tree | dd9f2522123c34b17c45033240c564f3535cd703 | |
parent | 5c98e1965968f387f9b98602e37d45fa79c4d49b (diff) |
edid-decode: YCbCr 4:2:0 Capability Map support
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r-- | edid-decode.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/edid-decode.c b/edid-decode.c index 0ae465f..c150336 100644 --- a/edid-decode.c +++ b/edid-decode.c @@ -1091,6 +1091,22 @@ cea_y420vdb(unsigned char *x) } static void +cea_y420cmdb(unsigned char *x) +{ + int length = x[0] & 0x1f; + int i; + + for (i = 0; i < length - 1; i++) { + uint8_t v = x[2 + i]; + int j; + + for (j = 0; j < 8; j++) + if (v & (1 << j)) + printf(" VSD Index %d\n", i * 8 + j); + } +} + +static void cea_vfpdb(unsigned char *x) { int length = x[0] & 0x1f; @@ -1544,6 +1560,7 @@ cea_block(unsigned char *x) break; case 0x0f: printf("YCbCr 4:2:0 capability map data block\n"); + cea_y420cmdb(x); break; case 0x10: printf("CEA miscellaneous audio fields\n"); |