aboutsummaryrefslogtreecommitdiffstats
path: root/parse-displayid-block.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-02-25 11:38:08 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-02-25 11:38:08 +0100
commitf40dfc0427c57bc5c779b4734b739ff74ecc25fa (patch)
tree545b80d9dc0db099d885bde87429c19a84ddf1f0 /parse-displayid-block.cpp
parent4204d568379a6482ffb4258e4b7aa00470a247c5 (diff)
edid-decode: introduce RB_NONE, rename RB_FLAG to RB_ALT
This is consistent with the other code. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'parse-displayid-block.cpp')
-rw-r--r--parse-displayid-block.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse-displayid-block.cpp b/parse-displayid-block.cpp
index a1c0eee..b11b0c5 100644
--- a/parse-displayid-block.cpp
+++ b/parse-displayid-block.cpp
@@ -336,7 +336,7 @@ void edid_state::parse_displayid_type_1_7_timing(const unsigned char *x,
unsigned vtot = t.vact + t.vfp + t.vsync + t.vbp;
unsigned refresh = (t.pixclk_khz * 1000ULL) / (htot * vtot);
- for (unsigned rb = 0; rb <= RB_CVT_V3; rb++) {
+ for (unsigned rb = RB_NONE; rb <= RB_CVT_V3; rb++) {
timings cvt_t = calc_cvt_mode(t.hact, t.vact, refresh, rb);
if (match_timings(t, cvt_t)) {
fail("This T7VTDB can be represented as a T10VTDB.\n");
@@ -462,7 +462,7 @@ void edid_state::parse_displayid_type_3_timing(const unsigned char *x)
break;
}
- t.rb = ((x[0] & 0x70) >> 4) == 1 ? RB_CVT_V1 : 0;
+ t.rb = ((x[0] & 0x70) >> 4) == 1 ? RB_CVT_V1 : RB_NONE;
t.hact = 8 + 8 * x[1];
t.vact = t.hact * t.vratio / t.hratio;
@@ -1407,10 +1407,10 @@ void edid_state::parse_displayid_type_10_timing(const unsigned char *x, bool is_
if (x[0] & 0x10) {
if (t.rb == RB_CVT_V2) {
s += ", refresh rate * (1000/1001) supported";
- t.rb |= RB_FLAG;
+ t.rb |= RB_ALT;
} else if (t.rb == RB_CVT_V3) {
s += ", hblank is 160 pixels";
- t.rb |= RB_FLAG;
+ t.rb |= RB_ALT;
} else {
fail("VR_HB must be 0.\n");
}

Privacy Policy