When the SAO is applied, the filter module may apply an offset in the unit of pixel. Here, the filter module may adaptively determine the number of offsets (the number of bands), the band groups, and the like for application of a band offset, or may transmit only the offsets for effective bands to the decoder. The filter module may apply plural edge offsets to the SAO application region. Specific details thereof are the same as described above.
The filter module may apply the SAO to chroma pixels. The SAO application region may be independently determined depending on luma and chroma. In addition, in case of the band offset for chroma, the number of bands and the band groups may be determined to apply the offset to the chroma pixels. In the edge offset for chroma, the number of categories in the direction of each edge may be adjusted. Specific details thereof are the same as described above.
The encoder may transmit a bitstream including picture information on application of the SAO and picture information on the SAO to the decoder (S1430).
Referring to
The decoder may reconstruct a block on the basis of the received information (S1520). The decoder may derive a reconstructed block on the basis of the prediction block generated by prediction and the residual block generated by dequantization and inverse transform.