| CPC H04N 19/593 (2014.11) [H04N 19/105 (2014.11); H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/18 (2014.11); H04N 19/59 (2014.11); H04N 19/70 (2014.11)] | 3 Claims | 

| 
               1. A decoding apparatus for an image decoding, the decoding apparatus comprising: 
            a memory; and 
                at least one processor connected to the memory, the at least one processor configured to: 
                obtain image information including residual information and prediction-related information through a bitstream; 
                generate residual samples for a current block based on the residual information; 
                generate prediction samples for the current block based on the prediction-related information; and 
                generate reconstructed samples for the current block based on the prediction samples and the residual samples, 
                wherein the image information includes flag information related to whether an intra prediction mode type for the current block is a matrix-based intra prediction (MIP), wherein for the current block of which size is equal to 64×8, the flag information related to whether the intra prediction mode type for the current block is the MIP is included in the image information, 
                wherein whether the intra prediction mode type for the current block is the MIP is determined based on the flag information, 
                wherein a value of the flag information being equal to 1 is related to representing that the intra prediction mode type for the current block is the MIP, and a value of the flag information being equal to 0 is related to representing that the intra prediction mode type for the current block is not the MIP, 
                wherein based on the value of the flag information being equal to 1, the image information includes MIP mode information, wherein the MIP mode information is related to an MIP mode applied to the current block and the MIP mode is used to derive an MIP matrix for the current block, 
                wherein the MIP matrix is derived based on (i) a width and a height of the current block for the MIP and (ii) the MIP mode information, and 
                wherein the prediction samples for the current block are generated based on the MIP matrix. 
               |