aboutsummaryrefslogtreecommitdiffstats
path: root/calc-gtf-cvt.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 /calc-gtf-cvt.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 'calc-gtf-cvt.cpp')
-rw-r--r--calc-gtf-cvt.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/calc-gtf-cvt.cpp b/calc-gtf-cvt.cpp
index 9cd6e5e..441735f 100644
--- a/calc-gtf-cvt.cpp
+++ b/calc-gtf-cvt.cpp
@@ -131,8 +131,7 @@ void edid_state::edid_gtf_mode(unsigned refresh, struct timings &t)
// If rb == RB_CVT_V3, then alt means that rb_h_blank is 160 instead of 80.
timings edid_state::calc_cvt_mode(unsigned h_pixels, unsigned v_lines,
double ip_freq_rqd, unsigned rb, bool int_rqd,
- bool margins_rqd, bool alt, unsigned rb_h_blank,
- double add_vert_time)
+ bool margins_rqd, bool alt, unsigned rb_h_blank)
{
timings t = {};
@@ -161,11 +160,6 @@ timings edid_state::calc_cvt_mode(unsigned h_pixels, unsigned v_lines,
double v_blank;
double v_sync_bp;
- if (rb == RB_CVT_V3 && add_vert_time) {
- if (add_vert_time + rb_min_vblank <= 1000000.0 / ip_freq_rqd / 4.0)
- rb_min_vblank += add_vert_time;
- }
-
if (rb == RB_CVT_V3 && rb_h_blank) {
h_blank = rb_h_blank & ~7;
if (h_blank < 80)
@@ -248,14 +242,13 @@ timings edid_state::calc_cvt_mode(unsigned h_pixels, unsigned v_lines,
return t;
}
-void edid_state::edid_cvt_mode(unsigned refresh, struct timings &t, unsigned rb_h_blank,
- double add_vert_time)
+void edid_state::edid_cvt_mode(unsigned refresh, struct timings &t, unsigned rb_h_blank)
{
unsigned hratio = t.hratio;
unsigned vratio = t.vratio;
t = calc_cvt_mode(t.hact, t.vact, refresh, t.rb & ~RB_ALT, t.interlaced,
- false, t.rb & RB_ALT, rb_h_blank, add_vert_time);
+ false, t.rb & RB_ALT, rb_h_blank);
t.hratio = hratio;
t.vratio = vratio;
}

Privacy Policy