| CPC H04N 19/513 (2014.11) [H04N 19/103 (2014.11); H04N 19/174 (2014.11); H04N 19/176 (2014.11)] | 16 Claims |

|
1. An affine prediction method, comprising:
dividing a current coding block into multiple sub-blocks, and determining an initial prediction value of all pixels in each of the sub-blocks;
dividing each of the sub-blocks into multiple fraction blocks, wherein at least one of the fraction blocks comprises at least two integer pixels;
determining a motion vector difference and a gradient of each of the fraction blocks;
calculating a pixel compensation value of each of the fraction blocks based on the motion vector difference value and the gradient;
taking the pixel compensation value of each of the fraction blocks as a pixel compensation value of all pixels in each of the fraction blocks; and calculating a final prediction value of each pixel in the current coding block by the initial prediction value of each pixel and the pixel compensation value;
setting an identifier in a coding result of the current coding block or a coding result of a slice to which the current coding block belongs, wherein different identifiers indicate different prediction modes, the identifiers are set to different values to represent the positions of the first center point and the second center point, the division method configured to divide the sub-block into multiple fraction block, and different combinations of gradient calculation methods;
wherein the first center point is any pixel of all integer pixels and all fraction pixels in the sub-block to which the first center point belongs; or
the first center point is any pixel of all integer pixels in the sub-block to which the first center point belongs; or
the first center point is any pixel of all fraction pixels in the sub-block to which the first center point belongs;
the second center point is any pixel of all integer pixels and all fraction pixels in the sub-block to which the second center point belongs; or
the second center point is any pixel of all integer pixels in the sub-block to which the second center point belongs; or
the second center point is any pixel of all fraction pixels in the sub-block to which the second center point belongs.
|