Make use_single_core option configurable in VideoProcessorIntegrationTests.

plot_webrtc_test_logs.py: Add number of used cores to figure title.

BUG=webrtc:6634

Review-Url: https://codereview.webrtc.org/2706753005
Cr-Commit-Position: refs/heads/master@{#16756}
This commit is contained in:
asapersson
2017-02-21 08:30:04 -08:00
committed by Commit bot
parent 087613c8df
commit 996103a19f
5 changed files with 66 additions and 60 deletions

View File

@ -124,10 +124,8 @@ bool VideoProcessorImpl::Init() {
<< "Failed to register decode complete callback";
// Init the encoder and decoder.
uint32_t num_cores = 1;
if (!config_.use_single_core) {
num_cores = CpuInfo::DetectNumberOfCores();
}
uint32_t num_cores =
config_.use_single_core ? 1 : CpuInfo::DetectNumberOfCores();
RTC_CHECK_EQ(
encoder_->InitEncode(config_.codec_settings, num_cores,
config_.networking_config.max_payload_size_in_bytes),