aboutsummaryrefslogtreecommitdiffstats
path: root/parse-base-block.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-11-23 09:43:44 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-12-30 11:34:26 +0100
commit95d81c95f89424bc5ff541d941eeea4addeeda1c (patch)
treefda0b956366d893ee492300b0e327e8562c0978c /parse-base-block.cpp
parentfa87c71f11a17400def68dad20dc26fd0c447dcd (diff)
edid-decode: use DTD or T10VTDB for a T7VTDB if possible
Check if a T7VTDB can also be represented by a DTD or a T10VTDB. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'parse-base-block.cpp')
-rw-r--r--parse-base-block.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/parse-base-block.cpp b/parse-base-block.cpp
index 37da226..f18b495 100644
--- a/parse-base-block.cpp
+++ b/parse-base-block.cpp
@@ -714,6 +714,18 @@ void edid_state::edid_cvt_mode(unsigned refresh, struct timings &t)
t.interlaced = false;
}
+timings edid_state::calc_cvt_mode(unsigned refresh, unsigned hact, unsigned vact, unsigned rb)
+{
+ timings t = {};
+
+ t.hact = hact;
+ t.vact = vact;
+ t.rb = rb;
+ calc_ratio(&t);
+ edid_cvt_mode(refresh, t);
+ return t;
+}
+
void edid_state::detailed_cvt_descriptor(const char *prefix, const unsigned char *x, bool first)
{
static const unsigned char empty[3] = { 0, 0, 0 };

Privacy Policy