Patent ID: 11962800
Assignee: SAMSUNG ELECTRONICS CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 2:
3. A video encoding method comprising:
obtaining a prediction sample of a current sample in a current block according to each of a plurality of intra prediction modes;
applying a position dependent intra prediction filtering to the current block, for an intra prediction mode to which the position dependent intra prediction filtering is applied; and
determining an intra prediction mode of the current block according to the prediction sample according to each intra prediction mode to which the position dependent intra prediction filtering is applied,
wherein, when the intra prediction mode of the current block is a lower left directional intra prediction mode, a first integer sample position is determined by using a first angle value corresponding to a direction opposite to a prediction direction of 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, a first reference sample at the first integer sample position is determined from among a plurality of reference samples of an upper side of the current block as an upper reference sample of the current sample, an upper weight is determined according to a vertical distance between the current sample and the upper reference sample, and a first modified prediction sample is obtained by applying the position dependent prediction filtering to the current sample according to the upper reference sample and the upper weight, and
when the intra prediction mode of the current block is an upper right directional intra prediction mode, second integer sample position is determined by using a second angle value corresponding to a direction opposite to a prediction direction of 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, a second reference sample at the second integer sample position is determined from among a plurality of reference samples of a left side of the current block as a left reference sample of the current sample, a left weight is determined according to a horizontal distance between the current sample and the left reference sample, and a second modified prediction sample is obtained by applying the position dependent intra prediction filtering to the current sample according to the left reference sample and the left weight.