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

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

Issue 1877253002: Replaced CriticalSectionWrapper with rtc::CriticalSection in rtp_rtcp module (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: git cl format dtmf_queue.cc Created 4 years, 8 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
11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ 11 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_
12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ 12 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_
13 13
14 #include <vector> 14 #include <vector>
15 #include "webrtc/base/criticalsection.h"
15 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmb_item.h" 16 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmb_item.h"
16 #include "webrtc/system_wrappers/include/critical_section_wrapper.h"
17 #include "webrtc/typedefs.h" 17 #include "webrtc/typedefs.h"
18 18
19 namespace webrtc { 19 namespace webrtc {
20 class TMMBRSet : public std::vector<rtcp::TmmbItem> 20 class TMMBRSet : public std::vector<rtcp::TmmbItem>
21 { 21 {
22 public: 22 public:
23 void VerifyAndAllocateSet(uint32_t minimumSize); 23 void VerifyAndAllocateSet(uint32_t minimumSize);
24 void VerifyAndAllocateSetKeepingData(uint32_t minimumSize); 24 void VerifyAndAllocateSetKeepingData(uint32_t minimumSize);
25 // Number of valid data items in set. 25 // Number of valid data items in set.
26 uint32_t lengthOfSet() const { return size(); } 26 uint32_t lengthOfSet() const { return size(); }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 bool CalcMinBitRate(uint32_t* minBitrateKbit) const; 74 bool CalcMinBitRate(uint32_t* minBitrateKbit) const;
75 75
76 protected: 76 protected:
77 TMMBRSet* VerifyAndAllocateBoundingSet(uint32_t minimumSize); 77 TMMBRSet* VerifyAndAllocateBoundingSet(uint32_t minimumSize);
78 int32_t VerifyAndAllocateBoundingSetToSend(uint32_t minimumSize); 78 int32_t VerifyAndAllocateBoundingSetToSend(uint32_t minimumSize);
79 79
80 int32_t FindTMMBRBoundingSet(int32_t numCandidates, TMMBRSet& candidateSet); 80 int32_t FindTMMBRBoundingSet(int32_t numCandidates, TMMBRSet& candidateSet);
81 81
82 private: 82 private:
83 CriticalSectionWrapper* _criticalSection; 83 rtc::CriticalSection _criticalSection;
84 TMMBRSet _candidateSet; 84 TMMBRSet _candidateSet;
85 TMMBRSet _boundingSet; 85 TMMBRSet _boundingSet;
86 TMMBRSet _boundingSetToSend; 86 TMMBRSet _boundingSetToSend;
87 87
88 float* _ptrIntersectionBoundingSet; 88 float* _ptrIntersectionBoundingSet;
89 float* _ptrMaxPRBoundingSet; 89 float* _ptrMaxPRBoundingSet;
90 }; 90 };
91 } // namespace webrtc 91 } // namespace webrtc
92 92
93 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_ 93 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_TMMBR_HELP_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_sender_video.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