ALF (Adaptive Loop Filter) may be performed based on a value obtained by comparing a filtered reconstructed image with an original image. Pixels included in an image may be divided into a predetermined group, one filter to be applied to the corresponding group may be determined and filtering may be performed discriminately per group. Information related to whether ALF is applied may be transmitted per coding unit (CU) for a luma signal and a shape and a filter coefficient of an ALF filter to be applied may be different according to each block. In addition, an ALF filter of the same shape (fixed shape) may be applied regardless of a feature of a target block to be applied.
A memory 155 may store a reconstructed block or picture calculated in a filter unit 150 and a stored reconstructed block or picture may be provided to a prediction unit 120 and 125 when inter prediction is performed.
In reference to