VVC/JEM代码学习20:xCheckRDCostIntra

  在执行完所有的帧间模式的预测后,才执行帧内模式预测。

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;
    }
  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值