Patent Document ID: 9906788
Application ID: 15135913
Patent Status: 1

Claim One:
1. A method performed by a codec device for generating a predicted value of an image block based on a forward reference image and a backward reference image, comprising: obtaining a template by using preset reconstructed pixels around the image block; obtaining candidate motion vectors for the image block, wherein the candidate motion vectors include known motion vectors from neighboring blocks of the image block; obtaining an up-sampled forward reference image by performing up-sample interpolation on the forward reference image using a first filter and obtaining an up-sampled backward reference image by performing up-sample interpolation on the backward reference image using the first filter; obtaining a first forward reference block and a first backward reference block, for each of the candidate motion vectors, from the up-sampled forward reference image and the up-sampled backward reference image respectively, wherein a location of the first forward reference block in the up-sampled forward reference image and a location of the first backward reference block in the up-sampled backward reference image are indicated by said each of the candidate motion vectors; calculating a matching difference corresponding to said each of the candidate motion vectors, wherein the matching difference indicates a forward difference, or a backward difference, or a sum of the forward difference and the backward difference, wherein the forward difference is the difference between the template of the image block and a corresponding template of the first forward reference block, and wherein the backward difference is the difference between the template of the image block and a corresponding template of the first backward reference block; selecting a target candidate motion vector from the candidate motion vectors, wherein the target candidate motion vector corresponds to the minimal calculated matching difference; obtaining a second forward reference block and a second backward reference block, for the target candidate motion vector, from the forward reference image and the backward reference image respectively, wherein a location of the second forward reference block in the forward reference image and a location of the second backward reference block in the backward reference image are indicated by the target candidate motion vector; obtaining an up-sampled second forward reference block by performing up-sample interpolation on the second forward reference block using a second filter and obtaining an up-sampled second backward reference block by performing up-sample interpolation on the second backward reference block using the second filter; and generating the predicted value of the image block by averaging a value of the up-sampled second forward reference block and a value of the up-sampled second backward reference block.