Image decoding method, image coding method, image decoding apparatus, image coding apparatus, program, and integrated circuit
An image decoding method includes: restoring a selected prediction mode used in prediction at a time of coding; and decoding a current block included in coded image data to generate a decoded block, according to the prediction based on the selected prediction mode. The restoring includes: determining a first estimated prediction mode; determining a second estimated prediction mode different from the first estimated prediction mode; and restoring the selected prediction mode based on the mode information, the first estimated prediction mode, and the second estimated prediction mode.
1. An decoding method for decoding an image on a block-by-block basis, the decoding method comprising:
decoding mode information that specifies one selected prediction mode, the one selected prediction mode being selected from among a plurality of prediction modes including a plurality of direction prediction modes and two predetermined prediction modes different from the plurality of direction prediction modes, the two predetermined prediction modes including a DC prediction mode; and
decoding a current block to be decoded included in the image by predicting the current block using the selected one prediction mode,
wherein the decoding mode information further includes:
determining whether or not either one of the two predetermined prediction mode is selected as the one selected prediction mode; and
when it is determined that both of the two predetermined prediction mode are not selected as the selected one prediction mode, determining one of the plurality of directional prediction modes as the one selected prediction mode, the plurality of directional prediction modes being different from the two predetermined prediction modes.
2. An decoding apparatus for decoding an image on a block-by-block basis, the decoding apparatus comprising:
a mode information decoding circuit configured to decode mode information that specifies one selected prediction mode, the one selected prediction mode being selected from among a plurality of prediction modes including a plurality of direction prediction modes and two predetermined prediction modes different from the plurality of direction prediction modes, the two predetermined prediction modes including a DC prediction mode; and
a decoding circuit configured to decode a current block to be decoded included in the image by predicting the current block using the selected one prediction mode,
wherein the mode information decoding circuit is further configured to:
determine whether or not either one of the two predetermined prediction mode is selected as the one selected prediction mode; and
when the mode information decoding circuit determines that both of the two predetermined prediction mode are not selected as the selected one prediction mode, determine one of the plurality of directional prediction modes as the one selected prediction mode, the plurality of directional prediction modes being different from the two predetermined prediction modes.
3. An decoding apparatus for decoding an image on a block-by-block basis, the decoding apparatus comprising:
a processor; and
a non-transitory memory having stored thereon executable instructions, which when executed, cause the processor to perform:
decoding mode information that specifies one selected prediction mode, the one selected prediction mode being selected from among a plurality of prediction modes including a plurality of direction prediction modes and two predetermined prediction modes different from the plurality of direction prediction modes, the two predetermined prediction modes including a DC prediction mode; and
decoding a current block to be decoded included in the image by predicting the current block using the selected one prediction mode,
wherein the decoding mode information further includes:
determining whether or not either one of the two predetermined prediction mode is selected as the one selected prediction mode; and
when it is determined that both of the two predetermined prediction mode are not selected as the selected one prediction mode, determining one of the plurality of directional prediction modes as the one selected prediction mode, the plurality of directional prediction modes being different from the two predetermined prediction modes.