Intra prediction mode encoding/decoding method and apparatus for same
Disclosed herein is an intra prediction method including: deriving neighbor prediction mode information from a left neighbor prediction mode and an upper neighbor prediction mode; deriving an intra prediction mode for a decoding target unit by using the derived neighbor prediction mode information; and performing intra prediction on the decoding target unit based on the intra prediction mode. According to exemplary embodiments of the present invention, image encoding/decoding efficiency can be improved.
1. A video encoding apparatus comprising:
a prediction module to
perform intra prediction on the target encoding unit based on an intra prediction mode of a target encoding unit;
derive neighbor prediction mode information from a left neighbor prediction mode and an upper neighbor prediction mode;
determine most probable mode (MPM) candidates for the target encoding unit using the neighbor prediction mode information;
generate an MPM list using the determined MPM candidates; and
derive an MPM index using the intra prediction mode of the target encoding unit and the generated MPM list;
a subtractor to generate a residual block by subtracting a prediction block generated by the intra prediction from the target encoding unit;
a transformation module to perform transformation on coefficients related to the residual block to derive transform coefficients;
a quantization module to perform quantization on the transform coefficients to derive quantized transform coefficients; and
an encoding module to perform encoding on the quantized transform coefficients, along with an MPM flag and the MPM index for the target encoding unit;
wherein the left neighbor prediction mode is an intra prediction mode of a left neighbor unit adjacent to a left side of the target encoding unit and the upper neighbor prediction mode is an intra prediction mode of an upper neighbor unit adjacent to an upper side of the target encoding unit, and the MPM index is an index indicating the same candidate as the intra prediction mode of the target encoding unit, among the MPM candidates included in the MPM list,
wherein the neighbor prediction mode information includes a mode number of the left neighbor prediction mode and a mode number of the upper neighbor prediction mode,
wherein the prediction module determines the left neighbor prediction mode and the upper neighbor prediction mode as the MPM candidates,
wherein the prediction module determines a predetermined intra prediction mode as an additional MPM candidate when the left neighbor prediction mode is the same as the upper neighbor prediction mode; and
wherein, in case the same candidate as the intra prediction mode of the target encoding unit is not present in the MPM list, remaining mode information derived from the intra prediction mode of the target encoding unit is encoded.
2. The video encoding apparatus of claim 1 , wherein the predetermined intra prediction mode is a DC mode or planar mode.
3. The video encoding apparatus of claim 2 , wherein the predetermined intra prediction mode is a DC mode when the left neighbor prediction mode and the upper neighbor prediction mode are a planar mode, and the predetermined intra prediction mode is a planar mode when the left neighbor prediction mode and the upper neighbor prediction mode are a DC mode.
4. A non-transitory computer-readable medium storing a bitstream that is received and used by a video decoding apparatus to reconstruct a video, the bitstream comprises information on quantization transform coefficients related to a target decoding unit, a most probable mode (MPM) flag and an MPM index for a target decoding unit,
wherein the quantization transform coefficients are used to derive transform coefficients,
the transform coefficients are inverse-transformed to generate a residual block,
the MPM flag and the MPM index are used to derive an intra prediction mode of the target decoding unit,
wherein an MPM list is generated using MPM candidates for the target decoding unit,
the MPM candidates are determined using neighbor prediction mode information which is derived from a left neighbor prediction mode and an upper neighbor prediction mode,
the derived intra prediction mode is used to perform intra prediction on the target decoding unit to generate a prediction block,
the prediction block is added to the residual block to generate a reconstructed block,
wherein the left neighbor prediction mode is an intra prediction mode of a left neighbor unit adjacent to a left side of the target decoding unit and the upper neighbor prediction mode is an intra prediction mode of an upper neighbor unit adjacent to an upper side of the target decoding unit, and the MPM index is an index indicating the same candidate as the intra prediction mode of the target decoding unit, among the MPM candidates included in the MPM list,
wherein the neighbor prediction mode information includes a mode number of the left neighbor prediction mode and a mode number of the upper neighbor prediction mode,
wherein the prediction module determines the left neighbor prediction mode and the upper neighbor prediction mode as the MPM candidates,
wherein the prediction module determines a predetermined intra prediction mode as an additional MPM candidate when the left neighbor prediction mode is the same as the upper neighbor prediction mode; and
wherein, in case the same candidate as the intra prediction mode of the target decoding unit is not present in the MPM list, the bitstream further comprises remaining mode information which is used to derive the intra prediction mode of the target decoding unit.