A non-transitory computer readable medium storing therein a computer program, which when executed by a processor, causes the processor to perform operations including:
- partitioning an image into tiles and slices;
- and
- coding the tiles and the slices resulting from the partitioning, wherein
- the type of each of the slices is either a normal slice type or a dependent slice type,
- a slice of the normal slice type is coded without referring to a different slice and has, in a header, information that is required to decode the slice, and can be used for a different slice,
- a slice of the dependent slice type is coded using information included in a slice header of another slice,
- when a first tile includes a normal slice starting from a position other than a beginning of the first tile, a second tile coded next to the first tile includes a normal slice starting from a beginning of the second tile, and
- each of the tiles is subdivided into an integer number of slices.