A decoding device for decoding an encoded data stream representative of at least one image, said image being split into blocks, wherein the decoding device comprises a processor configured, for at least one block of the image, referred to as the current block, to:
- decode an item of information indicating a coding mode of the current block among at least a first coding mode and a second coding mode, the second coding mode being a coding mode according to which the current block is not decoded by using an inverse transform of a transformed prediction residue of the current block, but by, for each pixel of the current block:
- obtaining a prediction of said pixel from another previously decoded pixel, said other previously decoded pixel belonging to said current block or to a previously decoded block of the image,
- decoding a prediction residue associated with said pixel, and
- reconstructing said pixel from the prediction of said pixel obtained and the decoded prediction residue associated with said pixel,
- decode the current block according to the coding mode indicated by the decoded item of information,
- when the coding mode of the current block corresponds to a coding mode distinct from the second coding mode, apply at least one processing method to the reconstructed current block, and
- when the coding mode of the current block corresponds to the second coding mode:
- disable applying said at least one processing method to the reconstructed current block for a pixel of the reconstructed current block if said pixel is located on a boundary of said reconstructed current block with a neighbouring block in the image and if said neighbouring block is coded according to the second coding mode, and
- apply said at least one processing method to a pixel of the reconstructed current block if said pixel is located on a boundary of said reconstructed current block with a reconstructed neighbouring block in the image and if said neighbouring block is coded according to a coding mode distinct from the second coding mode.