#include "video/adaptation/quality_scaler_resource.h"
#include <utility>
#include "api/field_trials_view.h"
#include "rtc_base/checks.h"
#include "rtc_base/experiments/balanced_degradation_settings.h"
#include "rtc_base/time_utils.h"
namespace webrtc {
rtc::scoped_refptr<QualityScalerResource> QualityScalerResource::Create() { … }
QualityScalerResource::QualityScalerResource()
: … { … }
QualityScalerResource::~QualityScalerResource() { … }
bool QualityScalerResource::is_started() const { … }
void QualityScalerResource::StartCheckForOveruse(
VideoEncoder::QpThresholds qp_thresholds,
const FieldTrialsView& field_trials) { … }
void QualityScalerResource::StopCheckForOveruse() { … }
void QualityScalerResource::SetQpThresholds(
VideoEncoder::QpThresholds qp_thresholds) { … }
void QualityScalerResource::OnEncodeCompleted(const EncodedImage& encoded_image,
int64_t time_sent_in_us) { … }
void QualityScalerResource::OnFrameDropped(
EncodedImageCallback::DropReason reason) { … }
void QualityScalerResource::OnReportQpUsageHigh() { … }
void QualityScalerResource::OnReportQpUsageLow() { … }
}