#include "rtc_base/experiments/encoder_info_settings.h"
#include <stdio.h>
#include "absl/strings/string_view.h"
#include "api/field_trials_view.h"
#include "rtc_base/experiments/field_trial_list.h"
#include "rtc_base/logging.h"
namespace webrtc {
namespace {
std::vector<VideoEncoder::ResolutionBitrateLimits> ToResolutionBitrateLimits(
const std::vector<EncoderInfoSettings::BitrateLimit>& limits) { … }
constexpr float kDefaultMinBitratebps = …;
}
std::vector<VideoEncoder::ResolutionBitrateLimits>
EncoderInfoSettings::GetDefaultSinglecastBitrateLimits(
VideoCodecType codec_type) { … }
absl::optional<VideoEncoder::ResolutionBitrateLimits>
EncoderInfoSettings::GetDefaultSinglecastBitrateLimitsForResolution(
VideoCodecType codec_type,
int frame_size_pixels) { … }
std::vector<VideoEncoder::ResolutionBitrateLimits>
EncoderInfoSettings::GetDefaultSinglecastBitrateLimitsWhenQpIsUntrusted() { … }
absl::optional<VideoEncoder::ResolutionBitrateLimits>
EncoderInfoSettings::GetSinglecastBitrateLimitForResolutionWhenQpIsUntrusted(
absl::optional<int> frame_size_pixels,
const std::vector<VideoEncoder::ResolutionBitrateLimits>&
resolution_bitrate_limits) { … }
EncoderInfoSettings::EncoderInfoSettings(const FieldTrialsView& field_trials,
absl::string_view name)
: … { … }
absl::optional<uint32_t> EncoderInfoSettings::requested_resolution_alignment()
const { … }
EncoderInfoSettings::~EncoderInfoSettings() { … }
SimulcastEncoderAdapterEncoderInfoSettings::
SimulcastEncoderAdapterEncoderInfoSettings(
const FieldTrialsView& field_trials)
: … { … }
LibvpxVp8EncoderInfoSettings::LibvpxVp8EncoderInfoSettings(
const FieldTrialsView& field_trials)
: … { … }
LibvpxVp9EncoderInfoSettings::LibvpxVp9EncoderInfoSettings(
const FieldTrialsView& field_trials)
: … { … }
LibaomAv1EncoderInfoSettings::LibaomAv1EncoderInfoSettings(
const FieldTrialsView& field_trials)
: … { … }
}