CPC H04N 19/105 (2014.11) [H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/18 (2014.11)] | 3 Claims |
1. A transform method, for an encoder and comprising:
determining a prediction mode parameter of a current block;
determining a cross-component linear model (CCLM) parameter when the prediction mode parameter indicates that CCLM prediction is used for the current block to determine an intra prediction value;
signalling the prediction mode parameter of the current block and the CCLM parameter into a bitstream of a video;
determining the intra prediction value of the current block according to the CCLM parameter, and calculating a residual value between the current block and the intra prediction value;
determining a low-frequency non-separable transform (LFNST) transform kernel used for the current block according to the CCLM parameter, setting an LFNST index, and signalling the LFNST index into the bitstream of the video, when LFNST is used for the current block; and
transforming the residual value with the LFNST transform kernel;
wherein the CCLM parameter comprises a CCLM mode index, wherein the CCLM mode index indicates a CCLM mode used for the current block, and the CCLM mode indicates the use of CCLM to determine a calculation derivation manner of the intra prediction value of the current block;
wherein “determining the LFNST transform kernel used for the current block according to the CCLM parameter, setting the LFNST index, and signalling the LFNST index into the bitstream of the video, when LFNST is used for the current block” comprises:
selecting one LFNST transform kernel candidate set from a plurality of LFNST transform kernel candidate sets according to a value of the CCLM mode index;
selecting from the selected LFNST transform kernel candidate set a transform kernel indicated by the LFNST index as the LFNST transform kernel used for the current block; and
setting a value of the LFNST index, wherein the value of the LFNST index indicates that LFNST is used for the current block and indicates an index of the LFNST transform kernel in the LFNST transform kernel candidate set, wherein
the LFNST transform kernel candidate set contains two or more preset LFNST transform kernels; and
wherein selecting one LFNST transform kernel candidate set from the plurality of LFNST transform kernel candidate sets according to the value of the CCLM mode index comprises:
determining a value of an LFNST transform kernel candidate set index corresponding to the value of the CCLM mode index through a second look-up table, and selecting an LFNST transform kernel candidate set indicated by the value of the LFNST transform kernel candidate set index as the selected LFNST transform kernel candidate set, wherein
the second look-up table at least contains different CCLM mode indexes corresponding to LFNST transform kernel candidate set indexes with different values, wherein the different CCLM mode indexes at least indicate INTRA_LT_CCLM, INTRA_L_CCLM, and INTRA_T_CCLM and each CCLM mode index corresponds to a different LFNST transform kernel candidate set index.
|