摘要 |
PROBLEM TO BE SOLVED: To solve the problem in which coding efficiency may not be improved due to deterioration in prediction accuracy in a temporal direct mode.SOLUTION: In inter-prediction performed in a state where a first block obtained by dividing each picture is divided into one or a plurality of second blocks, a spatial merge candidate generation unit 230 derives a spatial merge candidate without referring to a block included in the first block including a second block. A temporal merge candidate reference index derivation unit 231 sets reference index information for a temporal merge candidate to the value of reference index information for a decoded prediction block close to the left side of a prediction block to be decoded in a mode in which an encoding block is divided into upper and lower prediction blocks at a horizontal boundary, and sets the reference index information for the temporal merge candidate to the value of reference index information for a decoded prediction block close to the top side of the prediction block to be decoded in a mode in which the encoding block is divided into left and right prediction blocks at a vertical boundary. |