Method for splitting picture and decoding apparatus
A method for partitioning a picture is disclosed. The method includes: decoding, from a bitstream, a split flag indicating whether the picture is partitioned into one or more sub-units; decoding, from the bitstream, partition information when the split flag indicates partitioning; and partitioning the picture into the sub-units based on the partition information.
1 . A video decoding apparatus, the apparatus comprising at least one processor configured to:
decode, from a bitstream, a split flag indicating whether the picture is partitioned into one or more sub-units;
decode, from the bitstream, a type flag indicating a slice type when the split flag indicates partitioning; and
decode, from the bitstream, partition information related to partitioning of the picture into a plurality of slices when the split flag indicates partitioning and when the type flag indicates a rectangular slice,
wherein the partition information includes information on a number of slices and size information of the slices,
wherein the size information of the slices includes information on a number of columns of tiles included in a slice and information on a number of rows of tiles included in the slice.
2 . The apparatus of claim 1 ,
wherein the partition information includes information on a number of tiles and size information of tiles when the split flag indicates partitioning.
3 . The apparatus of claim 1 , wherein the at least one processor is further configured to:
decode, from the bitstream, mapping information for mapping one or more sub-pictures to one or more slices belonging to each of the sub-pictures; and
map the sub-pictures to the slices based on the mapping information.
4 . The apparatus of claim 3 , wherein the at least one processor is further configured to decode, from the bitstream, a mapping flag indicating whether mapping is applied to the picture,
wherein, when the mapping flag indicates that mapping is applied, the mapping information includes first mapping information decoded from SPS or PPS of the bitstream.
5 . The apparatus of claim 3 , wherein, when the split flag indicates partitioning, the mapping information includes second mapping information decoded from a slice header of the bitstream.
6 . The apparatus of claim 1 , wherein the at least one processor is further configured to:
decode address information of a target slice from a slice header of the bitstream; and
set, based on the address information, an index of the target slice within a sub-picture in which the target slice is included,
wherein the address information indicates an index of the slice within the picture when the type flag decoded from the bitstream indicates the rectangular slice, and
the address information indicates an index of a tile included in the picture when the type flag indicates a raster-scan slice.
7 . A video encoding apparatus, the apparatus comprising at least one processor configured to:
encode a split flag indicating whether a picture is partitioned into one or more sub-units;
encode a type flag indicating a slice type when the split flag indicates partitioning; and
encode partition information related to partitioning of the picture into a plurality of slices when the split flag indicates partitioning and when the type flag indicates a rectangular slice,
wherein the partition information includes information on a number of slices and size information of the slices,
wherein the size information of the slices includes information on a number of columns of tiles included in a slice and information on a number of rows of tiles included in the slice.
8 . An apparatus for transmitting a bitstream containing encoded video data, to a video decoding apparatus, the apparatus comprising at least one processor configured to:
generate the bitstream by encoding video data; and
transmit the bitstream to the video decoding apparatus,
wherein the at least one processor is configured to generate the bitstream by:
encoding a split flag indicating whether a picture is partitioned into one or more sub-units;
encoding a type flag indicating a slice type when the split flag indicates partitioning; and
encoding partition information related to partitioning of the picture into a plurality of slices when the split flag indicates partitioning and when the type flag indicates a rectangular slice,
wherein the partition information includes information on a number of slices and size information of the slices,
wherein the size information of the slices includes information on a number of columns of tiles included in a slice and information on a number of rows of tiles included in the slice.