diff --git a/source/Lib/CommonLib/UnitTools.cpp b/source/Lib/CommonLib/UnitTools.cpp index 3ca97d9538aff9f0deef9bb9fab0b8ab86315827..4e52f199af14c32b47770fa303ac517833992f7d 100755 --- a/source/Lib/CommonLib/UnitTools.cpp +++ b/source/Lib/CommonLib/UnitTools.cpp @@ -788,26 +788,27 @@ bool PU::isLMCModeEnabled(const PredictionUnit &pu, unsigned mode) } return false; } + #if JVET_O1153_INTRA_CHROMAMODE_CODING -int PU::getLMSymbolList(const PredictionUnit &pu, int *pModeList) +int PU::getLMSymbolList(const PredictionUnit &pu, int *modeList) { - int iIdx = 0; + int idx = 0; - pModeList[iIdx++] = LM_CHROMA_IDX; - pModeList[iIdx++] = MDLM_L_IDX; - pModeList[iIdx++] = MDLM_T_IDX; - return iIdx; + modeList[idx++] = LM_CHROMA_IDX; + modeList[idx++] = MDLM_L_IDX; + modeList[idx++] = MDLM_T_IDX; + return idx; } #else -int PU::getLMSymbolList(const PredictionUnit &pu, int *pModeList) +int PU::getLMSymbolList(const PredictionUnit &pu, int *modeList) { - int iIdx = 0; + int idx = 0; - pModeList[ iIdx++ ] = LM_CHROMA_IDX; - pModeList[ iIdx++ ] = -1; - pModeList[iIdx++] = MDLM_L_IDX; - pModeList[iIdx++] = MDLM_T_IDX; - return iIdx; + modeList[ idx++ ] = LM_CHROMA_IDX; + modeList[ idx++ ] = -1; + modeList[idx++] = MDLM_L_IDX; + modeList[idx++] = MDLM_T_IDX; + return idx; } #endif diff --git a/source/Lib/CommonLib/UnitTools.h b/source/Lib/CommonLib/UnitTools.h index 063a53054fbcde9ea07be75fdab94fc02da21e93..94bfadc6bb88fb02e71c9c41d8681fd1ef0a94f5 100644 --- a/source/Lib/CommonLib/UnitTools.h +++ b/source/Lib/CommonLib/UnitTools.h @@ -129,7 +129,7 @@ namespace CU // PU tools namespace PU { - int getLMSymbolList(const PredictionUnit &pu, int *pModeList); + int getLMSymbolList(const PredictionUnit &pu, int *modeList); int getIntraMPMs(const PredictionUnit &pu, unsigned *mpm, const ChannelType &channelType = CHANNEL_TYPE_LUMA); bool isMIP (const PredictionUnit &pu, const ChannelType &chType = CHANNEL_TYPE_LUMA); int getMipMPMs (const PredictionUnit &pu, unsigned *mpm);