Patent ID: 8249165

Claim:
A method of removing a blocking phenomenon using properties of two blocks in a loop filtering system, comprising: determining whether at least one of a first block and a second block has non-zero transform coefficient information, the second block being adjacent to the first block, obtaining a motion vector difference between a motion vector for the first block and a motion vector for the second block, determining a filter strength value in consideration of a presence of the non-zero transform coefficient information as first priority and the obtained motion vector difference as second priority, obtaining a pixel value difference between at least two pixels on a block boundary between the first block and the second block, and calculating values of the at least two pixels based on the filter strength value and a function, the function including the obtained pixel value difference, and the function further including performing a bit shift operation, wherein the bit shift operation uses an integer, wherein the integer is greater than one, and wherein the bit shift operation is performed after using the obtained pixel value difference.