Add ability to cap the video jitter estimate to a max value.
Bug: webrtc:10572 Change-Id: I21112824dc02afa71db61bb8c2f02723e8b325b6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/133963 Commit-Queue: Michael Horowitz <mhoro@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27744}
This commit is contained in:
@ -67,7 +67,7 @@ TEST_F(TestVCMJitterEstimator, TestLowRate) {
|
||||
estimator_->UpdateEstimate(gen.Delay(), gen.FrameSize());
|
||||
AdvanceClock(time_delta_us);
|
||||
if (i > 2)
|
||||
EXPECT_EQ(estimator_->GetJitterEstimate(0), 0);
|
||||
EXPECT_EQ(estimator_->GetJitterEstimate(0, 300), 0);
|
||||
gen.Advance();
|
||||
}
|
||||
}
|
||||
@ -98,7 +98,7 @@ TEST_F(TestVCMJitterEstimator, TestUpperBound) {
|
||||
estimator_->UpdateEstimate(gen.Delay(), gen.FrameSize());
|
||||
AdvanceClock(time_delta_us);
|
||||
context.percentiles.Add(
|
||||
static_cast<uint32_t>(estimator_->GetJitterEstimate(0)));
|
||||
static_cast<uint32_t>(estimator_->GetJitterEstimate(0, 300)));
|
||||
gen.Advance();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user