CPC H04N 19/513 (2014.11) [H04N 19/105 (2014.11); H04N 19/139 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 5 Claims |
1. A video decoding apparatus comprising:
at least one processor configured to:
obtain a first extended reference block in a first reference picture and a second extended reference block in a second reference picture, wherein the first extended reference block comprises a first reference block and a first portion extended from the first reference block, and the second extended reference block comprises a second reference block and a second portion extended from the second reference block,
determine a displacement vector of a pixel group of a current block, the pixel group comprising at least one pixel adjacent to an inside of a boundary of the current block, by using a gradient value of at least one reference pixel in the first extended reference block and a gradient value of at least one reference pixel in the second extended reference block, wherein the first portion of the first extended reference block is used to calculate a gradient value of at least one reference pixel in the first reference block, and the second portion of the second extended reference block is used to calculate a gradient value of at least one reference pixel in the second reference block,
obtain a predicted pixel value of the current block by performing optical flow based compensation on the current block by using the gradient value of the at least one reference pixel in the first reference block, the gradient value of the at least one reference pixel in the second reference block, and the displacement vector of the pixel group,
obtain a residual pixel value for the current block, and
reconstruct the current block based on the predicted pixel value and the residual pixel value,
wherein the pixel group comprises a K×K block, K being an integer greater than 1.
|