dgallegos / edidreader

JavaScript EDID Parser
MIT License
84 stars 14 forks source link

Vendor Specific Data Block HDMI 2.0 - Supports 36/48 bits/pixel flags are not correct #9

Open dilbert11 opened 5 years ago

dilbert11 commented 5 years ago

Vendor Specific Data Block HDMI 2.0 - Supports 36/48 bits/pixel flags are not correct when they should be set.

The following EDID contains a vendor specific data block. Byte 171 = 07 which means it should support all 3 DC_30bit_420, DC_36bit_420, and DC_48bit_420, however the app is only setting the former.

00 FF FF FF FF FF FF 00 1E 6D 08 5B EF 23 03 00 08 1A 01 03 80 3C 22 78 EA 30 35 A7 55 4E A3 26 0F 50 54 21 08 00 71 40 81 80 81 C0 A9 C0 D1 C0 81 00 01 01 01 01 08 E8 00 30 F2 70 5A 80 B0 58 8A 00 58 54 21 00 00 1E 04 74 00 30 F2 70 5A 80 B0 58 8A 00 58 54 21 00 00 1A 00 00 00 FD 00 38 3D 1E 87 3C 00 0A 20 20 20 20 20 20 00 00 00 FC 00 4C 47 20 55 6C 74 72 61 20 48 44 0A 20 01 F6 02 03 30 71 4D 90 22 20 05 04 03 02 01 61 60 5D 5E 5F 23 09 07 07 6D 03 0C 00 20 00 B8 3C 20 00 60 01 02 03 67 D8 5D C4 01 78 80 07 E3 0F 00 06 02 3A 80 18 71 38 2D 40 58 2C 45 00 58 54 21 00 00 1A 56 5E 00 A0 A0 A0 29 50 30 20 35 00 58 54 21 00 00 1A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 9A

dilbert11 commented 4 years ago

I found a C# project for EDID that decoded the main block and was expanding it to decode the extension blocks. I was using this tool/site as a way to validate my c# code output. I found a difference between my c# code and this site. After looking at the JavaScript source code I found the copy/paste, paste code that didn't get changed for the later bits. I can read code but I'm not much of a JavaScript developer.

Ya, the checksum might be wrong.. I might have been tweaking the bits to test the code for the different bits... I wasn't too concerned about the checksum, just trying to test each part of each block and different blocks.