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, and
wherein when the current block includes a right boundary and a bottom boundary of the current picture and a width of the current block is greater than a size of a smallest quadtree block, the partitioning method is determined as quad-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, or 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, or vertical ternary-tree partitioning.
4. The method of claim 1 , wherein the predetermined boundary includes at least one of a right boundary, a bottom boundary, a left boundary, or a top boundary of at least one of a picture, a sub-picture, a slice, a tile, or a brick to which the current block belongs.
5. 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, and
wherein when the current block includes a right boundary and a bottom boundary of the current picture and a width of the current block is greater than a size of a smallest quadtree block, the partitioning method is determined as quad-tree partitioning.
6. The method of claim 5 , 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, or information on whether or not to perform partitioning.
7. The method of claim 5 , wherein the partitioning method includes at least one of quad-tree partitioning, horizontal binary-tree partitioning, vertical binary-tree partitioning, horizontal ternary-tree partitioning, or vertical ternary-tree partitioning.
8. The method of claim 5 , wherein the predetermined boundary includes at least one of a right boundary, a bottom boundary, a left boundary, or a top boundary of at least one of a picture, a sub-picture, a slice, a tile, or a brick to which the current block belongs.
9. 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, and
wherein when the current block includes a right boundary and a bottom boundary of the current picture and a width of the current block is greater than a size of a smallest quadtree block, the partitioning method is determined as quad-tree partitioning.
10. The non-transitory computer-readable medium of claim 9 , 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, or information on whether or not to perform partitioning.
11. The non-transitory computer-readable medium of claim 9 , wherein the partitioning method includes at least one of quad-tree partitioning, horizontal binary-tree partitioning, vertical binary-tree partitioning, horizontal ternary-tree partitioning, or vertical ternary-tree partitioning.
12. The non-transitory computer-readable medium of claim 9 , wherein the predetermined boundary includes at least one of a right boundary, a bottom boundary, a left boundary, or a top boundary of at least one of a picture, a sub-picture, a slice, a tile, or a brick to which the current block belongs.