aboutsummaryrefslogtreecommitdiff
path: root/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc
diff options
context:
space:
mode:
authorniklas.enbom@webrtc.org <niklas.enbom@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-06-17 16:32:08 +0000
committerniklas.enbom@webrtc.org <niklas.enbom@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-06-17 16:32:08 +0000
commit9c09e6ee2bc8af49af649a9ab107eb2201d47272 (patch)
treebba7e16655463a39ea01fe955bb0382768bfb24b /webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc
parent26eaf7c7f724b0ebb599dfc0906223309cffc128 (diff)
downloadwebrtc-9c09e6ee2bc8af49af649a9ab107eb2201d47272.tar.gz
Add high perf mode to VP8
R=marpan@webrtc.org, stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/14709004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6470 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc')
-rw-r--r--webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc
index dfe76e0155..4901edff3d 100644
--- a/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc
+++ b/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc
@@ -214,7 +214,10 @@ int VP8EncoderImpl::InitEncode(const VideoCodec* inst,
}
config_->g_lag_in_frames = 0; // 0- no frame lagging
- if (codec_.width * codec_.height > 1280 * 960 && number_of_cores >= 6) {
+ if (codec_.width * codec_.height >= 1920 * 1080 && number_of_cores > 8) {
+ config_->g_threads = 8; // 8 threads for 1080p on high perf machines.
+ } else if (codec_.width * codec_.height > 1280 * 960 &&
+ number_of_cores >= 6) {
config_->g_threads = 3; // 3 threads for 1080p.
} else if (codec_.width * codec_.height > 640 * 480 && number_of_cores >= 3) {
config_->g_threads = 2; // 2 threads for qHD/HD.