CPC H04N 19/159 (2014.11) [H04N 19/132 (2014.11); H04N 19/176 (2014.11); H04N 19/593 (2014.11); H04N 19/70 (2014.11)] | 3 Claims |
1. An image decoding method performed by a decoding apparatus, the method comprising:
receiving a bitstream;
receiving residual information, from the bitstream;
receiving second flag information related to whether an intra prediction type for a current block is matrix-based intra prediction (MIP) based on first flag information related to whether the MIP is enabled, wherein the first flag information is equal to 1 indicating that the MIP is enabled;
receiving MIP mode information based on the second flag information, wherein the second flag information is equal to 1 indicating that the intra prediction type for the current block is the MIP;
generating intra prediction samples for the current block based on the MIP mode information;
deriving transform coefficients based on the residual information;
generating residual samples based on the transform coefficients; and
generating reconstructed samples for the current block based on the intra prediction samples and the residual samples,
wherein the MIP mode information is MIP mode index information indicating an MIP mode applied to the current block, wherein the MIP mode index information is used to derive an MIP matrix for the current block,
wherein the intra prediction samples are generated using the MIP matrix derived from the MIP mode index information,
wherein a syntax element bin string for the MIP mode information is binarized by a TB (truncated binarization) method, and
wherein a maximum length of the syntax element bin string is determined by a size of the current block.
|