ified by for(i=0;i<PicSizeInMapUnits;i++ ) (i<sizeOfUpperLeftGroup) mapUnitToSliceGroupMap = slice_group_change_direction_flag (8-21) mapUnitToSliceGroupMapl il=1 - slice_group_change_direction_fla; 8.2.2.6 Specification for wipe slice group map types The specifications in this clause apply when slice_group_map_typeis equalto 5. The map unit to slice group map is generated as specified by for( j=0;j< PicWidthInMbs;j++) for( i=0;i<PicHeightInMapUnits;i+ ) if( ++<sizeOfUpperLeftGroup) mapUnitToSliceGroupMap[ i * Pic WidthInMbs = =slice_group_change_direction_fla; (8-22) mapUnitToSliceGroupMap i * cWidthInMbs+j]=1-slice_group_change_direction_fla Rec. ITU-T H.264 (01/2012) 8.2.2.7 Specification for explicit slice group map type The specifications in this clause apply when slice_group_map_type is equal to 6. The map unit to slice group map is generated as specified by mapUnitToSliceGroupMap[ i ] = slice_group_id[i (8-23) for all i ranging from 0 to PicSizeInMapUnits - 1, inclusive. 8.2.2.8 Specification for conversion of map unit to slice group map to macroblock to slice group map For each value of i ranging from 0 to PicSizeInMbs - 1, inclusive, the macroblock to slice group map is specified as follows: If frame_mbs_only_flag is equal to 1 or field_pic_flag is equal to 1, the macroblock to slice group map is specified MbToSliceGroupMap[ i ] = mapUnitToSliceGroupMap[ (8-24) Otherwise, if MbaffFrameFlag is equal to 1, the macroblock to slice group map is specified by MbToSliceGroupMap[ i = mapUnitToSliceGroupMap[i/2] (8-25) Otherwise (frame_mbs_only_flag is equal to 0 and mb_adaptive_frame_field_flag is equal to 0 and field_pic_flag is equal to 0), the macroblock to slice group map is specified by MbToSliceGroupMap[ i ] = mapUnitToSliceGroupMap[ PicWidthInMbs ) ) * PicWidthInMbs + (i% PicWidthInMbs) (8-26) 8.2.3 Decoding process for slice data partitions Inputs to this process are: a slice data partition A layer RBSP, when syntax elements of category 3 are present in the slice data, a slice data partition B layer RBSP