Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: webrtc/modules/video_coding/utility/quality_scaler.h

Issue 2310853002: Refactor QualityScaler and MovingAverage (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_coding/utility/quality_scaler.h
diff --git a/webrtc/modules/video_coding/utility/quality_scaler.h b/webrtc/modules/video_coding/utility/quality_scaler.h
index 7176d4966eb46ed93c0506edd061c277d7e3f0e7..cf45f9ef2b6fe89febf663567843509edab95f9c 100644
--- a/webrtc/modules/video_coding/utility/quality_scaler.h
+++ b/webrtc/modules/video_coding/utility/quality_scaler.h
@@ -48,26 +48,23 @@ class QualityScaler {
static const int kBadH264QpThreshold;
private:
- void AdjustScale(bool up);
- void UpdateTargetResolution(int frame_width, int frame_height);
void ClearSamples();
- void UpdateSampleCounts();
+ void UpdateTargetResolution(int width, int height);
I420BufferPool pool_;
size_t num_samples_downscale_;
size_t num_samples_upscale_;
- int measure_seconds_upscale_;
- MovingAverage<int> average_qp_upscale_;
- MovingAverage<int> average_qp_downscale_;
+ bool fast_rampup_;
+ MovingAverage average_qp_;
+ MovingAverage framedrop_percent_;
- int framerate_;
int low_qp_threshold_;
int high_qp_threshold_;
- MovingAverage<int> framedrop_percent_;
Resolution res_;
int downscale_shift_;
+ int maximum_shift_;
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698