CPC H04N 19/52 (2014.11) | 5 Claims |
1. A decoder which decodes a video from a bitstream using a predicted image, the decoder comprising:
circuitry; and
memory,
wherein, using the memory, the circuitry:
derives a maximum number based on a partition shape of a first partition in the video, the maximum number being a first number when the partition shape is a square or a rectangle, and the maximum number being a second number different from the first number when the partition shape is a non-square and a non-rectangle;
generates a motion vector candidate list including a plurality of candidates equal to the derived maximum number, the plurality of candidates being for a first motion vector for the first partition;
decodes an index indicating the first motion vector among the plurality of candidates in the motion vector candidate list from the bitstream based on the maximum number;
selects the first motion vector from the plurality of candidates in the motion vector candidate list using the index; and
generates the predicted image for the first partition using the first motion vector.
|