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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 int64_t last_rtt = rtt_stats_->LastProcessedRtt(); | 191 int64_t last_rtt = rtt_stats_->LastProcessedRtt(); |
192 if (last_rtt >= 0) | 192 if (last_rtt >= 0) |
193 set_rtt_ms(last_rtt); | 193 set_rtt_ms(last_rtt); |
194 } | 194 } |
195 } | 195 } |
196 | 196 |
197 if (rtcp_sender_.TimeToSendRTCPReport()) | 197 if (rtcp_sender_.TimeToSendRTCPReport()) |
198 rtcp_sender_.SendRTCP(GetFeedbackState(), kRtcpReport); | 198 rtcp_sender_.SendRTCP(GetFeedbackState(), kRtcpReport); |
199 | 199 |
200 if (UpdateRTCPReceiveInformationTimers()) { | 200 if (UpdateRTCPReceiveInformationTimers()) { |
201 // A receiver has timed out | 201 // A receiver has timed out. |
202 rtcp_receiver_.UpdateTMMBR(); | 202 rtcp_receiver_.UpdateTmmbr(); |
203 } | 203 } |
204 } | 204 } |
205 | 205 |
206 void ModuleRtpRtcpImpl::SetRtxSendStatus(int mode) { | 206 void ModuleRtpRtcpImpl::SetRtxSendStatus(int mode) { |
207 rtp_sender_.SetRtxStatus(mode); | 207 rtp_sender_.SetRtxStatus(mode); |
208 } | 208 } |
209 | 209 |
210 int ModuleRtpRtcpImpl::RtxSendStatus() const { | 210 int ModuleRtpRtcpImpl::RtxSendStatus() const { |
211 return rtp_sender_.RtxStatus(); | 211 return rtp_sender_.RtxStatus(); |
212 } | 212 } |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 | 654 |
655 // (TMMBR) Temporary Max Media Bit Rate. | 655 // (TMMBR) Temporary Max Media Bit Rate. |
656 bool ModuleRtpRtcpImpl::TMMBR() const { | 656 bool ModuleRtpRtcpImpl::TMMBR() const { |
657 return rtcp_sender_.TMMBR(); | 657 return rtcp_sender_.TMMBR(); |
658 } | 658 } |
659 | 659 |
660 void ModuleRtpRtcpImpl::SetTMMBRStatus(const bool enable) { | 660 void ModuleRtpRtcpImpl::SetTMMBRStatus(const bool enable) { |
661 rtcp_sender_.SetTMMBRStatus(enable); | 661 rtcp_sender_.SetTMMBRStatus(enable); |
662 } | 662 } |
663 | 663 |
664 void ModuleRtpRtcpImpl::SetTMMBN( | 664 void ModuleRtpRtcpImpl::SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set) { |
665 const std::vector<rtcp::TmmbItem>* bounding_set) { | 665 rtcp_sender_.SetTmmbn(std::move(bounding_set)); |
666 rtcp_sender_.SetTMMBN(bounding_set); | |
667 } | 666 } |
668 | 667 |
669 // Returns the currently configured retransmission mode. | 668 // Returns the currently configured retransmission mode. |
670 int ModuleRtpRtcpImpl::SelectiveRetransmissions() const { | 669 int ModuleRtpRtcpImpl::SelectiveRetransmissions() const { |
671 return rtp_sender_.SelectiveRetransmissions(); | 670 return rtp_sender_.SelectiveRetransmissions(); |
672 } | 671 } |
673 | 672 |
674 // Enable or disable a retransmission mode, which decides which packets will | 673 // Enable or disable a retransmission mode, which decides which packets will |
675 // be retransmitted if NACKed. | 674 // be retransmitted if NACKed. |
676 int ModuleRtpRtcpImpl::SetSelectiveRetransmissions(uint8_t settings) { | 675 int ModuleRtpRtcpImpl::SetSelectiveRetransmissions(uint8_t settings) { |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( | 956 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( |
958 StreamDataCountersCallback* callback) { | 957 StreamDataCountersCallback* callback) { |
959 rtp_sender_.RegisterRtpStatisticsCallback(callback); | 958 rtp_sender_.RegisterRtpStatisticsCallback(callback); |
960 } | 959 } |
961 | 960 |
962 StreamDataCountersCallback* | 961 StreamDataCountersCallback* |
963 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { | 962 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { |
964 return rtp_sender_.GetRtpStatisticsCallback(); | 963 return rtp_sender_.GetRtpStatisticsCallback(); |
965 } | 964 } |
966 } // namespace webrtc | 965 } // namespace webrtc |
OLD | NEW |