History

Unify the interface for the different variants of WelsCPUFeatureDetect

The caller of the function should not need to know exactly which implementation of it is being used. For the variants that don't support detecting the number of cores, the pNumberOfLogicProcessors parameter can be left untouched and the caller will use a higher level API for finding it out. This simplifies all the calling code, and simplifies adding more implementations of cpu feature detection.

Martin Storsjö committed 12 years ago

Commit 9cf34e71 parent 73cc5865 files · +14 −33Browse files

Showing the changes to codec/processing/src/common/WelsFrameWork.cpp (1 of 5 files). Show all

Unified · Split

codec/processing/src/common/WelsFrameWork.cpp+0−4
@@ -87,11 +87,7 @@ EResult DestroySpecificVpInterface (IWelsVP* pCtx) { · 86 unmodified lines
87 87
88CVpFrameWork::CVpFrameWork (uint32_t uiThreadsNum, EResult& eReturn) {88CVpFrameWork::CVpFrameWork (uint32_t uiThreadsNum, EResult& eReturn) {
89 int32_t iCoreNum = 1;89 int32_t iCoreNum = 1;
90#ifndef X86_ASM
91 uint32_t uiCPUFlag = 0;
92#else
93 uint32_t uiCPUFlag = WelsCPUFeatureDetect (&iCoreNum);90 uint32_t uiCPUFlag = WelsCPUFeatureDetect (&iCoreNum);
94#endif
95 91
96 for (int32_t i = 0; i < MAX_STRATEGY_NUM; i++) {92 for (int32_t i = 0; i < MAX_STRATEGY_NUM; i++) {
97 IStrategy* pStrategy = m_pStgChain[i];93 IStrategy* pStrategy = m_pStgChain[i];

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