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

Unified Diff: webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp.cc

Issue 1208083002: Remove MimdRateControl and factories for RemoteBitrateEstimor. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comments Created 5 years, 5 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
Index: webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp.cc
diff --git a/webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp.cc b/webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp.cc
index e71c75ce39769bf0859f6bf69fa5926f8bfe8472..d424919f7afad373b08f94fedb55da893cf19512 100644
--- a/webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp.cc
+++ b/webrtc/modules/remote_bitrate_estimator/tools/bwe_rtp.cc
@@ -13,7 +13,8 @@
#include <stdio.h>
#include <string>
-#include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimator.h"
+#include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_abs_send_time.h"
+#include "webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.h"
#include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h"
#include "webrtc/modules/rtp_rtcp/interface/rtp_payload_registry.h"
#include "webrtc/test/rtp_file_reader.h"
@@ -51,16 +52,14 @@ bool ParseArgsAndSetupEstimator(int argc,
if (estimator) {
switch (extension) {
case webrtc::kRtpExtensionAbsoluteSendTime: {
- webrtc::AbsoluteSendTimeRemoteBitrateEstimatorFactory factory;
- *estimator = factory.Create(observer, clock, webrtc::kAimdControl,
- kMinBitrateBps);
+ *estimator = new webrtc::RemoteBitrateEstimatorAbsSendTime(
+ observer, clock, kMinBitrateBps);
*estimator_used = "AbsoluteSendTimeRemoteBitrateEstimator";
break;
}
case webrtc::kRtpExtensionTransmissionTimeOffset: {
- webrtc::RemoteBitrateEstimatorFactory factory;
- *estimator = factory.Create(observer, clock, webrtc::kAimdControl,
- kMinBitrateBps);
+ *estimator = new webrtc::RemoteBitrateEstimatorSingleStream(
+ observer, clock, kMinBitrateBps);
*estimator_used = "RemoteBitrateEstimator";
break;
}

Powered by Google App Engine
This is Rietveld 408576698