Remove unused QpFastFilterLow method
Bug: None Change-Id: I63665a3fc9afd57aec8f0f7d2a2a2e631452f6c6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/358080 Auto-Submit: Björn Terelius <terelius@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Commit-Queue: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42704}
This commit is contained in:
parent
3c177dd268
commit
8d7642a9f7
@ -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<int> 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.
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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());
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user