blob: d7102b0b44dc862429626d769845a3ba5ac84cc1 [file] [log] [blame]
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
#include <vector>
#include "absl/types/optional.h"
#include "modules/audio_coding/audio_network_adaptor/controller.h"
#include "modules/audio_coding/audio_network_adaptor/include/audio_network_adaptor.h"
namespace webrtc {
class FrameLengthControllerV2 final : public Controller {
FrameLengthControllerV2(rtc::ArrayView<const int> encoder_frame_lengths_ms,
int min_payload_bitrate_bps,
bool use_slow_adaptation);
void UpdateNetworkMetrics(const NetworkMetrics& network_metrics) override;
void MakeDecision(AudioEncoderRuntimeConfig* config) override;
std::vector<int> encoder_frame_lengths_ms_;
const int min_payload_bitrate_bps_;
const bool use_slow_adaptation_;
absl::optional<int> uplink_bandwidth_bps_;
absl::optional<int> target_bitrate_bps_;
absl::optional<int> overhead_bytes_per_packet_;
} // namespace webrtc