OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include <algorithm> | 10 #include <algorithm> |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 } | 106 } |
107 } | 107 } |
108 // We need two RTCP SR reports to map between RTP and NTP. More than two | 108 // We need two RTCP SR reports to map between RTP and NTP. More than two |
109 // will not improve the mapping. | 109 // will not improve the mapping. |
110 if (ntp_rtp_pairs_.size() == 2) { | 110 if (ntp_rtp_pairs_.size() == 2) { |
111 ntp_rtp_pairs_.pop_back(); | 111 ntp_rtp_pairs_.pop_back(); |
112 } | 112 } |
113 ntp_rtp_pairs_.push_front(ntp_rtp_pair); | 113 ntp_rtp_pairs_.push_front(ntp_rtp_pair); |
114 } | 114 } |
115 | 115 |
116 mutable rtc::CriticalSection crit_; | 116 rtc::CriticalSection crit_; |
117 RtcpList ntp_rtp_pairs_ GUARDED_BY(crit_); | 117 RtcpList ntp_rtp_pairs_ GUARDED_BY(crit_); |
118 }; | 118 }; |
119 | 119 |
120 class VideoRtcpAndSyncObserver : public SyncRtcpObserver, public VideoRenderer { | 120 class VideoRtcpAndSyncObserver : public SyncRtcpObserver, public VideoRenderer { |
121 static const int kInSyncThresholdMs = 50; | 121 static const int kInSyncThresholdMs = 50; |
122 static const int kStartupTimeMs = 2000; | 122 static const int kStartupTimeMs = 2000; |
123 static const int kMinRunTimeMs = 30000; | 123 static const int kMinRunTimeMs = 30000; |
124 | 124 |
125 public: | 125 public: |
126 VideoRtcpAndSyncObserver(Clock* clock, | 126 VideoRtcpAndSyncObserver(Clock* clock, |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 int encoder_inits_; | 749 int encoder_inits_; |
750 uint32_t last_set_bitrate_; | 750 uint32_t last_set_bitrate_; |
751 VideoSendStream* send_stream_; | 751 VideoSendStream* send_stream_; |
752 VideoEncoderConfig encoder_config_; | 752 VideoEncoderConfig encoder_config_; |
753 } test; | 753 } test; |
754 | 754 |
755 RunBaseTest(&test); | 755 RunBaseTest(&test); |
756 } | 756 } |
757 | 757 |
758 } // namespace webrtc | 758 } // namespace webrtc |
OLD | NEW |