A filtering control method comprising: filtering pixel values of pixels (12, 14, 16) in a line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in a block of pixels (12, 14, 16, 18) with a strong deblocking filter to obtain filtered pixel values, calculating, for each filtered pixel value of a pixel (12, 14, 16) in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28), a clipped filtered pixel value x' = Clip3(A, B, x) defined as x' = x, or if x<A then x' = A, or if x>B then x' = B, wherein x denotes said filtered pixel value of said pixel (12, 14, 16), wherein A = px - tcX and B = p x + tcX, wherein px denotes a pixel value of said pixel (12, 14, 16) and tcX denotes a respective clipping parameter value for said pixel (12, 14, 16) defined based on a position of said pixel (12, 14, 16) relative to said block boundary, characterized in that the filtered pixel values are obtained by calculating said filtered pixel values according to: p 0 ′ = p 2 + 2 × p 1 + 2 × p 0 + 2 × q 0 + q 1 + 4 > > 3 p 1 ′ = p 3 + 2 × p 2 + 2 × p 1 + p 0 + 2 × q 0 + 4 > > 3 p 2 ′ = 3 × p 3 + 3 × p 2 + p 1 + q 0 + 4 > > 3 wherein p 0 represents a pixel value of a first pixel, relative to a block boundary between said block of pixels (12,14, 16, 18) and a neighboring block of pixels (22, 24, 26, 28), in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in said block of pixels (12, 14, 16, 18), p 1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in said block of pixels (12, 14, 16, 18), p 2 represents a pixel value of a third pixel, relative to said block boundary, in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in said block of pixels (12, 14, 16, 18), p 3 represents a pixel value of a fourth pixel, relative to said block boundary, in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in said block of pixels (12, 14, 16, 18), q 0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in said neighboring block of pixels (22, 24, 26, 28), q 1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in said neighboring block of pixels (22, 24, 26, 28), p 0 ' represents a filtered pixel value for said first pixel in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in said block of pixels (12, 14, 16, 18), p 1 ' represents a filtered pixel value for said second pixel in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in said block of pixels (12, 14, 16, 18), p 2 ' represents a filtered pixel value for said third pixel in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in said block of pixels (12, 14, 16, 18), and » represents a right shift operator defined as a > > b = ⌊ a 2 b ⌋ and └ c ┘ is the largest integer not greater than c; and wherein said clipping parameter values change linearly depending on said position of said pixel (12, 14, 16) relative to said block boundary and pixels (12, 14, 16) in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) having different positions from said block boundary have different clipping parameter values, a pixel in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) further away from said block boundary has a smaller clipping parameter value than another pixel in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28) closer to said block boundary. filtering pixel values of pixels (12, 14, 16) in a line of pixels (12, 14, 16, 18, 22, 24, 26, 28) in a block of pixels (12, 14, 16, 18) with a strong deblocking filter to obtain filtered pixel values, calculating, for each filtered pixel value of a pixel (12, 14, 16) in said line of pixels (12, 14, 16, 18, 22, 24, 26, 28), a clipped filtered pixel value x' = Clip3(A, B, x) defined as x' = x, or if x<A then x' = A, or if x>B then x' = B, wherein x denotes said filtered pixel value of said pixel (12, 14, 16), wherein A = px - tcX and B = p x + tcX, wherein px denotes a pixel value of said pixel (12, 14, 16) and tcX denotes a respective clipping parameter value for said pixel (12, 14, 16) defined based on a position of said pixel (12, 14, 16) relative to said block boundary,