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

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

Issue 2986543002: Remove RtpRtcp::RemoteRTCPStat(RTCPSenderInfo*) as unused (Closed)
Patch Set: rebase Created 3 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 bool LastReceivedXrReferenceTimeInfo(rtcp::ReceiveTimeInfo* info) const; 80 bool LastReceivedXrReferenceTimeInfo(rtcp::ReceiveTimeInfo* info) const;
81 81
82 // Get rtt. 82 // Get rtt.
83 int32_t RTT(uint32_t remote_ssrc, 83 int32_t RTT(uint32_t remote_ssrc,
84 int64_t* last_rtt_ms, 84 int64_t* last_rtt_ms,
85 int64_t* avg_rtt_ms, 85 int64_t* avg_rtt_ms,
86 int64_t* min_rtt_ms, 86 int64_t* min_rtt_ms,
87 int64_t* max_rtt_ms) const; 87 int64_t* max_rtt_ms) const;
88 88
89 int32_t SenderInfoReceived(RTCPSenderInfo* sender_info) const;
90
91 void SetRtcpXrRrtrStatus(bool enable); 89 void SetRtcpXrRrtrStatus(bool enable);
92 bool GetAndResetXrRrRtt(int64_t* rtt_ms); 90 bool GetAndResetXrRrRtt(int64_t* rtt_ms);
93 91
94 // Get statistics. 92 // Get statistics.
95 int32_t StatisticsReceived(std::vector<RTCPReportBlock>* receiveBlocks) const; 93 int32_t StatisticsReceived(std::vector<RTCPReportBlock>* receiveBlocks) const;
96 94
97 // Returns true if we haven't received an RTCP RR for several RTCP 95 // Returns true if we haven't received an RTCP RR for several RTCP
98 // intervals, but only triggers true once. 96 // intervals, but only triggers true once.
99 bool RtcpRrTimeout(int64_t rtcp_interval_ms); 97 bool RtcpRrTimeout(int64_t rtcp_interval_ms);
100 98
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 RtcpIntraFrameObserver* const rtcp_intra_frame_observer_; 213 RtcpIntraFrameObserver* const rtcp_intra_frame_observer_;
216 TransportFeedbackObserver* const transport_feedback_observer_; 214 TransportFeedbackObserver* const transport_feedback_observer_;
217 VideoBitrateAllocationObserver* const bitrate_allocation_observer_; 215 VideoBitrateAllocationObserver* const bitrate_allocation_observer_;
218 216
219 rtc::CriticalSection rtcp_receiver_lock_; 217 rtc::CriticalSection rtcp_receiver_lock_;
220 uint32_t main_ssrc_ GUARDED_BY(rtcp_receiver_lock_); 218 uint32_t main_ssrc_ GUARDED_BY(rtcp_receiver_lock_);
221 uint32_t remote_ssrc_ GUARDED_BY(rtcp_receiver_lock_); 219 uint32_t remote_ssrc_ GUARDED_BY(rtcp_receiver_lock_);
222 std::set<uint32_t> registered_ssrcs_ GUARDED_BY(rtcp_receiver_lock_); 220 std::set<uint32_t> registered_ssrcs_ GUARDED_BY(rtcp_receiver_lock_);
223 221
224 // Received sender report. 222 // Received sender report.
225 RTCPSenderInfo remote_sender_info_; 223 NtpTime remote_sender_ntp_time_ GUARDED_BY(rtcp_receiver_lock_);
224 uint32_t remote_sender_rtp_time_ GUARDED_BY(rtcp_receiver_lock_);
226 // When did we receive the last send report. 225 // When did we receive the last send report.
227 NtpTime last_received_sr_ntp_; 226 NtpTime last_received_sr_ntp_ GUARDED_BY(rtcp_receiver_lock_);
228 227
229 // Received XR receive time report. 228 // Received XR receive time report.
230 rtcp::ReceiveTimeInfo remote_time_info_; 229 rtcp::ReceiveTimeInfo remote_time_info_;
231 // Time when the report was received. 230 // Time when the report was received.
232 NtpTime last_received_xr_ntp_; 231 NtpTime last_received_xr_ntp_;
233 // Estimated rtt, zero when there is no valid estimate. 232 // Estimated rtt, zero when there is no valid estimate.
234 bool xr_rrtr_status_ GUARDED_BY(rtcp_receiver_lock_); 233 bool xr_rrtr_status_ GUARDED_BY(rtcp_receiver_lock_);
235 int64_t xr_rr_rtt_ms_; 234 int64_t xr_rr_rtt_ms_;
236 235
237 int64_t oldest_tmmbr_info_ms_ GUARDED_BY(rtcp_receiver_lock_); 236 int64_t oldest_tmmbr_info_ms_ GUARDED_BY(rtcp_receiver_lock_);
(...skipping 18 matching lines...) Expand all
256 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; 255 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_;
257 RtcpPacketTypeCounter packet_type_counter_; 256 RtcpPacketTypeCounter packet_type_counter_;
258 257
259 RtcpNackStats nack_stats_; 258 RtcpNackStats nack_stats_;
260 259
261 size_t num_skipped_packets_; 260 size_t num_skipped_packets_;
262 int64_t last_skipped_packets_warning_ms_; 261 int64_t last_skipped_packets_warning_ms_;
263 }; 262 };
264 } // namespace webrtc 263 } // namespace webrtc
265 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ 264 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h ('k') | webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698