Patent ID: 8116384

Claim:
An integrated circuit which removes coding distortion between blocks, the coding distortion occurring when both of a current block and a neighboring block are coded by an inter picture prediction coding and do not contain coded data, the current block constituting a picture employing prediction coding using two reference pictures, the neighboring block being adjacent to the current block, and the coded data being obtained by coding a coefficient that indicates a spatial frequency component resulting from an orthogonal transformation, the integrated circuit comprising: a filtering strength determining unit operable to determine a filtering strength from among a plurality of filtering strengths including one filtering strength corresponding to no filtering being performed; and a distortion removing unit operable to remove the coding distortion between the blocks, by performing a filtering with the filtering strength, wherein the filtering strength determining unit is operable to: select, as the filtering strength, a weakest filtering strength among the plurality of the filtering strengths, excluding the one filtering strength corresponding to no filtering being performed, when a number of reference pictures referred to by the current block and a number of reference pictures referred to by the neighboring block are not the same; and select, as the filtering strength, one of (i) a weakest filtering strength among the plurality of the filtering strengths, excluding the one filtering strength corresponding to no filtering being performed, and (ii) the filtering strength corresponding to no filtering being performed, when the number of reference pictures referred to by the current block and the number of reference pictures referred to by the neighboring block are the same.