Method and apparatus for encoding/decoding image by using boundary processing, and recording medium for storing bitstream
There is provided a method and apparatus of encoding/decoding an image. The method comprises decoding information on block partitioning of a current block included in a current picture from a bitstream; determining a partitioning method of the current block on the basis of the information; and partitioning the current block by using the determined partitioning method, wherein the partitioning method is determined on the basis of whether or not the current block includes a predetermined boundary.
1. A method of decoding an image, the method comprising:
decoding information on block partitioning of a current block included in a current picture from a bitstream;
determining a partitioning method of the current block on the basis of the information; and
partitioning the current block by using the determined partitioning method,
wherein the partitioning method is determined on the basis of whether or not the current block includes a predetermined boundary,
wherein, when the current block includes a right boundary of the current picture and a height of the current block is greater than a size of a largest transform block, the partitioning method is determined as partitioning other than vertical binary-tree partitioning.
2. The method of claim 1 ,
wherein the information on block partitioning includes at least one of information on a size of the current block, information on a depth of the current block, and information on whether or not to perform partitioning.
3. The method of claim 1 ,
wherein the partitioning method includes at least one of quad-tree partitioning, horizontal binary-tree partitioning, vertical binary-tree partitioning, horizontal ternary-tree partitioning, and vertical ternary-tree partitioning.
4. The method of claim 1 ,
wherein the predetermined boundary includes at least one of a right boundary, a lower boundary, a left boundary, and an upper boundary of at least one of a picture, a sub-picture, a slice, a tile, and a brick to which the current block belongs.
5. The method of decoding an image of claim 1 ,
wherein the size of the largest transform block is 64.
6. A method of encoding an image, the method comprising:
determining a partitioning method of a current block included in a current picture;
partitioning the current block by using the determined partitioning method; and
encoding information on block partitioning of the partitioning method,
wherein the partitioning method is determined on the basis of whether or not the current block includes a predetermined boundary,
wherein, when the current block includes a right boundary of the current picture and a height of the current block is greater than a size of a largest transform block, the partitioning method is determined as partitioning other than vertical binary-tree partitioning.
7. The method of claim 6 ,
wherein the information on block partitioning includes at least one of information on a size of the current block, information on a depth of the current block, and information on whether or not to perform partitioning.
8. The method of claim 6 ,
wherein the partitioning method includes at least one of quad-tree partitioning, horizontal binary-tree partitioning, vertical binary-tree partitioning, horizontal ternary-tree partitioning, and vertical ternary-tree partitioning.
9. The method of claim 6 ,
wherein the predetermined boundary includes at least one of a right boundary, a lower boundary, a left boundary, and an upper boundary of at least one of a picture, a sub-picture, a slice, a tile, and a brick to which the current block belongs.
10. The method of encoding an image of claim 6 ,
wherein the size of the largest transform block is 64.
11. A non-transitory computer-readable medium storing a bitstream generated by an encoding method, the method comprising:
determining a partitioning method of a current block included in a current picture;
partitioning the current block by using the determined partitioning method; and
encoding information on block partitioning of the partitioning method,
wherein the partitioning method is determined on the basis of whether or not the current block includes a predetermined boundary,
wherein when the current block includes a right boundary of the current picture, and a height of the current block is greater than a size of a largest transform block, the partitioning method is determined as partitioning other than vertical binary-tree partitioning.
12. The non-transitory computer readable medium of claim 11 ,
wherein the size of the largest transform block is 64.