Patent ID: 7155063

Claim:
An image processing apparatus comprising: header information processing means for analyzing header information in an entered encoded data stream; decoding means for successively decoding image information, which comprises a plurality of successive variable-length codes of the encoded data stream, thereby obtaining a series of frequency transform coefficient sequences; reconstructing means for reconstructing image data based upon encoding parameters and the series of frequency transform coefficient sequences; detection means for detecting code errors contained in the encoded data stream of an entered block; counting means for counting the number of code errors detected; search means for searching for resync identifiers contained in the encoded data stream; and correction means which, if the number of code errors detected is equal to or less than a predetermined number and a code error is contained in a portion of the data stream that lies between two resync identifiers that have been found, corrects this portion of the data stream by a correction data stream, and if the number of code errors detected is greater than the predetermined number, corrects the encoded data stream by a correction data stream having a size the same as that of reconstructing entire image.