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

Claim 1:
2. A video decoding apparatus comprising:
a memory configured to store one or more instructions; and
a processor configured to:
obtain 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, determine a first integer sample position 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,
determine 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 an upper reference sample of the current sample,
determine an upper weight according to a vertical distance between the current sample and the upper reference sample, and
obtain a first modified prediction sample by applying the position dependent intra 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 and the position dependent intra prediction filtering is applied to the current block, determine a second integer sample position 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,
determine 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 left reference sample of the current sample,
determine a left weight according to a horizontal distance between the current sample and the left reference sample, and
obtain a second modified prediction sample by applying the position dependent intra prediction filtering to the current sample according to the left reference sample and the left weight.