在执行完所有的帧间模式的预测后,才执行帧内模式预测。
Void TEncCu::xCheckRDCostIntra( TComDataCU *&rpcBestCU,
TComDataCU *&rpcTempCU,
Double &cost,
PartSize eSize
DEBUG_STRING_FN_DECLARE(sDebug)
#if VCEG_AZ05_ROT_TR || VCEG_AZ05_INTRA_MPI || COM16_C1044_NSST || COM16_C1046_PDPC_INTRA
, Int& bNonZeroCoeff
#endif
)
{
DEBUG_STRING_NEW(sTest)
if(getFastDeltaQp())//默认关闭;
{
const TComSPS &sps=*(rpcTempCU->getSlice()->getSPS());
#if JVET_C0024_QTBT
const UInt fastDeltaQPCuMaxSize = Clip3(sps.getMinQTSize(rpcBestCU->getSlice()->getSliceType(), rpcBestCU->getTextType()), sps.getCTUSize(), 32u);
#else
const UInt fastDeltaQPCuMaxSize = Clip3(sps.getMaxCUHeight()>>(sps.getLog2DiffMaxMinCodingBlockSize()), sps.getMaxCUHeight(), 32u);
#endif
if(rpcTempCU->getWidth( 0 ) > fastDeltaQPCuMaxSize)
{
return; // only check necessary 2Nx2N Intra in fast deltaqp mode
}
}
#if JVET_C0024_QTBT
UInt uiWIdx = g_aucConvertToBit[rpcBestCU->getWidth(0)];//5;
UInt uiHIdx = g_aucConvertToBit[rpcBestCU->getHeight(0)];//5;
#endif
UInt uiDepth = rpcTempCU->getDepth( 0 );//得到当前CU的深度;
#if COM16_C806_LARGE_CTU
if( m_pcEncCfg->getUseFastLCTU() )
{
#if JVET_C0024_QTBT
if( rpcTempCU->getWidth( 0 )*rpcTempCU->getHeight(0) > 4096 )//如果宽和高大于64,则强行进行划分;
#else
if( rpcTempCU->getWidth( 0 ) > 64 )
#endif
{
return;
}