| CPC H04N 19/105 (2014.11) [H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/593 (2014.11); H04N 19/119 (2014.11)] | 3 Claims |

|
1. A video decoding method comprising:
determining whether multiple reference lines can be used for intra prediction of a current image and whether a current block is in contact with an upper boundary of a largest coding unit including the current block;
when it is determined that the current block is in contact with the upper boundary of the largest coding unit, determining one reference line in contact with an upper boundary of the current block as an upper reference line of the current block without obtaining, from a bitstream, reference line information indicating a location of a reference line for intra prediction of the current block;
when it is determined that the multiple reference lines can be used for intra prediction of the current image and the current block is not in contact with the upper boundary of the largest coding unit, obtaining the reference line information from the bitstream, and determining one reference line indicated by the reference line information from among a plurality of reference lines as the upper reference line of the current block; and
based on the determined upper reference line, performing intra prediction on the current block,
wherein the upper reference line is a row of reference samples located above the upper boundary of the current block,
wherein when a value of the reference line information is a first value, a reference line in contact with the upper boundary of the current block from among the plurality of reference lines is determined as the upper reference line of the current block, and
wherein when a value of the reference line information is a second value, a reference line being one line away from the upper boundary of the current block from among the plurality of reference lines is determined as the upper reference line of the current block.
|