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

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

Issue 2254703003: Remove TMMBRSet class (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Feedback 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 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 7c29ed8776a786751f7aeca6daa40f5687f122c3..7c99091254415c767a8045151b95102171ffd081 100644
--- a/webrtc/modules/rtp_rtcp/source/tmmbr_help.cc
+++ b/webrtc/modules/rtp_rtcp/source/tmmbr_help.cc
@@ -16,40 +16,6 @@
#include "webrtc/base/checks.h"
namespace webrtc {
-void TMMBRSet::VerifyAndAllocateSet(uint32_t minimumSize) {
- clear();
- reserve(minimumSize);
-}
-
-void TMMBRSet::VerifyAndAllocateSetKeepingData(uint32_t minimumSize) {
- reserve(minimumSize);
-}
-
-void TMMBRSet::SetEntry(unsigned int i,
- uint32_t tmmbrSet,
- uint32_t packetOHSet,
- uint32_t ssrcSet) {
- RTC_DCHECK_LT(i, capacity());
- if (i >= size()) {
- resize(i + 1);
- }
- (*this)[i].set_bitrate_bps(tmmbrSet * 1000);
- (*this)[i].set_packet_overhead(packetOHSet);
- (*this)[i].set_ssrc(ssrcSet);
-}
-
-void TMMBRSet::AddEntry(uint32_t tmmbrSet,
- uint32_t packetOHSet,
- uint32_t ssrcSet) {
- RTC_DCHECK_LT(size(), capacity());
- SetEntry(size(), tmmbrSet, packetOHSet, ssrcSet);
-}
-
-void TMMBRSet::RemoveEntry(uint32_t sourceIdx) {
- RTC_DCHECK_LT(sourceIdx, size());
- erase(begin() + sourceIdx);
-}
-
std::vector<rtcp::TmmbItem> TMMBRHelp::FindBoundingSet(
std::vector<rtcp::TmmbItem> candidates) {
// Filter out candidates with 0 bitrate.
« 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