predIntraChromaLM在estIntraPredChromaQT函数中被调用,来进行帧内色度模式中,MMLM、LM_T和LM_L模式的预测。
函数首先区分三种LM模式,获得该LM模式时,pu的参考块的亮度像素经采样之后的像素Temp;
然后调用xGetLMParameters,获取LM模式中线性模型的几个参数:a, b, iShift;
然后调用linearTransform函数,由线性模型计算LM模式的预测像素pred。
void IntraPrediction::predIntraChromaLM(const ComponentID compID, PelBuf &piPred, const PredictionUnit &pu, const CompArea& chro