Image encoding/decoding method and apparatus for selectively encoding size information of rectangular slice, and method for transmitting bitstream
Disclosed herein are an image encoding/decoding method and apparatus. An image decoding method performed by an image encoding apparatus may include acquiring size information indicating a size of a current slice corresponding to at least a portion of a current picture from a bitstream and determining the size of the current slice based on the size information.
1. An image decoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
acquire size information indicating a size of a current slice corresponding to at least a portion of a current picture from a bitstream,
determine the size of the current slice based on the size information,
wherein the size information includes width information indicating a width of the current slice in units of tile columns and height information indicating a height of the current slice in units of tile rows,
wherein the acquiring the size information is performed based on whether the current slice belongs to a last tile column or a last tile row of the current picture,
wherein the height information of the current slice is not acquired from the bitstream based on a top left tile of the current slice belonging to the last tile row of the current picture, and
wherein the current slice is a rectangular slice.
2. The image decoding apparatus of claim 1 , wherein the height information of the current slice is acquired from the bitstream based on the top left tile of the current slice not belonging to the last tile row of the current picture.
3. The image decoding apparatus of claim 1 , wherein the height information of the current slice is not acquired from the bitstream and is determined to be a predetermined value based on the top left tile of the current slice belonging to the last tile row of the current picture.
4. The image decoding apparatus of claim 3 , wherein the predetermined value indicates one tile row.
5. An image encoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
determine a current slice corresponding to at least one a portion of a current picture,
generate a bitstream including size information of the current slice,
wherein the size information includes width information indicating a width of the current slice in units of tile columns and height information indicating a height of the current slice in units of tile rows,
wherein the generating the bitstream is performed based on whether the current slice belongs to a last tile column or a last tile row of the current picture,
wherein the height information of the current slice is not encoded in the bitstream based on a top left tile of the current slice belonging to the last tile row of the current picture, and
wherein the current slice is a rectangular slice.
6. An apparatus for transmitting a bitstream generated by an image encoding method performed by an image encoding apparatus, comprising:
a memory; and
at least one processor,
wherein the at least one processor controls the apparatus to transmit the bitstream,
wherein the image encoding method comprising:
determining a current slice corresponding to at least one a portion of a current picture,
generating a bitstream including size information of the current slice,
wherein the size information includes width information indicating a width of the current slice in units of tile columns and height information indicating a height of the current slice in units of tile rows,
wherein the generating the bitstream is performed based on whether the current slice belongs to a last tile column or a last tile row of the current picture,
wherein the height information of the current slice is not encoded in the bitstream based on a top left tile of the current slice belonging to the last tile row of the current picture, and
wherein the current slice is a rectangular slice.