OLD | NEW |
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 |
11 #include "webrtc/modules/rtp_rtcp/interface/remote_ntp_time_estimator.h" | 11 #include "webrtc/modules/rtp_rtcp/include/remote_ntp_time_estimator.h" |
12 | 12 |
13 #include "webrtc/base/logging.h" | 13 #include "webrtc/base/logging.h" |
14 #include "webrtc/system_wrappers/include/clock.h" | 14 #include "webrtc/system_wrappers/include/clock.h" |
15 #include "webrtc/system_wrappers/include/timestamp_extrapolator.h" | 15 #include "webrtc/system_wrappers/include/timestamp_extrapolator.h" |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 static const int kTimingLogIntervalMs = 10000; | 19 static const int kTimingLogIntervalMs = 10000; |
20 | 20 |
21 // TODO(wu): Refactor this class so that it can be shared with | 21 // TODO(wu): Refactor this class so that it can be shared with |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 LOG(LS_INFO) << "RTP timestamp: " << rtp_timestamp | 70 LOG(LS_INFO) << "RTP timestamp: " << rtp_timestamp |
71 << " in NTP clock: " << sender_capture_ntp_ms | 71 << " in NTP clock: " << sender_capture_ntp_ms |
72 << " estimated time in receiver clock: " << receiver_capture_ms | 72 << " estimated time in receiver clock: " << receiver_capture_ms |
73 << " converted to NTP clock: " << receiver_capture_ntp_ms; | 73 << " converted to NTP clock: " << receiver_capture_ntp_ms; |
74 last_timing_log_ms_ = now_ms; | 74 last_timing_log_ms_ = now_ms; |
75 } | 75 } |
76 return receiver_capture_ntp_ms; | 76 return receiver_capture_ntp_ms; |
77 } | 77 } |
78 | 78 |
79 } // namespace webrtc | 79 } // namespace webrtc |
OLD | NEW |