CPC H04N 19/44 (2014.11) [H04N 19/105 (2014.11); H04N 19/132 (2014.11); H04N 19/137 (2014.11); H04N 19/176 (2014.11)] | 20 Claims |
1. A method comprising:
determining motion information of a to-be-decoded block, wherein the motion information comprises prediction motion vectors and prediction reference pictures, wherein the prediction reference pictures comprise a first prediction reference picture and a second prediction reference picture;
obtaining a first plurality of decoding prediction blocks of the to-be-decoded block in the first prediction reference picture based on the prediction motion vectors;
obtaining a second plurality of decoding prediction blocks of the to-be-decoded block in the second prediction reference picture, wherein the first plurality of decoding prediction blocks are in a one-to-one correspondence with the second plurality of decoding prediction blocks;
performing downsampling on the first plurality of decoding prediction blocks to obtain downsampled first decoding prediction blocks;
performing downsampling on the second plurality of decoding prediction blocks to obtain downsampled second decoding prediction blocks;
calculating a plurality of differences between downsampled first decoding prediction blocks and corresponding downsampled second decoding prediction blocks;
determining a first target prediction motion vector based on a minimum difference in the plurality of differences;
deriving a second target prediction motion vector based on the first target prediction motion vector;
obtaining a first target decoding prediction block of the to-be-decoded block based on the first target prediction motion vector;
obtaining a second target decoding prediction block of the to-be-decoded block based on the second target prediction motion vector; and
decoding the to-be-decoded block based on the first target decoding prediction block and the second target decoding prediction block.
|