ref: ee4dafaa7071ae57aa9720bd8f80a4d3742bd571
parent: daee3dcf22cdeb96ec6ec463a86530813e4ea024
author: Sijia Chen <sijchen@cisco.com>
date: Tue Jun 16 13:05:48 EDT 2015
remove the core-1 setting for multi-thread, if application has concern of using all thread, it can be done by setting specific value to iMultipleThreadIdc
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -2403,9 +2403,6 @@
uiCpuCores = DynamicDetectCpuCores();
}// So far so many cpu cores up to MAX_THREADS_NUM mean for server platforms,
// for client application here it is constrained by maximal to MAX_THREADS_NUM
- if ((pCodingParam->iUsageType == CAMERA_VIDEO_REAL_TIME) || (pCodingParam->iUsageType == SCREEN_CONTENT_REAL_TIME)) {
- uiCpuCores -= 1; // minus 1 for REAL_TIME video, for the processing needed by other threads
- }
}
uiCpuCores = WELS_CLIP3 (uiCpuCores, 1, MAX_THREADS_NUM);