Transformation process for video coding
An apparatus directed to improvements of the low-frequency non-separable secondary transform (LFNST) process is provided. The apparatus receives a compressed bitstream including one or more syntax elements for transform coefficients for a current block. The apparatus decodes the one or more syntax elements for transform coefficients to generate transform coefficients and dequantizes the transform coefficients to generate dequantized transform coefficients for the current block. The apparatus derives an LFNST matrix based on a block type of the current block, and performing an LFNST process by applying the derived LFNST matrix to the dequantized transform coefficients to generate transformed samples for the current block. The apparatus transforms the transformed samples to generate residual samples for the current block.
1 . An apparatus comprising:
a communication interface configured to receive a compressed bitstream including one or more syntax elements for transform coefficients for a current block; and
a processor operably coupled to the communication interface, the processor configured to cause:
decoding the one or more syntax elements for transform coefficients to generate transform coefficients for the current block,
dequantizing the transform coefficients to generate dequantized transform coefficients for the current block,
deriving a low frequency non-separable secondary transform (LFNST) matrix based on a block type of the current block using a quantization parameter value and a quantization parameter segment,
performing an LFNST process by applying the derived LFNST matrix to the dequantized transform coefficients to generate transformed samples for the current block, and
transforming the transformed samples to generate residual samples for the current block.
2 . The apparatus of claim 1 , wherein the block type specifies a color component indicating whether the current block is a luma block or a chroma block.
3 . The apparatus of claim 1 , wherein the LFNST matrix is derived further based on a coding parameter.
4 . The apparatus of claim 3 , wherein the transform coefficients are dequantized based on a quantization parameter, and
the coding parameter indicates the quantization parameter.
5 . The apparatus of claim 4 , wherein the processor is further configured to cause:
determining a quantization parameter segment information indicating which segment the quantization parameter belongs to, and
the LFNST matrix is derived further based on the quantization parameter segment information.
6 . The apparatus of claim 1 , wherein the LFNST matrix is derived further based on a feature of an input video.
7 . The apparatus of claim 6 , wherein the feature of the input video indicates a resolution of the input video.
8 . The apparatus of claim 1 , wherein the processor is further configured to cause:
determining an LFNST index based on a syntax element in the compressed bitstream, and
the LFNST matrix is derived further based on the LFNST index.
9 . The apparatus of claim 1 , wherein the processor is further configured to cause:
performing an intra prediction process based on an intra prediction mode to generate prediction samples for the current block, and
the LFNST matrix is derived further based on the intra prediction mode.
10 . The apparatus of claim 9 , wherein the processor is further configured to cause:
combining the residual samples with the prediction samples to generate reconstructed samples for a current picture including the current block.
11 . A video decoding method comprising:
receiving a compressed bitstream including one or more syntax elements for transform coefficients for a current block;
decoding the one or more syntax elements for transform coefficients to generate transform coefficients for the current block;
dequantizing the transform coefficients to generate dequantized transform coefficients for the current block;
deriving a low frequency non-separable secondary transform (LFNST) matrix based on a block type of the current block using a quantization parameter value and a quantization parameter segment;
performing an LFNST process by applying the derived LFNST matrix to the dequantized transform coefficients to generate transformed samples for the current block; and
transforming the transformed samples to generate residual samples for the current block.
12 . The video decoding method of claim 11 , wherein the block type specifies a color component indicating whether the current block is a luma block or a chroma block.
13 . The video decoding method of claim 11 , wherein the transform coefficients are dequantized based on a quantization parameter, and
the LFNST matrix is derived further based on the quantization parameter.
14 . The video decoding method of claim 11 , wherein the LFNST matrix is derived further based on a resolution of an input video.
15 . The video decoding method of claim 11 , further comprising:
performing an intra prediction process based on an intra prediction mode to generate prediction samples for the current block; and
combining the residual samples with the prediction samples to generate reconstructed samples for a current picture including the current block,
wherein the LFNST matrix is derived further based on the intra prediction mode.
16 . An apparatus comprising:
a processor configured to cause:
transforming residual samples for a current block to generate transformed samples for the current block,
deriving a low frequency non-separable secondary transform (LFNST) matrix based on a block type of the current block using a quantization parameter value and a quantization parameter segment,
applying the derived LFNST matrix to the transformed samples to generate transform coefficients for the current block,
quantizing the transform coefficients to generate quantized transform coefficients for the current block, and
encoding with the quantized transform coefficients to generate one or more syntax elements for quantized transform coefficients for the current block; and
a communication interface operably coupled to the processor, the communication interface configured to transmit the compressed bitstream including the one or more syntax elements for quantized transform coefficients for the current block.
17 . The apparatus of claim 16 , wherein the block type specifies a color component indicating whether the current block is a luma block or a chroma block.
18 . The apparatus of claim 16 , wherein the transform coefficients are dequantized based on a quantization parameter, and
the LFNST matrix is derived further based on the quantization parameter.
19 . The apparatus of claim 16 , wherein the LFNST matrix is derived further based on a resolution of an input video.
20 . The apparatus of claim 16 , wherein the processor is further configured to cause:
performing an intra prediction process based on an intra prediction mode to generate prediction samples for the current block; and
generating the residual samples for the current block based on the prediction samples and original samples for the current block,
wherein the LFNST matrix is derived further based on the intra prediction mode.