The MPM may be determined based on at least one of (A) whether an intra prediction mode between the above-described neighboring blocks is the same, (B) whether an intra prediction mode of a neighboring block is a directional mode, (C) whether an intra prediction mode of a first neighboring block is greater than an intra prediction mode of a second neighboring block, (D) whether a difference between intra prediction modes between neighboring blocks is the same as a predetermined threshold value or (E) a position of a reference line for intra prediction of a current block. The threshold value may be an arbitrary natural number belonging to a range from 1 to (NumIntraAngMode?1). NumIntraAngMode means the total number of directional modes which are predefined in an encoding/decoding device, which may be 65.
The MPM may be configured with at least one of an intra prediction mode of one or more neighboring blocks, a mode derived by adding or subtracting a value of n to or from an intra prediction mode of a neighboring block, or a default mode. Herein, a value of n may be an integer such as 1, 2, 3, or more. A value of n may be variably determined based on at least one of the above-described (A) to (D). The default mode may include at least one of a Planar mode or a DC mode.
Hereinafter, for convenience of description, a method in which 6 MPM are determined by using 2 neighboring blocks, a top block and a left block, will be described. An intra prediction mode of a top block and an intra prediction mode of a left block are referred to as intraPredModeA and intraPredModeL, respectively.
1. When intraPredModeL and intraPredModeA are the Same