Patent ID: 7649945

Claim:
An integrated circuit for deriving a motion vector of a block in a picture, said integrated circuit comprising: a unit operable to obtain a reference motion vector for deriving a motion vector of a current block; a unit operable to calculate a first parameter corresponding to a distance between a motion-compensated picture and a reference picture, wherein said motion-compensated picture is motion-compensated using the reference motion vector, and said reference picture is referred to by the reference motion vector; a unit operable to calculate a second parameter corresponding to a distance between a current picture and the reference picture, wherein said current picture includes the current block; a judgment unit operable to judge whether or not the first parameter is within a range having a predetermined maximum value; and a motion vector derivation unit operable to derive the motion vector of the current block by scaling the reference motion vector based on the predetermined maximum value of the range and the second parameter, when it is judged by said judgment unit that the first parameter is not within the range having the predetermined maximum value, and by scaling the reference motion vector based on the first parameter and the second parameter, when it is judged by said judgment unit that the first parameter is within the range having the predetermined maximum value.