The application provides a decoding method, an encoding method and device, and corresponding
encoder and decoder, and relates to the technical field of coding and decoding. The method comprises the following steps: acquiring a code
stream of a to-be-decoded image, wherein the to-be-decoded image comprises a to-be-decoded block; when a
reference block corresponding to the to-be-decoded block cannot be acquired, acquiring first data, wherein the first data is obtained by adjusting second data based on parameters of an adjusting operation, the second data is preset reference data, the parameters of the adjusting operation comprise at least one of a first adjusting parameter and a second adjusting parameter, the first adjusting parameter is used for adjusting data precision of the second data, and the second adjusting parameter is used for adjusting a data range of the second data; then, performing intra prediction on the to-be-decoded block based on the first data to obtain prediction data of the to-be-decoded block; and finally, decoding the code
stream based on the prediction data to obtain reconstructed data of the to-be-decoded block. The method can reduce the occupied bandwidth of the code
stream and improve the coding and decoding performance.