Patent ID: 7903744

Claim:
A method in video decoding for reducing blocking artifacts between at least a first and a second block in a block wise coded video picture, comprising performing, at a video decoding apparatus, a test of pixel lines crossing a boundary and/or an extension of the boundary between the first and the second blocks, wherein performing the test on the pixel lines includes testing the following relation for said pixel lines ∑ i = ∈ S ⁢ ⁢ (  a i - 2 ⁢ b i + c i  +  d i - 2 ⁢ e i + f i  ) < β ' ⁢ ( QP ) wherein a is the third closest pixel on the left hand side of the boundary and/or the extension of the boundary, b is the second closest pixel on the left hand side of the boundary and/or the extension of the boundary, c is the closest pixel on the left hand side of the boundary and/or an extension of the boundary, d is the closest pixel on the right hand side of the boundary and/or an extension of the boundary, e is the second closest pixel on the right hand side of the boundary and/or an extension of the boundary and f is the third closest pixel on the right hand side of the boundary and/or an extension of the boundary, i is the line number of lines in the subset S and is greater than 1, and β′(QP) is a threshold value dependent on a first quantization parameter for the video coding.