CPC H04N 19/105 (2014.11) [H04N 19/132 (2014.11); H04N 19/176 (2014.11)] | 18 Claims |
1. A prediction method for decoding, comprising:
acquiring reference samples adjacent to at least one side of a coding block;
determining a reference point from the at least one side and determining reference sample positions corresponding to the at least one side according to a preset number of samples;
deriving reference samples corresponding to the reference sample positions from the reference samples; and
performing prediction on the coding block based on the derived reference samples, wherein the performing prediction comprises:
determining model parameters of a prediction model based on the derived reference samples, wherein the prediction model is configured to represent a prediction relationship between a first colour component and a second colour component corresponding to a sample in the coding block, comprising: determining, from the derived reference samples, a maximum Lmax and minimum Lmin of first colour component neighbouring reference values and second colour component neighbouring reference values Cmax and Cmin corresponding to reference samples at positions corresponding to Lmax and Lmin; and calculating model parameters according to Lmax, Lmin, Cmax and Cmin by using the formula (3):
where α and β represent model parameters; and
performing prediction on the coding block based on the prediction model.
|