Patent ID: 11889054
Assignee: TELEFONAKTIEBOLAGET LM ERICSSON (PUBL)
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 13:
14. An electronic device adapted to decode an encoded video sequence including a plurality of images, with each image of the plurality of images including a plurality of blocks, the electronic device comprising:
a processor; and
memory coupled with the processor and including instructions stored therein that are executable by the processor to cause the electronic device to perform operations comprising:
providing first and second blocks of an image of the encoded video sequence, wherein the first and second blocks are adjacent blocks of the image,
defining a line of pixels extending across a boundary between the first and second blocks based on two-dimensional coordinates of the pixels, wherein the line of pixels includes a first plurality of pixels of the first block and a second plurality of pixels of the second block,
calculating a first reference value based on a first pixel from the first plurality of pixels that is most distant from the boundary,
calculating a second reference value based on a second pixel from the second plurality of pixels that is most distant from the boundary,
calculating a third reference value based on a third pixel and a fourth pixel from the line of pixels, wherein the third pixel is in the line between the first pixel and the fourth pixel, and wherein the fourth pixel is in the line between the third pixel and the second pixel, wherein the third pixel and the fourth pixel are closest to the boundary and wherein the third reference value is on the boundary,
calculating filtered pixel values for each pixel of the line of pixels between the first pixel and the second pixel using interpolation based on at least one of the first reference value and the second reference value, wherein calculating the filtered pixel values for the pixels between the first reference value and the third reference value is based on interpolation between the first reference value and the third reference value using a first filter comprising filter coefficients that are associated with the pixels positioned between the first reference value and the third reference value, and calculating the filtered pixel values for the pixels between the second reference value and the third reference value is based on interpolation between the second reference value and the third reference value using a second filter comprising filter coefficients that are associated with the pixels positioned between the second reference value and the third reference value,
generating first and second filtered blocks corresponding to the first and second blocks using the filtered pixel values, and
generating a decoded video sequence including a decoded image based on the first and second filtered blocks.