| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 int64_t capture_time_ms, | 142 int64_t capture_time_ms, |
| 143 size_t bytes, | 143 size_t bytes, |
| 144 bool retransmission) override { | 144 bool retransmission) override { |
| 145 rtc::CritScope lock(&crit_); | 145 rtc::CritScope lock(&crit_); |
| 146 if (rtp_packet_sender_) { | 146 if (rtp_packet_sender_) { |
| 147 rtp_packet_sender_->InsertPacket(priority, ssrc, sequence_number, | 147 rtp_packet_sender_->InsertPacket(priority, ssrc, sequence_number, |
| 148 capture_time_ms, bytes, retransmission); | 148 capture_time_ms, bytes, retransmission); |
| 149 } | 149 } |
| 150 } | 150 } |
| 151 | 151 |
| 152 bool AllocateRetransmissionBitrate(size_t bytes) override { |
| 153 rtc::CritScope lock(&crit_); |
| 154 if (rtp_packet_sender_) |
| 155 return rtp_packet_sender_->AllocateRetransmissionBitrate(bytes); |
| 156 return false; |
| 157 } |
| 158 |
| 159 int CurrentRetransmissionBitrate() override { |
| 160 rtc::CritScope lock(&crit_); |
| 161 if (rtp_packet_sender_) |
| 162 return rtp_packet_sender_->CurrentRetransmissionBitrate(); |
| 163 return 0; |
| 164 } |
| 165 |
| 152 private: | 166 private: |
| 153 rtc::ThreadChecker thread_checker_; | 167 rtc::ThreadChecker thread_checker_; |
| 154 rtc::CriticalSection crit_; | 168 rtc::CriticalSection crit_; |
| 155 RtpPacketSender* rtp_packet_sender_ GUARDED_BY(&crit_); | 169 RtpPacketSender* rtp_packet_sender_ GUARDED_BY(&crit_); |
| 156 }; | 170 }; |
| 157 | 171 |
| 158 // Extend the default RTCP statistics struct with max_jitter, defined as the | 172 // Extend the default RTCP statistics struct with max_jitter, defined as the |
| 159 // maximum jitter value seen in an RTCP report block. | 173 // maximum jitter value seen in an RTCP report block. |
| 160 struct ChannelStatistics : public RtcpStatistics { | 174 struct ChannelStatistics : public RtcpStatistics { |
| 161 ChannelStatistics() : rtcp(), max_jitter(0) {} | 175 ChannelStatistics() : rtcp(), max_jitter(0) {} |
| (...skipping 3320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3482 int64_t min_rtt = 0; | 3496 int64_t min_rtt = 0; |
| 3483 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != | 3497 if (_rtpRtcpModule->RTT(remoteSSRC, &rtt, &avg_rtt, &min_rtt, &max_rtt) != |
| 3484 0) { | 3498 0) { |
| 3485 return 0; | 3499 return 0; |
| 3486 } | 3500 } |
| 3487 return rtt; | 3501 return rtt; |
| 3488 } | 3502 } |
| 3489 | 3503 |
| 3490 } // namespace voe | 3504 } // namespace voe |
| 3491 } // namespace webrtc | 3505 } // namespace webrtc |
| OLD | NEW |