Patent ID: 8693550

Claim:
A decoding method for decoding received input image compression information, the method comprising: generating a context model corresponding to motion vector information of a current macroblock, wherein the context model is generated based on a sum of absolute values of first motion vector information of a first macroblock neighboring the current macroblock and absolute values of second motion vector information of a second macroblock neighboring the current macroblock, and when the current macroblock is subjected to the field-based encoding, the first neighboring macroblock is subjected to frame-based encoding, and the second neighboring macroblock is subjected to frame-based encoding, calculating the second motion vector information corresponding to the second neighboring macroblock by converting a vertical component of the second motion vector information corresponding to the second neighboring macroblock to an equivalent for an encoding type of a first neighboring macroblock, and applying the second motion vector information corresponding to the second neighboring macroblock to the context model corresponding to the motion vector information of the current macroblock; and decoding the input image compression information using the context model corresponding to the syntax element for carrying out the frame-based or the field-based encoding.