CPC H04N 19/46 (2014.11) [H04N 19/119 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/60 (2014.11)] | 20 Claims |
1. A non-transitory computer-readable medium storing a bitstream, the bitstream being decoded by a decoding method, the decoding method comprising:
obtaining an intra sub-partitions (ISP) mode flag indicating whether or not an ISP mode is applied to a current block;
if the ISP mode is applied to the current block, obtaining an ISP partitioning flag indicating a partitioning direction of the current block;
partitioning the current block into a plurality of transform blocks on the basis of the partitioning direction;
determining a horizontal transform kernel applied to a current transform block among the plurality of transform blocks,
wherein the horizontal transform kernel is applied to a horizontal direction of the current transform block;
determining a vertical transform kernel applied to the current transform block,
wherein the vertical transform kernel is applied to a vertical direction of the current transform block;
generating a residual block of the current transform block by performing inverse transform on the current transform block based on the horizontal transform kernel and the vertical transform kernel; and
reconstructing the current block on the basis of the residual block,
wherein when a width of the current transform block is less than a first threshold or greater than a second threshold, the horizontal transform kernel is determined to be a first transform kernel,
wherein when the width of the current transform block is greater than or equal to the first threshold and less than or equal to the second threshold, the horizontal transform kernel is determined to be a second transform kernel,
wherein when a height of the current transform block is less than the first threshold or greater than the second threshold, the vertical transform kernel is determined to be the first transform kernel,
wherein when the height of the current transform block is greater than or equal to the first threshold and less than or equal to the second threshold, the vertical transform kernel is determined to be the second transform kernel.
|