Commit d6708f74 authored by Yu Han's avatar Yu Han

M0483 IBC bug fix

parent 2fd78e40
......@@ -1381,10 +1381,13 @@ void PU::getIBCMergeCandidates(const PredictionUnit &pu, MergeCtx& mrgCtx, const
mrgCtx.mrgTypeNeighbours[cnt] = MRG_TYPE_IBC;
#if JVET_M0265_MV_ROUNDING_CLEANUP
roundAffineMv(avgMv.hor, avgMv.ver, 1);
avgMv.roundToPrecision(MV_PRECISION_INTERNAL, MV_PRECISION_INT);
#else
avgMv.setHor(avgMv.getHor() / 2);
avgMv.setVer(avgMv.getVer() / 2);
#endif
avgMv.setHor((avgMv.getHor() / 16) << 4);
avgMv.setVer((avgMv.getVer() / 16) << 4);
#endif
mrgCtx.mvFieldNeighbours[cnt * 2 ].setMvField(avgMv, MAX_NUM_REF);
mrgCtx.interDirNeighbours[cnt] = 1;
cnt++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment