se Box-out counter-clockwise Raster scan Reverse raster scan Wipe right Wipe left In such a case, MapUnitsInSliceGroup0 slice group map units in the specified growth order are allocated for slice group 0 and the remaining PicSizeInMapUnits - MapUnitsInSliceGroup0 slice group map units of the picture are allocated for slice group 1. When num_slice_groups_minus is equal to 1 and slice_group_map_type is equal to 4 or 5, the variable sizeOfUpperLeftGroup is defined as follows: sizeOfUpperLeftGroup = (slice_group_change_direction_flag? ( PicSizeInMapUnits - MapUnitsInSliceGroup0) MapUnitsInSliceGroup0) (8-14) The mapUnitToSliceGroupMap array is derived as follows: If num_slice_groups_minus1 is equal to 0, the map unit to slice group map is generated for all i ranging from 0 to PicSizeInMapUnits - 1, inclusive, as specified by mapUnitToSliceGroupMap[i]=0 (8-15) Otherwise (num_slice_groups_minus1 is not equal to 0), mapUnitToSliceGroupMap is derived as follows: If slice_group_map_type is equal to 0, the derivation of mapUnitToSliceGroupMap as specified in clause 8.2.2.1 applies. Otherwise, if slice _group_map_type is equal to 1, the derivation of mapUnitToSliceGroupMap as specified in clause 8.2.2.2 applies. Otherwise, if slice _group_map_type is equal to 2, the derivation of mapUnitToSliceGroupMap as specified in clause 8.2.2.3 applies. Rec. ITU-T H.264 (01/2012) Otherwise, if slice_group_map_type is equal to 3, the derivation of mapUnitToSliceGroupMap as specified in clause 8.2.2.4 applies. Otherwise, if slice group_map_type is equal to 4, the derivation of mapUnitToSliceGroupMap as specified in clause 8.2.2.5 applies. Otherwise, if slice group_map_type is equal to 5, the derivation of mapUnitToSliceGroupMap as specified in clause 8.2.2.6 applies. Otherwise (slice_group_map_type is equal to 6), the derivation of mapUnitToSliceGroupMap as specified in clause 8.2.2.7 applies. After derivation of the mapUnitToSliceGroupMap, the process specified in clause 8.2.2.8 is invoked to convert the map unit to slice group map mapU