On the other hand, it may be considered that the SAO is adaptively applied depending on the region to which the SAO is applied, that is, the SAO application unit. Hereinafter, a method of performing an adaptive SAO in the system according to the invention will be described by the band offset and the edge offset.
<Adaptive Application of Band Offset>
Referring to
For example, when histograms of a picture of a corresponding block are concentrated on the central part in the entire intensity range, a method of dividing the central part more densely to set the bands and dividing the side parts less densely to set the bands may be considered. Specifically, when pixels of N bits are concentrated on the central part in the entire intensity range (0 to 2N?1), M bands having small intensity intervals may be set in the central part and L bands having large intensity intervals may be set in the side part.