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

Merge branch 'fix_ticket103' into 'master'

Fix ticket #103 on MV rounding issue during AMVP candidates generation

See merge request !87
parents 3b547049 b1e4c272
No related branches found
No related tags found
No related merge requests found
......@@ -2365,6 +2365,9 @@ void PU::fillMvpCand(PredictionUnit &pu, const RefPicList &eRefPicList, const in
if (pu.cu->imv != 0)
{
unsigned imvShift = pu.cu->imv << 1;
#if REMOVE_MV_ADAPT_PREC
imvShift += VCEG_AZ07_MV_ADD_PRECISION_BIT_FOR_STORE;
#endif
roundMV(cColMv, imvShift);
}
int i = 0;
......@@ -3158,6 +3161,9 @@ void PU::addAMVPHMVPCand(const PredictionUnit &pu, const RefPicList eRefPicList,
MotionInfo neibMi;
int i = 0;
unsigned imvShift = imv << 1;
#if REMOVE_MV_ADAPT_PREC
imvShift += VCEG_AZ07_MV_ADD_PRECISION_BIT_FOR_STORE;
#endif
int num_avai_candInLUT = slice.getAvailableLUTMrgNum();
int num_allowedCand = std::min(MAX_NUM_HMVP_AVMPCANDS, num_avai_candInLUT);
......
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