ame_mbs_only_flag is equal to 0 for any primary coded VCL NAL unit of the current scalable layer, (firstMbY % 2) shall be equal to 0. For each dependency representation that contains any primary coded VCL NAL unit of the current scalable layer, the following applies: If field_pic_flag is equal to 0 and MbaffFrameFlag is equal to 0 for the dependency representation, the value of firstmb in roii]il shall be equal to the syntax element in slice in the slice that belongs to the dependency representation and covers the top-left macroblock of the j-th IROI. Otherwise (field pic flag is equal to 1 or MbaffFrameFlag is equal to 1 for the dependency representation), the value of firstMbInROIFId shall be equal to the syntax element first mb in slice in the slice that belongs to the dependency representation and covers the top-left macroblock of the j-th IROI. roi_width_in_mbs_minus1[i][j] and roi_height_in_mbs_minus1[i] specify the size of the j-th IROI for the current scalable layer. When frame_mbs_only_flag is equal to 0 for any primary coded VCL NAL unit of the current scalable layer, roi_height_in_mbs_minus1[i][j]+1)o shall be equal to 0. The value of roi_width_in_mbs_minus1[i][j] shall be in the range of 0 to (FrmWidthInMbs[i]-1- (first_mb_in_roi[i][j]% FrmWidthInMbs[i])) inclusive. The value of roi_height_in_mbs_minus1i][j shall be in the range of 0 to (FrmHeightInMbs[i]-1-(firstMbY/FrmWidthInMbs[i])),inclusive. With field_pic_flag being the slice header syntax element for a particular layer picture with dependency id equal to dependency_id[i] the width and height of the j-th IROI in the layer pictures with dependency id equal to dependency_id[i equal *(roi_width_in_mbs_minus1[i][j]+1) 16* +field_pic_flag) respectively, in units of luma samples. All scalable layers with the same value of dependency_id[i for which scalability information is present in the scalability information SEI message and for whichiroi_division_info_present_flag[i]is equal to 1 and roi_grid_flag[i is equal to 0 shall have the same values of firs