Decoding method and apparatus with candidate motion vectors
Various embodiments for decoding a current block of a picture are provided. One or more candidates of a first type are derived, with each of the candidates having a first motion vector predictor derived from a first motion vector that has been used to decode a first block. A candidate of a second type is derived, with the candidate having a second motion vector predictor. The candidate of the second type is different from the candidates of the first type. A coded index corresponding to a selected candidate is decoded. The selected candidate is one of a plurality of candidates which includes the candidates of the first type and the candidate of the second type. A total number of the candidates of the first type is less than a predetermined maximum candidate number which is fixed for all blocks in the picture.
1. A moving picture decoding method for decoding a current block of a picture, the moving picture decoding method comprising:
deriving one or more candidates of a first type, each of the candidates having a first motion vector predictor derived front a first motion vector that has been used to decode a first block;
deriving a candidate of a second type, the candidate having a second motion vector predictor, the candidate of the second type being different from the candidates of the first type; and
decoding a coded index corresponding to a selected candidate having a motion vector predictor,
wherein the selected candidate is one of a plurality of candidates which includes the candidates of the first type and the candidate of the second type,
a total number of the candidates of the first type is less than a predetermined maximum candidate number, and
the predetermined maximum candidate number is fixed for all blocks in the picture.
2. A moving picture decoding apparatus that decodes a current block of a picture, the moving picture decoding apparatus comprising:
a processor; and
a non-transitory storage,
the processor performing, using the non-transitory storage, processes including:
deriving one or more candidates of a first type, each of the candidates having a first motion vector predictor derived from a first motion vector that has been used to decode a first block;
deriving a candidate of a second type, the candidate having a second motion vector predictor, the candidate of the second type being different from the candidates of the first type; and
decoding a coded index corresponding to a selected candidate having a motion vector predictor,
wherein the selected candidate is one of a plurality of candidates which includes the candidates of the first type and the candidate of the second type,
a total number of the candidates of the first type is less than a predetermined maximum candidate number, and
the predetermined maximum candidate number is fixed for all blocks in the picture.