ref: 560fcf17fd254a7062c61321711d0f8b6cb9bb3e
parent: c31511257b1c2ed633ddc57a31cdcfdf52948bb6
author: ruil2 <ruil2@cisco.com>
date: Tue Nov 11 07:21:01 EST 2014
rename parameters
--- a/codec/encoder/core/src/svc_set_mb_syn_cabac.cpp
+++ b/codec/encoder/core/src/svc_set_mb_syn_cabac.cpp
@@ -224,12 +224,11 @@
}
}
-void WelsCabacMbDeltaQp (SMB* pCurMb, SCabacCtx* pCabacCtx, bool bPredMb) {
+void WelsCabacMbDeltaQp (SMB* pCurMb, SCabacCtx* pCabacCtx, bool bFirstMbInSlice) {
SMB* pPrevMb = NULL;
int32_t iCtx = 0;
- uint32_t uiNeighborAvail = pCurMb->uiNeighborAvail;
- if (bPredMb) {
+ if (!bFirstMbInSlice) {
pPrevMb = pCurMb - 1;
pCurMb->iLumaDQp = pCurMb->uiLumaQp - pPrevMb->uiLumaQp;
@@ -494,7 +493,7 @@
int32_t iCbpLuma = pCurMb->uiCbp & 15;
pCurMb->iLumaDQp = pCurMb->uiLumaQp - pSlice->uiLastMbQp;
- WelsCabacMbDeltaQp (pCurMb, pCabacCtx, (pCurMb->iMbXY > iSliceFirstMbXY));
+ WelsCabacMbDeltaQp (pCurMb, pCabacCtx, (pCurMb->iMbXY == iSliceFirstMbXY));
pSlice->uiLastMbQp = pCurMb->uiLumaQp;
if (uiMbType == MB_TYPE_INTRA16x16) {