vp9: Use 2 threads for 360p.

BUG=None

Review-Url: https://codereview.webrtc.org/2977843002
Cr-Commit-Position: refs/heads/master@{#18990}
This commit is contained in:
jianj
2017-07-12 16:11:09 -07:00
committed by Commit Bot
parent 822e593437
commit 23173a372b

View File

@ -381,7 +381,7 @@ int VP9EncoderImpl::NumberOfThreads(int width,
// tiles, which is (1, 2, 4, 8). See comments below for VP9E_SET_TILE_COLUMNS. // tiles, which is (1, 2, 4, 8). See comments below for VP9E_SET_TILE_COLUMNS.
if (width * height >= 1280 * 720 && number_of_cores > 4) { if (width * height >= 1280 * 720 && number_of_cores > 4) {
return 4; return 4;
} else if (width * height >= 640 * 480 && number_of_cores > 2) { } else if (width * height >= 640 * 360 && number_of_cores > 2) {
return 2; return 2;
} else { } else {
// 1 thread less than VGA. // 1 thread less than VGA.