CPC H04N 19/615 (2014.11) [H04N 19/105 (2014.11); H04N 19/132 (2014.11); H04N 19/139 (2014.11); H04N 19/172 (2014.11); H04N 19/176 (2014.11); H04N 19/80 (2014.11)] | 14 Claims |
1. A method for coding a video implemented in an encoder or a decoder, the method comprising:
determining control point motion vectors (CPMVs) for a block according to affine inter-prediction, according to a preselected affine motion model, the block being an affine block;
performing motion compensation for the block using a pixel-based motion vector field according to values of the CPMVs, upon fulfilling at least one of the following conditions:
A) the number of lines of the reference picture is less than N, where N is a predefined value and N is larger than 2; or
B) fetching of lines during processing of one sub-block is sequential, respectively, such that if for an ith line of the current block the jth line of the reference picture is fetched, then for the (i+1)th line of the current block only lines higher than j are fetched; or
C) for a predefined size of a sub-block of M×M, only one additional line is fetched for each line of the sub-block except for the first line of the sub-block;
wherein the following inequalities hold:
dVerY≥−1;
(max(0,dVerY)+|dHorY|)(W+1)+2≤N;
where dHorY is the difference of the vertical part of a motion vector between each sample in horizontal direction according to the affine motion model for the current affine block; dVerY is the difference of the vertical part of the motion vector between each sample in vertical direction according to the affine motion model for the current affine block.
|