Patent ID: 7983505

Claim:
A method comprising: receiving pixel data for a portion of an image including a blocking artifact; calculating an artifact strength based on a difference between a first pixel on a first side of the blocking artifact and a second pixel on a second side of the blocking artifact; performing a local adaptability check using the artifact strength and values of the first pixel on the first side, a second pixel on the first side, a first pixel on the second side, and the second pixel on the second side; performing deblocking based on a result of the local adaptability check; applying a soft threshold to the artifact strength to adjust a value of the artifact strength; re-aligning a predetermined number of pixels on the first and second sides of the blocking artifact based on the original value of the predetermined number of pixels and a pixel index value; low pass filtering each of the re-aligned pixels; performing a second thresholding before the low pass filtering as a function of an absolute value of the artifact strength; and replacing a surrounding pixel with the re-aligned pixel based on the second thresholding.