History

use large/medium/similar to define scene change result

volvet committed 12 years ago

Commit c8761c01 parent 8962b7c3 files · +10 −10Browse files

Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 3 files). Show all

Unified · Split

codec/encoder/core/src/wels_preprocess.cpp+2−2
@@ -605,7 +605,7 @@ void CWelsPreProcess::BilateralDenoising (SPicture* pSrc, const int32_t kiWidth, · 604 unmodified lines
605bool CWelsPreProcess::DetectSceneChange (SPicture* pCurPicture, SPicture* pRefPicture) {605bool 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;

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