A syntax element is coded in the data stream STR to indicate to the decoder which local predictor was used to predict the current block.
In a step E221, a quantization step δ2 is determined. For example, the quantization step δ2 depends on the same quantization parameter as the quantization step δ1 that would be determined in step E210 if the current block was coded according to the first coding mode.
In a step E222, a prediction residue R1 is calculated for the current block. For this purpose, once the local predictor is chosen, for each current pixel of the current block: