[PATCH edid-decode 5/9] Print name of additional data blocks

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


From: Arnaud Vrac <avrac at freebox.fr>

---
 edid-decode.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/edid-decode.c b/edid-decode.c
index 73730c5..203016d 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -1115,6 +1115,18 @@ cea_block(unsigned char *x)
 		    printf("Colorimetry data block\n");
 		    cea_colorimetry_block(x);
 		    break;
+		case 0x06:
+		    printf("HDR static metadata data block\n");
+		    break;
+		case 0x0d:
+		    printf("Video format preference data block\n");
+		    break;
+		case 0x0e:
+		    printf("YCbCr 4:2:0 video data block\n");
+		    break;
+		case 0x0f:
+		    printf("YCbCr 4:2:0 capability map data block\n");
+		    break;
 		case 0x10:
 		    printf("CEA miscellaneous audio fields\n");
 		    break;
@@ -1124,8 +1136,11 @@ cea_block(unsigned char *x)
 		case 0x12:
 		    printf("HDMI audio data block\n");
 		    break;
+		case 0x20:
+		    printf("InfoFrame data block\n");
+		    break;
 		default:
-		    if (x[1] >= 6 && x[1] <= 15)
+		    if (x[1] >= 6 && x[1] <= 12)
 			printf("Reserved video block (%02x)\n", x[1]);
 		    else if (x[1] >= 19 && x[1] <= 31)
 			printf("Reserved audio block (%02x)\n", x[1]);
-- 
2.7.4



More information about the xorg-devel mailing list