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); }
相关文章推荐
- HEVC代码追踪(九):帧间->xCheckRDCostInter
- FVC/JEM代码学习22:xCheckRDCostInterKLT
- HTM-16.2代码(4)——xCheckRDCostInter
- HEVC代码追踪(九):帧间->xCheckRDCostInter
- FVC/JEM代码学习18:xCheckRDCostInter
- FVC/JEM代码学习20:xCheckRDCostIntra
- xcheckRDcostIntra
- HEVC代码追踪(八):帧内->xCheckRDCostIntra
- HEVC代码追踪(八):帧内->xCheckRDCostIntra
- Node reboot or eviction: How to check if your private interconnect CRS can transmit network heartbea
- Check whether string is interleaved
- 用Inter Atom模式的Android模拟器启动报一下错误
- MySQL Checkpoint机制
- 内核编译出现错误:[scripts/kconfig/dochecklxdialog] Error 1
- HDOJ 题目1385 Minimum Transport Cost(最短路,输出路径)
- Web Standard is crazy! A web standards checklist.
- 如何使用Valgrind memcheck工具进行C/C++的内存泄漏检测
- Check Your Internet Connection With C#
- 【POJ3657】【USACO 2008 Jan Gold】 1.Haybale Guessing 二分答案,并查集check
- asp and sqlserver check password