BalancedDegradationSettings: add option to configure a min framerate diff.

If a framerate reduction (input fps - restricted fps) is less than the
configured diff, shorten interval to next qp check.

Bug: none
Change-Id: Ia0b9e0638e5ba75cdc20a1bb45bfcb7d858c5f89
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/149040
Commit-Queue: Åsa Persson <asapersson@webrtc.org>
Reviewed-by: Magnus Flodman <mflodman@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28880}
This commit is contained in:
Åsa Persson
2019-08-16 17:24:59 +02:00
committed by Commit Bot
parent df625f46c0
commit f5e5d250bc
10 changed files with 266 additions and 60 deletions

View File

@ -36,9 +36,10 @@ class MockAdaptationObserver : public AdaptationObserverInterface {
adapt_up_events_++;
event.Set();
}
void AdaptDown(AdaptReason r) override {
bool AdaptDown(AdaptReason r) override {
adapt_down_events_++;
event.Set();
return true;
}
rtc::Event event;