主权项 |
1. A video decoding method for predicting a current block using an inter prediction, the method comprising:
obtaining, from encoded data, mode information indicating which motion vector encoding mode among a plurality of motion vector encoding modes is used for determining at least one motion vector of the current block; and when the obtained mode information indicates a first motion vector encoding mode among the plurality of motion vector encoding modes, performing a process comprising:
decoding the encoded data to produce a first differential motion vector, a first reference picture index, a second differential motion vector and a second reference picture index;deriving, by using motion vectors of one or more neighboring blocks of the current block, a first set of candidate motion vectors referring to a first reference picture list and a second set of candidate motion vectors referring to a second reference picture list;selecting a first candidate motion vector from the first set of candidate motion vectors and a second candidate motion vector from the second set of candidate motion vectors;generating a first motion vector of the current block by adding the first candidate motion vector to the first differential motion vector, and a second motion vector of the current block by adding the second candidate motion vector to the second differential motion vector; andgenerating a predicted block of the current block by using the first motion vector, a first reference picture indicated by the first reference picture index in first reference picture list, the second motion vector, and a second reference picture indicated by the second reference picture index in the second reference picture list, wherein the one or more neighboring blocks are selected from at least one spatially neighboring block of the current block and at least one temporally neighboring block of the current block, and wherein, when the at least one temporally neighboring block is selected, the at least one temporally neighboring block is located within a reference picture included either in the first reference picture list or in the second reference picture list, and a position of the at least one temporally neighboring block within the reference picture is obtained based on a position of the current block within a current picture including the current block. |