CPC H04N 19/132 (2014.11) [H04N 19/105 (2014.11); H04N 19/117 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/189 (2014.11); H04N 19/635 (2014.11)] | 3 Claims |
1. An image decoding method, comprising:
obtaining an intra prediction sample of a current sample in a current block using a first reference sample corresponding to the current sample, wherein the first reference sample is determined based on a position of the current sample and an intra prediction mode of the current block;
when the intra prediction mode of the current block is a first angular mode with one among upper prediction directions including a upper-right prediction direction, determining a second reference sample from among a plurality of reference samples in a left side of the current block based on the position of the current sample and the first angular mode, determining a second weight for the second reference sample based on a X-coordinate of the position of the current sample, and obtaining a modified intra prediction sample of the current sample based on the second reference sample, the intra prediction sample of the current sample, the second weight for the second reference sample and a first weight for the intra prediction sample of the current sample;
when the intra prediction mode of the current block is a second angular mode with one among left prediction directions including a lower-left prediction direction, determining a third reference sample from among a plurality of reference samples in an upper side of the current block based on the position of the current sample and the second angular mode, determining a third weight for the third reference sample based on a Y-coordinate of the position of the current sample, and obtaining a modified intra prediction sample of the current sample based on the third reference sample, the intra prediction sample of the current sample, the third weight for the third reference sample and the first weight for the intra prediction sample of the current sample; and
reconstructing the current block using the modified intra prediction sample of the current sample and a residual sample of the current sample,
wherein the first weight is determined based on at least one of the second weight and the third weight.
|