Skip to content

Commit

Permalink
Detailed timings: decode interlace flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nwnk committed Sep 24, 2008
1 parent 7a064de commit d46102f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions edid-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,13 @@ detailed_block(unsigned char *x, int in_extension)
vborder = x[16];
switch ((x[17] & 0x18) >> 3) {
case 0x00:
syncmethod = "analog composite";
syncmethod = " analog composite";
break;
case 0x01:
syncmethod = "bipolar analog composite";
syncmethod = " bipolar analog composite";
break;
case 0x02:
syncmethod = "digital composite";
syncmethod = " digital composite";
break;
case 0x03:
syncmethod = "";
Expand All @@ -382,13 +382,13 @@ detailed_block(unsigned char *x, int in_extension)
printf("Detailed mode: Clock %.3f MHz, %d mm x %d mm\n"
" %4d %4d %4d %4d hborder %d\n"
" %4d %4d %4d %4d vborder %d\n"
" %chsync %cvsync %s\n",
" %chsync %cvsync%s%s\n",
(x[0] + (x[1] << 8)) / 100.0,
(x[12] + ((x[14] & 0xF0) << 4)),
(x[13] + ((x[14] & 0x0F) << 8)),
ha, ha + hso, ha + hso + hspw, ha + hbl, hborder,
va, va + vso, va + vso + vspw, va + vbl, vborder,
phsync, pvsync, syncmethod
phsync, pvsync, syncmethod, x[17] & 0x80 ? " interlaced" : ""
);
/* XXX flag decode */

Expand Down

0 comments on commit d46102f

Please sign in to comment.