CPC H04N 19/577 (2014.11) [H04N 19/103 (2014.11); H04N 19/176 (2014.11); H04N 19/513 (2014.11)] | 18 Claims |
1. A method for video encoding, comprising:
obtaining a current block from a current picture;
determining, for the current block, a first prediction corresponding to a first reference picture, wherein the first reference picture is displayed before the current picture;
determining, for the current block, a second prediction corresponding to a second reference picture, wherein the second reference picture is displayed after the current picture;
calculating first gradient values for the first prediction and second gradient values for the second prediction;
calculating a respective motion refinement of each subblock of the current block by minimizing a difference between the first prediction and the second prediction based on a motion refinement threshold and a plurality of internal parameters representing different summation characters of the first prediction and the second prediction;
calculating a final bi-prediction of the current block based on the first prediction, the second prediction, respective motion refinements, the first gradient values and the second gradient values, wherein calculating the final bi-prediction of the current block comprises:
calculating the final bi-prediction of the current block based further on a fourth right shift value for combining the first prediction and the second prediction; and
generating a video bitstream based on the final bi-prediction.
|