Move OverUseDetectorOptions out of common_types.h

Moved to modules/remote_bitrate_estimator/overuse_estimator.h.

Bug: webrtc:5876
Change-Id: Iae4b07d94bf4f16b887c3a4129168c4a45a3b5e1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/135570
Commit-Queue: Niels Moller <nisse@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27893}
This commit is contained in:
Niels Möller 2019-05-09 13:12:24 +02:00 committed by Commit Bot
parent f3d828eb8e
commit 780c136523
3 changed files with 15 additions and 30 deletions

View File

@ -77,34 +77,6 @@ struct SpatialLayer {
// settings such as resolution.
typedef SpatialLayer SimulcastStream;
// Bandwidth over-use detector options. These are used to drive
// experimentation with bandwidth estimation parameters.
// See modules/remote_bitrate_estimator/overuse_detector.h
// TODO(terelius): This is only used in overuse_estimator.cc, and only in the
// default constructed state. Can we move the relevant variables into that
// class and delete this? See also disabled warning at line 27
struct OverUseDetectorOptions {
OverUseDetectorOptions()
: initial_slope(8.0 / 512.0),
initial_offset(0),
initial_e(),
initial_process_noise(),
initial_avg_noise(0.0),
initial_var_noise(50) {
initial_e[0][0] = 100;
initial_e[1][1] = 1e-1;
initial_e[0][1] = initial_e[1][0] = 0;
initial_process_noise[0] = 1e-13;
initial_process_noise[1] = 1e-3;
}
double initial_slope;
double initial_offset;
double initial_e[2][2];
double initial_process_noise[2];
double initial_avg_noise;
double initial_var_noise;
};
// Minimum and maximum playout delay values from capture to render.
// These are best effort values.
//

View File

@ -40,7 +40,6 @@ rtc_static_library("remote_bitrate_estimator") {
}
deps = [
"../..:webrtc_common",
"../../api:network_state_predictor_api",
"../../api:rtp_headers",
"../../api/transport:field_trial_based_config",

View File

@ -13,12 +13,26 @@
#include <stdint.h>
#include <deque>
#include "common_types.h" // NOLINT(build/include)
#include "modules/remote_bitrate_estimator/include/bwe_defines.h"
#include "rtc_base/constructor_magic.h"
namespace webrtc {
// Bandwidth over-use detector options. These are used to drive
// experimentation with bandwidth estimation parameters.
// TODO(terelius): This is only used in overuse_estimator.cc, and only in the
// default constructed state. Can we move the relevant variables into that
// class and delete this?
struct OverUseDetectorOptions {
OverUseDetectorOptions() = default;
double initial_slope = 8.0 / 512.0;
double initial_offset = 0;
double initial_e[2][2] = {{100.0, 0.0}, {0.0, 1e-1}};
double initial_process_noise[2] = {1e-13, 1e-3};
double initial_avg_noise = 0.0;
double initial_var_noise = 50.0;
};
class OveruseEstimator {
public:
explicit OveruseEstimator(const OverUseDetectorOptions& options);