Chromium Code Reviews| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 class TMMBRHelp | 58 class TMMBRHelp |
| 59 { | 59 { |
| 60 public: | 60 public: |
| 61 TMMBRHelp(); | 61 TMMBRHelp(); |
| 62 virtual ~TMMBRHelp(); | 62 virtual ~TMMBRHelp(); |
| 63 | 63 |
| 64 TMMBRSet* BoundingSet(); // used for debuging | 64 TMMBRSet* BoundingSet(); // used for debuging |
| 65 TMMBRSet* CandidateSet(); | 65 TMMBRSet* CandidateSet(); |
| 66 TMMBRSet* BoundingSetToSend(); | |
| 67 | 66 |
| 68 TMMBRSet* VerifyAndAllocateCandidateSet(const uint32_t minimumSize); | 67 TMMBRSet* VerifyAndAllocateCandidateSet(const uint32_t minimumSize); |
| 69 int32_t FindTMMBRBoundingSet(TMMBRSet*& boundingSet); | 68 int32_t FindTMMBRBoundingSet(TMMBRSet*& boundingSet); |
| 70 int32_t SetTMMBRBoundingSetToSend(const TMMBRSet* boundingSetToSend); | |
| 71 | 69 |
| 72 bool IsOwner(const uint32_t ssrc, const uint32_t length) const; | 70 bool IsOwner(const uint32_t ssrc, const uint32_t length) const; |
| 73 | 71 |
| 74 bool CalcMinBitRate(uint32_t* minBitrateKbit) const; | 72 bool CalcMinBitRate(uint32_t* minBitrateKbit) const; |
| 75 | 73 |
| 76 protected: | 74 protected: |
| 77 TMMBRSet* VerifyAndAllocateBoundingSet(uint32_t minimumSize); | 75 TMMBRSet* VerifyAndAllocateBoundingSet(uint32_t minimumSize); |
| 78 int32_t VerifyAndAllocateBoundingSetToSend(uint32_t minimumSize); | 76 int32_t VerifyAndAllocateBoundingSetToSend(uint32_t minimumSize); |
|
åsapersson
2016/05/09 15:57:11
can this be removed?
danilchap
2016/05/09 16:06:26
oops, Removed.
| |
| 79 | 77 |
| 80 int32_t FindTMMBRBoundingSet(int32_t numCandidates, TMMBRSet& candidateSet); | 78 int32_t FindTMMBRBoundingSet(int32_t numCandidates, TMMBRSet& candidateSet); |
| 81 | 79 |
| 82 private: | 80 private: |
| 83 rtc::CriticalSection _criticalSection; | 81 rtc::CriticalSection _criticalSection; |
| 84 TMMBRSet _candidateSet; | 82 TMMBRSet _candidateSet; |
| 85 TMMBRSet _boundingSet; | 83 TMMBRSet _boundingSet; |
| 86 TMMBRSet _boundingSetToSend; | |
| 87 | 84 |
| 88 float* _ptrIntersectionBoundingSet; | 85 float* _ptrIntersectionBoundingSet; |
| 89 float* _ptrMaxPRBoundingSet; | 86 float* _ptrMaxPRBoundingSet; |
| 90 }; | 87 }; |
| 91 } // namespace webrtc | 88 } // namespace webrtc |
| 92 | 89 |
| 93 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ | 90 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ |
| OLD | NEW |