Index: remoting/base/encoder_vp8.cc |
diff --git a/remoting/base/encoder_vp8.cc b/remoting/base/encoder_vp8.cc |
index 0bba179a97cd397ef3b6002163ea013053fcf0f2..f9c7b09823014d09be871edf4a2d5dd12f9d0854 100644 |
--- a/remoting/base/encoder_vp8.cc |
+++ b/remoting/base/encoder_vp8.cc |
@@ -105,8 +105,8 @@ bool EncoderVp8::Init(const gfx::Size& size) { |
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 +114,12 @@ bool EncoderVp8::Init(const gfx::Size& size) { |
if (vpx_codec_enc_init(codec_.get(), algo, &config, 0)) |
return false; |
+ |
+ // More advanced options of vp8. |
Wez
2011/05/28 00:09:06
Again, it will be helpful for others if the commen
|
+ if (vpx_codec_control(codec_.get(), VP8E_SET_CPUUSED, 16)) |
+ return false; |
+ if (vpx_codec_control(codec_.get(), VP8E_SET_NOISE_SENSITIVITY, 0)) |
+ return false; |
return true; |
} |