摘要 |
An image coding apparatus which divides an input picture into a plurality of macroblocks and performs a prediction encoding for each macroblock, comprising a unit for calculating flatness based on pixel values contained in a macroblock of interest and determining whether the macroblock of interest is a flat macroblock, a unit for storing determination results for each macroblock, a unit for determining, based on the determination results, whether the macroblock of interest determined to be a flat macroblock belongs to a flat area, a unit for selecting one of the inter-prediction mode and the intra-prediction mode as a prediction mode for an encoding process of the macroblock of interest based on determination results and on cost values of the inter-prediction mode and the intra-prediction mode, and a unit for performing predictive coding according to the selected prediction mode.
|