Move default thresholds from QualityScaler to encoders.
Overriding implementations of VideoEncoder::GetScalingSettings that want to enable quality scaling must now provide the thresholds. Bug: webrtc:8830 Change-Id: I75c47cb56ac1b9cf77401684980b3167e485f51c Reviewed-on: https://webrtc-review.googlesource.com/46622 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22172}
This commit is contained in:
@ -43,12 +43,9 @@ class AdaptationObserverInterface {
|
||||
// signal an intent to scale up or down.
|
||||
class QualityScaler {
|
||||
public:
|
||||
// Construct a QualityScaler with a given |observer|.
|
||||
// Construct a QualityScaler with given |thresholds| and |observer|.
|
||||
// This starts the quality scaler periodically checking what the average QP
|
||||
// has been recently.
|
||||
QualityScaler(AdaptationObserverInterface* observer,
|
||||
VideoCodecType codec_type);
|
||||
// If specific thresholds are desired these can be supplied as |thresholds|.
|
||||
QualityScaler(AdaptationObserverInterface* observer,
|
||||
VideoEncoder::QpThresholds thresholds);
|
||||
virtual ~QualityScaler();
|
||||
|
||||
Reference in New Issue
Block a user