CPC H04N 19/105 (2014.11) [H04N 19/119 (2014.11); H04N 19/132 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/61 (2014.11)] | 12 Claims |
1. A video decoding method comprising:
determining a reference sample line of a current block;
deriving an intra prediction mode of the current block based on whether a candidate intra prediction mode is a same intra prediction mode as the intra prediction mode of the current block; and
performing intra prediction on the current block based on the reference sample line and the derived intra prediction mode,
determining whether or not to partition the current block into a plurality of subblocks, wherein
when the current block is partitioned into a plurality of subblocks, a horizontal direction transform type and a vertical direction transform type of a subblock are determined based on a shape of the subblock, wherein the horizontal direction transform type of the subblock is determined based on a width of the subblock, and the vertical direction transform type of the subblock is determined based on a height of the subblock; and wherein the horizontal direction transform type is a type of a horizontal direction transform kernel, and the vertical direction transform type is a type of a vertical direction transform kernel;
wherein when a difference between an intra prediction mode of a top neighboring block and an intra prediction mode of a left neighboring block is 64, at least one among the candidate intra prediction modes is derived by adding or subtracting 2 to or from a maximum value.
|