[PATCH 16/27] edid-decode: YCbCr 4:2:0 Capability Map support

Hans Verkuil hverkuil at xs4all.nl
Thu Aug 31 11:41:09 UTC 2017


From: Hans Verkuil <hans.verkuil at cisco.com>

Signed-off-by: Hans Verkuil <hans.verkuil at cisco.com>
---
 edid-decode.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/edid-decode.c b/edid-decode.c
index 0ae465f2..c1503366 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -1090,6 +1090,22 @@ cea_y420vdb(unsigned char *x)
     cea_svd(x + 2, length - 1, 1);
 }
 
+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)
 {
@@ -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");
-- 
2.14.1



More information about the xorg-devel mailing list