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

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

Issue 2258523005: Style cleanup in UpdateTmmbr: (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: . 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Returns true if we haven't received an RTCP RR for several RTCP 81 // Returns true if we haven't received an RTCP RR for several RTCP
82 // intervals, but only triggers true once. 82 // intervals, but only triggers true once.
83 bool RtcpRrTimeout(int64_t rtcp_interval_ms); 83 bool RtcpRrTimeout(int64_t rtcp_interval_ms);
84 84
85 // Returns true if we haven't received an RTCP RR telling the receive side 85 // Returns true if we haven't received an RTCP RR telling the receive side
86 // has not received RTP packets for too long, i.e. extended highest sequence 86 // has not received RTP packets for too long, i.e. extended highest sequence
87 // number hasn't increased for several RTCP intervals. The function only 87 // number hasn't increased for several RTCP intervals. The function only
88 // returns true once until a new RR is received. 88 // returns true once until a new RR is received.
89 bool RtcpRrSequenceNumberTimeout(int64_t rtcp_interval_ms); 89 bool RtcpRrSequenceNumberTimeout(int64_t rtcp_interval_ms);
90 90
91 // Get TMMBR 91 std::vector<rtcp::TmmbItem> TmmbrReceived() const;
92 std::vector<rtcp::TmmbItem> TMMBRReceived() const;
93 92
94 bool UpdateRTCPReceiveInformationTimers(); 93 bool UpdateRTCPReceiveInformationTimers();
95 94
96 std::vector<rtcp::TmmbItem> BoundingSet(bool* tmmbr_owner); 95 std::vector<rtcp::TmmbItem> BoundingSet(bool* tmmbr_owner);
97 96
98 int32_t UpdateTMMBR(); 97 void UpdateTmmbr();
99 98
100 void RegisterRtcpStatisticsCallback(RtcpStatisticsCallback* callback); 99 void RegisterRtcpStatisticsCallback(RtcpStatisticsCallback* callback);
101 RtcpStatisticsCallback* GetRtcpStatisticsCallback(); 100 RtcpStatisticsCallback* GetRtcpStatisticsCallback();
102 101
103 protected: 102 protected:
104 RTCPUtility::RTCPCnameInformation* CreateCnameInformation( 103 RTCPUtility::RTCPCnameInformation* CreateCnameInformation(
105 uint32_t remoteSSRC); 104 uint32_t remoteSSRC);
106 RTCPUtility::RTCPCnameInformation* GetCnameInformation( 105 RTCPUtility::RTCPCnameInformation* GetCnameInformation(
107 uint32_t remoteSSRC) const; 106 uint32_t remoteSSRC) const;
108 107
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; 302 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_;
304 RtcpPacketTypeCounter packet_type_counter_; 303 RtcpPacketTypeCounter packet_type_counter_;
305 304
306 RTCPUtility::NackStats nack_stats_; 305 RTCPUtility::NackStats nack_stats_;
307 306
308 size_t num_skipped_packets_; 307 size_t num_skipped_packets_;
309 int64_t last_skipped_packets_warning_; 308 int64_t last_skipped_packets_warning_;
310 }; 309 };
311 } // namespace webrtc 310 } // namespace webrtc
312 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ 311 #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