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

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

Issue 1746773002: [rtp_rtcp] tmmbr helper simplified by moving set_to_send member out (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: feedback Created 4 years, 7 months 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) 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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 673
674 // (TMMBR) Temporary Max Media Bit Rate. 674 // (TMMBR) Temporary Max Media Bit Rate.
675 bool ModuleRtpRtcpImpl::TMMBR() const { 675 bool ModuleRtpRtcpImpl::TMMBR() const {
676 return rtcp_sender_.TMMBR(); 676 return rtcp_sender_.TMMBR();
677 } 677 }
678 678
679 void ModuleRtpRtcpImpl::SetTMMBRStatus(const bool enable) { 679 void ModuleRtpRtcpImpl::SetTMMBRStatus(const bool enable) {
680 rtcp_sender_.SetTMMBRStatus(enable); 680 rtcp_sender_.SetTMMBRStatus(enable);
681 } 681 }
682 682
683 int32_t ModuleRtpRtcpImpl::SetTMMBN(const TMMBRSet* bounding_set) { 683 void ModuleRtpRtcpImpl::SetTMMBN(
684 return rtcp_sender_.SetTMMBN(bounding_set); 684 const std::vector<rtcp::TmmbItem>* bounding_set) {
685 rtcp_sender_.SetTMMBN(bounding_set);
685 } 686 }
686 687
687 // Returns the currently configured retransmission mode. 688 // Returns the currently configured retransmission mode.
688 int ModuleRtpRtcpImpl::SelectiveRetransmissions() const { 689 int ModuleRtpRtcpImpl::SelectiveRetransmissions() const {
689 return rtp_sender_.SelectiveRetransmissions(); 690 return rtp_sender_.SelectiveRetransmissions();
690 } 691 }
691 692
692 // Enable or disable a retransmission mode, which decides which packets will 693 // Enable or disable a retransmission mode, which decides which packets will
693 // be retransmitted if NACKed. 694 // be retransmitted if NACKed.
694 int ModuleRtpRtcpImpl::SetSelectiveRetransmissions(uint8_t settings) { 695 int ModuleRtpRtcpImpl::SetSelectiveRetransmissions(uint8_t settings) {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback( 987 void ModuleRtpRtcpImpl::RegisterSendChannelRtpStatisticsCallback(
987 StreamDataCountersCallback* callback) { 988 StreamDataCountersCallback* callback) {
988 rtp_sender_.RegisterRtpStatisticsCallback(callback); 989 rtp_sender_.RegisterRtpStatisticsCallback(callback);
989 } 990 }
990 991
991 StreamDataCountersCallback* 992 StreamDataCountersCallback*
992 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const { 993 ModuleRtpRtcpImpl::GetSendChannelRtpStatisticsCallback() const {
993 return rtp_sender_.GetRtpStatisticsCallback(); 994 return rtp_sender_.GetRtpStatisticsCallback();
994 } 995 }
995 } // namespace webrtc 996 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.h ('k') | webrtc/modules/rtp_rtcp/source/tmmbr_help.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698