CPC H04N 19/139 (2014.11) [H04N 19/119 (2014.11); H04N 19/176 (2014.11); H04N 19/61 (2014.11)] | 11 Claims |
1. A motion vector prediction method implemented by a coding device, comprising:
parsing a bitstream to obtain an index value of a control point motion vector predictor candidate list and motion vector differences (MVD)s of K control points of the current block;
when an affine model of a current block is a 2×K-parameter affine transform model, and an affine transform model of a neighboring block of the current block is a 2×N-parameter affine transform model, obtaining, according to the 2×N-parameter affine transform model for the neighboring block, candidate motion vector predictors of K control points of the current block, wherein the 2×N-parameter affine transform model is obtained based on motion vectors of N control points of the neighboring block, N is an integer equal to 2, K is an integer equal to 3, the neighboring block is a decoded image block spatially adjacent to the current block, and the current block comprises a plurality of subblocks;
constructing the control point motion vector predictor candidate list, wherein the control point motion vector predictor candidate list comprises the candidate motion vector predictors of K control points of the current block;
determining, in the control point motion vector predictor candidate list, target candidate motion vector predictors of the K control points based on the index value;
obtaining a motion vector of each subblock of the plurality of subblocks in the current block based on motion vectors (MV)s of the K control points of the current block, wherein the MVs of the K control points of the current block are obtained based on the target candidate motion vector predictors of the K control points and the MVDs of the K control points of the current block; and
generating a prediction block of the current block based on the motion vectors of the plurality of subblocks in the current block.
|