Image encoding/decoding method and device for determining division mode on basis of prediction mode type determined according to color format, and method for transmitting bitstream
An image encoding/decoding method and apparatus are provided. An image decoding method performed by an image decoding apparatus may comprise obtaining a current block by splitting an image, determining prediction mode characteristic information based on encoding information of the current block, determining a prediction mode type of a lower-layer block split from the current block based on the prediction mode characteristic information, obtaining the lower-layer block by splitting the current block, and decoding the lower-layer block based on the determined prediction mode type of the lower-layer block. The prediction mode characteristic information may be determined based on a color format of the current block.
1 . An image decoding apparatus, comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
determine prediction mode characteristic information of a first block;
determine a prediction mode type of a second block included in the first block based on the determined prediction mode characteristic information; and
decode the second block based on the determined prediction mode type,
wherein the prediction mode characteristic information is determined based on a color format of the first block.
2 . The image decoding apparatus of claim 1 ,
wherein the second block is obtained by splitting the first block based on a predetermined splitting structure.
3 . The image decoding apparatus of claim 2 ,
wherein the splitting structure is determined to be a dual tree structure, based on the prediction mode type of the second block being an intra prediction mode type.
4 . The image decoding apparatus of claim 1 ,
wherein the prediction mode characteristic information is determined to be a first value, based on the color format of the first block being a monochrome format or a 4:4:4 format.
5 . The image decoding apparatus of claim 1 ,
wherein, based on a number of luma samples of the first block being 64 and a splitting mode of the first block being a binary splitting mode and the color format of the first block being a predetermined format, the prediction mode characteristic information is determined to be a first value.
6 . The image decoding apparatus of claim 1 ,
wherein, based on a number of luma samples of the first block being 128 and a splitting mode of the first block being a ternary splitting mode and the color format of the first block being a predetermined format, the prediction mode characteristic information is determined to be a first value.
7 . The image decoding apparatus of claim 1 ,
wherein the prediction mode characteristic information is determined further based on whether a slice to which the first block belongs is an I slice.
8 . The image decoding apparatus of claim 1 ,
wherein, based on a number of luma samples of the first block being 64 and a splitting mode of the first block being a binary splitting mode and the color format of the first block being a 4:2:0 format, the prediction mode characteristic information is determined to be a second value or a third value based on whether a slice to which the current block belongs is an I slice.
9 . The image decoding apparatus of claim 1 ,
wherein, based on a number of luma samples of the first block being 128 and a splitting mode of the first block being a ternary splitting mode and the color format of the first block being a 4:2:0 format, the prediction mode characteristic information is determined to be a second value or a third value based on whether a slice to which the current block belongs is an I slice.
10 . An image encoding apparatus, comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
determine prediction mode characteristic information of a first block;
determine a prediction mode type of a second block included in the first block based on the determined prediction mode characteristic information; and
encode the second block based on the determined prediction mode type,
wherein the prediction mode characteristic information is determined based on a color format of the first block.
11 . The image encoding apparatus of claim 10 ,
wherein, based on a number of luma samples of the first block being 64 and a splitting mode of the first block being a binary splitting mode and the color format of the first block being a predetermined format, the prediction mode characteristic information is determined to be a first value.
12 . The image encoding apparatus of claim 10 ,
wherein, based on a number of luma samples of the first block being 128 and a splitting mode of the first block being a ternary splitting mode and the color format of the first block being a predetermined format, the prediction mode characteristic information is determined to be a first value.
13 . The image encoding apparatus of claim 10 ,
wherein the prediction mode characteristic information is determined further based on whether a slice to which the first block belongs is an I slice.
14 . An apparatus for transmitting a bitstream, the apparatus comprising:
at least one processor configured to obtain the bitstream generated by an image encoding method; and
a transmitter configured to transmit the bitstream;
wherein the image encoding method comprising:
determining prediction mode characteristic information of a first block;
determining a prediction mode type of a second block included in the first block, based on the determined prediction mode characteristic information; and
encoding the second block based on the determined prediction mode type,
wherein the prediction mode characteristic information is determined based on a color format of the first block.