Referring to Table 7, when an SAO application region is divided, the offset parameter may be indicated for each divided region.
When an SAO application region is not divided any more, the offset type of the corresponding SAO application region is indicated.
In the example shown in Table 7, sao_type_index indicates the offset type to be applied to the current region. The number of SAO offsets or the number of SAO categories may be determined depending on the offset type (sao type, sao_type_idx) applied to the current region. An example of the syntax information indicating the number of SAO offsets or the number of SAO categories depending on the offset type is PqaoOffsetNum[sao_type_idx] shown in Table 6.
In the example shown in Table 7, start_offset indicates the smallest number of band offsets or edge offsets to be used. If start_offset is not available, it may be estimated that start_offset has a value of 0. end_offset indicates the largest number of band offsets or edge offsets to be used. When end_offset is not available, the value of end_offset may be set to the number of SAO categories (the number of offsets) PqaoOffsetNum[sao_type_idx] determined depending on the SAO type (sao_type_idx) as described above.
Table 8 schematically shows an example of an SAO offset type. As described above with reference to Table 7, the number of SAO category (the number of offsets) may be determined depending on the offset type.