摘要 |
A motion vector number limit setup portion (35) of the present invention sets, according to microblock size, a maximum value for the number of motion vectors. A motion prediction/compensation portion (32) detects the optimal prediction mode, wherein the number of motion vectors does not exceed the maximum value, and generates a predictive image after compensating the motion of a reference image through the use of the motion vector of the detected optimal prediction mode. By setting, according to microblock size, a maximum value for the number of motion vectors, it is possible, when using an expanded microblock, to prevent picture quality decline or the like, with the number of motion vectors not being limited any more than necessary. |