Patent attributes
Provided is an encoder which includes circuitry and memory. Using the memory, the circuitry splits an image block into a plurality of partitions, obtains a prediction image for a partition, and encodes the image block using the prediction image. When the partition is not a non-rectangular partition, the circuitry obtains (i) a first prediction image for the partition using a first motion vector for the partition, (ii) a second motion vector for the partition using the first prediction image, and (iii) a second prediction image for the partition as the prediction image using the second motion vector. When the partition is a non-rectangular partition, the circuitry obtains the first prediction image as the prediction image using the first motion vector, without using the second motion vector.