摘要 |
The present invention relates to a device including (i) a spatial-direction prediction vector generating section (191) which calculates a first prediction vector group by referring to a first motion vector group made up of motion vectors for encoded partitions, (ii) a temporal-direction prediction vector generating section (192) which calculates a second prediction vector group by referring to a second motion vector group made up of motion vectors for partitions around a collocated partition, and (iii) a prediction vector selecting section (194) which assigns, to the target partition, a prediction vector selected from prediction vectors in the first prediction vector group or from prediction vectors in the second prediction vector group based on variation of the first motion vector group and variation of the second motion vector group. |