| CPC H04N 19/117 (2014.11) [H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/82 (2014.11); H04N 19/96 (2014.11)] | 19 Claims |

|
1. An device for filtering a sample value of a picture having a first block and a second block, the first block and the second block adjoining each other in a block boundary, wherein the picture comprises at least n×m samples p(i,j) arranged in n rows and m columns, wherein i is a row index that runs from 1 to n and j is a column index that runs from 1 to m, wherein samples p(i,j) with i from 1 to k belong to the first block and samples with i from k+1 to n belong to the second block, and wherein k is an integer number less than n, the device comprising:
a memory containing instructions; and
one or more processors in communication with the memory, wherein the one or more processors, upon execution of the instructions, are configured to perform operations of:
when an integer t that is less than k and each j is in a range of 1 to m:
generating, with each i in a range of 1 to k-t-1, a first filtered sample value by applying a first filter to each value of the sample p(i,j), wherein the first filter is supported by a first set of filter support samples, wherein the first set of filter support samples comprises the sample p(i,j) and one or more further samples, and wherein the first set of filter support samples does not comprise any samples p (i′,j′) with row index i′ greater than k-t-1, wherein the first filter performs a first weighted sum calculation on 13 weighted components to obtain a first variable sum and the first filtered sample value based on the first variable sum;
generating, with the row index i in the range of k-t to k, a second filtered sample value by applying a second filter to each value of the sample p(i,j), wherein the second filter is supported by a second set of filter support samples, wherein the second set of filter support samples comprises the sample p(i,j) and one or more further samples, and wherein the second set of filter support samples does not comprise any samples p (i′,j′) with row index i′ less than k-t,
wherein the second filter performs a second weighted sum calculation on 13 weighted components to obtain a second variable sum and the second filtered sample value based on the second variable sum, and wherein the row index i and the column index j are integers.
|