CPC H04N 19/52 (2014.11) [H04N 19/105 (2014.11); H04N 19/119 (2014.11); H04N 19/139 (2014.11); H04N 19/176 (2014.11); H04N 19/70 (2014.11)] | 18 Claims |
1. A sub-block motion prediction method, comprising:
obtaining one or more motion vectors of a current block, wherein each of the one or more motion vectors corresponds to a set of reference parameters, the set of reference parameters comprises a co-located frame of the current block and a reference motion vector obtained from a motion vector of a reference block of the current block;
obtaining a co-located block of each of a plurality of sub-blocks based on the set of reference parameters, wherein the co-located block of each of the plurality of sub-blocks is a block at which a first offset point of the co-located frame is located, the first offset point is a point formed by a specified point of each of the plurality of sub-blocks being offset for the reference motion vector; and
obtaining a candidate motion vector of each of the plurality of sub-blocks based on a motion vector of the co-located block of each of the plurality of sub-blocks, and obtaining a sub-block motion prediction result of the current block based on all candidate motion vectors of all of the plurality of sub-blocks;
wherein before the obtaining the co-located block of each of the plurality of sub-blocks based on the set of reference parameters, the method further comprises:
determining a size of each of the plurality of sub-blocks based on a comparison result of an amplitude value of the motion vector of the current block to a predefined threshold; and
dividing the current block based on the size of each of the plurality of sub-blocks.
|