Patent ID: 8976869
Filing Date: 2015-03-10
Classification: H04N

Abstract:
1. A distortion removing method for removing coding distortion occurring at a boundary between a current block constituting a B-picture and a neighboring block adjacent to the current block, the distortion removing method comprising: a filtering strength determining step of determining a predetermined filtering strength from among a filtering strength corresponding to filtering not being performed, a weakest filtering strength, a second-weakest filtering strength, a third-weakest filtering strength, and a strongest filtering strength; and a removing step of removing the coding distortion between the blocks, by performing a filtering with the predetermined filtering strength, wherein the filtering strength determining step includes: a first determining step of determining whether or not either the current block or the neighboring block is intra prediction coded; a second determining step of determining whether or not the boundary corresponds to a macroblock boundary, in the case where it is determined in the first determining step that either the current block or the neighboring block is intra prediction coded; a third determining step of determining whether or not both the current block and the neighboring block include data obtained by coding a coefficient that indicates a spatial frequency component resulting from an orthogonal transformation, in the case where it is determined in the first determining step that neither the current block nor the neighboring block is intra prediction coded and that both the current block and the neighboring block are inter prediction coded; a fourth determining step of determining whether or not the number of pictures referred to by the current block is equal to the number of pictures referred to by the neighboring block, in the case where it is determined in the third determining step that neither the current block nor the neighboring block includes the data obtained by coding the coefficient that indicates the spatial frequency component resulting from the orthogonal transformation; a fifth determining step of determining whether or not a picture referred to by the current block is the same as a picture referred to by the neighboring block, in the case where it is determined in the fourth determining step that the number of pictures referred to by the current block is equal to the number of pictures referred to by the neighboring block; and a sixth determining step of determining whether or not a difference between a motion vector of the current block and a motion vector of the neighboring block is within a predetermined range, in the case where it is determined in the fifth determining step that the picture referred to by the current block is the same as the picture referred to by the neighboring block, and in the filtering strength determining step: the strongest filtering strength is selected, in the case where it is determined in the second determining step that the boundary corresponds to the macroblock boundary; the third-weakest filtering strength is selected, in the case where it is determined in the second determining step that the boundary does not correspond to the macroblock boundary; the second-weakest filtering strength is selected, in the case where it is determined in the third determining step that either the current block or the neighboring block includes the data obtained by coding the coefficient that indicates the spatial frequency component resulting from the orthogonal transformation; the weakest filtering strength is selected, in the case where it is determined in the fourth determining step that the number of pictures referred to by the current block is equal to the number of pictures referred to by the neighboring block; the weakest filtering strength is selected, in the case where it is determined in the fifth determining step that the picture referred to by the current block is not the same as the picture referred to by the neighboring block; and the filtering strength corresponding to the filtering not being performed is selected, in the case where it is determined in the sixth determining step that the difference between the motion vector of the current block and the motion vector of the neighboring block is within the predetermined range.