CPC H04N 19/44 (2014.11) [H04N 19/119 (2014.11); H04N 19/176 (2014.11)] | 12 Claims |
1. A video decoding method, comprising:
acquiring a coding block of a video image frame;
determining a partitioning mode available to the coding block according to a size of the coding block and an allowable maximum sub-block size ratio when determining that sub-block transform (SBT) is to be performed on the coding block;
determining, based on the partitioning mode available to the coding block, a target partitioning mode used during the SBT performed on the coding block; and
partitioning the coding block based on the target partitioning mode, and decoding a plurality of sub-blocks obtained through the partitioning,
wherein determining a partitioning mode available to the coding block comprises at least one of:
allowing a vertical half partitioning mode for the coding block when determining that a width of the coding block is greater than or equal to 8 and twice a height of the coding block is less than or equal to a product of the width and the maximum sub-block size ratio, or otherwise prohibiting the vertical half partitioning mode for the coding block;
allowing a vertical quad partitioning mode for the coding block when determining that a width of the coding block is greater than or equal to 16 and 4 times a height of the coding block is less than or equal to a product of the width and the maximum sub-block size ratio, or otherwise prohibiting the vertical quad partitioning mode for the coding block;
allowing a horizontal half partitioning mode for the coding block when determining that a height of the coding block is greater than or equal to 8 and twice a width of the coding block is less than or equal to a product of the height and the maximum sub-block size ratio, or otherwise prohibiting the horizontal half partitioning mode for the coding block; or
allowing a horizontal quad partitioning mode for the coding block when determining that a height of the coding block is greater than or equal to 16 and 4 times a width of the coding block is less than or equal to a product of the height and the maximum sub-block size ratio, or otherwise prohibiting the horizontal quad partitioning mode for the coding block.
|