In the preferred embodiment, the magnitude of a 3,0 is replaced with the minimum value of the magnitudes of a 3,1 and a 3,2.
A large blocking artifact, which appears when one side of the block boundary to be processed is smooth, can be removed.