In step ST22, the adaptive offset filter determines whether or not the edge offset is to be inhibited (EO to be inhibited). The adaptive offset filter 35 determines whether or not EO is to be inhibited on the basis of the transformation skip information from the transformation skip controller 44.
The adaptive offset filter 35 performs a first determining operation in which it decides that EO is to be inhibited in case a TU in the transformation skip mode is included in the LCU as the target to be processed, and that EO is not to be inhibited in case no TU is included.
The adaptive offset filter 35 may perform a second determining operation different from the first determining operation. For example, the adaptive offset filter 35 determines whether or not EO is to be inhibited on the basis of the ratio of the number of Iris in the transformation skip mode included in the LCU as the target to be processed. In the case of