| CPC H04N 19/11 (2014.11) [H04N 19/105 (2014.11); H04N 19/136 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11)] | 11 Claims |

|
1. An image decoding method performed by an image decoding apparatus, the image decoding method comprising:
identifying a prediction mode of a current block;
identifying whether an intra prediction mode of the current block is an MIP (matrix-based intra prediction) mode, based on the prediction mode of the current block being the intra prediction mode;
determining a candidate intra prediction mode for the current block based on a prediction mode of a neighboring block located around the current block, based on the intra prediction mode of the current block not being the MIP mode;
generating a candidate intra prediction mode list of the current block based on the candidate intra prediction mode;
determining the intra prediction mode of the current block based on the candidate intra prediction mode list;
generating prediction samples of the current block based on the intra prediction mode of the current block; and
reconstructing the current block based on the prediction samples,
wherein the candidate intra prediction mode is determined to be a predetermined intra prediction mode, based on the prediction mode of the neighboring block being an MIP mode,
wherein the candidate intra prediction mode is determined to be the predetermined intra prediction mode, based on the neighboring block not being available,
wherein the candidate intra prediction mode list is generated based on a first candidate intra prediction mode and a second candidate intra prediction mode,
wherein the first candidate intra prediction mode is determined based on a prediction mode of a first neighboring block located around the current block and the second candidate intra prediction mode is determined based on a prediction mode of a second neighboring block located around the current block, and
wherein the candidate intra prediction mode list is determined to have a predetermined candidate intra prediction mode, based on both the prediction mode of the first neighboring block and the prediction mode of the second neighboring block being an MIP mode.
|