summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-08-31 13:41:03 +0200
committerAdam Jackson <ajax@redhat.com>2017-09-07 12:13:30 -0400
commit83cd9713a3eb07e687471d117d3cde017a3ae58b (patch)
tree92ca07369cd0b33406c11901ca4418ea79cbe582
parentca252201ddfbf7ed99d54759b5b6a0e6274d87c7 (diff)
edid-decode: add Display Color Management support
Print the contents of the DCM definition. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--edid-decode.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/edid-decode.c b/edid-decode.c
index 3ea3cb7..e4d70e8 100644
--- a/edid-decode.c
+++ b/edid-decode.c
@@ -366,8 +366,14 @@ detailed_block(unsigned char *x, int in_extension)
return valid_cvt;
}
case 0xF9:
- /* TODO */
- printf("Color management data\n");
+ printf("Color management data:\n");
+ printf(" Version: %d\n", x[5]);
+ printf(" Red a3: %.2f\n", (short)(x[6] | (x[7] << 8)) / 100.0);
+ printf(" Red a2: %.2f\n", (short)(x[8] | (x[9] << 8)) / 100.0);
+ printf(" Green a3: %.2f\n", (short)(x[10] | (x[11] << 8)) / 100.0);
+ printf(" Green a2: %.2f\n", (short)(x[12] | (x[13] << 8)) / 100.0);
+ printf(" Blue a3: %.2f\n", (short)(x[14] | (x[15] << 8)) / 100.0);
+ printf(" Blue a2: %.2f\n", (short)(x[16] | (x[17] << 8)) / 100.0);
return 1;
case 0xFA:
printf("More standard timings:\n");