Intra-frame prediction method and device
View Patent ↗An intra-frame prediction method and device, according to the present invention, enables deriving an intra-frame prediction mode of a current block, determining a pixel line, among a plurality of pixel lines, for the intra-frame prediction of the current block, and carrying out the intra-frame prediction of the current block on the basis of the intra-frame prediction mode and the pixel line. In addition, a first reference pixel of the determined pixel line may be selectively filtered, and a prediction pixel of the current block may be selectively corrected, and thus the accuracy of the intra-frame prediction may be improved.
1. An intra prediction method, comprising:
deriving an intra prediction mode of a current block;
determining a pixel line for intra prediction of the current block among a plurality of pixel lines, wherein the pixel line is a reference pixel line, and wherein the pixel line is determined based on a size and shape of the current block;
performing filtering on a first reference pixel of the determined pixel line;
performing the intra prediction of the current block based on the intra prediction mode and the determined pixel line; and
performing correction on a prediction pixel of the current block according to the intra prediction mode;
wherein the filtering is selectively performed based on a first flag indicating whether the first reference pixel for intra prediction is filtered;
wherein the first flag is derived from a decoding apparatus based on a coding parameter of the current block, and
wherein the coding parameter comprises whether intra prediction in units of sub-blocks is applied.
2. The intra prediction method according to claim 1 , wherein:
the correction is performed in consideration of a position of the pixel line of the current block.
3. The intra prediction method according to claim 2 , wherein the operation of performing correction further comprises:
determining at least one of a second reference pixel or a weighted value for the correction based on a position of the prediction pixel of the current block.
4. The intra prediction method according to claim 3 , wherein
the correction is selectively performed in consideration of at least one of a position of the pixel line of the current block, the intra prediction mode of the current block, or whether intra prediction in units of sub-blocks of the current block is performed.
5. The intra prediction method according to claim 1 , wherein
the intra prediction is performed in units of sub-blocks of the current block, and
the sub-blocks are determined based on at least one of a second flag indicating whether to perform partitioning, partition direction information, or partition number information.
6. The intra prediction method according to claim 1 , further comprising:
deriving the intra prediction mode based on a predetermined default mode or a plurality of Most Probable Mode (MPM) candidates.