Update speed setting in VP9.

TBR=stefan@webrtc.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#8870}
This commit is contained in:
Marco
2015-03-26 13:20:25 -07:00
parent 74d9ed7d85
commit b8cfa68323
2 changed files with 5 additions and 5 deletions

View File

@ -209,9 +209,9 @@ int VP9EncoderImpl::InitAndSetControlSettings(const VideoCodec* inst) {
if (vpx_codec_enc_init(encoder_, vpx_codec_vp9_cx(), config_, 0)) {
return WEBRTC_VIDEO_CODEC_UNINITIALIZED;
}
// Only positive speeds, currently: 0 - 7.
// O means slowest/best quality, 7 means fastest/lower quality.
cpu_speed_ = 6;
// Only positive speeds, currently: 0 - 8.
// O means slowest/best quality, 8 means fastest/lower quality.
cpu_speed_ = 7;
// Note: some of these codec controls still use "VP8" in the control name.
// TODO(marpan): Update this in the next/future libvpx version.
vpx_codec_control(encoder_, VP8E_SET_CPUUSED, cpu_speed_);