本文整理汇总了C++中TComPic::getCtu方法的典型用法代码示例。如果您正苦于以下问题:C++ TComPic::getCtu方法的具体用法?C++ TComPic::getCtu怎么用?C++ TComPic::getCtu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TComPic
的用法示例。
在下文中一共展示了TComPic::getCtu方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xCreateLostPicture
Void TDecTop::xCreateLostPicture(Int iLostPoc)
{
printf("\ninserting lost poc : %d\n",iLostPoc);
TComPic *cFillPic;
xGetNewPicBuffer(*(m_parameterSetManager.getFirstSPS()), *(m_parameterSetManager.getFirstPPS()), cFillPic, 0);
cFillPic->getSlice(0)->initSlice();
TComList<TComPic*>::iterator iterPic = m_cListPic.begin();
Int closestPoc = 1000000;
while ( iterPic != m_cListPic.end())
{
TComPic * rpcPic = *(iterPic++);
if(abs(rpcPic->getPicSym()->getSlice(0)->getPOC() -iLostPoc)<closestPoc&&abs(rpcPic->getPicSym()->getSlice(0)->getPOC() -iLostPoc)!=0&&rpcPic->getPicSym()->getSlice(0)->getPOC()!=m_apcSlicePilot->getPOC())
{
closestPoc=abs(rpcPic->getPicSym()->getSlice(0)->getPOC() -iLostPoc);
}
}
iterPic = m_cListPic.begin();
while ( iterPic != m_cListPic.end())
{
TComPic *rpcPic = *(iterPic++);
if(abs(rpcPic->getPicSym()->getSlice(0)->getPOC() -iLostPoc)==closestPoc&&rpcPic->getPicSym()->getSlice(0)->getPOC()!=m_apcSlicePilot->getPOC())
{
printf("copying picture %d to %d (%d)\n",rpcPic->getPicSym()->getSlice(0)->getPOC() ,iLostPoc,m_apcSlicePilot->getPOC());
rpcPic->getPicYuvRec()->copyToPic(cFillPic->getPicYuvRec());
break;
}
}
cFillPic->setCurrSliceIdx(0);
for(Int ctuRsAddr=0; ctuRsAddr<cFillPic->getNumberOfCtusInFrame(); ctuRsAddr++)
{
cFillPic->getCtu(ctuRsAddr)->initCtu(cFillPic, ctuRsAddr);
}
cFillPic->getSlice(0)->setReferenced(true);
cFillPic->getSlice(0)->setPOC(iLostPoc);
xUpdatePreviousTid0POC(cFillPic->getSlice(0));
cFillPic->setReconMark(true);
cFillPic->setOutputMark(true);
if(m_pocRandomAccess == MAX_INT)
{
m_pocRandomAccess = iLostPoc;
}
}