#include "modules/rtp_rtcp/include/remote_ntp_time_estimator.h"
#include <cstdint>
#include "modules/rtp_rtcp/source/ntp_time_util.h"
#include "rtc_base/logging.h"
#include "system_wrappers/include/clock.h"
#include "system_wrappers/include/ntp_time.h"
namespace webrtc {
namespace {
constexpr int kMinimumNumberOfSamples = …;
constexpr TimeDelta kTimingLogInterval = …;
constexpr int kClocksOffsetSmoothingWindow = …;
int64_t Subtract(NtpTime minuend, NtpTime subtrahend) { … }
NtpTime Add(NtpTime lhs, int64_t rhs) { … }
}
RemoteNtpTimeEstimator::RemoteNtpTimeEstimator(Clock* clock)
: … { … }
bool RemoteNtpTimeEstimator::UpdateRtcpTimestamp(TimeDelta rtt,
NtpTime sender_send_time,
uint32_t rtp_timestamp) { … }
NtpTime RemoteNtpTimeEstimator::EstimateNtp(uint32_t rtp_timestamp) { … }
absl::optional<int64_t>
RemoteNtpTimeEstimator::EstimateRemoteToLocalClockOffset() { … }
}