| CPC H04N 19/52 (2014.11) [H04N 19/124 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 2 Claims |

|
1. An encoding method, comprising:
determining whether an inter prediction mode is a merge mode; and
when the inter prediction mode is the merge mode:
deriving a first motion vector of a first current block to be processed, using a motion vector of a previous block which has been previously processed;
deriving a second motion vector of the first current block by performing motion estimation in vicinity of a position specified by the first motion vector;
generating a prediction image of the first current block by performing motion compensation using the second motion vector;
deriving a third motion vector of a second current block to be processed after the first current block, using the first motion vector of the first current block, when the second current block is included in a first picture including the first current block;
deriving a third motion vector of the second current block, using the second motion vector of the first current block, when the second current block is included in a second picture different from the first picture;
deriving a fourth motion vector of the second current block by performing motion estimation in vicinity of a position specified by the third motion vector; and
generating a prediction image of the second current block by performing motion compensation using the fourth motion vector.
|