[PATCH edid-decode 6/9] Print YCbCr 4:2:0 video data block

Arnaud Vrac rawoul at gmail.com
Fri Jul 8 14:09:39 UTC 2016


From: Arnaud Vrac <avrac at freebox.fr>

---
 edid-decode.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/edid-decode.c b/edid-decode.c
index 203016d..cd5a257 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -787,6 +787,14 @@ cea_video_block(unsigned char *x)
     cea_svd(x + 1, length);
 }
 
+static void
+cea_y420vdb(unsigned char *x)
+{
+    int length = x[0] & 0x1f;
+
+    cea_svd(x + 2, length - 1);
+}
+
 static const char *edid_cea_hdmi_modes[] = {
     "3840x2160 at 30Hz",
     "3840x2160 at 25Hz",
@@ -1123,6 +1131,7 @@ cea_block(unsigned char *x)
 		    break;
 		case 0x0e:
 		    printf("YCbCr 4:2:0 video data block\n");
+		    cea_y420vdb(x);
 		    break;
 		case 0x0f:
 		    printf("YCbCr 4:2:0 capability map data block\n");
-- 
2.7.4



More information about the xorg-devel mailing list