Video encoding method and encoding device, and video decoding method and decoding device considering hardware design
Provided is a video decoding method including: generating coding units by splitting at least one of a height and a width of a largest coding unit having a first size; based on whether a height or a width of a non-square first coding unit including an outer boundary of an image, among the coding units, is greater than a maximum transform size, determining whether it is allowed to generate two second coding units by splitting at least one of the height and the width of the first coding unit; and decoding the second coding units generated from the first coding unit.
1. A video decoding method comprising:
identifying that a right boundary of a first coding unit is outside of a right boundary of an image;
based on a height of the first coding unit being greater than a maximum transform size and a width of the first coding unit being greater than the maximum transform size, determining that a vertical binary split of the first coding unit is allowed;
based on the determining that the vertical binary split of the first coding unit is allowed, determining second coding units by splitting the width of the first coding unit in half in a vertical direction and decoding the second coding units;
based on the height of the first coding unit being greater than the maximum transform size and the width of the first coding unit being equal to the maximum transform size, determining that the vertical binary split of the first coding unit is not allowed and a horizontal binary split of the first coding unit is allowed; and
based on the determining that the vertical binary split of the first coding unit being not allowed and the horizontal binary split of the first coding unit being allowed, determining third coding units by splitting the height of the first coding unit in half in a horizontal direction and decoding the third coding units.
2. A video decoding apparatus comprising:
a processor configured to:
when a right boundary of a first coding unit is outside of a right boundary of an image and both of a height of the first coding unit and a width of the first coding unit is greater than a maximum transform size, determine that a vertical binary split of the first coding unit is allowed,
when the vertical binary split of the first coding unit is allowed, determine second coding units by splitting the width of the first coding unit in half in a vertical direction and decode the second coding units,
when the right boundary of the first coding unit is outside of the right boundary of the image, the height of the first coding unit is greater than the maximum transform size and the width of the first coding unit is equal to the maximum transform size, determine that the vertical binary split of the first coding unit is not allowed and a horizontal binary split of the first coding unit is allowed, and
when the vertical binary split of the first coding unit is not allowed and the horizontal binary split of the first coding unit is allowed, determine third coding units by splitting the height of the first coding unit in half in a horizontal direction and decoding the third coding units; and
a memory configured to store data generated from the processor.
3. A video encoding method comprising:
identifying that a right boundary of a first coding unit is outside of a right boundary of an image;
based on a height of the first coding unit being greater than a maximum transform size and a width of the first coding unit being greater than the maximum transform size, determining that a vertical binary split of the first coding unit is allowed;
based on the determining that the vertical binary split of the first coding unit is allowed, determining second coding units by splitting the width of the first coding unit in half in a vertical direction and encoding the second coding units;
based on the height of the first coding unit being greater than the maximum transform size and the width of the first coding unit being equal to the maximum transform size, determining that the vertical binary split of the first coding unit is not allowed and a horizontal binary split of the first coding unit is allowed;
based on the determining that the vertical binary split of the first coding unit is not allowed and the horizontal binary split of the first coding unit is allowed, determining third coding units by splitting the height of the first coding unit in half in a horizontal direction and encoding the third coding units.