Patent Document ID: 10063879
Application ID: 14087391
Patent Status: 1

Claim One:
1. A decoding method for decoding an image from a bitstream, the decoding method comprising: deriving one or more candidates for a motion vector predictor used to decode a motion vector of a current block in the image; selecting the motion vector predictor out of the one or more candidates using an index included in the bitstream; decoding the motion vector of the current block using the selected motion vector predictor; and decoding the current block using the decoded motion vector, wherein the deriving includes: generating a first candidate for the motion vector predictor from a first motion vector belonging to one of one or more first adjacent blocks, the first adjacent blocks being spatially adjacent to the current block in a leftward direction; and generating a second candidate for the motion vector predictor from a second motion vector belonging to one of one or more second adjacent blocks, the second adjacent blocks being spatially adjacent to the current block in an upward direction, wherein the generating of the second candidate includes: determining whether or not to scale the second motion vector according to a result of determining, for each of the first adjacent blocks, whether or not the first adjacent block is inter-predicted; and when it is determined to scale the second motion vector, scaling the second motion vector to generate the second candidate, the scaling being performed using a scaling ratio, and wherein the second motion vector is scaled when it is determined that each of first adjacent blocks is not inter-predicted, and the second motion vector is not scaled when it is determined that at least one of the first adjacent blocks is inter-predicted.