| 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 <list> | 14 #include <list> |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/base/constructormagic.h" | 18 #include "webrtc/base/constructormagic.h" |
| 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" // RTCPReportBloc
k | 19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
| 20 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" | |
| 21 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" | 20 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" |
| 22 #include "webrtc/typedefs.h" | 21 #include "webrtc/typedefs.h" |
| 23 | 22 |
| 24 namespace webrtc { | 23 namespace webrtc { |
| 25 namespace rtcp { | 24 namespace rtcp { |
| 26 class TransportFeedback; | 25 class TransportFeedback; |
| 27 } | 26 } |
| 28 namespace RTCPHelp | 27 namespace RTCPHelp |
| 29 { | 28 { |
| 30 | 29 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 uint32_t xr_originator_ssrc; | 87 uint32_t xr_originator_ssrc; |
| 89 bool xr_dlrr_item; | 88 bool xr_dlrr_item; |
| 90 std::unique_ptr<RTCPVoIPMetric> VoIPMetric; | 89 std::unique_ptr<RTCPVoIPMetric> VoIPMetric; |
| 91 | 90 |
| 92 std::unique_ptr<rtcp::TransportFeedback> transport_feedback_; | 91 std::unique_ptr<rtcp::TransportFeedback> transport_feedback_; |
| 93 | 92 |
| 94 private: | 93 private: |
| 95 RTC_DISALLOW_COPY_AND_ASSIGN(RTCPPacketInformation); | 94 RTC_DISALLOW_COPY_AND_ASSIGN(RTCPPacketInformation); |
| 96 }; | 95 }; |
| 97 | 96 |
| 98 class RTCPReceiveInformation | 97 class RTCPReceiveInformation { |
| 99 { | 98 public: |
| 100 public: | 99 RTCPReceiveInformation(); |
| 101 RTCPReceiveInformation(); | 100 ~RTCPReceiveInformation(); |
| 102 ~RTCPReceiveInformation(); | |
| 103 | 101 |
| 104 void VerifyAndAllocateBoundingSet(const uint32_t minimumSize); | 102 void InsertTmmbrItem(uint32_t sender_ssrc, |
| 105 void VerifyAndAllocateTMMBRSet(const uint32_t minimumSize); | 103 const rtcp::TmmbItem& tmmbr_item, |
| 104 int64_t current_time_ms); |
| 106 | 105 |
| 107 void InsertTMMBRItem(const uint32_t senderSSRC, | 106 void GetTmmbrSet(int64_t current_time_ms, |
| 108 const RTCPUtility::RTCPPacketRTPFBTMMBRItem& TMMBRItem, | 107 std::vector<rtcp::TmmbItem>* candidates); |
| 109 const int64_t currentTimeMS); | |
| 110 | 108 |
| 111 // get | 109 void ClearTmmbr(); |
| 112 void GetTMMBRSet(int64_t current_time_ms, | |
| 113 std::vector<rtcp::TmmbItem>* candidates); | |
| 114 | 110 |
| 115 int64_t lastTimeReceived; | 111 int64_t last_time_received_ms = 0; |
| 116 | 112 |
| 117 // FIR | 113 int32_t last_fir_sequence_number = -1; |
| 118 int32_t lastFIRSequenceNumber; | 114 int64_t last_fir_request_ms = 0; |
| 119 int64_t lastFIRRequest; | |
| 120 | 115 |
| 121 // TMMBN | 116 bool ready_for_delete = false; |
| 122 TMMBRSet TmmbnBoundingSet; | |
| 123 | 117 |
| 124 // TMMBR | 118 std::vector<rtcp::TmmbItem> tmmbn; |
| 125 TMMBRSet TmmbrSet; | |
| 126 | 119 |
| 127 bool readyForDelete; | 120 private: |
| 128 private: | 121 struct TimedTmmbrItem { |
| 129 std::vector<int64_t> _tmmbrSetTimeouts; | 122 rtcp::TmmbItem tmmbr_item; |
| 123 int64_t last_updated_ms; |
| 124 }; |
| 125 |
| 126 std::vector<TimedTmmbrItem> tmmbr_; |
| 130 }; | 127 }; |
| 131 | 128 |
| 132 } // end namespace RTCPHelp | 129 } // end namespace RTCPHelp |
| 133 } // namespace webrtc | 130 } // namespace webrtc |
| 134 | 131 |
| 135 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ | 132 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ |
| OLD | NEW |