Patent ID: 11924412
Assignee: KOREA ADVANCED INSTITUTE OF SCIENCE AND TECHNOLOGY
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC H

Claim 0:
1. An image decoding method performed by an image decoding apparatus, the method comprising:
configuring a reference sample for intra prediction of a current block by selecting a reference sample line among a plurality of reference sample lines adjacent to the current block;
generating an intra-predicted block of the current block by performing intra prediction for the current block based on an intra prediction mode of the current block and the reference sample;
determining whether to perform filtering the intra-predicted block based on the reference sample line; and
filtering the intra-predicted block based on whether to perform filtering,
wherein the reference sample line is selected based on whether a top boundary of the current block corresponds to a boundary of a coding tree block,
wherein, in response to the top boundary of the current block not corresponding to the boundary of the coding tree block, the reference sample line is selected based on index information indicating the reference sample line among the plurality of reference sample lines, index information being signaled from a bitstream,
wherein, in response to the top boundary of the current block corresponding to the boundary of the coding tree block, the reference sample line is selected without signaling the index information, a first reference sample line immediately adjacent to the current block among the plurality of reference sample lines being selected as the reference sample line,
wherein, in response to the first reference sample line immediately adjacent to the current block among the plurality of reference sample lines being selected as the reference sample line, the intra-predicted block is filtered, and
wherein, in response to the first reference sample line not being selected as the reference sample line, the intra-predicted block is not filtered.