func (this *TEncEntropy) encodeCoeff(pcCU *TLibCommon.TComDataCU, uiAbsPartIdx, uiDepth, uiWidth, uiHeight uint, bCodeDQP *bool) { uiMinCoeffSize := pcCU.GetPic().GetMinCUWidth() * pcCU.GetPic().GetMinCUHeight() uiLumaOffset := uiMinCoeffSize * uiAbsPartIdx uiChromaOffset := uiLumaOffset >> 2 if pcCU.IsIntra(uiAbsPartIdx) { /*DTRACE_CABAC_VL( g_nSymbolCounter++ )*/ this.m_pcEntropyCoderIf.DTRACE_CABAC_T("\tdecodeTransformIdx()\tCUDepth=") this.m_pcEntropyCoderIf.DTRACE_CABAC_V(uiDepth) this.m_pcEntropyCoderIf.DTRACE_CABAC_T("\n") } else { if !(pcCU.GetMergeFlag1(uiAbsPartIdx) && pcCU.GetPartitionSize1(uiAbsPartIdx) == TLibCommon.SIZE_2Nx2N) { this.m_pcEntropyCoderIf.codeQtRootCbf(pcCU, uiAbsPartIdx) } if !pcCU.GetQtRootCbf(uiAbsPartIdx) { return } } this.xEncodeTransform(pcCU, uiLumaOffset, uiChromaOffset, uiAbsPartIdx, uiDepth, uiWidth, uiHeight, 0, bCodeDQP) }