History

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

Sijia Chen committed 11 years ago

Commit ee4dafa1 parent daee3dc1 file · +0 −3Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+0−3
@@ -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_NUM2405 // 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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t