| CPC H04N 19/513 (2014.11) [H04N 19/105 (2014.11); H04N 19/176 (2014.11); H04N 19/182 (2014.11)] | 20 Claims |

|
1. A method comprising:
receiving an encoded bitstream for a first block, wherein a second block is signaled in the encoded bitstream as a reference for the first block;
searching for a third block to use as the reference for the first block, wherein searching comprises:
applying a first weight to a first template of pixels for the first block to generate a weighted first template of pixels for the first block and applying the first weight to a first template of pixels for the third block to generate a weighted first template of pixels for the third block;
applying a second weight to a second template of pixels for the first block to generate a weighted second template of pixels for the first block and applying the second weight to a second template of pixels for the third block to generate a weighted second template of pixels for the third block; and
comparing the first weighted template of pixels for the first block to the first weighted template of pixels for the third block and comparing the second weighted template of pixels for the first block to the second weighted template of pixels for the third block to determine whether the third block is more similar to the first block than the second block.
|