CPC H04N 19/159 (2014.11) [H04N 19/132 (2014.11); H04N 19/176 (2014.11); H04N 19/70 (2014.11)] | 3 Claims |
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining flag information related to whether matrix-based intra prediction (MIP) is used for a current block, from a bitstream;
obtaining MIP mode information based on a value of the flag information being equal to 1, wherein the value of the flag information equal to 1 is related to representing that the MIP is used for the current block;
deriving an MIP matrix based on the MIP mode information and a size of the current block;
generating intra prediction samples for the current block based on the MIP matrix; and
generating reconstructed samples for the current block based on the intra prediction samples,
wherein the MIP mode information is index information related to the MIP matrix applied to the current block,
wherein a syntax element bin string for the MIP mode information is binarized by a truncated binary (TB) binarization method,
wherein a maximum length of the syntax element bin string is set to different three values based on whether i) a width and a height of the current block are 4, ii) the width and the height of the current block are 8 or less, or iii) the width and the height of the current block are greater than 8, and
wherein the maximum length has a largest value based on the width and the height of the current block being 4.
|