ref: 33d20528565fd3e36fbbe1d02fed0bbfd990b55b
parent: c43e1c8f43edb0f07b50fd083f7fda217d59776b
author: volvet <[email protected]>
date: Wed Apr 2 13:39:06 EDT 2014
fix static block assign in scd screen
--- a/codec/processing/src/scenechangedetection/SceneChangeDetection.h
+++ b/codec/processing/src/scenechangedetection/SceneChangeDetection.h
@@ -90,11 +90,11 @@
void operator() (uint8_t* pSrcY, int32_t iSrcStrideY, uint8_t* pRefY, int32_t iRefStrideY, uint8_t *& pStaticBlockIdc) {
int32_t iSad = m_pfSad(pSrcY, iSrcStrideY, pRefY, iSrcStrideY);
if( iSad == 0 ){
- *pStaticBlockIdc ++ = NO_STATIC;
+ *pStaticBlockIdc ++ = COLLOCATED_STATIC;
} else {
m_sParam.iFrameComplexity += iSad;
m_sParam.iMotionBlockNum += iSad > HIGH_MOTION_BLOCK_THRESHOLD;
- *pStaticBlockIdc ++ = COLLOCATED_STATIC;
+ *pStaticBlockIdc ++ = NO_STATIC;
}
}
};