Showing the changes to codec/processing/src (2 of 2 files). Show all
Unified · Split
| @@ -340,7 +340,6 @@ void CBackgroundDetection::ForegroundDilationAndBackgroundErosion (vBGDParam* pB · 339 unmodified lines | |||
| 340 | int8_t* pVaaBackgroundMbFlag = (int8_t*)pBgdParam->pBackgroundMbFlag; | 340 | int8_t* pVaaBackgroundMbFlag = (int8_t*)pBgdParam->pBackgroundMbFlag; |
| 341 | SBackgroundOU* pOUNeighbours[4];//0: left; 1: right; 2: top; 3: bottom | 341 | SBackgroundOU* pOUNeighbours[4];//0: left; 1: right; 2: top; 3: bottom |
| 342 | 342 | ||
| 343 | pBackgroundOU = pBgdParam->pOU_array; | ||
| 344 | pOUNeighbours[2] = pBackgroundOU;//top OU | 343 | pOUNeighbours[2] = pBackgroundOU;//top OU |
| 345 | for (int32_t j = 0; j < iPicHeightInOU; j ++) { | 344 | for (int32_t j = 0; j < iPicHeightInOU; j ++) { |
| 346 | int8_t* pRowSkipFlag = pVaaBackgroundMbFlag; | 345 | int8_t* pRowSkipFlag = pVaaBackgroundMbFlag; |
| @@ -91,9 +91,7 @@ CVpFrameWork::CVpFrameWork (uint32_t uiThreadsNum, EResult& eReturn) { · 90 unmodified lines | |||
| 91 | uint32_t uiCPUFlag = WelsCPUFeatureDetect (&iCoreNum); | 91 | uint32_t uiCPUFlag = WelsCPUFeatureDetect (&iCoreNum); |
| 92 | 92 | ||
| 93 | for (int32_t i = 0; i < MAX_STRATEGY_NUM; i++) { | 93 | for (int32_t i = 0; i < MAX_STRATEGY_NUM; i++) { |
| 94 | IStrategy* pStrategy = m_pStgChain[i]; | 94 | m_pStgChain[i] = CreateStrategy (WelsStaticCast (EMethods, i + 1), uiCPUFlag); |
| 95 | pStrategy = CreateStrategy (WelsStaticCast (EMethods, i + 1), uiCPUFlag); | ||
| 96 | m_pStgChain[i] = pStrategy; | ||
| 97 | } | 95 | } |
| 98 | 96 | ||
| 99 | WelsMutexInit (&m_mutes); | 97 | WelsMutexInit (&m_mutes); |