#include "modules/pacing/interval_budget.h"
#include <algorithm>
#include "rtc_base/numerics/safe_conversions.h"
namespace webrtc {
namespace {
constexpr int64_t kWindowMs = …;
}
IntervalBudget::IntervalBudget(int initial_target_rate_kbps)
: … { … }
IntervalBudget::IntervalBudget(int initial_target_rate_kbps,
bool can_build_up_underuse)
: … { … }
void IntervalBudget::set_target_rate_kbps(int target_rate_kbps) { … }
void IntervalBudget::IncreaseBudget(int64_t delta_time_ms) { … }
void IntervalBudget::UseBudget(size_t bytes) { … }
size_t IntervalBudget::bytes_remaining() const { … }
double IntervalBudget::budget_ratio() const { … }
int IntervalBudget::target_rate_kbps() const { … }
}