Patent ID: 8442334

Claim:
A method for coding image data on a block-by-block basis, said method comprising: partitioning the image data into a plurality of blocks; generating a predicted block by predicting a current block that is one of the plurality of blocks; computing a difference between the current block and the predicted block; coding the difference computed in said computing; decoding the difference coded in said coding; and adding the difference decoded in said decoding to the predicted block to generate a decoded block, wherein said generating includes: detecting an edge in a previously decoded block corresponding to a block adjacent to the current block; and extrapolating or interpolating previously decoded image data along a direction of the edge detected in said detecting to generate the predicted block, the previously decoded image data corresponding to a pixel included in the block adjacent to the current block, and wherein, in said coding, a mode indicator is coded, the mode indicator indicating that the edge in the previously decoded block is to be detected to generate the predicted block.