Alternatively, a decoding device may generate one list by combining a candidate mode list and a first group of the non-MPM. The generated list may be configured with intra prediction modes including the MPM and the second candidate group and may be rearranged in an ascending order. A rearranged intra prediction mode may be compared with remaining mode information. As a result of the comparison, when remaining mode information is greater than or equal to a rearranged intra prediction mode, a process which adds 1 to remaining mode information may be performed. The process may be sequentially performed for each of rearranged intra prediction modes. A decoding device may set a mode value obtained through the process as an intra prediction mode of a current block.
An encoding device may encode remaining mode information based on remaining modes (non-MPM) other than MPM among the predefined intra prediction modes. An encoding device may rearrange a second candidate group of the non-MPM list at a predetermined position and encode remaining mode information based on a rearranged non-MPM list. The position may be a pre-promised position in an encoding/decoding device.
In reference to