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 |
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ |
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <set> | 15 #include <set> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/base/thread_annotations.h" | 18 #include "webrtc/base/thread_annotations.h" |
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 20 #include "webrtc/modules/rtp_rtcp/source/report_block_information.h" |
20 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h" | 21 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver_help.h" |
21 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" | 22 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" |
22 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 23 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
23 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" | 24 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" |
24 #include "webrtc/typedefs.h" | 25 #include "webrtc/typedefs.h" |
25 | 26 |
26 namespace webrtc { | 27 namespace webrtc { |
27 class ModuleRtpRtcpImpl; | 28 class ModuleRtpRtcpImpl; |
28 | 29 |
29 class RTCPReceiver : public TMMBRHelp | 30 class RTCPReceiver : public TMMBRHelp |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 246 |
246 void HandleTransportFeedback( | 247 void HandleTransportFeedback( |
247 RTCPUtility::RTCPParserV2* rtcp_parser, | 248 RTCPUtility::RTCPParserV2* rtcp_parser, |
248 RTCPHelp::RTCPPacketInformation* rtcp_packet_information) | 249 RTCPHelp::RTCPPacketInformation* rtcp_packet_information) |
249 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); | 250 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); |
250 | 251 |
251 private: | 252 private: |
252 typedef std::map<uint32_t, RTCPHelp::RTCPReceiveInformation*> | 253 typedef std::map<uint32_t, RTCPHelp::RTCPReceiveInformation*> |
253 ReceivedInfoMap; | 254 ReceivedInfoMap; |
254 // RTCP report block information mapped by remote SSRC. | 255 // RTCP report block information mapped by remote SSRC. |
255 typedef std::map<uint32_t, RTCPHelp::RTCPReportBlockInformation*> | 256 typedef std::map<uint32_t, rtcp::ReportBlockInformation*> ReportBlockInfoMap; |
256 ReportBlockInfoMap; | |
257 // RTCP report block information map mapped by source SSRC. | 257 // RTCP report block information map mapped by source SSRC. |
258 typedef std::map<uint32_t, ReportBlockInfoMap> ReportBlockMap; | 258 typedef std::map<uint32_t, ReportBlockInfoMap> ReportBlockMap; |
259 | 259 |
260 RTCPHelp::RTCPReportBlockInformation* CreateOrGetReportBlockInformation( | 260 rtcp::ReportBlockInformation* CreateOrGetReportBlockInformation( |
261 uint32_t remote_ssrc, uint32_t source_ssrc) | 261 uint32_t remote_ssrc, |
262 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); | 262 uint32_t source_ssrc) |
263 RTCPHelp::RTCPReportBlockInformation* GetReportBlockInformation( | 263 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); |
264 uint32_t remote_ssrc, uint32_t source_ssrc) const | 264 const rtcp::ReportBlockInformation* GetReportBlockInformation( |
265 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); | 265 uint32_t remote_ssrc, |
| 266 uint32_t source_ssrc) const |
| 267 EXCLUSIVE_LOCKS_REQUIRED(_criticalSectionRTCPReceiver); |
266 | 268 |
267 Clock* const _clock; | 269 Clock* const _clock; |
268 const bool receiver_only_; | 270 const bool receiver_only_; |
269 RtcpMode _method; | 271 RtcpMode _method; |
270 int64_t _lastReceived; | 272 int64_t _lastReceived; |
271 ModuleRtpRtcpImpl& _rtpRtcp; | 273 ModuleRtpRtcpImpl& _rtpRtcp; |
272 | 274 |
273 CriticalSectionWrapper* _criticalSectionFeedbacks; | 275 CriticalSectionWrapper* _criticalSectionFeedbacks; |
274 RtcpBandwidthObserver* const _cbRtcpBandwidthObserver; | 276 RtcpBandwidthObserver* const _cbRtcpBandwidthObserver; |
275 RtcpIntraFrameObserver* const _cbRtcpIntraFrameObserver; | 277 RtcpIntraFrameObserver* const _cbRtcpIntraFrameObserver; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; | 314 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; |
313 RtcpPacketTypeCounter packet_type_counter_; | 315 RtcpPacketTypeCounter packet_type_counter_; |
314 | 316 |
315 RTCPUtility::NackStats nack_stats_; | 317 RTCPUtility::NackStats nack_stats_; |
316 | 318 |
317 size_t num_skipped_packets_; | 319 size_t num_skipped_packets_; |
318 int64_t last_skipped_packets_warning_; | 320 int64_t last_skipped_packets_warning_; |
319 }; | 321 }; |
320 } // namespace webrtc | 322 } // namespace webrtc |
321 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ | 323 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ |
OLD | NEW |