Use moving median filters in RemoteNtpTimeEstimator, RtpToNtpEstimator
If Webrtc-ClockEstimation experiment is enabled, median filtering is applied to results of RtpToNtpEstimator and RemoteNtpEstimator to smooth out random errors introduced by incorrect RTCP SR reports and networking delays. Bug: webrtc:8468 Change-Id: Iec6d094d2809d1efeb0b9483059167d9a03880da Reviewed-on: https://webrtc-review.googlesource.com/22682 Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Reviewed-by: Per Kjellander <perkj@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20682}
This commit is contained in:
committed by
Commit Bot
parent
12e555b715
commit
550b666e20
@ -14,6 +14,7 @@
|
||||
#include <memory>
|
||||
|
||||
#include "rtc_base/constructormagic.h"
|
||||
#include "rtc_base/numerics/moving_median_filter.h"
|
||||
#include "system_wrappers/include/rtp_to_ntp_estimator.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -43,8 +44,10 @@ class RemoteNtpTimeEstimator {
|
||||
private:
|
||||
Clock* clock_;
|
||||
std::unique_ptr<TimestampExtrapolator> ts_extrapolator_;
|
||||
MovingMedianFilter<int64_t> ntp_clocks_offset_estimator_;
|
||||
RtpToNtpEstimator rtp_to_ntp_;
|
||||
int64_t last_timing_log_ms_;
|
||||
const bool is_experiment_enabled_;
|
||||
RTC_DISALLOW_COPY_AND_ASSIGN(RemoteNtpTimeEstimator);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user