CPC H04N 19/105 (2014.11) [H04N 19/137 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 20 Claims |
1. A method, comprising:
when determining to enable a weighted prediction for a current block, obtaining a weighted prediction angle of the current block and weight configuration parameters of the current block, wherein the weight configuration parameters comprise a weight transform rate and a weight transform start position;
configuring one or more reference weight values for surrounding positions outside the current block based on the weight configuration parameters;
for each pixel position of the current block,
determining a surrounding matching position to which the pixel position points from the surrounding positions outside the current block based on the weighted prediction angle;
determining a target weight value of the pixel position based on a reference weight value associated with the surrounding matching position;
determining an association weight value of the pixel position based on the target weight value of the pixel position;
determining a first prediction value of the pixel position based on a first prediction mode of the current block;
determining a second prediction value of the pixel position based on a second prediction mode of the current block; and
determining, based on the first prediction value, the target weight value, the second prediction value and the association weight value, a weighted prediction value of the pixel position; and
determining weighted prediction values of the current block based on the weighted prediction values of all pixel positions in the current block.
|