llowing applies: If arbitrary slice order is not allowed as specified in Annex A, the first slice of a coded picture, in decoding order, shall have slice id equal to 0 and the value of slice id shall be incremented by one for each subsequent slice of the coded picture in decoding order. Otherwise (arbitrary slice order is allowed), each slice shall have a unique slice_id value within the set of slices of the coded picture. Otherwise (separate_colour_plane_flag is equal to 1), the following applies: If arbitrary slice order is not allowed as specified in Annex A, the first slice of a coded picture having each value of colour_plane_id in decoding order, shall have slice id equal to 0 and the value of slice id shall be incremented by one for each subsequent slice of the coded picture having the same value of colour_plane_id, in decoding order. Otherwise (arbitrary slice order is allowed) each slice shall have a unique slice_id value within each set of slices of the coded picture that have the same value of colour_plane_id. The range of slice id is specified as follows: If MbaffFrameFlag is equal to 0, slice id shall be in the range of 0 to PicSizeInMbs - 1, inclusive. Otherwise (MbaffFrameFlag is equal to 1), slice id shall be in the range of 0 to PicSizeInMbs / 2 1, inclusive. 7.4.2.9.2 Slice data partition B RBSP semantics When slice data partitioning is in use, the coded data for a single slice is divided into one to three separate partitions. Slice data partition B contains all syntax elements of category 3. Category 3 syntax elements include all syntax elements in the residual() syntax structure and in syntax structures used within that syntax structure for collective macroblock types I and SI as specified in Table 7-10. slice id has the same semantics as specified in clause 7.4.2.9.1. colour_plane_id specifies the colour plane associated with the current slice RBSP when separate_colour_plane_flag is equal to 1. The value of colour_plane_id shall be in the range of 0 to 2, inclusive. colour plane id equal to 0,