CPC H04N 19/513 (2014.11) [H04N 19/56 (2014.11); H04N 19/91 (2014.11)] | 15 Claims |
1. A method of decoding an image, the method comprising:
obtaining L0 motion information, including an L0 initial motion vector and an L0 reference picture, and L1 motion information, including an L1 initial motion vector and an L1 reference picture, of a current block, the L0 and L1 motion information being obtained from a merge candidate included in a merge candidate list;
determining motion vector refinement information based on the L0 and L1 reference pictures, based on motion vector refinement information, indicating whether to refine the L0 and L1 initial motion vectors being determined;
when the motion vector refinement information indicates that the L0 and L1 initial motion vectors are to be refined, determining L0 and L1 refined motion vectors by refining the L0 and L1 initial motion vectors by searching for a pair of L0 reference block, in the L0 reference picture, and an L1 reference block, in the L1 reference picture, having a minimum SAD (Sum of Absolute Difference); and
obtaining prediction samples of the current block based on the L0 and L1 refined motion vectors,
wherein the motion vector refinement information is determined based on whether a first POC difference between a current picture and the L0 reference picture is the same as a second POC difference between the L1 reference picture and the current picture.
|