Decoding method, encoding method, and non-transitory computer-readable storage medium
View Patent ↗Embodiments of the present disclosure provide a decoding method, an encoding method, and a non-transitory computer-readable storage medium. The decoding method includes the following. An intra prediction mode parameter is obtained, where the intra prediction mode parameter indicates that an intra prediction value is determined using a derivation mode. At least one first intra prediction mode is determined according to the derivation mode. A matrix weighted intra prediction (MIP) mode for a first current block is determined. An intra prediction value of the first current block is determined according to the at least one first intra prediction mode and the MIP mode.
1 . A decoding method, comprising:
obtaining an intra prediction mode parameter for indicating that an intra prediction value is determined using a derivation mode;
determining at least one first intra prediction mode according to the derivation mode;
determining a matrix weighted intra prediction (MIP) mode for a first current block; and
determining an intra prediction value of the first current block according to the at least one first intra prediction mode and the MIP mode.
2 . The method of claim 1 , wherein determining the intra prediction value of the first current block according to the at least one first intra prediction mode and the MIP mode comprises:
determining at least one first intra prediction value of the first current block in the at least one first intra prediction mode;
determining a second intra prediction value of the first current block in the MIP mode; and
performing a weighted summation on the at least one first intra prediction value and the second intra prediction value to obtain the intra prediction value of the first current block.
3 . The method of claim 1 , wherein determining the MIP mode for the first current block comprises:
determining the MIP mode for the first current block according to a first prediction mode index for a reconstructed block; or
determining the MIP mode for the first current block according to a default MIP mode.
4 . The method of claim 1 , wherein determining the MIP mode for the first current block comprises:
obtaining a second prediction mode index from a MIP prediction mode list, wherein the MIP prediction mode list comprises a prediction mode index of at least one MIP mode associated with a current frame; and
determining the MIP mode for the first current block according to the second prediction mode index.
5 . The method of claim 2 , wherein determining the second intra prediction value of the first current block in the MIP mode comprises:
obtaining a third transpose flag from a MIP prediction mode list, wherein the MIP prediction mode list comprises at least one transpose flag corresponding to at least one MIP mode associated with the current frame;
determining the third transpose flag as a transpose flag corresponding to the first current block; and
determining the second intra prediction value according to the transpose flag.
6 . The method of claim 1 , further comprising:
obtaining a first index for indicating that an intra prediction value is determined based on a combination of the derivation mode and the MIP mode.
7 . The method of claim 1 , further comprising:
determining at least one second intra prediction mode according to the derivation mode; and
determining an intra prediction value of a second current block according to the at least one second intra prediction mode.
8 . The method of claim 7 , further comprising:
obtaining a second index for indicating that an intra prediction value is determined based on the derivation mode.
9 . The method of claim 1 , further comprising:
obtaining a derivation mode enable flag for indicating the derivation mode is enabled, wherein the derivation mode enable flag is a sequence level flag.
10 . The method of claim 1 , wherein the derivation mode comprises a decoder side intra mode derivation (DIMD) mode or a template based intra mode derivation (TIMD) mode.
11 . An encoding method, comprising:
determining at least one first intra prediction mode according to a derivation mode;
determining a matrix weighted intra prediction (MIP) mode for a first current block;
determining an intra prediction value of the first current block according to the at least one first intra prediction mode and the MIP mode; and
signalling an intra prediction mode parameter into a bitstream, wherein the intra prediction mode parameter indicates that the intra prediction value is determined using the derivation mode.
12 . The method of claim 11 , wherein determining the intra prediction value of the first current block according to the at least one first intra prediction mode and the MIP mode comprises:
determining at least one first intra prediction value of the first current block in the at least one first intra prediction mode; and
determining a second intra prediction value of the first current block in the MIP mode; and
performing a weighted summation on the at least one first intra prediction value and the second intra prediction value to obtain the intra prediction value of the first current block.
13 . The method of claim 11 , determining the MIP mode for the first current block comprises:
determining the MIP mode for the first current block according to a first prediction mode index for a reconstructed block; or
determining the MIP mode for the first current block according to a default MIP mode.
14 . The method of claim 11 , wherein determining the MIP mode for the first current block comprises:
obtaining a second prediction mode index from a MIP prediction mode list, wherein the MIP prediction mode list comprises a prediction mode index of at least one MIP mode associated with a current frame; and
determining the MIP mode for the first current block according to the second prediction mode index.
15 . The method of claim 12 , wherein determining the second intra prediction value of the first current block in the MIP mode comprises:
obtaining a third transpose flag from a MIP prediction mode list, wherein the MIP prediction mode list comprises at least one transpose flag corresponding to at least one MIP mode associated with the current frame;
determining the third transpose flag as a transpose flag corresponding to the first current block; and
determining the second intra prediction value according to the transpose flag.
16 . The method of claim 11 , further comprising:
signalling a first index into the bitstream, wherein the first index indicates that an intra prediction value is determined based on a combination of the derivation mode and the MIP mode.
17 . The method of claim 11 , further comprising:
determining at least one second intra prediction mode according to the derivation mode; and
determining an intra prediction value of a second current block according to the at least one second intra prediction mode.
18 . The method of claim 17 , further comprising:
signalling a second index into the bitstream, wherein the second index indicates that an intra prediction value is determined based on the derivation mode.
19 . The method of claim 11 , wherein the derivation mode comprises a decoder side intra mode derivation (DIMD) mode or a template based intra mode derivation (TIMD) mode.
20 . A non-transitory computer-readable storage medium storing a bitstream, the bitstream being generated according to the method of claim 11 .