CPC H04N 19/44 (2014.11) [H04N 19/136 (2014.11); H04N 19/184 (2014.11); H04N 19/45 (2014.11); H04N 19/60 (2014.11)] | 7 Claims |
1. A method of decoding a video, the method comprising:
determining, based on a sub-block transform flag, whether a sub-block transform is performed on a current coding block, wherein the sub-block transform flag indicates whether the sub-block transform is used for the current coding block, and the sub-block transform refers to a transform method in which inverse transform is performed on a first sub-block of two sub-blocks in the current coding block and the inverse transform is not performed on a second sub-block of the two sub-blocks;
determining, based on the sub-block transform flag indicating that the sub-block transform is used for the current coding block, a split type for the sub-block transform of the current coding block among a plurality of split type candidates including a symmetric binary split and an asymmetric binary split;
splitting the current coding block into the first sub-block and the second sub-block based on the split type for the sub-block transform;
determining horizontal and vertical transform types of the first sub-block; and
performing the inverse transform on the first sub-block based on the horizontal and vertical transform types,
wherein one of the two sub-blocks is determined as the first sub-block based on position information indicating a position of a sub-block on which the inverse transform is performed among the two sub-blocks,
wherein a left or top sub-block of the two sub-blocks is determined as the first sub-block based on a value of the position information being equal to a first value, and a right or bottom sub-block of the two sub-blocks is determined as the first sub-block based on the value of the position information being equal to a second value, and
wherein the horizontal and vertical transform types are determined based on the value of the position information.
|