History

fix Loop filter error under multithreads on encoder when #TEST_BED enabled

lyao2 committed 12 years ago

Commit 47f1ac71 parent b230a6d1 file · +1 −9Browse 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+1−9
@@ -1959,14 +1959,12 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 1958 unmodified lines
19591959 iCacheLineSize = 16; // 16 bytes aligned in default
19601960 #endif//X86_ASM
19611961
1962−#ifndef WELS_TESTBED
1963−
19641962 #if defined(DYNAMIC_DETECT_CPU_CORES)
19651963 if (pCodingParam->iMultipleThreadIdc > 0)
19661964 uiCpuCores = pCodingParam->iMultipleThreadIdc;
19671965 else {
19681966 if (uiCpuCores ==
1969− 0) // cpuid not supported or doesn't expose the number of cores, use high level system API as followed to detect number of pysical/logic processor
1967+ 0) // cpuid not supported or doesn't expose the number of cores, use high level system API as followed to detect number of pysical/logic processor
19701968 uiCpuCores = DynamicDetectCpuCores();
19711969 // So far so many cpu cores up to MAX_THREADS_NUM mean for server platforms,
19721970 // for client application here it is constrained by maximal to MAX_THREADS_NUM
@@ -1977,12 +1975,6 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 4 unmodified lines
19771975 }
19781976 #endif//DYNAMIC_DETECT_CPU_CORES
19791977
1980−#else//WELS_TESTBED
1981−
1982− uiCpuCores = pCodingParam->iMultipleThreadIdc; // assigned uiCpuCores from iMultipleThreadIdc from SGE testing
1983−
1984−#endif//WELS_TESTBED
1985−
19861978 uiCpuCores = WELS_CLIP3 (uiCpuCores, 1, MAX_THREADS_NUM);
19871979
19881980 if (InitSliceSettings (pLogCtx, pCodingParam, uiCpuCores, &iSliceNum)) {

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