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

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

Issue 1989363006: TMMBRHelp::FindBoundingSet function cleaned (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: change function signature and remove now unused functions 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 29 matching lines...) Expand all
40 uint32_t tmmbrSet, 40 uint32_t tmmbrSet,
41 uint32_t packetOHSet, 41 uint32_t packetOHSet,
42 uint32_t ssrcSet); 42 uint32_t ssrcSet);
43 43
44 void AddEntry(uint32_t tmmbrSet, 44 void AddEntry(uint32_t tmmbrSet,
45 uint32_t packetOHSet, 45 uint32_t packetOHSet,
46 uint32_t ssrcSet); 46 uint32_t ssrcSet);
47 47
48 // Remove one entry from table, and move all others down. 48 // Remove one entry from table, and move all others down.
49 void RemoveEntry(uint32_t sourceIdx); 49 void RemoveEntry(uint32_t sourceIdx);
50
51 void SwapEntries(uint32_t firstIdx,
52 uint32_t secondIdx);
53
54 // Set entry data to zero, but keep it in table.
55 void ClearEntry(uint32_t idx);
56 }; 50 };
57 51
58 class TMMBRHelp 52 class TMMBRHelp
59 { 53 {
60 public: 54 public:
61 TMMBRHelp(); 55 TMMBRHelp() {}
62 virtual ~TMMBRHelp(); 56 ~TMMBRHelp() {}
63 57
64 TMMBRSet* BoundingSet(); // used for debuging
65 TMMBRSet* CandidateSet(); 58 TMMBRSet* CandidateSet();
66 59
67 TMMBRSet* VerifyAndAllocateCandidateSet(const uint32_t minimumSize); 60 TMMBRSet* VerifyAndAllocateCandidateSet(const uint32_t minimumSize);
68 int32_t FindTMMBRBoundingSet(TMMBRSet*& boundingSet); 61 int32_t FindTMMBRBoundingSet(TMMBRSet*& boundingSet);
69 62
70 bool IsOwner(const uint32_t ssrc, const uint32_t length) const; 63 bool IsOwner(const uint32_t ssrc, const uint32_t length) const;
71 64
72 bool CalcMinBitRate(uint32_t* minBitrateKbit) const; 65 bool CalcMinBitRate(uint32_t* minBitrateKbit) const;
73 66
74 protected: 67 static void FindBoundingSet(std::vector<rtcp::TmmbItem> candidates,
75 TMMBRSet* VerifyAndAllocateBoundingSet(uint32_t minimumSize); 68 std::vector<rtcp::TmmbItem>* bounding_set);
76 int32_t FindTMMBRBoundingSet(int32_t numCandidates, TMMBRSet& candidateSet);
77 69
78 private: 70 private:
79 rtc::CriticalSection _criticalSection; 71 rtc::CriticalSection _criticalSection;
80 TMMBRSet _candidateSet; 72 TMMBRSet _candidateSet;
81 TMMBRSet _boundingSet; 73 TMMBRSet _boundingSet;
82
83 float* _ptrIntersectionBoundingSet;
84 float* _ptrMaxPRBoundingSet;
85 }; 74 };
86 } // namespace webrtc 75 } // namespace webrtc
87 76
88 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ 77 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/tmmbr_help.cc » ('j') | webrtc/modules/rtp_rtcp/source/tmmbr_help.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698