Patent ID: 11956418
Assignee: KT CORPORATION
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 5:
6. A method of encoding an image, comprising:
performing intra prediction for a chroma component of a current block in the image by using one or more reference sample lines of the current block;
obtaining a residual block for the chroma component of the current block based on a prediction block resulting from performing the intra prediction; and
generating a bitstream by encoding the residual block,
wherein a number of the one or more reference sample lines available for the intra prediction for the chroma component of the current block is adaptively determined based on a position of the current block in a coding tree unit (CTU),
wherein, in response to a case where the current block is located on the boundary of the CTU, the intra prediction for the chroma component of the current block is performed using one reference sample line, and
wherein, in response to a case where the current block is not located on the boundary of the CTU, the intra prediction for the chroma component of the current block is performed using three reference sample lines.