Revert of r3747.
TBR=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1277005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3752 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
95d88735ee
commit
cfc07c943f
@ -226,12 +226,11 @@ int VP8EncoderImpl::InitEncode(const VideoCodec* inst,
|
|||||||
config_->g_lag_in_frames = 0; // 0- no frame lagging
|
config_->g_lag_in_frames = 0; // 0- no frame lagging
|
||||||
|
|
||||||
// Determining number of threads based on the image size
|
// Determining number of threads based on the image size
|
||||||
if (codec_.width * codec_.height > 640 * 480 && number_of_cores >= 4) {
|
if (codec_.width * codec_.height > 704 * 576 && number_of_cores > 1) {
|
||||||
config_->g_threads = 4; // 4 threads for qHD/HD.
|
// 2 threads when larger than 4CIF
|
||||||
} else if (codec_.width * codec_.height > 320 * 240 && number_of_cores >= 2) {
|
config_->g_threads = 2;
|
||||||
config_->g_threads = 2; // 2 threads for HVGA/VGA.
|
|
||||||
} else {
|
} else {
|
||||||
config_->g_threads = 1; // 1 thread for QVGA.
|
config_->g_threads = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// rate control settings
|
// rate control settings
|
||||||
|
Loading…
Reference in New Issue
Block a user