In step ST10, the image coding apparatus performs an image adding process. The operator 33 of the image coding apparatus 10 adds the predicted image data output from the prediction selector 43 to the locally decoded residual data, generating a locally decoded image (specifically, locally decoded).
In step ST11, the image coding apparatus performs a deblocking filter process. The deblocking filter 34 of the image coding apparatus 10 performs a deblocking filter process on the image output from the operator 33, removing a block distortion therefrom, and outputs the image to the adaptive offset filter 35.
In step ST12, the image coding apparatus performs an SAO process. The adaptive offset filter 35 of the image coding apparatus 10 performs an SAO process on the image output from the deblocking filter 34. According to the SAO process, the type of the SAO process and a coefficient are determined for each LCU, which is a maximum coding unit, and the filter process is carried out using them. In addition, the adaptive offset filter 35 limits filter operation with respect to an image in the transformation skip mode. Incidentally, details of this SAO process will be described later. Moreover, the adaptive offset filter 35 outputs a parameter relating to the SAO process to the entropy coding section 25, and will be coded in step ST15 as described later.