Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 3 files). Show all
Unified · Split
| @@ -605,7 +605,7 @@ void CWelsPreProcess::BilateralDenoising (SPicture* pSrc, const int32_t kiWidth, · 604 unmodified lines | |||
| 605 | bool CWelsPreProcess::DetectSceneChange (SPicture* pCurPicture, SPicture* pRefPicture) { | 605 | bool CWelsPreProcess::DetectSceneChange (SPicture* pCurPicture, SPicture* pRefPicture) { |
| 606 | bool bSceneChangeFlag = false; | 606 | bool bSceneChangeFlag = false; |
| 607 | int32_t iMethodIdx = METHOD_SCENE_CHANGE_DETECTION; | 607 | int32_t iMethodIdx = METHOD_SCENE_CHANGE_DETECTION; |
| 608 | SSceneChangeResult sSceneChangeDetectResult = {0}; | 608 | SSceneChangeResult sSceneChangeDetectResult = { SIMILAR_SCENE }; |
| 609 | SPixMap sSrcPixMap = {0}; | 609 | SPixMap sSrcPixMap = {0}; |
| 610 | SPixMap sRefPixMap = {0}; | 610 | SPixMap sRefPixMap = {0}; |
| 611 | 611 | ||
| @@ -627,7 +627,7 @@ bool CWelsPreProcess::DetectSceneChange (SPicture* pCurPicture, SPicture* pRefPi · 15 unmodified lines | |||
| 627 | int32_t iRet = m_pInterfaceVp->Process (iMethodIdx, &sSrcPixMap, &sRefPixMap); | 627 | int32_t iRet = m_pInterfaceVp->Process (iMethodIdx, &sSrcPixMap, &sRefPixMap); |
| 628 | if (iRet == 0) { | 628 | if (iRet == 0) { |
| 629 | m_pInterfaceVp->Get (iMethodIdx, (void*)&sSceneChangeDetectResult); | 629 | m_pInterfaceVp->Get (iMethodIdx, (void*)&sSceneChangeDetectResult); |
| 630 | bSceneChangeFlag = sSceneChangeDetectResult.bSceneChangeFlag ? true : false; | 630 | bSceneChangeFlag = (sSceneChangeDetectResult.eSceneChangeIdc != LARGE_CHANGED_SCENE) ? true : false; |
| 631 | } | 631 | } |
| 632 | 632 | ||
| 633 | return bSceneChangeFlag; | 633 | return bSceneChangeFlag; |