Set correct encoder-specific settings for vpx in the new API.

Also, make VideoEncoderConfig::ContentType an enum class.

BUG=4569
R=mflodman@webrtc.org, pbos@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/46069004

Cr-Commit-Position: refs/heads/master@{#9093}
This commit is contained in:
Erik Språng
2015-04-28 10:01:41 +02:00
parent e8a197bd07
commit 143cec1cc6
13 changed files with 228 additions and 40 deletions

View File

@ -730,7 +730,7 @@ int VP8EncoderImpl::Encode(
}
// Only apply scaling to improve for single-layer streams. The scaling metrics
// use framedrops as a signal and is only applicable when we drop frames.
// use frame drops as a signal and is only applicable when we drop frames.
const bool use_quality_scaler = encoders_.size() == 1 &&
configurations_[0].rc_dropframe_thresh > 0 &&
codec_.codecSpecific.VP8.automaticResizeOn;