Patent attributes
An apparatus for video coding includes processing circuitry that encodes prediction information of a current block in a video bitstream. The prediction information indicates a first set of intra prediction direction mode numbers for the current block. The processing circuitry determines whether a first intra prediction direction mode number of a neighboring block of the current block is in the first set of intra prediction direction mode numbers. In response to the first intra prediction direction mode number not being in the first set of intra prediction direction mode numbers, the processing circuitry determines a most probable mode for the current block based on a second intra prediction direction mode number in the first set of intra prediction direction mode numbers that is nearest to the first intra prediction direction mode number. The processing circuitry encodes the current block based on the most probable mode of the current block.