Chromium Code Reviews| Index: remoting/base/encoder_vp8.cc |
| diff --git a/remoting/base/encoder_vp8.cc b/remoting/base/encoder_vp8.cc |
| index 0bba179a97cd397ef3b6002163ea013053fcf0f2..c21c33d43e78340cf3654b30bfdcb4ed640459df 100644 |
| --- a/remoting/base/encoder_vp8.cc |
| +++ b/remoting/base/encoder_vp8.cc |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +B1;2305;0c// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -99,14 +99,13 @@ bool EncoderVp8::Init(const gfx::Size& size) { |
| active_map_height_ = (size.height() + kMacroBlockSize - 1) / kMacroBlockSize; |
| active_map_.reset(new uint8[active_map_width_ * active_map_height_]); |
| - // TODO(hclam): Tune the parameters to better suit the application. |
| config.rc_target_bitrate = size.width() * size.height() * |
| config.rc_target_bitrate / config.g_w / config.g_h; |
| config.g_w = size.width(); |
| config.g_h = size.height(); |
| config.g_pass = VPX_RC_ONE_PASS; |
| - config.g_profile = 1; |
| - config.g_threads = 1; |
| + config.g_profile = 2; |
| + config.g_threads = 2; |
| config.rc_min_quantizer = 20; |
| config.rc_max_quantizer = 30; |
| config.g_timebase.num = 1; |
| @@ -114,6 +113,10 @@ bool EncoderVp8::Init(const gfx::Size& size) { |
| if (vpx_codec_enc_init(codec_.get(), algo, &config, 0)) |
| return false; |
| + if (vpx_codec_control(codec_.get(), VP8E_SET_CPUUSED, 16)) |
|
dmac
2011/05/28 00:16:33
Can we put some comments here as to why these valu
|
| + return false; |
| + if (vpx_codec_control(codec_.get(), VP8E_SET_NOISE_SENSITIVITY, 0)) |
| + return false; |
| return true; |
| } |