Patent ID: 8243803

Claim:
A moving picture encoding device for encoding a moving picture constituted of a time sequence of frame pictures by motion compensation, the device comprising: a motion vector detection section configured to detect a motion vector of a predetermined area to be encoded in a frame picture; a prediction section configured to predict the motion vector of the predetermined area; a determination section configured to set a funny position expressed in N+¾ pixel, M+¾ pixel, wherein N and M are integers, based on the motion vector predicted by the prediction section, and configured to determine whether or not the motion vector detected by the motion vector detection section indicates the funny position; and a switching section configured to switch a method of calculating a motion compensation value of the predetermined area, depending on whether or not the motion vector detected by the motion vector detection section indicates the funny position, wherein the switching section switches to a first method of calculating the motion compensation value when the motion vector detected by the motion vector detection section indicates the funny position that includes averaging four integer pixel positions in the predetermined area, and the switching section switches to a second method of calculating the motion compensation value when the motion vector detected by the motion vector detection section indicates a ¼ pixel position other than the funny position that includes averaging a pixel value of (N, M), a pixel value of (N, M+1), a pixel value of (N+1, M), and a pixel value of (N+1, M+1).