For example, in
In the same embodiment, the lists SubpicWidthInTiles[i] and SubpicHeightInTiles[i], for i ranging from 0 to sps_num_subpics_minus1, inclusive, specifying the width and the height of the i-th subpicture in tile columns and rows, respectively, and the list subpicHeightLessThanOneTileFlag[i], for i ranging from 0 to sps_num_subpics_minus1, inclusive, specifying whether the height of the i-th subpicture is less than one tile row, are derived as follows:
for(i=0; i<=sps_num_subpics_minus2+1; i++) {
leftX=subpic_ctu_top_left_x[i]
rightX=leftX+subpic_width_minus1[i]
SubpicWidthInTiles[i]=ctbToTileColIdx[rightX]+1?ctbToTileColIdx[leftX]
topY=subpic_ctu_top_left_y[i]
bottomY=topY+subpic_height_minus1[i]
SubpicHeightInTiles[i]=
ctbToTileRowIdx[bottomY]+1?ctbToTileRowIdx[topY]
if(SubpicHeightInTiles[i]==1 &&
RowHeight[ctbToTileRowIdx[topY]])