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

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

Issue 2224933002: Cleaned out boundingSet member from TMMBRHelp class (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: nit from presubmit Created 4 years, 4 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 26 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtcp_sender.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