diff --git a/source/Lib/CommonLib/IntraPrediction.cpp b/source/Lib/CommonLib/IntraPrediction.cpp index ae63e941049a40b61bd4cd3e7bb951b9b20b1cd5..2d9d7613b1b713e751265a27333704f571a0204b 100644 --- a/source/Lib/CommonLib/IntraPrediction.cpp +++ b/source/Lib/CommonLib/IntraPrediction.cpp @@ -869,7 +869,7 @@ void IntraPrediction::xPredIntraBDPCM(const CPelBuf &pSrc, PelBuf &pDst, const u CHECK( !( dirMode == 1 || dirMode == 2 ), "Incorrect BDPCM mode parameter." ); - Pel* pPred = &pDst.buf[0]; + Pel* pred = &pDst.buf[0]; if( dirMode == 1 ) { Pel val; @@ -878,9 +878,9 @@ void IntraPrediction::xPredIntraBDPCM(const CPelBuf &pSrc, PelBuf &pDst, const u val = pSrc.buf[(y + 1) * strideS]; for( int x = 0; x < wdt; x++ ) { - pPred[x] = val; + pred[x] = val; } - pPred += strideP; + pred += strideP; } } else @@ -889,9 +889,9 @@ void IntraPrediction::xPredIntraBDPCM(const CPelBuf &pSrc, PelBuf &pDst, const u { for( int x = 0; x < wdt; x++ ) { - pPred[x] = pSrc.buf[x + 1]; + pred[x] = pSrc.buf[x + 1]; } - pPred += strideP; + pred += strideP; } } } diff --git a/source/Lib/CommonLib/Quant.cpp b/source/Lib/CommonLib/Quant.cpp index 6aa3e1e91c6f9c59481311b87d62152ff7ed3201..907ee11b36e81e2e117540f9445edac50a4ae5f2 100644 --- a/source/Lib/CommonLib/Quant.cpp +++ b/source/Lib/CommonLib/Quant.cpp @@ -147,38 +147,38 @@ void invResDPCM( const TransformUnit &tu, const ComponentID &compID, CoeffBuf &d const CompArea &rect = tu.blocks[compID]; const int wdt = rect.width; const int hgt = rect.height; - const CCoeffBuf pcCoeff = tu.getCoeffs(compID); + const CCoeffBuf coeffs = tu.getCoeffs(compID); - const TCoeff* pcCoef = &pcCoeff.buf[0]; - TCoeff* pDst = &dstBuf.buf[0]; + const TCoeff* coef = &coeffs.buf[0]; + TCoeff* dst = &dstBuf.buf[0]; if( tu.cu->bdpcmMode == 1 ) { for( int y = 0; y < hgt; y++ ) { - pDst[0] = pcCoef[0]; + dst[0] = coef[0]; for( int x = 1; x < wdt; x++ ) { - pDst[x] = pDst[x - 1] + pcCoef[x]; + dst[x] = dst[x - 1] + coef[x]; } - pcCoef += pcCoeff.stride; - pDst += dstBuf.stride; + coef += coeffs.stride; + dst += dstBuf.stride; } } else { for( int x = 0; x < wdt; x++ ) { - pDst[x] = pcCoef[x]; + dst[x] = coef[x]; } for( int y = 0; y < hgt - 1; y++ ) { for( int x = 0; x < wdt; x++ ) { - pDst[dstBuf.stride + x] = pDst[x] + pcCoef[pcCoeff.stride + x]; + dst[dstBuf.stride + x] = dst[x] + coef[coeffs.stride + x]; } - pcCoef += pcCoeff.stride; - pDst += dstBuf.stride; + coef += coeffs.stride; + dst += dstBuf.stride; } } } @@ -188,9 +188,9 @@ void fwdResDPCM( TransformUnit &tu, const ComponentID &compID ) const CompArea &rect = tu.blocks[compID]; const int wdt = rect.width; const int hgt = rect.height; - CoeffBuf piQCoef = tu.getCoeffs(compID); + CoeffBuf coeffs = tu.getCoeffs(compID); - TCoeff* pCoef = &piQCoef.buf[0]; + TCoeff* coef = &coeffs.buf[0]; if( tu.cu->bdpcmMode == 1 ) { @@ -198,21 +198,21 @@ void fwdResDPCM( TransformUnit &tu, const ComponentID &compID ) { for( int x = wdt - 1; x > 0; x-- ) { - pCoef[x] -= pCoef[x - 1]; + coef[x] -= coef[x - 1]; } - pCoef += piQCoef.stride; + coef += coeffs.stride; } } else { - pCoef += piQCoef.stride * (hgt - 1); + coef += coeffs.stride * (hgt - 1); for( int y = 0; y < hgt - 1; y++ ) { for ( int x = 0; x < wdt; x++ ) { - pCoef[x] -= pCoef[x - piQCoef.stride]; + coef[x] -= coef[x - coeffs.stride]; } - pCoef -= piQCoef.stride; + coef -= coeffs.stride; } } } @@ -380,17 +380,17 @@ void Quant::dequant(const TransformUnit &tu, const int channelBitDepth = sps->getBitDepth(toChannelType(compID)); #if JVET_N0413_RDPCM - const TCoeff *pInput; + const TCoeff *coef; if( tu.cu->bdpcmMode && isLuma(compID) ) { invResDPCM( tu, compID, dstCoeff ); - pInput = piCoef; + coef = piCoef; } else { - pInput = tu.getCoeffs(compID).buf; + coef = tu.getCoeffs(compID).buf; } - const TCoeff *const piQCoef = pInput; + const TCoeff *const piQCoef = coef; #endif #if HEVC_USE_SCALING_LISTS CHECK(scalingListType >= SCALING_LIST_NUM, "Invalid scaling list");