Patent ID: 9591306
Date: 2017-03-07
CPC Classifications: H04N

Claim:
1. A method for deblocking filtering of image blocks of pixels, comprising: determining a first parameter indicating a strength of a block boundary between two adjacent image blocks, the first parameter being within a range from 0 to 2; calculating a second parameter based on the first parameter and a quantization parameter, the second parameter being calculated as a function of the sum of the first parameter and the quantization parameter; and selecting a first deblocking filter or a second deblocking filter to be applied to the block boundary using a threshold defined based on the second parameter, the first deblocking filter and the second deblocking filter having different filter strengths, wherein said determining includes judging whether at least one of the two adjacent image blocks is intra-coded, wherein said determining is independent of whether the block boundary is a coding unit boundary between two coding units, wherein the first parameter is determined to have a value of 1 when (i) a horizontal or vertical component of a motion vector belonging to a first image block of the two adjacent image blocks is different from a horizontal or vertical component of a motion vector belonging to a second image block of the two adjacent image blocks and (ii) an absolute difference between the horizontal or vertical component of the motion vector belonging to the first image block of the two adjacent image blocks and the horizontal or vertical component of the motion vector belonging to the second image block of the two adjacent image blocks is greater than a non-zero threshold.