您的位置:首页 > 其它

xCheckRDCostInter

2014-10-03 02:29 232 查看
//xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2Nx2N );
#if AMP_MRG//< encoder only force merge for AMP partition (no motion search for AMP)
Void TEncCu::xCheckRDCostInter( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize ePartSize, Bool bUseMRG)
#else
Void TEncCu::xCheckRDCostInter( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize ePartSize )
#endif
{
UChar uhDepth = rpcTempCU->getDepth( 0 );

rpcTempCU->setDepthSubParts( uhDepth, 0 );//setDepthSubParts( UInt uiDepth, UInt uiAbsPartIdx )

rpcTempCU->setSkipFlagSubParts( false, 0, uhDepth );//setSkipFlagSubParts( Bool skip, UInt absPartIdx, UInt depth )

rpcTempCU->setPartSizeSubParts  ( ePartSize,  0, uhDepth );//setPartSizeSubParts( PartSize eMode, UInt uiAbsPartIdx, UInt uiDepth )
rpcTempCU->setPredModeSubParts  ( MODE_INTER, 0, uhDepth );

#if AMP_MRG
rpcTempCU->setMergeAMP (true);
m_pcPredSearch->predInterSearch ( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcRecoYuvTemp[uhDepth], false, bUseMRG );
#else
m_pcPredSearch->predInterSearch ( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcRecoYuvTemp[uhDepth] );
#endif

#if AMP_MRG
if ( !rpcTempCU->getMergeAMP() )
{
return;
}
#endif

m_pcPredSearch->encodeResAndCalcRdInterCU( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcResiYuvBest[uhDepth], m_ppcRecoYuvTemp[uhDepth], false );
rpcTempCU->getTotalCost()  = m_pcRdCost->calcRdCost( rpcTempCU->getTotalBits(), rpcTempCU->getTotalDistortion() );

xCheckDQP( rpcTempCU );
xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: