Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2403,9 +2403,6 @@ int32_t GetMultipleThreadIdc (SLogContext* pLogCtx, SWelsSvcCodingParam* pCoding · 2402 unmodified lines | |||
| 2403 | uiCpuCores = DynamicDetectCpuCores(); | 2403 | uiCpuCores = DynamicDetectCpuCores(); |
| 2404 | }// So far so many cpu cores up to MAX_THREADS_NUM mean for server platforms, | 2404 | }// So far so many cpu cores up to MAX_THREADS_NUM mean for server platforms, |
| 2405 | // for client application here it is constrained by maximal to MAX_THREADS_NUM | 2405 | // for client application here it is constrained by maximal to MAX_THREADS_NUM |
| 2406 | if ((pCodingParam->iUsageType == CAMERA_VIDEO_REAL_TIME) || (pCodingParam->iUsageType == SCREEN_CONTENT_REAL_TIME)) { | ||
| 2407 | uiCpuCores -= 1; // minus 1 for REAL_TIME video, for the processing needed by other threads | ||
| 2408 | } | ||
| 2409 | } | 2406 | } |
| 2410 | uiCpuCores = WELS_CLIP3 (uiCpuCores, 1, MAX_THREADS_NUM); | 2407 | uiCpuCores = WELS_CLIP3 (uiCpuCores, 1, MAX_THREADS_NUM); |
| 2411 | 2408 | ||