| 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/include/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/rtc_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 |
| 22 // vie_sync_module.cc. | 22 // vie_sync_module.cc. |
| 23 RemoteNtpTimeEstimator::RemoteNtpTimeEstimator(Clock* clock) | 23 RemoteNtpTimeEstimator::RemoteNtpTimeEstimator(Clock* clock) |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 LOG(LS_INFO) << "RTP timestamp: " << rtp_timestamp | 66 LOG(LS_INFO) << "RTP timestamp: " << rtp_timestamp |
| 67 << " in NTP clock: " << sender_capture_ntp_ms | 67 << " in NTP clock: " << sender_capture_ntp_ms |
| 68 << " estimated time in receiver clock: " << receiver_capture_ms | 68 << " estimated time in receiver clock: " << receiver_capture_ms |
| 69 << " converted to NTP clock: " << receiver_capture_ntp_ms; | 69 << " converted to NTP clock: " << receiver_capture_ntp_ms; |
| 70 last_timing_log_ms_ = now_ms; | 70 last_timing_log_ms_ = now_ms; |
| 71 } | 71 } |
| 72 return receiver_capture_ntp_ms; | 72 return receiver_capture_ntp_ms; |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace webrtc | 75 } // namespace webrtc |
| OLD | NEW |