Patent ID: 8229233

Claim:
A method of estimating and compensating for motion in image decoding, the method comprising: determining a reference block of a reference frame indicated by a motion vector of a current block of a current frame being decoded; and generating a spatiotemporal estimation block of the current block by using at least one of the current frame and the reference frame, wherein, when some pixels of the reference block are outside the reference frame, a first block region of the reference block is in the reference frame, and a second block region of the reference block is outside the reference frame, and wherein the generating of the spatiotemporal estimation block comprises: determining the first block region of the reference block to be an estimation region of the first block region of the spatiotemporal block; and generating an estimation region of the second block region of the spatiotemporal estimation block by using at least one of pixel values of neighboring blocks of the current block, and pixel values of an estimation region of the first block region.