| CPC H04N 19/70 (2014.11) [H04N 19/107 (2014.11); H04N 19/119 (2014.11); H04N 19/124 (2014.11); H04N 19/136 (2014.11); H04N 19/174 (2014.11)] | 7 Claims |

|
1. A video decoding method performed by a video decoding apparatus, the method comprising:
parsing number information related to a number of slices of which heights are explicitly signaled within a tile of a current picture from a bitstream;
parsing height information related to heights of the slices of which heights are explicitly signaled from the bitstream based on the number information;
based on the number of slices of which heights are explicitly signaled being equal to n, deriving heights of a 0-th slice to an (n−1)-th slice within the tile based on the height information;
deriving a total number of slices within the tile; and
decoding the current picture based on the slices of the current picture,
wherein the deriving the total number of slices within the tile comprises
obtaining a remaining height of the tile that is calculated by subtracting the heights of the slices starting from the 0-th slice to the (n−1)-th slice from a total height of the tile;
obtaining intermediate number that is equal to n;
comparing the remaining height of the tile with a uniform height of a slice within the tile;
increasing the intermediate number by 1 based on the remaining height of the tile being smaller than the uniform height and being larger than 0; and
deriving the total number of slices within the tile as the increased intermediate number.
|