Skip to content
Snippets Groups Projects
Commit 047d0212 authored by Hongtao Wang's avatar Hongtao Wang
Browse files

Fix: reconstruction buffer copied when BIF is not performed for a sub-TU

parent 437d7a71
No related branches found
No related tags found
1 merge request!522Fix: reconstruction buffer copied when BIF is not performed for a sub-TU
......@@ -14323,6 +14323,12 @@ void InterSearch::encodeResAndCalcRdInterCU(CodingStructure &cs, Partitioner &pa
m_bilateralFilter->bilateralFilterRDOdiamond5x5( compID, tmpSubBuf, tmpSubBuf, tmpSubBuf, currTU.cu->qp, recIPredBuf, cs.slice->clpRng( compID ), currTU, true, false, &invLUT );
}
}
else
{
CompArea compArea = currTU.blocks[compID];
PelBuf recIPredBuf = cs.slice->getPic()->getRecoBuf(compArea);
recIPredBuf.copyFrom(tmpSubBuf);
}
}
}
}
......@@ -14348,6 +14354,12 @@ void InterSearch::encodeResAndCalcRdInterCU(CodingStructure &cs, Partitioner &pa
PelBuf recIPredBuf = cs.slice->getPic()->getRecoBuf(compArea);
m_bilateralFilter->bilateralFilterRDOdiamond5x5( compID, tmpSubBuf, tmpSubBuf, tmpSubBuf, currTU.cu->qp, recIPredBuf, cs.slice->clpRng(compID), currTU, true );
}
else
{
CompArea compArea = currTU.blocks[compID];
PelBuf recIPredBuf = cs.slice->getPic()->getRecoBuf(compArea);
recIPredBuf.copyFrom(tmpSubBuf);
}
}
}
}
......@@ -14412,6 +14424,12 @@ void InterSearch::encodeResAndCalcRdInterCU(CodingStructure &cs, Partitioner &pa
PelBuf recIPredBuf = cs.slice->getPic()->getRecoBuf(compArea);
m_bilateralFilter->bilateralFilterRDOdiamond5x5( compID, tmpSubBuf, tmpSubBuf, tmpSubBuf, currTU.cu->qp, recIPredBuf, cs.slice->clpRng(compID), currTU, true );
}
else
{
CompArea compArea = currTU.blocks[compID];
PelBuf recIPredBuf = cs.slice->getPic()->getRecoBuf(compArea);
recIPredBuf.copyFrom(tmpSubBuf);
}
}
}
}
......
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