Clean up TMMBR handling.
Review URL: https://webrtc-codereview.appspot.com/465001
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1961 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/src/modules/rtp_rtcp/source/tmmbr_help.h b/src/modules/rtp_rtcp/source/tmmbr_help.h
index 35704fe..b0fb69f 100644
--- a/src/modules/rtp_rtcp/source/tmmbr_help.h
+++ b/src/modules/rtp_rtcp/source/tmmbr_help.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
+ * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@@ -38,7 +38,7 @@
class TMMBRHelp
{
public:
- TMMBRHelp(const bool audio);
+ TMMBRHelp();
virtual ~TMMBRHelp();
TMMBRSet* BoundingSet(); // used for debuging
@@ -47,16 +47,14 @@
TMMBRSet* VerifyAndAllocateCandidateSet(const WebRtc_UWord32 minimumSize);
WebRtc_Word32 FindTMMBRBoundingSet(TMMBRSet*& boundingSet);
- WebRtc_Word32 SetTMMBRBoundingSetToSend(const TMMBRSet* boundingSetToSend,
- const WebRtc_UWord32 maxBitrateKbit);
+ WebRtc_Word32 SetTMMBRBoundingSetToSend(
+ const TMMBRSet* boundingSetToSend,
+ const WebRtc_UWord32 maxBitrateKbit);
- bool IsOwner(const WebRtc_UWord32 ssrc,
- const WebRtc_UWord32 length) const;
+ bool IsOwner(const WebRtc_UWord32 ssrc, const WebRtc_UWord32 length) const;
- WebRtc_Word32 CalcMinMaxBitRate(const WebRtc_UWord32 totalPacketRate,
- const WebRtc_UWord32 lengthOfBoundingSet,
- WebRtc_UWord32& minBitrateKbit,
- WebRtc_UWord32& maxBitrateKbit) const;
+ WebRtc_Word32 CalcMinBitRate(const WebRtc_UWord32 lengthOfBoundingSet,
+ WebRtc_UWord32* minBitrateKbit) const;
protected:
TMMBRSet* VerifyAndAllocateBoundingSet(WebRtc_UWord32 minimumSize);
@@ -66,7 +64,6 @@
private:
CriticalSectionWrapper* _criticalSection;
- const bool _audio;
TMMBRSet _candidateSet;
TMMBRSet _boundingSet;
TMMBRSet _boundingSetToSend;