| 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_HELP_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ |
| 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ |
| 13 | 13 |
| 14 #include <map> | 14 #include <map> |
| 15 #include <memory> | |
| 16 #include <vector> | 15 #include <vector> |
| 17 | 16 |
| 18 #include "webrtc/base/constructormagic.h" | |
| 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 20 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" | 18 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" |
| 21 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
| 22 | 20 |
| 23 namespace webrtc { | 21 namespace webrtc { |
| 24 namespace rtcp { | |
| 25 class TransportFeedback; | |
| 26 } | |
| 27 namespace RTCPHelp { | 22 namespace RTCPHelp { |
| 28 | 23 |
| 29 class RTCPReportBlockInformation { | 24 class RTCPReportBlockInformation { |
| 30 public: | 25 public: |
| 31 RTCPReportBlockInformation(); | 26 RTCPReportBlockInformation(); |
| 32 ~RTCPReportBlockInformation(); | 27 ~RTCPReportBlockInformation(); |
| 33 | 28 |
| 34 // Statistics | 29 // Statistics |
| 35 RTCPReportBlock remoteReceiveBlock; | 30 RTCPReportBlock remoteReceiveBlock; |
| 36 uint32_t remoteMaxJitter; | 31 uint32_t remoteMaxJitter; |
| 37 | 32 |
| 38 // RTT | 33 // RTT |
| 39 int64_t RTT; | 34 int64_t RTT; |
| 40 int64_t minRTT; | 35 int64_t minRTT; |
| 41 int64_t maxRTT; | 36 int64_t maxRTT; |
| 42 int64_t avgRTT; | 37 int64_t avgRTT; |
| 43 uint32_t numAverageCalcs; | 38 uint32_t numAverageCalcs; |
| 44 }; | 39 }; |
| 45 | 40 |
| 46 class RTCPPacketInformation { | |
| 47 public: | |
| 48 RTCPPacketInformation(); | |
| 49 ~RTCPPacketInformation(); | |
| 50 | |
| 51 void AddReportInfo(const RTCPReportBlockInformation& report_block_info); | |
| 52 | |
| 53 uint32_t rtcpPacketTypeFlags; // RTCPPacketTypeFlags bit field | |
| 54 uint32_t remoteSSRC; | |
| 55 | |
| 56 std::vector<uint16_t> nackSequenceNumbers; | |
| 57 | |
| 58 ReportBlockList report_blocks; | |
| 59 int64_t rtt; | |
| 60 | |
| 61 uint8_t sliPictureId; | |
| 62 uint64_t rpsiPictureId; | |
| 63 uint32_t receiverEstimatedMaxBitrate; | |
| 64 | |
| 65 uint32_t ntp_secs; | |
| 66 uint32_t ntp_frac; | |
| 67 uint32_t rtp_timestamp; | |
| 68 | |
| 69 uint32_t xr_originator_ssrc; | |
| 70 bool xr_dlrr_item; | |
| 71 | |
| 72 std::unique_ptr<rtcp::TransportFeedback> transport_feedback_; | |
| 73 | |
| 74 private: | |
| 75 RTC_DISALLOW_COPY_AND_ASSIGN(RTCPPacketInformation); | |
| 76 }; | |
| 77 | |
| 78 class RTCPReceiveInformation { | 41 class RTCPReceiveInformation { |
| 79 public: | 42 public: |
| 80 RTCPReceiveInformation(); | 43 RTCPReceiveInformation(); |
| 81 ~RTCPReceiveInformation(); | 44 ~RTCPReceiveInformation(); |
| 82 | 45 |
| 83 void InsertTmmbrItem(uint32_t sender_ssrc, | 46 void InsertTmmbrItem(uint32_t sender_ssrc, |
| 84 const rtcp::TmmbItem& tmmbr_item, | 47 const rtcp::TmmbItem& tmmbr_item, |
| 85 int64_t current_time_ms); | 48 int64_t current_time_ms); |
| 86 | 49 |
| 87 void GetTmmbrSet(int64_t current_time_ms, | 50 void GetTmmbrSet(int64_t current_time_ms, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 104 int64_t last_updated_ms; | 67 int64_t last_updated_ms; |
| 105 }; | 68 }; |
| 106 | 69 |
| 107 std::map<uint32_t, TimedTmmbrItem> tmmbr_; | 70 std::map<uint32_t, TimedTmmbrItem> tmmbr_; |
| 108 }; | 71 }; |
| 109 | 72 |
| 110 } // end namespace RTCPHelp | 73 } // end namespace RTCPHelp |
| 111 } // namespace webrtc | 74 } // namespace webrtc |
| 112 | 75 |
| 113 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ | 76 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ |
| OLD | NEW |