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

Unified Diff: webrtc/modules/rtp_rtcp/source/tmmbr_help.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/tmmbr_help.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/source/tmmbr_help.cc
diff --git a/webrtc/modules/rtp_rtcp/source/tmmbr_help.cc b/webrtc/modules/rtp_rtcp/source/tmmbr_help.cc
index af9509089240fc59ff969ea86a210fd991178d32..43d3a82ab28b3f0570d43873b75e96b8f112c479 100644
--- a/webrtc/modules/rtp_rtcp/source/tmmbr_help.cc
+++ b/webrtc/modules/rtp_rtcp/source/tmmbr_help.cc
@@ -69,7 +69,6 @@ void TMMBRSet::ClearEntry(uint32_t idx) {
TMMBRHelp::TMMBRHelp()
: _candidateSet(),
_boundingSet(),
- _boundingSetToSend(),
_ptrIntersectionBoundingSet(NULL),
_ptrMaxPRBoundingSet(NULL) {
}
@@ -105,39 +104,6 @@ TMMBRSet* TMMBRHelp::BoundingSet() {
return &_boundingSet;
}
-int32_t
-TMMBRHelp::SetTMMBRBoundingSetToSend(const TMMBRSet* boundingSetToSend)
-{
- rtc::CritScope lock(&_criticalSection);
-
- if (boundingSetToSend == NULL)
- {
- _boundingSetToSend.clearSet();
- return 0;
- }
-
- VerifyAndAllocateBoundingSetToSend(boundingSetToSend->lengthOfSet());
- _boundingSetToSend.clearSet();
- for (uint32_t i = 0; i < boundingSetToSend->lengthOfSet(); i++)
- {
- // cap at our configured max bitrate
- uint32_t bitrate = boundingSetToSend->Tmmbr(i);
- _boundingSetToSend.SetEntry(i, bitrate,
- boundingSetToSend->PacketOH(i),
- boundingSetToSend->Ssrc(i));
- }
- return 0;
-}
-
-int32_t
-TMMBRHelp::VerifyAndAllocateBoundingSetToSend(uint32_t minimumSize)
-{
- rtc::CritScope lock(&_criticalSection);
-
- _boundingSetToSend.VerifyAndAllocateSet(minimumSize);
- return 0;
-}
-
TMMBRSet*
TMMBRHelp::VerifyAndAllocateCandidateSet(uint32_t minimumSize)
{
@@ -153,12 +119,6 @@ TMMBRHelp::CandidateSet()
return &_candidateSet;
}
-TMMBRSet*
-TMMBRHelp::BoundingSetToSend()
-{
- return &_boundingSetToSend;
-}
-
int32_t
TMMBRHelp::FindTMMBRBoundingSet(TMMBRSet*& boundingSet)
{
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/tmmbr_help.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698