aboutsummaryrefslogtreecommitdiffstats
path: root/parse-displayid-block.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-10-12 10:35:10 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-10-12 10:43:30 +0200
commit66d8451280e15245eaf8a73ab20e78fd3498bc65 (patch)
tree01c306aa4ab06fc619645e9e7bb17693673f797a /parse-displayid-block.cpp
parent84ddf9155376a6044f729ce6a0e60639c26aed2b (diff)
edid-decode: drop CVT support for Additional Vertical Blank Time
This was dropped again in DisplayID 2.0 E9 and from the CVT 2.0 standard. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'parse-displayid-block.cpp')
-rw-r--r--parse-displayid-block.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/parse-displayid-block.cpp b/parse-displayid-block.cpp
index f4b8ca5..ad5099f 100644
--- a/parse-displayid-block.cpp
+++ b/parse-displayid-block.cpp
@@ -1477,24 +1477,24 @@ void edid_state::parse_displayid_type_10_timing(const unsigned char *x,
s += ", YCbCr 4:2:0";
unsigned refresh = 1 + x[5] + (sz == 6 ? 0 : ((x[6] & 3) << 8));
- double add_vert_time = 0;
if (sz > 6 && rb == RB_CVT_V3) {
unsigned delta_hblank = (x[6] >> 2) & 7;
- if (rb_h_blank == 80)
+ if ((x[6] >> 5) & 7)
+ fail("Bits 5-7 of byte 6 must be 0.\n");
+ if (rb != RB_CVT_V3) {
+ if ((x[6] >> 2) & 7)
+ fail("Bits 2-4 of byte 6 must be 0.\n");
+ } else if (rb_h_blank == 80)
rb_h_blank = 80 + 8 * delta_hblank;
else if (delta_hblank <= 5)
rb_h_blank = 160 + 8 * delta_hblank;
else
rb_h_blank = 160 - (delta_hblank - 5) * 8;
-
- unsigned vblank_time_perc = (x[6] >> 5) & 7;
-
- add_vert_time = (vblank_time_perc * 10000.0) / refresh;
}
- edid_cvt_mode(refresh, t, rb_h_blank, add_vert_time);
+ edid_cvt_mode(refresh, t, rb_h_blank);
print_timings(" ", &t, "CVT", s.c_str());
if (is_cta) {

Privacy Policy