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 20 matching lines...) Expand all Loading... |
31 public: | 31 public: |
32 RTCPReceiver(Clock* clock, | 32 RTCPReceiver(Clock* clock, |
33 bool receiver_only, | 33 bool receiver_only, |
34 RtcpPacketTypeCounterObserver* packet_type_counter_observer, | 34 RtcpPacketTypeCounterObserver* packet_type_counter_observer, |
35 RtcpBandwidthObserver* rtcp_bandwidth_observer, | 35 RtcpBandwidthObserver* rtcp_bandwidth_observer, |
36 RtcpIntraFrameObserver* rtcp_intra_frame_observer, | 36 RtcpIntraFrameObserver* rtcp_intra_frame_observer, |
37 TransportFeedbackObserver* transport_feedback_observer, | 37 TransportFeedbackObserver* transport_feedback_observer, |
38 ModuleRtpRtcpImpl* owner); | 38 ModuleRtpRtcpImpl* owner); |
39 virtual ~RTCPReceiver(); | 39 virtual ~RTCPReceiver(); |
40 | 40 |
41 RtcpMode Status() const; | |
42 void SetRTCPStatus(RtcpMode method); | |
43 | |
44 int64_t LastReceived(); | 41 int64_t LastReceived(); |
45 int64_t LastReceivedReceiverReport() const; | 42 int64_t LastReceivedReceiverReport() const; |
46 | 43 |
47 void SetSsrcs(uint32_t main_ssrc, | 44 void SetSsrcs(uint32_t main_ssrc, |
48 const std::set<uint32_t>& registered_ssrcs); | 45 const std::set<uint32_t>& registered_ssrcs); |
49 void SetRemoteSSRC(uint32_t ssrc); | 46 void SetRemoteSSRC(uint32_t ssrc); |
50 uint32_t RemoteSSRC() const; | 47 uint32_t RemoteSSRC() const; |
51 | 48 |
52 int32_t IncomingRTCPPacket( | 49 int32_t IncomingRTCPPacket( |
53 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation, | 50 RTCPHelp::RTCPPacketInformation& rtcpPacketInformation, |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 257 |
261 RTCPHelp::RTCPReportBlockInformation* CreateOrGetReportBlockInformation( | 258 RTCPHelp::RTCPReportBlockInformation* CreateOrGetReportBlockInformation( |
262 uint32_t remote_ssrc, uint32_t source_ssrc) | 259 uint32_t remote_ssrc, uint32_t source_ssrc) |
263 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); | 260 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); |
264 RTCPHelp::RTCPReportBlockInformation* GetReportBlockInformation( | 261 RTCPHelp::RTCPReportBlockInformation* GetReportBlockInformation( |
265 uint32_t remote_ssrc, uint32_t source_ssrc) const | 262 uint32_t remote_ssrc, uint32_t source_ssrc) const |
266 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); | 263 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); |
267 | 264 |
268 Clock* const _clock; | 265 Clock* const _clock; |
269 const bool receiver_only_; | 266 const bool receiver_only_; |
270 RtcpMode _method; | |
271 int64_t _lastReceived; | 267 int64_t _lastReceived; |
272 ModuleRtpRtcpImpl& _rtpRtcp; | 268 ModuleRtpRtcpImpl& _rtpRtcp; |
273 | 269 |
274 CriticalSectionWrapper* _criticalSectionFeedbacks; | 270 CriticalSectionWrapper* _criticalSectionFeedbacks; |
275 RtcpBandwidthObserver* const _cbRtcpBandwidthObserver; | 271 RtcpBandwidthObserver* const _cbRtcpBandwidthObserver; |
276 RtcpIntraFrameObserver* const _cbRtcpIntraFrameObserver; | 272 RtcpIntraFrameObserver* const _cbRtcpIntraFrameObserver; |
277 TransportFeedbackObserver* const _cbTransportFeedbackObserver; | 273 TransportFeedbackObserver* const _cbTransportFeedbackObserver; |
278 | 274 |
279 CriticalSectionWrapper* _criticalSectionRTCPReceiver; | 275 CriticalSectionWrapper* _criticalSectionRTCPReceiver; |
280 uint32_t main_ssrc_ GUARDED_BY(_criticalSectionRTCPReceiver); | 276 uint32_t main_ssrc_ GUARDED_BY(_criticalSectionRTCPReceiver); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; | 310 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; |
315 RtcpPacketTypeCounter packet_type_counter_; | 311 RtcpPacketTypeCounter packet_type_counter_; |
316 | 312 |
317 RTCPUtility::NackStats nack_stats_; | 313 RTCPUtility::NackStats nack_stats_; |
318 | 314 |
319 size_t num_skipped_packets_; | 315 size_t num_skipped_packets_; |
320 int64_t last_skipped_packets_warning_; | 316 int64_t last_skipped_packets_warning_; |
321 }; | 317 }; |
322 } // namespace webrtc | 318 } // namespace webrtc |
323 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ | 319 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ |
OLD | NEW |