CPC H04N 19/159 (2014.11) [H04N 19/105 (2014.11); H04N 19/139 (2014.11); H04N 19/176 (2014.11)] | 7 Claims |
1. A method of decoding an image, comprising:
obtaining intra prediction information of a current block from a bitstream;
deriving an intra prediction mode of the current block based on the intra prediction information; and
performing intra prediction of the current block based on the intra prediction mode,
wherein deriving the intra prediction mode of the current block comprises:
deriving, based on the intra prediction information, an initial intra prediction mode of the current block from a plurality of intra prediction modes available for the current block;
determining whether to modify the initial intra prediction mode of the current block; and
deriving the intra prediction mode of the current block by applying one of pre-defined offsets to the initial intra prediction mode when it is determined to modify the initial intra prediction mode of the current block,
wherein in response to a case where the current block is a non-square block of which a width is greater than a height and the initial intra prediction mode belongs to a first range, the intra prediction mode is derived by applying a first offset of the pre-defined offsets to the initial intra prediction mode, and
wherein in response to a cases where the current block is a non-square block of which the width is smaller than the height and the initial prediction mode belongs to a second range, the intra prediction mode is derived by applying a second offset of the pre-defined offsets to the initial intra prediction mode.
|