| CPC H04N 19/50 (2014.11) [H04N 19/176 (2014.11)] | 12 Claims |

|
1. A picture decoding method, applicable to a decoder, the method comprising:
decoding a bitstream to obtain a size, a coding mode, and residuals of a current block;
when the coding mode of the current block is a Matrix-based Intra Prediction (MIP) mode,
determining a value of a MIP block size index number corresponding to the current block according to the size of the current block;
determining a first offset for calculating a second offset;
calculating the second offset based on the MIP block size index number, the first offset and reconstructed values of adjacent pixels corresponding to the current block;
determining a first prediction value of the current block according to the second offset; and
determining a reconstructed value of the current block based on the first prediction value.
|