ref: fc5c48830a859cd9bfe556f99465759c3569eefb
parent: c8761c08ae96d60e90dfe65fd40eccd32d378220
author: volvet <qizh@cisco.com>
date: Fri Mar 14 05:53:24 EDT 2014
fix the condition of scene change flag and comments
--- a/codec/encoder/core/src/wels_preprocess.cpp
+++ b/codec/encoder/core/src/wels_preprocess.cpp
@@ -627,7 +627,7 @@
int32_t iRet = m_pInterfaceVp->Process (iMethodIdx, &sSrcPixMap, &sRefPixMap);
if (iRet == 0) {
m_pInterfaceVp->Get (iMethodIdx, (void*)&sSceneChangeDetectResult);
- bSceneChangeFlag = (sSceneChangeDetectResult.eSceneChangeIdc != LARGE_CHANGED_SCENE) ? true : false;
+ bSceneChangeFlag = (sSceneChangeDetectResult.eSceneChangeIdc == LARGE_CHANGED_SCENE) ? true : false;
}
return bSceneChangeFlag;
--- a/codec/processing/interface/IWelsVP.h
+++ b/codec/processing/interface/IWelsVP.h
@@ -143,7 +143,7 @@
} ESceneChangeIdc;
typedef struct {
- ESceneChangeIdc eSceneChangeIdc; // 0:false ; 1:true
+ ESceneChangeIdc eSceneChangeIdc; // SIMILAR_SCENE, MEDIUM_CHANGED_SCENE, LARGE_CHANGED_SCENE
} SSceneChangeResult;
typedef struct {