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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/remote_ntp_time_estimator.cc

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 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
11 #include "webrtc/modules/rtp_rtcp/interface/remote_ntp_time_estimator.h" 11 #include "webrtc/modules/rtp_rtcp/interface/remote_ntp_time_estimator.h"
12 12
13 #include "webrtc/base/logging.h" 13 #include "webrtc/base/logging.h"
14 #include "webrtc/system_wrappers/interface/clock.h" 14 #include "webrtc/system_wrappers/include/clock.h"
15 #include "webrtc/system_wrappers/interface/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)
24 : clock_(clock), 24 : clock_(clock),
25 ts_extrapolator_(new TimestampExtrapolator(clock_->TimeInMilliseconds())), 25 ts_extrapolator_(new TimestampExtrapolator(clock_->TimeInMilliseconds())),
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698