t are within the rectangle specified by top_left[ 0] and bottom_right 0]. A slice group having slice group ID greater than 0 and less than num_slice_groups_minus1 contains the macroblocks that are within the specified rectangle for that slice group that are not within the rectangle specified for Rec. ITU-T H.264 (01/2012) any slice group having a smaller slice group ID. The slice group with slice group ID equal to num_slice_groups_minus1 contains the macroblocks that are not in the other slice groups. 8.2.2.4 Specification for box-out slice group map types The specifications in this clause apply when slice_group_map_type is equal to 3. The map unit to slice group map is generated as specified by for( i=0;i < PicSizeInMapUnits; i++) mapUnitToSliceGroupMap[i) 1=1 X = PicWidthInMbs - slice_group_change_direction_flag)/ 2 y = (PicHeightInMapUnits - slice_group_change_direction_flag) / ( leftBound, topBound ) = (x,y) (rightBound, bottomBound ) = (x,y) (xDir,yDir)=(slice_group_change_direction_flag-1,slice_group_change_direction_flag) = for( k=0; k < MapUnitsInSliceGroup0;k+=mapUnitVacant){ mapUnitVacant = mapUnitToSliceGroupMap[ y * PicWidthInMbs + x ] if( mapUnitVacant ) mapUnitToSliceGroupMap[y*PicWidthInMbs. + x]=0 (8-20) (xDir==-1 &&x==leftBound){ leftBound=Max(leftBound-1,0) = X leftBound (xDir, yDir ) (0,2 *slice_group_change_direction_flag 1) else if( xDir==1&&x==rightBound) { rightBound = Min(rightBound + PicWidthInMbs - 1) X rightBound ( xDir, yDir )=(0,1-2*slice_group_change_direction_flag = else if( yDir ==-1 &&y== topBound) { topBound = Max( topBound - 1,0) y topBound ( xDir, yDir) =(1-2*slice_group_change_direction_flag,0) } else if( yDir ==1 &&y== bottomBound){ bottomBound = Min( bottomBound + 1, PicHeightInMapUnits - 1) y =bottomBound xDir, yDir) slice_group_change_direction_flag - 1,0) } else ,y)=(x+xDir,y+yDir) 8.2.2.5 Specification for raster scan slice group map types The specifications in this clause apply when slice_group_map_type is equal to 4. The map unit to slice group map is generated as spec