diff options
author | fbarchard@google.com <fbarchard@google.com@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-05-09 18:43:38 +0000 |
---|---|---|
committer | fbarchard@google.com <fbarchard@google.com@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-05-09 18:43:38 +0000 |
commit | 238aa38f829112d3fe8ca7453a2e9fcebf6c8ace (patch) | |
tree | ce68825b0c60b2598344b0b203d2909da49c01fe | |
parent | f22bfed08d3dc57df4be7fde641bd65aacd69cd4 (diff) | |
download | webrtc-238aa38f829112d3fe8ca7453a2e9fcebf6c8ace.tar.gz |
Use 2 threads for HD, or 1 for VGA or less.
BUG=1739
TEST=try bots
Review URL: https://webrtc-codereview.appspot.com/1438005
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3996 4adac7df-926f-26a2-2b94-8c16560cd09d
-rw-r--r-- | modules/video_coding/codecs/vp8/vp8_impl.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/video_coding/codecs/vp8/vp8_impl.cc b/modules/video_coding/codecs/vp8/vp8_impl.cc index b333d98d..4e737f23 100644 --- a/modules/video_coding/codecs/vp8/vp8_impl.cc +++ b/modules/video_coding/codecs/vp8/vp8_impl.cc @@ -211,12 +211,10 @@ int VP8EncoderImpl::InitEncode(const VideoCodec* inst, } config_->g_lag_in_frames = 0; // 0- no frame lagging - if (codec_.width * codec_.height > 640 * 480 && number_of_cores >= 4) { - config_->g_threads = 4; // 4 threads for qHD/HD. - } else if (codec_.width * codec_.height > 320 * 240 && number_of_cores >= 2) { - config_->g_threads = 2; // 2 threads for HVGA/VGA. + if (codec_.width * codec_.height > 640 * 480 && number_of_cores >= 2) { + config_->g_threads = 2; // 2 threads for qHD/HD. } else { - config_->g_threads = 1; // 1 thread for QVGA. + config_->g_threads = 1; // 1 thread for VGA or less } // rate control settings |