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

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

Issue 2310853002: Refactor QualityScaler and MovingAverage (Closed)
Patch Set: fix build error 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..c1ae50b06e138b365b190acb61c1a3a66bcc7e92 100644
--- a/webrtc/modules/video_coding/utility/quality_scaler.h
+++ b/webrtc/modules/video_coding/utility/quality_scaler.h
@@ -48,26 +48,25 @@ class QualityScaler {
static const int kBadH264QpThreshold;
private:
- void AdjustScale(bool up);
- void UpdateTargetResolution(int frame_width, int frame_height);
void ClearSamples();
- void UpdateSampleCounts();
+ void ScaleUp();
+ void ScaleDown();
+ 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_;
+ Resolution target_res_;
int downscale_shift_;
+ int maximum_shift_;
};
} // namespace webrtc
« no previous file with comments | « webrtc/modules/video_coding/utility/moving_average_unittest.cc ('k') | webrtc/modules/video_coding/utility/quality_scaler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698