主权项 |
1. A moving picture encoding device with motion compensating prediction in units of block, comprising:
a motion vector predictor candidate generating unit configured to, when a block size of blocks to be encoded is larger than a predetermined threshold size, include a motion vector predictor candidate derived from blocks in an encoded image into a motion vector predictor candidate list, and when the block size of the blocks to be encoded is smaller than or equal to the predetermined threshold size, configured not to include the motion vector predictor candidate into the motion vector predictor candidate list; a motion vector predictor selecting unit configured to select a motion vector predictor of the blocks to be encoded from the motion vector predictor candidate list; a motion information candidate generating unit configured to, when the block size of the blocks to be encoded is larger than the predetermined threshold size, include a motion information candidate derived from blocks in the encoded image into a motion information candidate list, and when the block size of the blocks to be encoded is smaller than or equal to the predetermined threshold size, configured not to include the motion information candidate into the motion information candidate list; a motion information selecting unit configured to select motion information of the blocks to be encoded from the motion information candidate list; and an encoding unit configured to encode a merge flag indicating encoding a merge index or a motion vector predictor index, wherein the encoding unit is, when the merge flag indicates to use the merge index, configured to encode the merge index on a position of the selected motion information from the motion information candidate list, and when the merge flag indicates to use the motion vector predictor index, configured to encode the motion vector predictor index on a position of the selected motion vector predictor from the motion vector predictor candidate list, wherein the blocks in the encoded image are blocks at the same positions as the blocks to be encoded or blocks neighboring the blocks at the same positions, and the encoded image is temporally different from an image including the blocks to be encoded, wherein the motion information includes motion vectors and reference indexes. |