Patent ID: 8243793

Claim:
An apparatus for removing a blocking phenomenon, comprising: a decoder configured to determine whether at least one of a first block and a second block has non-zero transform coefficient information, and the second block being adjacent to the first block, the decoder further configured to, obtain a motion vector difference between a motion vector for the first block and a motion vector for the second block, determine a filter strength value in consideration of at least one among a presence of the non-zero transform coefficient information and the obtained motion vector difference, obtain a pixel value difference between at least two pixels on a block boundary between the first block and the second block, determine coefficients, for pixels on the block boundary between the first and second blocks, based on the filter strength value, and calculate values of the pixels on the block boundary based on the determined coefficients and the obtained pixel value difference, the calculating including performing a bit shift operation, and the calculating step further including, calculating values of at least two successive pixels in the first block based on pixel values of the at least two successive pixels in the first block, and calculating values of at least two successive pixels in the second block based on pixel values of the at least two successive pixels in the second block,wherein the bit shift operation uses an integer wherein the integer is greater than 1 and wherein the bit operation is performed after using the obtained pixel value difference.