| CPC H04N 19/521 (2014.11) [H04N 19/105 (2014.11); H04N 19/109 (2014.11); H04N 19/119 (2014.11); H04N 19/124 (2014.11); H04N 19/137 (2014.11); H04N 19/139 (2014.11); H04N 19/15 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/182 (2014.11); H04N 19/52 (2014.11); H04N 19/61 (2014.11); H04N 19/70 (2014.11); H04N 19/96 (2014.11)] | 4 Claims |

|
1. An image decoding method comprising:
selecting available blocks from already-decoded blocks, the already-decoded blocks including a first block adjacent to a left of a target block and a second block adjacent to a top of the target block, wherein the selecting available blocks comprises:
determining which of an inter prediction and an intra prediction is applied to the first block, wherein when it is determined that the intra prediction is applied to the first block, the first block is not selected as an available block,
determining which of the inter prediction and the intra prediction is applied to the second block, wherein when it is determined that the intra prediction is applied to the second block, the second block is not selected as an available block,
determining whether a motion vector of the first block is identical to a motion vector of the second block,
selecting the first block and the second block as available blocks when the inter prediction is applied to the first block and the second block and the motion vector of the first block is different from the motion vector of the second block, and
selecting one of the first block and the second block as an available block when the inter prediction is applied to the first block and the second block and the motion vector of the first block is identical to the motion vector of the second block, wherein the other of the first block and the second block is not selected as an available block;
decoding, from input encoded data, selection information specifying one of the available blocks;
selecting a block from the available blocks in accordance with the selection information;
generating a predicted image of the target block using a motion vector of the selected block;
decoding a transform coefficient from the input encoded data;
performing processing on the transform coefficient to obtain a prediction error, the processing including inverse transform; and
generating a decoded image by adding the predicted image and the prediction error.
|