Moving picture coding method, moving picture coding apparatus, moving picture decoding method, moving picture decoding apparatus, and moving picture coding and decoding apparatus
A moving picture coding method includes: coding a coding target block using a motion vector; generating motion vector predictors; and coding the motion vector using one of the motion vector predictors generated in the generating of the motion vector predictors. In the generating of the motion vector predictors, a replacement vector which replaces a temporal motion vector predictor is added to the motion vector predictors when it is impossible to obtain the temporal motion vector predictor from a block which is included in a coded picture different from the coding target picture and corresponds to the coding target block.
1. A decoding method comprising:
obtaining a temporal motion vector enable flag which indicates whether or not using a temporal motion vector predictor is enabled, the temporal motion vector predictor being from a block which is included in a decoded picture different from a decoding target picture and which corresponds to a decoding target block included in the decoding target picture;
generating a plurality of motion vector predictors;
decoding a motion vector using one of the plurality of motion vector predictors generated in the generating; and
decoding the decoding target block using the motion vector decoded in the decoding of the motion vector,
wherein, in the generating, a motion vector having a motion quantity of 0 is generated when the temporal motion vector enable flag indicates that using the temporal motion vector predictor is not enabled, the motion vector having the motion quantity of 0 being included in the plurality of motion vector predictors.
2. The decoding method according to claim 1 , the method further comprising:
obtaining identification information indicating whether a bit stream is coded by a first standard or coded by a second standard from the bit stream, the first standard being different from the second standard;
when the identification information indicating the bit stream is coded by the first standard, decoding the bit stream according to the first standard; and
when the identification information indicating the bit stream is coded by the second standard, the process is executed according to claim 1 .