| CPC H04N 19/105 (2014.11) [H04N 19/132 (2014.11); H04N 19/176 (2014.11)] | 19 Claims |

|
1. A prediction method for encoding, 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; and
performing prediction on the coding block based on the prediction model;
wherein determining the reference point from the at least one side and determining the reference sample positions corresponding to the at least one side according to the preset number of samples comprises:
calculating a first sampling interval based on the preset number of samples and a length of the at least one side; and
determining the reference point from the at least one side, and determining the reference sample positions corresponding to the at least one side according to the first sampling interval.
|