By selecting UNI1 as the predetermined partition as illustrated in FIG. 48A and FIG. 48B, in a case where a block in the neighbor of the right of a triangle merge mode illustrated in FIG. 48B is in a triangle merge mode illustrated in FIG. 48A, continuity of motion information to be stored can also be maintained in a region where the two triangle merge modes continue. Therefore, coding efficiency is improved compared with selecting UNI0 as the predetermined partition as illustrated in FIG. 47A and FIG. 47B.
Selecting UNI1 as the predetermined partition as illustrated in FIG. 48A and FIG. 48B can also maintain continuity of processing because motion information of partitions is accumulated after coding/decoding. Therefore, a processing amount is reduced compared with selecting UNI0 as the predetermined partition as illustrated in FIG. 47A and FIG. 47B.
By fixing, as L0 prediction, uni-prediction to be saved as UNI1, since the L0 prediction can be treated in the same manner as P slice, a processing amount is reduced compared with a case where uni-prediction saved as L1 prediction.
In all the embodiments described above, a plurality of technologies may be combined with each other.