#include "modules/remote_bitrate_estimator/overuse_detector.h"
#include <math.h>
#include <stdio.h>
#include <algorithm>
#include <string>
#include "rtc_base/checks.h"
#include "rtc_base/numerics/safe_minmax.h"
namespace webrtc {
namespace {
constexpr double kMaxAdaptOffsetMs = …;
constexpr double kOverUsingTimeThreshold = …;
constexpr int kMaxNumDeltas = …;
constexpr double kUp = …;
constexpr double kDown = …;
}
OveruseDetector::OveruseDetector() = default;
BandwidthUsage OveruseDetector::State() const { … }
BandwidthUsage OveruseDetector::Detect(double offset,
double ts_delta,
int num_of_deltas,
int64_t now_ms) { … }
void OveruseDetector::UpdateThreshold(double modified_offset, int64_t now_ms) { … }
}