1. An apparatus for removing a blocking phenomenon in a first block using properties of a second block, the second block adjacent to the first block, the apparatus comprising: a decoder configured to determine whether the second block has non-zero transform coefficient information, the decoder further configured to, determine whether the second block corresponds to an intra coded block, determine a filter strength value in consideration of at least one among a presence of the non-zero transform coefficient information and the correspondence to the intra coded block, determine coefficients, for pixels on a block boundary between the first and second blocks, based on the filter strength value, calculate values of the pixels based on the determined coefficients, the calculating including performing a bit shift operation, and wherein the pixels on the block boundary are at least two pixels in the first block and at least two pixels in the second block, wherein the bit shift operation uses an integer wherein the integer is greater than 1.