CPC H04N 19/122 (2014.11) [H04N 19/136 (2014.11); H04N 19/157 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 3 Claims |
1. A video decoding method comprising:
obtaining transform shape information about whether a current coding unit is split in a vertical direction or a horizontal direction or is not split, from a bitstream;
determining a horizontal length and a vertical length of a transform block with respect to the current coding unit based on the transform shape information;
obtaining an encoded data from the bitstream;
obtaining transform kernel information indicating whether a non-separable transform is used or which transform kernel is used from among transform kernel candidates;
when the transform kernel information indicates that the non-separable transform is used, determining a transform kernel among the transform kernel candidates based on the horizontal length and the vertical length of the transform block, an intra prediction mode used in intra prediction, and the transform kernel information;
performing inverse transformation on the encoded data by using the determined transform kernel in order to obtain a residual sample; and
reconstructing the current coding unit based on the residual sample and a prediction sample obtained by performing intra prediction.
|