remove RC enable flag, use RC Mode to indicate RC on or off

This commit is contained in:
volvet
2014-04-07 22:08:28 -07:00
parent 501c77f66b
commit d98ba6137c
12 changed files with 40 additions and 44 deletions

View File

@@ -368,9 +368,9 @@ int32_t CWelsPreProcess::AnalyzeSpatialPic (sWelsEncCtx* pCtx, const int32_t kiD
}
if(pSvcParam->iUsageType != SCREEN_CONTENT_REAL_TIME){
if (pSvcParam->bEnableRc) {
if (pSvcParam->iRCMode != RC_OFF_MODE) {
AnalyzePictureComplexity (pCtx, pCurPic, pRefPic, kiDidx, bCalculateBGD);
}
}
WelsExchangeSpatialPictures (&m_pLastSpatialPicture[kiDidx][1], &m_pLastSpatialPicture[kiDidx][0]);
}
return 0;