Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: webrtc/modules/rtp_rtcp/source/tmmbr_help.h

Issue 1746773002: [rtp_rtcp] tmmbr helper simplified by moving set_to_send member out (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: feedback Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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);
79
80 int32_t FindTMMBRBoundingSet(int32_t numCandidates, TMMBRSet& candidateSet); 76 int32_t FindTMMBRBoundingSet(int32_t numCandidates, TMMBRSet& candidateSet);
81 77
82 private: 78 private:
83 rtc::CriticalSection _criticalSection; 79 rtc::CriticalSection _criticalSection;
84 TMMBRSet _candidateSet; 80 TMMBRSet _candidateSet;
85 TMMBRSet _boundingSet; 81 TMMBRSet _boundingSet;
86 TMMBRSet _boundingSetToSend;
87 82
88 float* _ptrIntersectionBoundingSet; 83 float* _ptrIntersectionBoundingSet;
89 float* _ptrMaxPRBoundingSet; 84 float* _ptrMaxPRBoundingSet;
90 }; 85 };
91 } // namespace webrtc 86 } // namespace webrtc
92 87
93 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ 88 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc ('k') | webrtc/modules/rtp_rtcp/source/tmmbr_help.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698