1. A loop filtering method comprising: calculating a blocking effect strength based on coding type information which specifies a coding type of a block to be filtered, a motion vector of the block, and reference frame information which identifies a reference frame; determining a filtering unit to be used for filtering the block based on the blocking effect strength; and performing filtering on the block using the filtering unit which is determined.