1. A method of removing a blocking artifact using quantization information, comprising: obtaining quantization information of a first block, determining a filtering coefficient based on values obtained from a table using the quantization information, and obtaining four successive filtered pixel values in horizontal direction based on the filtering coefficient, and obtaining four successive filtered pixel values in the vertical direction based on the filtering coefficient after obtaining the four successive filtered pixel values in the horizontal direction.