| CPC H04N 19/139 (2014.11) [H04N 19/105 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11)] | 17 Claims |

|
1. A video decoding method for decoding a current block by using intra-prediction, the method comprising:
decoding related information including an intra-prediction mode of the current block from a bitstream;
depending on the presence or absence of a reference sample at a position to be referenced in a first prediction direction indicated by the intra-prediction mode, determining a direction for the intra-prediction in consideration of a second prediction direction different than the first prediction direction;
performing the intra-prediction according to the direction for the intra-prediction to generate a prediction block of the current block;
reconstructing a residual block of the current block from the bitstream; and
adding the prediction block and the residual block to reconstruct the current block,
wherein, in relation to either a first reference sample group on the top of the current block or a second reference sample group on the left of the current block, depending on whether part of one of the reference sample groups is unavailable for reference for intra-prediction in the first prediction direction, the current block is divided into a plurality of regions and the direction for intra-prediction for each region is selected between the first prediction direction and the second prediction direction.
|