Skip to content
Snippets Groups Projects

JVET-AE0134 item 2: add repeated inference of NNPF for creating pictures corresponding to input pictures at the end of a bitstream or a CLVS under some conditions

Merged Wei Jia requested to merge wei/VVCSoftware_VTM:JVET_AE0134 into master
All threads resolved!
2 files
+ 34
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -341,6 +341,38 @@ void SEINeuralNetworkPostFiltering::checkInputPics(
{
numInferences = 1 + numPostRoll;
}
#if JVET_AE0134_END_REPEATED_INFERENCE
else if (!pictureRateUpsamplingFlag && numInputPics > 1 && nnpfa->m_persistenceFlag)
{
std::vector<int> inpIdx;
greaterThan0count = 0;
numPostRoll = 0;
for (int idx = 0; idx < numInputPics; idx++)
{
if (currNnpfc->m_inputPicOutputFlag[idx])
{
inpIdx.push_back(idx);
}
}
for (int idx = 0; idx < inpIdx.size(); idx++)
{
if (nnpfa->m_outputFlag[idx])
{
greaterThan0count++;
if (inpIdx[idx] > 0)
{
numPostRoll = inpIdx[idx];
}
}
}
numInferences = 1;
// if ( greaterThan0count == 1 && (isCurrPicLastInOutputOrder || (currCodedPic == lastPicInClvsInOutputOrder && nnpfa->m_noFollCLVSFlag)) ) // to be updated once MR2760 is merged into the master.
if (greaterThan0count == 1 && isCurrPicLastInOutputOrder)
{
numInferences += numPostRoll;
}
}
#endif
else
{
numInferences = 1;
Loading