TEXT_LUMA 203 source/common/deblock.cpp (cuQ->getCbf(partQ, TEXT_LUMA, cuQ->m_tuDepth[partQ]) || TEXT_LUMA 204 source/common/deblock.cpp cuP->getCbf(partP, TEXT_LUMA, cuP->m_tuDepth[partP]))) TEXT_LUMA 224 source/common/quant.cpp m_qpParam[TEXT_LUMA].setQpParam(qp + QP_BD_OFFSET); TEXT_LUMA 408 source/common/quant.cpp bool isLuma = ttype == TEXT_LUMA; TEXT_LUMA 603 source/common/quant.cpp int useDST = !sizeIdx && ttype == TEXT_LUMA && bIntra; TEXT_LUMA 677 source/common/quant.cpp bool bIsLuma = ttype == TEXT_LUMA; TEXT_LUMA 3327 source/encoder/analysis.cpp normFactor(srcY, blockSize, ctu, qp, TEXT_LUMA); TEXT_LUMA 977 source/encoder/entropy.cpp X265_CHECK(cu.getCbf(absPartIdxC, TEXT_LUMA, 0), "CBF should have been set\n"); TEXT_LUMA 980 source/encoder/entropy.cpp codeQtCbfLuma(cu.getCbf(absPartIdx, TEXT_LUMA, curDepth), curDepth); TEXT_LUMA 982 source/encoder/entropy.cpp uint32_t cbfY = cu.getCbf(absPartIdx, TEXT_LUMA, curDepth); TEXT_LUMA 1000 source/encoder/entropy.cpp codeCoeffNxN(cu, cu.m_trCoeff[0] + coeffOffset, absPartIdx, log2CurSize, TEXT_LUMA); TEXT_LUMA 1098 source/encoder/entropy.cpp X265_CHECK(cu.getCbf(absPartIdx, TEXT_LUMA, 0), "CBF should have been set\n"); TEXT_LUMA 1101 source/encoder/entropy.cpp codeQtCbfLuma(cu.getCbf(absPartIdx, TEXT_LUMA, curDepth), curDepth); TEXT_LUMA 1103 source/encoder/entropy.cpp uint32_t cbfY = cu.getCbf(absPartIdx, TEXT_LUMA, curDepth); TEXT_LUMA 1120 source/encoder/entropy.cpp codeCoeffNxN(cu, cu.m_trCoeff[0] + coeffOffset, absPartIdx, log2CurSize, TEXT_LUMA); TEXT_LUMA 1827 source/encoder/entropy.cpp bool bIsLuma = ttype == TEXT_LUMA; TEXT_LUMA 348 source/encoder/search.cpp cu.setTransformSkipSubParts(0, TEXT_LUMA, absPartIdx, fullDepth); TEXT_LUMA 360 source/encoder/search.cpp uint32_t numSig = m_quant.transformNxN(cu, fenc, stride, residual, stride, coeffY, log2TrSize, TEXT_LUMA, absPartIdx, false); TEXT_LUMA 363 source/encoder/search.cpp m_quant.invtransformNxN(cu, residual, stride, coeffY, log2TrSize, TEXT_LUMA, true, false, numSig); TEXT_LUMA 371 source/encoder/search.cpp cu.setCbfSubParts(bCBF, TEXT_LUMA, absPartIdx, fullDepth); TEXT_LUMA 408 source/encoder/search.cpp if (cu.getCbf(absPartIdx, TEXT_LUMA, tuDepth)) TEXT_LUMA 409 source/encoder/search.cpp m_entropyCoder.codeCoeffNxN(cu, coeffY, absPartIdx, log2TrSize, TEXT_LUMA); TEXT_LUMA 423 source/encoder/search.cpp fullCost.energy = m_quant.ssimDistortion(cu, fenc, stride, reconQt, reconQtStride, log2TrSize, TEXT_LUMA, absPartIdx); TEXT_LUMA 456 source/encoder/search.cpp cbf |= cu.getCbf(qPartIdx, TEXT_LUMA, tuDepth + 1); TEXT_LUMA 490 source/encoder/search.cpp cu.setCbfSubParts(bCBF, TEXT_LUMA, absPartIdx, fullDepth); TEXT_LUMA 491 source/encoder/search.cpp cu.setTransformSkipSubParts(0, TEXT_LUMA, absPartIdx, fullDepth); TEXT_LUMA 566 source/encoder/search.cpp uint32_t numSig = m_quant.transformNxN(cu, fenc, stride, residual, stride, coeff, log2TrSize, TEXT_LUMA, absPartIdx, useTSkip); TEXT_LUMA 569 source/encoder/search.cpp m_quant.invtransformNxN(cu, residual, stride, coeff, log2TrSize, TEXT_LUMA, true, useTSkip, numSig); TEXT_LUMA 584 source/encoder/search.cpp cu.setTransformSkipSubParts(useTSkip, TEXT_LUMA, absPartIdx, fullDepth); TEXT_LUMA 585 source/encoder/search.cpp cu.setCbfSubParts((!!numSig) << tuDepth, TEXT_LUMA, absPartIdx, fullDepth); TEXT_LUMA 623 source/encoder/search.cpp if (cu.getCbf(absPartIdx, TEXT_LUMA, tuDepth)) TEXT_LUMA 624 source/encoder/search.cpp m_entropyCoder.codeCoeffNxN(cu, coeff, absPartIdx, log2TrSize, TEXT_LUMA); TEXT_LUMA 638 source/encoder/search.cpp tmpEnergy = m_quant.ssimDistortion(cu, fenc, stride, tmpRecon, tmpReconStride, log2TrSize, TEXT_LUMA, absPartIdx); TEXT_LUMA 662 source/encoder/search.cpp cu.setTransformSkipSubParts(0, TEXT_LUMA, absPartIdx, fullDepth); TEXT_LUMA 663 source/encoder/search.cpp cu.setCbfSubParts(bCBF << tuDepth, TEXT_LUMA, absPartIdx, fullDepth); TEXT_LUMA 710 source/encoder/search.cpp X265_CHECK(!cu.m_transformSkip[TEXT_LUMA][absPartIdx], "unexpected tskip flag in residualTransformQuantIntra\n"); TEXT_LUMA 723 source/encoder/search.cpp uint32_t numSig = m_quant.transformNxN(cu, fenc, stride, residual, stride, coeffY, log2TrSize, TEXT_LUMA, absPartIdx, false); TEXT_LUMA 726 source/encoder/search.cpp m_quant.invtransformNxN(cu, residual, stride, coeffY, log2TrSize, TEXT_LUMA, true, false, numSig); TEXT_LUMA 728 source/encoder/search.cpp cu.setCbfSubParts(1 << tuDepth, TEXT_LUMA, absPartIdx, fullDepth); TEXT_LUMA 733 source/encoder/search.cpp cu.setCbfSubParts(0, TEXT_LUMA, absPartIdx, fullDepth); TEXT_LUMA 746 source/encoder/search.cpp cbf |= cu.getCbf(qPartIdx, TEXT_LUMA, tuDepth + 1); TEXT_LUMA 845 source/encoder/search.cpp checkTransformSkip &= !m_param->bEnableTSkipFast || (log2TrSize <= MAX_LOG2_TS_SIZE && cu.m_transformSkip[TEXT_LUMA][absPartIdx]); TEXT_LUMA 1256 source/encoder/search.cpp intraMode.ssimEnergy = m_quant.ssimDistortion(cu, fencYuv->m_buf[0], fencYuv->m_size, intraMode.reconYuv.m_buf[0], intraMode.reconYuv.m_size, cuGeom.log2CUSize, TEXT_LUMA, 0); TEXT_LUMA 1476 source/encoder/search.cpp intraMode.ssimEnergy = m_quant.ssimDistortion(cu, fencYuv->m_buf[0], fencYuv->m_size, reconYuv->m_buf[0], reconYuv->m_size, cuGeom.log2CUSize, TEXT_LUMA, 0); TEXT_LUMA 1662 source/encoder/search.cpp combCbfY |= cu.getCbf(qPartIdx, TEXT_LUMA, 1); TEXT_LUMA 2675 source/encoder/search.cpp interMode.ssimEnergy = m_quant.ssimDistortion(cu, fencYuv->m_buf[0], fencYuv->m_size, reconYuv->m_buf[0], reconYuv->m_size, cu.m_log2CUSize[0], TEXT_LUMA, 0); TEXT_LUMA 2755 source/encoder/search.cpp cbf0Energy = m_quant.ssimDistortion(cu, fencYuv->m_buf[0], fencYuv->m_size, predYuv->m_buf[0], predYuv->m_size, log2CUSize, TEXT_LUMA, 0); TEXT_LUMA 2827 source/encoder/search.cpp interMode.ssimEnergy = m_quant.ssimDistortion(cu, fencYuv->m_buf[0], fencYuv->m_size, reconYuv->m_buf[0], reconYuv->m_size, cu.m_log2CUSize[0], TEXT_LUMA, 0); TEXT_LUMA 2873 source/encoder/search.cpp cu.setTransformSkipSubParts(0, TEXT_LUMA, absPartIdx, depth); TEXT_LUMA 2882 source/encoder/search.cpp uint32_t numSigY = m_quant.transformNxN(cu, fenc, fencYuv->m_size, curResiY, strideResiY, coeffCurY, log2TrSize, TEXT_LUMA, absPartIdx, false); TEXT_LUMA 2886 source/encoder/search.cpp m_quant.invtransformNxN(cu, curResiY, strideResiY, coeffCurY, log2TrSize, TEXT_LUMA, false, false, numSigY); TEXT_LUMA 2887 source/encoder/search.cpp cu.setCbfSubParts(setCbf, TEXT_LUMA, absPartIdx, depth); TEXT_LUMA 2892 source/encoder/search.cpp cu.setCbfSubParts(0, TEXT_LUMA, absPartIdx, depth); TEXT_LUMA 2960 source/encoder/search.cpp ycbf |= cu.getCbf(qPartIdx, TEXT_LUMA, tuDepth + 1); TEXT_LUMA 3006 source/encoder/search.cpp ycbf |= cu.getCbf(qPartIdx, TEXT_LUMA, tuDepth + 1); TEXT_LUMA 3132 source/encoder/search.cpp cu.setTransformSkipSubParts(0, TEXT_LUMA, absPartIdx, depth); TEXT_LUMA 3139 source/encoder/search.cpp numSig[TEXT_LUMA][0] = m_quant.transformNxN(cu, fenc, fencYuv->m_size, resi, resiYuv.m_size, coeffCurY, log2TrSize, TEXT_LUMA, absPartIdx, false); TEXT_LUMA 3140 source/encoder/search.cpp cbfFlag[TEXT_LUMA][0] = !!numSig[TEXT_LUMA][0]; TEXT_LUMA 3147 source/encoder/search.cpp if (cbfFlag[TEXT_LUMA][0]) TEXT_LUMA 3148 source/encoder/search.cpp m_entropyCoder.codeCoeffNxN(cu, coeffCurY, absPartIdx, log2TrSize, TEXT_LUMA); TEXT_LUMA 3149 source/encoder/search.cpp singleBits[TEXT_LUMA][0] = m_entropyCoder.getNumberOfWrittenBits(); TEXT_LUMA 3159 source/encoder/search.cpp zeroEnergyY = m_quant.ssimDistortion(cu, fenc, fencYuv->m_size, mode.predYuv.getLumaAddr(absPartIdx), mode.predYuv.m_size, log2TrSize, TEXT_LUMA, absPartIdx); TEXT_LUMA 3164 source/encoder/search.cpp if (cbfFlag[TEXT_LUMA][0]) TEXT_LUMA 3166 source/encoder/search.cpp m_quant.invtransformNxN(cu, curResiY, strideResiY, coeffCurY, log2TrSize, TEXT_LUMA, false, false, numSig[TEXT_LUMA][0]); //this is for inter mode only TEXT_LUMA 3175 source/encoder/search.cpp uint32_t nzCbfBitsY = m_entropyCoder.estimateCbfBits(cbfFlag[TEXT_LUMA][0], TEXT_LUMA, tuDepth); TEXT_LUMA 3180 source/encoder/search.cpp singleCostY = m_rdCost.calcPsyRdCost(nonZeroDistY, nzCbfBitsY + singleBits[TEXT_LUMA][0], nonZeroEnergyY); TEXT_LUMA 3184 source/encoder/search.cpp nonZeroEnergyY = m_quant.ssimDistortion(cu, fenc, fencYuv->m_size, curReconY, strideReconY, log2TrSize, TEXT_LUMA, absPartIdx); TEXT_LUMA 3185 source/encoder/search.cpp singleCostY = m_rdCost.calcSsimRdCost(nonZeroDistY, nzCbfBitsY + singleBits[TEXT_LUMA][0], nonZeroEnergyY); TEXT_LUMA 3188 source/encoder/search.cpp singleCostY = m_rdCost.calcRdCost(nonZeroDistY, nzCbfBitsY + singleBits[TEXT_LUMA][0]); TEXT_LUMA 3192 source/encoder/search.cpp singleDist[TEXT_LUMA][0] = nonZeroDistY; TEXT_LUMA 3193 source/encoder/search.cpp singleEnergy[TEXT_LUMA][0] = nonZeroEnergyY; TEXT_LUMA 3200 source/encoder/search.cpp uint64_t nullCostY = estimateNullCbfCost(zeroDistY, zeroEnergyY, tuDepth, TEXT_LUMA); TEXT_LUMA 3204 source/encoder/search.cpp cbfFlag[TEXT_LUMA][0] = 0; TEXT_LUMA 3205 source/encoder/search.cpp singleBits[TEXT_LUMA][0] = 0; TEXT_LUMA 3212 source/encoder/search.cpp minCost[TEXT_LUMA][0] = nullCostY; TEXT_LUMA 3213 source/encoder/search.cpp singleDist[TEXT_LUMA][0] = zeroDistY; TEXT_LUMA 3214 source/encoder/search.cpp singleEnergy[TEXT_LUMA][0] = zeroEnergyY; TEXT_LUMA 3219 source/encoder/search.cpp minCost[TEXT_LUMA][0] = singleCostY; TEXT_LUMA 3220 source/encoder/search.cpp singleDist[TEXT_LUMA][0] = nonZeroDistY; TEXT_LUMA 3221 source/encoder/search.cpp singleEnergy[TEXT_LUMA][0] = nonZeroEnergyY; TEXT_LUMA 3228 source/encoder/search.cpp minCost[TEXT_LUMA][0] = estimateNullCbfCost(zeroDistY, zeroEnergyY, tuDepth, TEXT_LUMA); TEXT_LUMA 3230 source/encoder/search.cpp singleDist[TEXT_LUMA][0] = zeroDistY; TEXT_LUMA 3231 source/encoder/search.cpp singleBits[TEXT_LUMA][0] = 0; TEXT_LUMA 3232 source/encoder/search.cpp singleEnergy[TEXT_LUMA][0] = zeroEnergyY; TEXT_LUMA 3235 source/encoder/search.cpp cu.setCbfSubParts(cbfFlag[TEXT_LUMA][0] << tuDepth, TEXT_LUMA, absPartIdx, depth); TEXT_LUMA 3374 source/encoder/search.cpp cu.setTransformSkipSubParts(1, TEXT_LUMA, absPartIdx, depth); TEXT_LUMA 3381 source/encoder/search.cpp uint32_t numSigTSkipY = m_quant.transformNxN(cu, fenc, fencYuv->m_size, resi, resiYuv.m_size, m_tsCoeff, log2TrSize, TEXT_LUMA, absPartIdx, true); TEXT_LUMA 3387 source/encoder/search.cpp m_entropyCoder.codeCoeffNxN(cu, m_tsCoeff, absPartIdx, log2TrSize, TEXT_LUMA); TEXT_LUMA 3390 source/encoder/search.cpp m_quant.invtransformNxN(cu, m_tsResidual, trSize, m_tsCoeff, log2TrSize, TEXT_LUMA, false, true, numSigTSkipY); TEXT_LUMA 3402 source/encoder/search.cpp nonZeroEnergyY = m_quant.ssimDistortion(cu, fenc, fencYuv->m_size, m_tsRecon, trSize, log2TrSize, TEXT_LUMA, absPartIdx); TEXT_LUMA 3409 source/encoder/search.cpp if (!numSigTSkipY || minCost[TEXT_LUMA][0] < singleCostY) TEXT_LUMA 3410 source/encoder/search.cpp cu.setTransformSkipSubParts(0, TEXT_LUMA, absPartIdx, depth); TEXT_LUMA 3413 source/encoder/search.cpp singleDist[TEXT_LUMA][0] = nonZeroDistY; TEXT_LUMA 3414 source/encoder/search.cpp singleEnergy[TEXT_LUMA][0] = nonZeroEnergyY; TEXT_LUMA 3415 source/encoder/search.cpp cbfFlag[TEXT_LUMA][0] = !!numSigTSkipY; TEXT_LUMA 3416 source/encoder/search.cpp bestTransformMode[TEXT_LUMA][0] = 1; TEXT_LUMA 3418 source/encoder/search.cpp numSig[TEXT_LUMA][0] = numSigTSkipY; TEXT_LUMA 3424 source/encoder/search.cpp cu.setCbfSubParts(cbfFlag[TEXT_LUMA][0] << tuDepth, TEXT_LUMA, absPartIdx, depth); TEXT_LUMA 3530 source/encoder/search.cpp m_entropyCoder.codeQtCbfLuma(cbfFlag[TEXT_LUMA][0], tuDepth); TEXT_LUMA 3535 source/encoder/search.cpp coeffBits = singleBits[TEXT_LUMA][0]; TEXT_LUMA 3548 source/encoder/search.cpp fullCost.distortion += singleDist[TEXT_LUMA][0]; TEXT_LUMA 3549 source/encoder/search.cpp fullCost.energy += singleEnergy[TEXT_LUMA][0];// need to check we need to add chroma also TEXT_LUMA 3567 source/encoder/search.cpp if (cbfFlag[TEXT_LUMA][0] == 0) TEXT_LUMA 3569 source/encoder/search.cpp else if (numSig[TEXT_LUMA][0] < (numCoeff / 64)) TEXT_LUMA 3574 source/encoder/search.cpp if (energy == numSig[TEXT_LUMA][0]) TEXT_LUMA 3659 source/encoder/search.cpp cu.setTransformSkipSubParts(bestTransformMode[TEXT_LUMA][0], TEXT_LUMA, absPartIdx, depth); TEXT_LUMA 3681 source/encoder/search.cpp cu.setCbfSubParts(cbfFlag[TEXT_LUMA][0] << tuDepth, TEXT_LUMA, absPartIdx, depth); TEXT_LUMA 3729 source/encoder/search.cpp m_entropyCoder.codeQtCbfLuma(cu.getCbf(absPartIdx, TEXT_LUMA, tuDepth), tuDepth);