Showing the changes to codec/encoder/core/src/set_mb_syn_cabac.cpp (1 of 15 files). Show all
Unified · Split
| @@ -53,7 +53,7 @@ const int8_t g_kiClz5Table[32] = { · 52 unmodified lines | ||
| 53 | 53 | |
| 54 | 54 | void PropagateCarry (uint8_t* pBufCur, uint8_t* pBufStart) { |
| 55 | 55 | for (; pBufCur > pBufStart; --pBufCur) |
| 56 | − if (++*(pBufCur - 1)) | |
| 56 | + if (++ * (pBufCur - 1)) | |
| 57 | 57 | break; |
| 58 | 58 | } |
| 59 | 59 | |
| @@ -133,7 +133,7 @@ void WelsCabacEncodeUpdateLowNontrivial_ (SCabacCtx* pCbCtx) { · 73 unmodified lines | ||
| 133 | 133 | void WelsCabacEncodeDecisionLps_ (SCabacCtx* pCbCtx, int32_t iCtx) { |
| 134 | 134 | const int32_t kiState = pCbCtx->m_sStateCtx[iCtx].State(); |
| 135 | 135 | uint32_t uiRange = pCbCtx->m_uiRange; |
| 136 | − uint32_t uiRangeLps = g_kuiCabacRangeLps[kiState][(uiRange & 0xff) >> 6]; | |
| 136 | + uint32_t uiRangeLps = g_kuiCabacRangeLps[kiState][ (uiRange & 0xff) >> 6]; | |
| 137 | 137 | uiRange -= uiRangeLps; |
| 138 | 138 | pCbCtx->m_sStateCtx[iCtx].Set (g_kuiStateTransTable[kiState][0], |
| 139 | 139 | pCbCtx->m_sStateCtx[iCtx].Mps() ^ (kiState == 0)); |
| @@ -193,7 +193,7 @@ void WelsCabacEncodeFlush (SCabacCtx* pCbCtx) { · 53 unmodified lines | ||
| 193 | 193 | if (uiLow & cabac_low_t (1) << (CABAC_LOW_WIDTH - 1)) |
| 194 | 194 | PropagateCarry (pBufCur, pCbCtx->m_pBufStart); |
| 195 | 195 | for (; (iLowBitCnt -= 8) >= 0; uiLow <<= 8) |
| 196 | − *pBufCur++ = (uint8_t) (uiLow >> (CABAC_LOW_WIDTH - 9)); | |
| 196 | + * pBufCur++ = (uint8_t) (uiLow >> (CABAC_LOW_WIDTH - 9)); | |
| 197 | 197 | |
| 198 | 198 | pCbCtx->m_pBufCur = pBufCur; |
| 199 | 199 | } |