Patent Document ID: 20120328021
Application ID: 13479636
Patent Flag: 0

Claim One:
1. A moving picture coding method for calculating a motion vector predictor to be used when coding a motion vector of a current block to be coded, and coding the current block, to generate a bitstream, the method comprising: determining a maximum number of motion vector predictor candidates each of which is a candidate for the motion vector predictor; deriving one or more first motion vector predictor candidates; determining whether a total number of the one or more first motion vector predictor candidates is smaller than the maximum number; deriving one or more second motion vector predictor candidates when it is determined that the total number of one or more first motion vector predictor candidates is smaller than the maximum number; selecting, from among the one or more first motion vector predictor candidates and the one or more second motion vector predictor candidates, the motion vector predictor to be used for coding the motion vector of the current block; and coding, using the determined maximum number, an index for identifying the selected motion vector predictor, and adding the coded index to the bitstream.