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

Claim 13:
14. An image encoding method performed by an encoding apparatus, the method comprising:
determining that an intra prediction is applied for a current block;
performing the intra prediction for the current block to generate prediction samples;
generating residual samples for the current block based on prediction samples for the current block; and
encoding image information including prediction information including an MPM index related to the intra prediction to output a bitstream,
wherein the performing the intra prediction for the current block comprising:
deriving availability of a first neighboring block and a second neighboring block of the current block;
deriving a first candidate intra prediction mode based on a first neighboring block of the current block;
deriving a second candidate intra prediction mode based on a second neighboring block of the current block;
constructing an intra prediction mode candidate list of the current block based on the first candidate intra prediction mode and the second candidate intra prediction mode;
determining an intra prediction mode for the current block based on the intra prediction mode candidate list; and
generating the prediction samples for the current block based on the intra prediction mode,
wherein the first neighboring block is a left neighboring block located at the lowermost side among neighboring blocks adjacent to a left boundary of the current block,
wherein the second neighboring block is an upper neighboring block located at the rightmost side among neighboring blocks adjacent to an upper boundary of the current block,
wherein, based on a determination that a size of the current block is W×H, and x and y components of a top-left sample position of the current block are xN and yN respectively, the first neighboring block is a block including a sample at the coordinates of (xN−1, yN+H−1), and the second neighboring block is a block including a sample at the coordinates of (xN+W−1, yN−1), and
wherein the constructing an intra prediction mode candidate list comprising:
determining whether the first candidate intra prediction mode is equal to the second candidate intra prediction mode, and
determining whether a mode value of the first candidate intra prediction mode or a mode value of the second candidate intra prediction mode is greater than a mode value of a DC intra prediction mode.