摘要 |
Obtaining one or more motion vector predictor candidates includes: (a1) generating a motion vector predictor candidate, based on motion vectors of first adjacent blocks adjacent to a block to be processed in a first direction; and (a2) generating a motion vector predictor candidate, based on motion vectors of second adjacent blocks adjacent to the block to be processed in a second direction, and step (a2) (S500) includes: (S520) determining whether the first adjacent blocks include an inter-predicted block; and (S530) searching for a motion vector on which scaling processing can be performed from among the motion vectors of the second adjacent blocks when it is determined that the first adjacent blocks do not include an inter-predicted block, and executing, when the motion vector on which scaling processing can be performed is obtained in the search, scaling processing on the motion vector obtained in the search. |