Patent ID: 8761256

Claim:
A decoding apparatus having a direct mode as a prediction mode, the decoding apparatus comprising: a reference vector correcting unit that, when a pixel with opposite parity is referred to for obtaining a reference vector in the direct mode, performs correction by adding or subtracting a value corresponding to a half pixel to or from a vertical component of a value of the obtained reference vector; and a direct vector correcting unit that, when a pixel with opposite parity is referred to for obtaining a first and a second direct vector by temporally scaling the reference vector corrected by the reference vector correcting unit, performs correction by adding or subtracting a value corresponding to a half pixel to or from the vertical component of values of obtained direct vectors, wherein the reference vector correcting unit performs correction on the reference vector by using mvCol_correct=mvCol+2×(isBottomFieldrefPicCol—isBottomFieldCol), where mvCol is the reference vector, mvCol_correct is the corrected value of the reference vector, isBottomFieldrefPicCol is parity of a reference picture in first direct vector direction, and isBottomFieldCol is parity of the reference picture in second direct vector direction, and the direct vector correcting unit performs correction on the first direct vector by using mvL 0 _correct=mvCol_correct×tb/td, where mvL 0 _correct is the corrected value of the first direct vector, tb is a time distance from a current picture to the reference picture in a past direction, and td is the time distance from the reference picture in a future direction to the reference picture in the past direction, and the direct vector correcting unit performs correction on the second direct vector by using mvL 1 _correct=mvL 0 _correct−mvCol_correct, where mvL 1 _correct is the corrected value of the second direct vector.