|
Update RateStatistics to handle too-little-data case.
To avoid the case where a single data point or too short window is used,
causing bad behavior due to bad stats, update RateStatistics to return
an Optional rather than a plain rate.
There was also a strange off by one bug where the rate was slightly
overestimated (N + 1 buckets, N ms time window).
These changes requires updates to a number of places, and may very well
cause seeming perf regressions (but the stats were probablty more wrong
previously).
BUG=
R=mflodman@webrtc.org, stefan@webrtc.org
Committed: https://chromium.googlesource.com/external/webrtc/+/51e60305e622f9156d37cb1f487bd4260d5ce410
Total comments: 18
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+367 lines, -130 lines) |
Patch |
|
M |
webrtc/base/rate_statistics.h
|
View
|
1
2
3
4
|
1 chunk |
+21 lines, -6 lines |
0 comments
|
Download
|
|
M |
webrtc/base/rate_statistics.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+68 lines, -37 lines |
0 comments
|
Download
|
|
M |
webrtc/base/rate_statistics_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+181 lines, -33 lines |
0 comments
|
Download
|
|
M |
webrtc/common_video/bitrate_adjuster.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/common_video/bitrate_adjuster_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
webrtc/common_video/include/bitrate_adjuster.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
webrtc/modules/remote_bitrate_estimator/aimd_rate_control.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc
|
View
|
|
4 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.cc
|
View
|
1
|
3 chunks |
+19 lines, -4 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc
|
View
|
|
4 chunks |
+30 lines, -13 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_unittest_helper.cc
|
View
|
1
|
3 chunks |
+22 lines, -15 lines |
0 comments
|
Download
|
|
M |
webrtc/video/receive_statistics_proxy.cc
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 35 (10 generated)
|