From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../rtc_base/experiments/quality_scaler_settings.h | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings.h (limited to 'third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings.h') diff --git a/third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings.h b/third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings.h new file mode 100644 index 0000000000..1085816697 --- /dev/null +++ b/third_party/libwebrtc/rtc_base/experiments/quality_scaler_settings.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2019 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. + */ + +#ifndef RTC_BASE_EXPERIMENTS_QUALITY_SCALER_SETTINGS_H_ +#define RTC_BASE_EXPERIMENTS_QUALITY_SCALER_SETTINGS_H_ + +#include "absl/types/optional.h" +#include "api/field_trials_view.h" +#include "rtc_base/experiments/field_trial_parser.h" + +namespace webrtc { + +class QualityScalerSettings final { + public: + explicit QualityScalerSettings(const FieldTrialsView& field_trials); + + absl::optional SamplingPeriodMs() const; + absl::optional AverageQpWindow() const; + absl::optional MinFrames() const; + absl::optional InitialScaleFactor() const; + absl::optional ScaleFactor() const; + absl::optional InitialBitrateIntervalMs() const; + absl::optional InitialBitrateFactor() const; + + private: + FieldTrialOptional sampling_period_ms_; + FieldTrialOptional average_qp_window_; + FieldTrialOptional min_frames_; + FieldTrialOptional initial_scale_factor_; + FieldTrialOptional scale_factor_; + FieldTrialOptional initial_bitrate_interval_ms_; + FieldTrialOptional initial_bitrate_factor_; +}; + +} // namespace webrtc + +#endif // RTC_BASE_EXPERIMENTS_QUALITY_SCALER_SETTINGS_H_ -- cgit v1.2.3