#include "modules/audio_coding/audio_network_adaptor/fec_controller_plr_based.h"
#include <string>
#include <utility>
#include "rtc_base/checks.h"
namespace webrtc {
FecControllerPlrBased::Config::Config(
bool initial_fec_enabled,
const ThresholdCurve& fec_enabling_threshold,
const ThresholdCurve& fec_disabling_threshold,
int time_constant_ms)
: … { … }
FecControllerPlrBased::FecControllerPlrBased(
const Config& config,
std::unique_ptr<SmoothingFilter> smoothing_filter)
: … { … }
FecControllerPlrBased::FecControllerPlrBased(const Config& config)
: … { … }
FecControllerPlrBased::~FecControllerPlrBased() = default;
void FecControllerPlrBased::UpdateNetworkMetrics(
const NetworkMetrics& network_metrics) { … }
void FecControllerPlrBased::MakeDecision(AudioEncoderRuntimeConfig* config) { … }
bool FecControllerPlrBased::FecEnablingDecision(
const absl::optional<float>& packet_loss) const { … }
bool FecControllerPlrBased::FecDisablingDecision(
const absl::optional<float>& packet_loss) const { … }
}