Changeset 813 in SHVCSoftware


Ignore:
Timestamp:
28 Jun 2014, 02:34:32 (11 years ago)
Author:
seregin
Message:

fix the motion resampling condition, related to SHM ticket #21

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComDataCU.cpp

    r785 r813  
    35213521  if( iMotionMapping == 1 )
    35223522  {
     3523    Bool unequalPictureSizeFlag = g_posScalingFactor[refLayerIdc][0] != 65536 || g_posScalingFactor[refLayerIdc][1] != 65536; //the condition should be updated according to the WD.
     3524
    35233525    // actually, motion field compression is performed in the Void TComPic::compressMotion() function, but with (+4) the rounding may have effect on the picture boundary check.
    3524     iBX = ( ( iBX + 4 ) >> 4 ) << 4;
    3525     iBY = ( ( iBY + 4 ) >> 4 ) << 4;
     3526    if( unequalPictureSizeFlag )
     3527    {
     3528      iBX = ( ( iBX + 4 ) >> 4 ) << 4;
     3529      iBY = ( ( iBY + 4 ) >> 4 ) << 4;
     3530    }
     3531    else
     3532    {
     3533      iBX += 4;
     3534      iBY += 4;
     3535    }
    35263536  }
    35273537#endif
Note: See TracChangeset for help on using the changeset viewer.