| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Remove one entry from table, and move all others down. | 38 // Remove one entry from table, and move all others down. |
| 39 void RemoveEntry(uint32_t sourceIdx); | 39 void RemoveEntry(uint32_t sourceIdx); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 class TMMBRHelp { | 42 class TMMBRHelp { |
| 43 public: | 43 public: |
| 44 TMMBRSet* CandidateSet(); | 44 TMMBRSet* CandidateSet(); |
| 45 | 45 |
| 46 TMMBRSet* VerifyAndAllocateCandidateSet(const uint32_t minimumSize); | 46 TMMBRSet* VerifyAndAllocateCandidateSet(const uint32_t minimumSize); |
| 47 int32_t FindTMMBRBoundingSet(TMMBRSet*& boundingSet); | 47 std::vector<rtcp::TmmbItem> FindTMMBRBoundingSet(); |
| 48 | 48 |
| 49 bool IsOwner(const uint32_t ssrc, const uint32_t length) const; | 49 static bool IsOwner(const std::vector<rtcp::TmmbItem>& bounding, |
| 50 uint32_t ssrc); |
| 50 | 51 |
| 51 bool CalcMinBitRate(uint32_t* minBitrateKbit) const; | 52 bool CalcMinBitRate(uint32_t* minBitrateKbit) const; |
| 52 | 53 |
| 53 static void FindBoundingSet(std::vector<rtcp::TmmbItem> candidates, | 54 static void FindBoundingSet(std::vector<rtcp::TmmbItem> candidates, |
| 54 std::vector<rtcp::TmmbItem>* bounding_set); | 55 std::vector<rtcp::TmmbItem>* bounding_set); |
| 55 | 56 |
| 56 private: | 57 private: |
| 57 TMMBRSet _candidateSet; | 58 TMMBRSet _candidateSet; |
| 58 TMMBRSet _boundingSet; | |
| 59 }; | 59 }; |
| 60 } // namespace webrtc | 60 } // namespace webrtc |
| 61 | 61 |
| 62 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ | 62 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ |
| OLD | NEW |