主权项 |
1. A decoding method of a decoding device, comprising:
decoding, by the decoding device, an input bitstream to generate a motion vector difference for a current block; obtaining, by the decoding device, motion vectors of neighboring blocks of the current block, wherein the motion vectors correspond to neighboring blocks respectively, the neighboring blocks and the current block are in a current picture, and the motion vectors of the neighboring blocks are used to decode the respective neighboring blocks according to respective reference pictures of the neighboring blocks; generating, by the decoding device, interpolated motion vectors, wherein each of the interpolated motion vectors is generated by interpolating a motion vector of a corresponding neighboring block of the current block based on a distance between a reference picture of the corresponding neighboring block and the current picture and a distance between a reference picture of the current block and the current picture, wherein the reference picture of the corresponding neighboring block is different from the reference picture of the current block; predicting, by the decoding device, a motion vector of the current block based on the interpolated motion vectors to generate a predicted motion vector; and generating, by the decoding device, a motion vector of the current block by using the predicted motion vector. |