CPC H04N 19/139 (2014.11) [H04N 7/00 (2013.01); H04N 19/105 (2014.11); H04N 19/124 (2014.11); H04N 19/13 (2014.11); H04N 19/137 (2014.11); H04N 19/15 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/44 (2014.11); H04N 19/503 (2014.11); H04N 19/51 (2014.11); H04N 19/513 (2014.11); H04N 19/52 (2014.11); H04N 19/56 (2014.11); H04N 19/567 (2014.11); H04N 19/593 (2014.11); H04N 19/61 (2014.11); H04N 19/172 (2014.11)] | 2 Claims |
1. A method for encoding a current block, the method comprising:
deriving a motion vector predictor from a reference block, wherein the reference block is either (i) a neighboring block spatially adjacent to the current block and included in a current picture or (ii) a collocated block included in a picture other than the current picture;
adding the derived motion vector predictor to a motion vector predictor list (MVP list); and
encoding the current block by selecting one of the motion vector predictors from the MVP list,
wherein when the reference block is a collocated block included in a picture other than the current picture, the deriving the motion vector predictor includes:
calculating a second motion vector by scaling a first motion vector of the reference block based on a ratio of a temporal distance between the current picture including the current block and a current reference picture, and a temporal distance between a picture including the reference block and a reference picture referred to by the reference block;
determining whether a magnitude of a horizontal component of the second motion vector or of a vertical component of the second motion vector is within a predetermined magnitude range;
when the magnitudes of the horizontal component and of the vertical component of the second motion vector are within the predetermined magnitude range, deriving the motion vector predictor as equal to the second motion vector; and
when the magnitude of the horizontal component or of the vertical component of the second motion vector is not within the predetermined magnitude range, deriving the motion vector predictor by clipping the respective horizontal component or the respective vertical component of the second motion vector to have a magnitude within the predetermined magnitude range, and
wherein the predetermined magnitude range is between −32768 to +32767.
|