Use initial bitrates for software VP8.

Makes the software encoder start at VGA as well, since ~300k isn't good
enough to produce a good HD stream.

BUG=webrtc:5678
R=glaznev@webrtc.org, stefan@webrtc.org

Review URL: https://codereview.webrtc.org/1893313002 .

Cr-Commit-Position: refs/heads/master@{#12428}
This commit is contained in:
Peter Boström
2016-04-19 15:53:11 +02:00
parent cc23b7c1ea
commit e1da27e543
2 changed files with 12 additions and 4 deletions

View File

@ -606,9 +606,8 @@ int VP8EncoderImpl::InitEncode(const VideoCodec* inst,
// go back down).
const int kLowQpThreshold = 29;
const int kDisabledBadQpThreshold = 100;
// TODO(glaznev/sprang): consider passing codec initial bitrate to quality
// scaler to avoid starting with HD for low initial bitrates.
quality_scaler_.Init(kLowQpThreshold, kDisabledBadQpThreshold, false, 0, 0, 0,
quality_scaler_.Init(kLowQpThreshold, kDisabledBadQpThreshold, false,
codec_.startBitrate, codec_.width, codec_.height,
codec_.maxFramerate);
// Only apply scaling to improve for single-layer streams. The scaling metrics