Patent ID: 8855207

Claim:
A method for encoding, into a bitstream, a motion vector used to predict a picture, the method comprising: deriving a difference motion vector indicating a difference between the motion vector and a motion vector predictor that is a prediction of the motion vector; binarizing the difference motion vector into first binary data and second binary data, the first binary data indicating a horizontal component of the difference motion vector and the second binary data indicating a vertical component of the difference motion vector; encoding a first portion, a second portion, a third portion, and a fourth portion respectively into an encoded first portion, an encoded second portion, an encoded third portion, and an encoded fourth portion, the first portion being prefix data of the first binary data, the second portion being suffix data of the first binary data, the third portion being prefix data of the second binary data, and the fourth portion being suffix data of the second binary data; and arranging the encoded first portion, the encoded third portion, the encoded second portion, and the encoded fourth portion in the bitstream, in this order.