#include "rtc_base/experiments/quality_scaling_experiment.h"
#include <stdio.h>
#include <string>
#include "absl/strings/match.h"
#include "api/field_trials_view.h"
#include "api/transport/field_trial_based_config.h"
#include "rtc_base/logging.h"
namespace webrtc {
namespace {
constexpr char kFieldTrial[] = …;
constexpr int kMinQp = …;
constexpr int kMaxVp8Qp = …;
constexpr int kMaxVp9Qp = …;
constexpr int kMaxH264Qp = …;
constexpr int kMaxGenericQp = …;
#if !defined(WEBRTC_IOS)
constexpr char kDefaultQualityScalingSetttings[] = …;
#endif
absl::optional<VideoEncoder::QpThresholds> GetThresholds(int low,
int high,
int max) { … }
}
bool QualityScalingExperiment::Enabled(const FieldTrialsView& field_trials) { … }
absl::optional<QualityScalingExperiment::Settings>
QualityScalingExperiment::ParseSettings(const FieldTrialsView& field_trials) { … }
absl::optional<VideoEncoder::QpThresholds>
QualityScalingExperiment::GetQpThresholds(VideoCodecType codec_type,
const FieldTrialsView& field_trials) { … }
QualityScalingExperiment::Config QualityScalingExperiment::GetConfig(
const FieldTrialsView& field_trials) { … }
}