CPC H04N 19/105 (2014.11) [H04N 19/137 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 20 Claims |
1. An encoding and decoding method, comprising:
when it is determined that a weighted prediction is enabled for a current block, obtaining a weight prediction angle and one or more weight configuration parameters of the current block;
configuring reference weight values for surrounding positions outside the current block based on the one or more weight configuration parameters;
for each pixel position of the current block,
determining, based on the weight prediction angle, a surrounding matching position to which the pixel position points from the surrounding positions outside the current block; determining a target weight value of the pixel position based on a reference weight value associated with the surrounding matching position, and determining an associated weight value of the pixel position based on the target weight value of the pixel position;
obtaining a motion information candidate list which comprises at least one piece of candidate motion information, and based on the motion information candidate list, obtaining first target motion information and second target motion information of the current block;
for each pixel position of the current block,
determining a first prediction value of the pixel position based on the first target motion information of the current block, and determining a second prediction value of the pixel position based on the second target motion information of the current block; determining a weighted prediction value of the pixel position based on the first prediction value, the target weight value, the second prediction value and the associated weight value; and
determining weighted prediction values of the current block based on the weighted prediction value of each pixel position of the current block.
|