CPC H04N 19/593 (2014.11) [H04N 19/11 (2014.11); H04N 19/136 (2014.11); H04N 19/176 (2014.11)] | 20 Claims |
1. A method for intra prediction, applied to a decoder, the method comprising:
determining multiple neighbouring blocks of a current block;
determining first intra prediction modes of the multiple neighbouring blocks;
constructing an intra prediction mode list corresponding to the current block based on the first intra prediction modes of the multiple neighbouring blocks, in case that the first intra prediction modes are angular intra prediction modes;
determining a first intra prediction mode index of the current block based on the intra prediction mode list;
obtaining a width to height ratio of the current block, and mapping, according to the width to height ratio of the current block, the first intra prediction mode index of the current block to a second intra prediction mode index in a wide-angle intra prediction mode;
performing prediction for the current block based on a target intra prediction mode corresponding to the second intra prediction mode index of the current block, and obtaining a prediction block;
wherein in case that the width of the current block is greater than the height of the current block and width to height ratio is greater than or equal to 2, determining the second intra prediction mode index based on the following table:
| |||||||||||||||||||||||||||||||||||||||||||||
in case that the height of the current block is greater than the width of the current block and height to width ratio is greater than or equal to 2, determining the second intra prediction mode index based on the following table:
| |||||||||||||||||||||||||||||||||||||||||||||
wherein, in both tables, the first intra prediction mode indices are sequentially mapped to the second intra prediction mode indices one to one.
|