Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h

Issue 2385763002: Add stats for frequency offset when converting RTP timestamp to NTP time. (Closed)
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 25 matching lines...) Expand all
36 bool UpdateRtcpTimestamp(int64_t rtt, uint32_t ntp_secs, uint32_t ntp_frac, 36 bool UpdateRtcpTimestamp(int64_t rtt, uint32_t ntp_secs, uint32_t ntp_frac,
37 uint32_t rtp_timestamp); 37 uint32_t rtp_timestamp);
38 38
39 // Estimates the NTP timestamp in local timebase from |rtp_timestamp|. 39 // Estimates the NTP timestamp in local timebase from |rtp_timestamp|.
40 // Returns the NTP timestamp in ms when success. -1 if failed. 40 // Returns the NTP timestamp in ms when success. -1 if failed.
41 int64_t Estimate(uint32_t rtp_timestamp); 41 int64_t Estimate(uint32_t rtp_timestamp);
42 42
43 private: 43 private:
44 Clock* clock_; 44 Clock* clock_;
45 std::unique_ptr<TimestampExtrapolator> ts_extrapolator_; 45 std::unique_ptr<TimestampExtrapolator> ts_extrapolator_;
46 RtcpList rtcp_list_; 46 RtcpMeasurements rtcp_list_;
47 int64_t last_timing_log_ms_; 47 int64_t last_timing_log_ms_;
48 RTC_DISALLOW_COPY_AND_ASSIGN(RemoteNtpTimeEstimator); 48 RTC_DISALLOW_COPY_AND_ASSIGN(RemoteNtpTimeEstimator);
49 }; 49 };
50 50
51 } // namespace webrtc 51 } // namespace webrtc
52 52
53 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_REMOTE_NTP_TIME_ESTIMATOR_H_ 53 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_REMOTE_NTP_TIME_ESTIMATOR_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/system_wrappers/include/rtp_to_ntp.h » ('j') | webrtc/system_wrappers/include/rtp_to_ntp.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698