主权项 |
1. A decoding method for decoding coded data of a current block included in a current picture in direct mode, the decoding method comprising:
specifying a co-located block which is a block included in a second picture that is different from the current picture, the co-located block being located in the second picture at the same position that the current block is located in the current picture; determining a first motion vector and a second motion vector of the current block for performing motion compensation on the current block, using a third motion vector which is a motion vector of the co-located block; generating a first predictive image of the current block using the first motion vector of the current block and a second predictive image of the current block using the second motion vector of the current block; generating a predictive image of the current block based on the first predictive image and the second predictive image; decoding the coded data of the current block to obtain a difference image of the current block; and reconstructing the current block by adding the difference image of the current block and the predictive image of the current block, wherein, the co-located block is motion-compensated using a first motion vector corresponding to a first reference picture of the co-located block and a second motion vector corresponding to a second reference picture of the co-located block, and wherein, in the case where the first reference picture of the co-located block is stored in a long-term picture buffer and a second reference picture of the co-located block is stored in a short-term picture buffer, (i) the third motion vector is determined to be equal to the first motion vector of the co-located block, and (ii) the first motion vector of the current block is determined to be equal to the third motion vector, and (iii) the second motion vector of the current block is determined to be a value of 0, and wherein, in the case where the first reference picture of the co-located block is stored in a short-term picture buffer and the second reference picture of the co-located block is stored in a long-term picture buffer, (i) the third motion vector is determined to be equal to the first motion vector of the co-located block, and (ii) the first and second motion vectors of the current block are calculated by scaling the third motion vector based on a difference between display order information of the first reference picture of the current block, display order information of the second reference picture of the current block, and display order information of the current picture including the current block. |