| CPC H04N 19/593 (2014.11) [H04N 19/11 (2014.11); H04N 19/132 (2014.11); H04N 19/136 (2014.11); H04N 19/176 (2014.11); H04N 19/82 (2014.11)] | 4 Claims |

|
1. A video decoding method comprising:
obtaining a prediction sample of a current sample in a current block according to an intra prediction mode of the current block;
when the intra prediction mode of the current block is a lower left directional intra prediction mode and a position dependent intra prediction filtering is applied to the current block, determining a first integer sample position by using a first angle value corresponding to the lower left directional intra prediction mode and a first shift-value corresponding to a first predetermined value used to obtain the first angle value,
determining a first reference sample at the first integer sample position from among a plurality of reference samples of an upper side of the current block as a first upper reference sample of the current sample,
determining a first upper weight according to a vertical distance between the current sample and the first upper reference sample, and
obtaining a first modified prediction sample by applying the position dependent intra prediction filtering to the current sample according to the first upper reference sample and the first upper weight;
when the intra prediction mode of the current block is an upper right directional intra prediction mode and the position dependent intra prediction filtering is applied to the current block, determining a second integer sample position by using a second angle value corresponding to the upper right directional intra prediction mode and a second shift-value corresponding to a second predetermined value used to obtain the second angle value,
determining a second reference sample at the second integer sample position from among a plurality of reference samples of a left side of the current block as a first left reference sample of the current sample,
determining a first left weight according to a horizontal distance between the current sample and the first left reference sample, and
obtaining a second modified prediction sample by applying the position dependent intra prediction filtering to the current sample according to the first left reference sample and the first left weight; and
when the intra prediction mode of the current block is a DC mode or a planar mode and the position dependent intra prediction filtering is applied to the current block, determining a second left reference sample of the current sample from among the plurality of reference samples of the left side of the current block and a second upper reference sample of the current sample from among the plurality of reference samples of the upper side of the current block,
determining a second left weight according to a horizontal distance between the current sample and the second left reference sample and a second upper weight according to a vertical distance between the current sample and the second upper reference sample, and
obtaining a third modified prediction sample by applying the position dependent intra prediction filtering to the current sample according to the second left reference sample, the second upper reference sample, the second left weight and the second upper weight.
|