CPC H04N 19/30 (2014.11) [H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/46 (2014.11); H04N 19/96 (2014.11)] | 18 Claims |
1. A video signal encoding apparatus comprising a processor,
wherein the processor is configured to:
obtain a bitstream to be decoded by a decoder using a decoding method,
the decoding method comprising:
scaling a transform coefficient for a current block based on an intermediate scaling factor array;
when a flag indicating whether a low frequency non-separable transform is applied indicates that the low frequency non-separable transform is applied to the current block, obtaining a residual for the current block by applying an inverse transform of a primary transform to a coefficient, the coefficient is obtained by applying an inverse transform of the low frequency non-separable transform to the scaled transform coefficient,
wherein the flag indicating whether the low frequency non-separable transform is applied is determined based on a low frequency non-separable transform index,
wherein the low frequency non-separable transform index indicates whether the low frequency non-separable transform is applied and a kernel to be used for the low frequency non-separable transform,
when the flag indicating whether the low frequency non-separable transform is applied indicates that the low frequency non-separable transform is not applied to the current block, obtaining the residual for the current block by applying the inverse transform of the primary transform to the scaled transform coefficient; and
reconstructing the current block based on the residual,
when the flag indicating whether the low frequency non-separable transform is applied indicates that the low frequency non-separable transform is applied to the current block and a scaling factor array non-use flag indicates non-use of a scaling matrix for the current block, all factors included in the intermediate scaling factor array are set to one predetermined value.
|