| CPC H04N 19/61 (2014.11) [H04N 19/11 (2014.11); H04N 19/124 (2014.11); H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/18 (2014.11)] | 4 Claims |

|
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining residual information from a bitstream;
deriving quantized transform coefficients for a target block based on the residual information;
deriving transform coefficients for the target block by dequantizing the quantized transform coefficients;
deriving modified transform coefficients for the target block based on an inverse non-separable transform for the transform coefficients;
deriving residual samples for the target block based on an inverse primary transform for the modified transform coefficients; and
generating a reconstructed picture based on the residual samples for the target block,
wherein the inverse non-separable transform is performed through a matrix operation of the transform coefficients for a top-left area of the target block and a transform kernel matrix,
wherein the transform kernel matrix is selected based on a transform index from a transform set,
wherein the transform set is derived based on a mapping relationship according to an intra prediction mode applied to the target block,
wherein the modified transform coefficients are two-dimensionally arranged according to a row-first direction based on the intra prediction mode being a horizontal mode in a left direction with respect to a top-left diagonal direction, and
wherein the modified transform coefficients are two-dimensionally arranged according to a column-first direction based on the intra prediction mode being a vertical mode in a right direction with respect to the top-left diagonal direction.
|