diff --git a/modules/video_coding/utility/quality_scaler.cc b/modules/video_coding/utility/quality_scaler.cc index 7ecb340ea4..4b71f90307 100644 --- a/modules/video_coding/utility/quality_scaler.cc +++ b/modules/video_coding/utility/quality_scaler.cc @@ -260,21 +260,6 @@ void QualityScaler::ReportQp(int qp, int64_t time_sent_us) { qp_smoother_low_->Add(qp, time_sent_us); } -bool QualityScaler::QpFastFilterLow() const { - RTC_DCHECK_RUN_ON(&task_checker_); - size_t num_frames = config_.use_all_drop_reasons - ? framedrop_percent_all_.Size() - : framedrop_percent_media_opt_.Size(); - const size_t kMinNumFrames = 10; - if (num_frames < kMinNumFrames) { - return false; // Wait for more frames before making a decision. - } - absl::optional avg_qp_high = qp_smoother_high_ - ? qp_smoother_high_->GetAvg() - : average_qp_.GetAverageRoundedDown(); - return (avg_qp_high) ? (avg_qp_high.value() <= thresholds_.low) : false; -} - QualityScaler::CheckQpResult QualityScaler::CheckQp() const { RTC_DCHECK_RUN_ON(&task_checker_); // Should be set through InitEncode -> Should be set by now. diff --git a/modules/video_coding/utility/quality_scaler.h b/modules/video_coding/utility/quality_scaler.h index 14623ff1f3..7939c9ee41 100644 --- a/modules/video_coding/utility/quality_scaler.h +++ b/modules/video_coding/utility/quality_scaler.h @@ -51,7 +51,6 @@ class QualityScaler { void ReportQp(int qp, int64_t time_sent_us); void SetQpThresholds(VideoEncoder::QpThresholds thresholds); - bool QpFastFilterLow() const; // The following members declared protected for testing purposes. protected: diff --git a/video/adaptation/quality_scaler_resource.cc b/video/adaptation/quality_scaler_resource.cc index a24a3e88ff..7d71b2382f 100644 --- a/video/adaptation/quality_scaler_resource.cc +++ b/video/adaptation/quality_scaler_resource.cc @@ -61,12 +61,6 @@ void QualityScalerResource::SetQpThresholds( quality_scaler_->SetQpThresholds(std::move(qp_thresholds)); } -bool QualityScalerResource::QpFastFilterLow() { - RTC_DCHECK_RUN_ON(encoder_queue()); - RTC_DCHECK(is_started()); - return quality_scaler_->QpFastFilterLow(); -} - void QualityScalerResource::OnEncodeCompleted(const EncodedImage& encoded_image, int64_t time_sent_in_us) { RTC_DCHECK_RUN_ON(encoder_queue()); diff --git a/video/adaptation/quality_scaler_resource.h b/video/adaptation/quality_scaler_resource.h index a1ed34a1ce..0bdc25e895 100644 --- a/video/adaptation/quality_scaler_resource.h +++ b/video/adaptation/quality_scaler_resource.h @@ -42,7 +42,6 @@ class QualityScalerResource : public VideoStreamEncoderResource, const FieldTrialsView& field_trials); void StopCheckForOveruse(); void SetQpThresholds(VideoEncoder::QpThresholds qp_thresholds); - bool QpFastFilterLow(); void OnEncodeCompleted(const EncodedImage& encoded_image, int64_t time_sent_in_us); void OnFrameDropped(EncodedImageCallback::DropReason reason);