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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 ~RTCPReceiveInformation(); | 102 ~RTCPReceiveInformation(); |
103 | 103 |
104 void VerifyAndAllocateBoundingSet(const uint32_t minimumSize); | 104 void VerifyAndAllocateBoundingSet(const uint32_t minimumSize); |
105 void VerifyAndAllocateTMMBRSet(const uint32_t minimumSize); | 105 void VerifyAndAllocateTMMBRSet(const uint32_t minimumSize); |
106 | 106 |
107 void InsertTMMBRItem(const uint32_t senderSSRC, | 107 void InsertTMMBRItem(const uint32_t senderSSRC, |
108 const RTCPUtility::RTCPPacketRTPFBTMMBRItem& TMMBRItem, | 108 const RTCPUtility::RTCPPacketRTPFBTMMBRItem& TMMBRItem, |
109 const int64_t currentTimeMS); | 109 const int64_t currentTimeMS); |
110 | 110 |
111 // get | 111 // get |
112 int32_t GetTMMBRSet(const uint32_t sourceIdx, | 112 void GetTMMBRSet(int64_t current_time_ms, |
113 const uint32_t targetIdx, | 113 std::vector<rtcp::TmmbItem>* candidates); |
114 TMMBRSet* candidateSet, | |
115 const int64_t currentTimeMS); | |
116 | 114 |
117 int64_t lastTimeReceived; | 115 int64_t lastTimeReceived; |
118 | 116 |
119 // FIR | 117 // FIR |
120 int32_t lastFIRSequenceNumber; | 118 int32_t lastFIRSequenceNumber; |
121 int64_t lastFIRRequest; | 119 int64_t lastFIRRequest; |
122 | 120 |
123 // TMMBN | 121 // TMMBN |
124 TMMBRSet TmmbnBoundingSet; | 122 TMMBRSet TmmbnBoundingSet; |
125 | 123 |
126 // TMMBR | 124 // TMMBR |
127 TMMBRSet TmmbrSet; | 125 TMMBRSet TmmbrSet; |
128 | 126 |
129 bool readyForDelete; | 127 bool readyForDelete; |
130 private: | 128 private: |
131 std::vector<int64_t> _tmmbrSetTimeouts; | 129 std::vector<int64_t> _tmmbrSetTimeouts; |
132 }; | 130 }; |
133 | 131 |
134 } // end namespace RTCPHelp | 132 } // end namespace RTCPHelp |
135 } // namespace webrtc | 133 } // namespace webrtc |
136 | 134 |
137 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ | 135 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_HELP_H_ |
OLD | NEW |