Patent ID: 11949885
Assignee: LG ELECTRONICS INC.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC G  H

Claim 5:
6. An image decoding method comprising:
deriving an intra prediction mode for a current block, wherein the intra prediction mode is one of intra prediction modes including a plurality of directional intra prediction modes, and the intra prediction mode for the current block is induced into at least one of a left top diagonal directional intra prediction mode, a vertical intra prediction mode or a horizontal intra prediction mode;
deriving neighboring reference samples of the current block;
filtering the neighboring reference samples; and
generating a prediction sample for the current block based on one of the filtered neighboring reference samples,
wherein, in the filtering step, filtering is performed by using a first neighboring reference sample located in a prediction direction of the intra prediction mode with regard to the prediction sample and neighboring reference samples adjacent to the first neighboring reference sample,
wherein, when the intra prediction mode for the current block is induced into the left top diagonal directional intra prediction mode and the first neighboring reference sample is located on a top side of the current block, a filtered sample value for the first neighboring reference sample is derived based on following equation by using the first neighboring reference sample, a second neighboring reference sample located on a left side of the first neighboring reference sample and a third neighboring reference sample located on a right side of the first neighboring reference sample,

(r(x−1)+2*r(x)+r(x+1)+2)>>2

wherein, the r(x) represents a sample value of the first neighboring reference sample, the r(x−1) represents a value of the second neighboring reference sample and the r(x+1) represents a sample value of the third neighboring reference sample,
wherein, when the intra prediction mode for the current block is induced into the vertical intra prediction mode and the first neighboring reference sample is located on a top side of the current block, a filtered sample value for the first neighboring reference sample is derived based on following equation by using the first neighboring reference sample, a fourth neighboring reference sample located on a left side of the first neighboring reference sample and a fifth neighboring reference sample located on a right side of the first neighboring reference sample,

(r(x−1)+2*r(x)+r(x+1)+2)>>2

wherein, the r(x) represents a sample value of the first neighboring reference sample, the r(x−1) represents a value of the fourth neighboring reference sample and the r(x+1) represents a sample value of the fifth neighboring reference sample,
wherein, when the intra prediction mode for the current block is induced into the horizontal intra prediction mode and the first neighboring reference sample is located on a left side of the current block, a filtered sample value for the first neighboring reference sample is derived based on following equation by using the first neighboring reference sample, a sixth neighboring reference sample located on an upper side of the first neighboring reference sample and a seventh neighboring reference sample located on a lower side of the first neighboring reference sample,

(r(y−1)+2*r(y)+r(y+1)+2)>>2

wherein, the r(y) represents a sample value of the first neighboring reference sample, the r(y−1) represents a value of the sixth neighboring reference sample and the r(y+1) represents a sample value of the seventh neighboring reference sample.