Skip to content
Snippets Groups Projects
Commit 3f6e1121 authored by Frank Bossen's avatar Frank Bossen
Browse files

Merge branch 'IBCBuf_bug_fixed' into 'master'

Fix #976: IBC virtual buffer reset for large CUs

See merge request jvet/VVCSoftware_VTM!1484
parents 7257fba5 4f09e4da
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,13 @@ void DecCu::decompressCtu( CodingStructure& cs, const UnitArea& ctuArea )
const int vSize = cs.slice->getSPS()->getMaxCUHeight() > 64 ? 64 : cs.slice->getSPS()->getMaxCUHeight();
if((currCU.Y().x % vSize) == 0 && (currCU.Y().y % vSize) == 0)
{
m_pcInterPred->resetVPDUforIBC(cs.pcv->chrFormat, cs.slice->getSPS()->getMaxCUHeight(), vSize, currCU.Y().x + g_IBCBufferSize / cs.slice->getSPS()->getMaxCUHeight() / 2, currCU.Y().y);
for(int x = currCU.Y().x; x < currCU.Y().y + currCU.Y().width; x += vSize)
{
for(int y = currCU.Y().y; y < currCU.Y().y + currCU.Y().height; y += vSize)
{
m_pcInterPred->resetVPDUforIBC(cs.pcv->chrFormat, cs.slice->getSPS()->getMaxCUHeight(), vSize, x + g_IBCBufferSize / cs.slice->getSPS()->getMaxCUHeight() / 2, y);
}
}
}
}
if (currCU.predMode != MODE_INTRA && currCU.predMode != MODE_PLT && currCU.Y().valid())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment