Merge pull request #626 from volvet/fix_scd_screen

fix static block assign in scd screen
This commit is contained in:
sijchen 2014-04-04 08:58:50 +08:00
commit b7541449d3

View File

@ -90,11 +90,11 @@ public:
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;
}
}
};