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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |