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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_receiver.h

Issue 2254703003: Remove TMMBRSet class (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Feedback Created 4 years, 4 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
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // has not received RTP packets for too long, i.e. extended highest sequence 89 // has not received RTP packets for too long, i.e. extended highest sequence
90 // number hasn't increased for several RTCP intervals. The function only 90 // number hasn't increased for several RTCP intervals. The function only
91 // returns true once until a new RR is received. 91 // returns true once until a new RR is received.
92 bool RtcpRrSequenceNumberTimeout(int64_t rtcp_interval_ms); 92 bool RtcpRrSequenceNumberTimeout(int64_t rtcp_interval_ms);
93 93
94 // Get TMMBR 94 // Get TMMBR
95 std::vector<rtcp::TmmbItem> TMMBRReceived() const; 95 std::vector<rtcp::TmmbItem> TMMBRReceived() const;
96 96
97 bool UpdateRTCPReceiveInformationTimers(); 97 bool UpdateRTCPReceiveInformationTimers();
98 98
99 int32_t BoundingSet(bool* tmmbrOwner, TMMBRSet* boundingSetRec); 99 std::vector<rtcp::TmmbItem> BoundingSet(bool* tmmbr_owner);
100 100
101 int32_t UpdateTMMBR(); 101 int32_t UpdateTMMBR();
102 102
103 void RegisterRtcpStatisticsCallback(RtcpStatisticsCallback* callback); 103 void RegisterRtcpStatisticsCallback(RtcpStatisticsCallback* callback);
104 RtcpStatisticsCallback* GetRtcpStatisticsCallback(); 104 RtcpStatisticsCallback* GetRtcpStatisticsCallback();
105 105
106 protected: 106 protected:
107 RTCPUtility::RTCPCnameInformation* CreateCnameInformation(uint32_t remoteSSRC); 107 RTCPUtility::RTCPCnameInformation* CreateCnameInformation(uint32_t remoteSSRC);
108 RTCPUtility::RTCPCnameInformation* GetCnameInformation( 108 RTCPUtility::RTCPCnameInformation* GetCnameInformation(
109 uint32_t remoteSSRC) const; 109 uint32_t remoteSSRC) const;
110 110
111 RTCPHelp::RTCPReceiveInformation* CreateReceiveInformation( 111 RTCPHelp::RTCPReceiveInformation* CreateReceiveInformation(
112 uint32_t remoteSSRC); 112 uint32_t remoteSSRC);
113 RTCPHelp::RTCPReceiveInformation* GetReceiveInformation(uint32_t remoteSSRC); 113 RTCPHelp::RTCPReceiveInformation* GetReceiveInformation(uint32_t remoteSSRC);
114 114
115 void UpdateReceiveInformation(
116 RTCPHelp::RTCPReceiveInformation& receiveInformation);
117
118 void HandleSenderReceiverReport( 115 void HandleSenderReceiverReport(
119 RTCPUtility::RTCPParserV2& rtcpParser, 116 RTCPUtility::RTCPParserV2& rtcpParser,
120 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation) 117 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation)
121 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 118 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
122 119
123 void HandleReportBlock( 120 void HandleReportBlock(
124 const RTCPUtility::RTCPPacket& rtcpPacket, 121 const RTCPUtility::RTCPPacket& rtcpPacket,
125 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation, 122 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation,
126 uint32_t remoteSSRC) 123 uint32_t remoteSSRC)
127 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); 124 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver);
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; 305 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_;
309 RtcpPacketTypeCounter packet_type_counter_; 306 RtcpPacketTypeCounter packet_type_counter_;
310 307
311 RTCPUtility::NackStats nack_stats_; 308 RTCPUtility::NackStats nack_stats_;
312 309
313 size_t num_skipped_packets_; 310 size_t num_skipped_packets_;
314 int64_t last_skipped_packets_warning_; 311 int64_t last_skipped_packets_warning_;
315 }; 312 };
316 } // namespace webrtc 313 } // namespace webrtc
317 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ 314 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698