| CPC H04N 19/513 (2014.11) [H04N 19/426 (2014.11); H04N 19/44 (2014.11); H04N 19/61 (2014.11)] | 7 Claims |

|
1. An image decoding apparatus, characterized by comprising:
a reference picture buffer for storing a reference picture; and
a motion compensating unit for:
calculating a scaling factor based on a picture order count of the reference picture,
clipping the scaling factor in a first predetermined range,
scaling a motion vector of the reference picture based on the clipped scaling factor,
clipping the scaled motion vector of the reference picture in a second predetermined range, and
generating a prediction block using the reference picture and the clipped scaled motion vector of the reference picture;
wherein the scaled motion vector of the reference picture is clipped in the second predetermined range after the motion vector of the reference picture is scaled,
wherein the scaling of the motion vector of the reference picture is performed based on the picture order count of the reference picture,
wherein the motion vector of the reference picture is determined as a motion vector of a collocated block in the reference picture, and
wherein the collocated block is determined by performing the ordered steps of:
calculating a first position corresponding to a right-bottom position representing a position displaced from an upper-left position of a current block in a current picture by a height and a width of the current block;
determining a first block covering the calculated first position in the reference picture;
determining whether the first block is coded in an intra prediction mode,
calculating, when the first block is coded in an intra prediction mode, a second position corresponding to a central position of the current block in the current picture;
modifying the second position based on an arithmetic shift operation; and
determining a second block covering the modified second position in the reference picture,
wherein the clipped scaled motion vector for generating a prediction block is modified based on the motion vector resolution derived by first motion vector resolution information and second motion vector resolution information,
the first motion vector resolution information about a motion vector resolution for all blocks referring to a sequence parameter set is obtained from the sequence parameter set, and
the second motion vector resolution information specifying whether a motion vector resolution for all blocks in a current slice is an integer pixel unit is obtained from a slice header of the current slice.
|