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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 public: | 80 public: |
81 TMMBRHelp(); | 81 TMMBRHelp(); |
82 virtual ~TMMBRHelp(); | 82 virtual ~TMMBRHelp(); |
83 | 83 |
84 TMMBRSet* BoundingSet(); // used for debuging | 84 TMMBRSet* BoundingSet(); // used for debuging |
85 TMMBRSet* CandidateSet(); | 85 TMMBRSet* CandidateSet(); |
86 TMMBRSet* BoundingSetToSend(); | 86 TMMBRSet* BoundingSetToSend(); |
87 | 87 |
88 TMMBRSet* VerifyAndAllocateCandidateSet(const uint32_t minimumSize); | 88 TMMBRSet* VerifyAndAllocateCandidateSet(const uint32_t minimumSize); |
89 int32_t FindTMMBRBoundingSet(TMMBRSet*& boundingSet); | 89 int32_t FindTMMBRBoundingSet(TMMBRSet*& boundingSet); |
90 int32_t SetTMMBRBoundingSetToSend( | 90 int32_t SetTMMBRBoundingSetToSend(const TMMBRSet* boundingSetToSend); |
91 const TMMBRSet* boundingSetToSend, | |
92 const uint32_t maxBitrateKbit); | |
93 | 91 |
94 bool IsOwner(const uint32_t ssrc, const uint32_t length) const; | 92 bool IsOwner(const uint32_t ssrc, const uint32_t length) const; |
95 | 93 |
96 bool CalcMinBitRate(uint32_t* minBitrateKbit) const; | 94 bool CalcMinBitRate(uint32_t* minBitrateKbit) const; |
97 | 95 |
98 protected: | 96 protected: |
99 TMMBRSet* VerifyAndAllocateBoundingSet(uint32_t minimumSize); | 97 TMMBRSet* VerifyAndAllocateBoundingSet(uint32_t minimumSize); |
100 int32_t VerifyAndAllocateBoundingSetToSend(uint32_t minimumSize); | 98 int32_t VerifyAndAllocateBoundingSetToSend(uint32_t minimumSize); |
101 | 99 |
102 int32_t FindTMMBRBoundingSet(int32_t numCandidates, TMMBRSet& candidateSet); | 100 int32_t FindTMMBRBoundingSet(int32_t numCandidates, TMMBRSet& candidateSet); |
103 | 101 |
104 private: | 102 private: |
105 CriticalSectionWrapper* _criticalSection; | 103 CriticalSectionWrapper* _criticalSection; |
106 TMMBRSet _candidateSet; | 104 TMMBRSet _candidateSet; |
107 TMMBRSet _boundingSet; | 105 TMMBRSet _boundingSet; |
108 TMMBRSet _boundingSetToSend; | 106 TMMBRSet _boundingSetToSend; |
109 | 107 |
110 float* _ptrIntersectionBoundingSet; | 108 float* _ptrIntersectionBoundingSet; |
111 float* _ptrMaxPRBoundingSet; | 109 float* _ptrMaxPRBoundingSet; |
112 }; | 110 }; |
113 } // namespace webrtc | 111 } // namespace webrtc |
114 | 112 |
115 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ | 113 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ |
OLD | NEW |