Allow to explicitly increase the bitrate massively

This has the benefit - over direct connections - to be able to send a lot more data.
In particular fast moving frames may avoid fps drops with a higher target bitrate.
This commit is contained in:
Bob Weinand
2023-07-11 22:33:53 +02:00
committed by 21pages
parent 029e6a015e
commit 4b58f0b4dd
3 changed files with 14 additions and 7 deletions

View File

@@ -299,9 +299,9 @@ impl VideoQoS {
} else if q == ImageQuality::Best.value() {
Quality::Best
} else {
let mut b = (q >> 8 & 0xFF) * 2;
b = std::cmp::max(b, 10);
b = std::cmp::min(b, 200);
let mut b = (q >> 8 & 0xFFF) * 2;
b = std::cmp::max(b, 20);
b = std::cmp::min(b, 8000);
Quality::Custom(b as u32)
}
};