摘要 |
Provided is a prediction method for encoding and decoding an image block, comprising: usability information of reference blocks of a current image block is acquired, and the usability of the reference blocks is determined according to the usability information, reference blocks of the current image block comprising a left block, an upper block, and an upper left block of the current image block; if at least one reference block is usable and at least one reference block is unusable, the unusable reference block is padded with the pixel values of the usable reference block, and is used as the reference pixel values for the current image block; prediction is performed on the current image block according to the reference pixel values. |