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:
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user