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

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

Issue 1830593003: Make QualityScaler more responsive to downgrades. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 ebceb06893401eca490e40758f2355e444fbf475..5bb7f88257d37f39148c3ac8f65212f830f2ea14 100644
--- a/webrtc/modules/video_coding/utility/quality_scaler.h
+++ b/webrtc/modules/video_coding/utility/quality_scaler.h
@@ -30,7 +30,8 @@ class QualityScaler {
bool use_framerate_reduction,
int initial_bitrate_kbps,
int width,
- int height);
+ int height,
+ int fps);
void SetMinResolution(int min_width, int min_height);
void ReportFramerate(int framerate);
void ReportQP(int qp);
@@ -50,13 +51,17 @@ class QualityScaler {
Scaler scaler_;
VideoFrame scaled_frame_;
- size_t num_samples_;
+ size_t num_samples_downscale_;
+ size_t num_samples_upscale_;
+ int measure_upscale_seconds_;
AlexG 2016/03/24 18:13:49 nit: measure_seconds_upscale_ to be in sync with o
pbos-webrtc 2016/03/29 10:37:21 Done.
+ MovingAverage<int> average_qp_upscale_;
+ MovingAverage<int> average_qp_downscale_;
+
int framerate_;
int target_framerate_;
int low_qp_threshold_;
int high_qp_threshold_;
MovingAverage<int> framedrop_percent_;
- MovingAverage<int> average_qp_;
Resolution res_;
int downscale_shift_;

Powered by Google App Engine
This is Rietveld 408576698