Patent ID: 8295618

Claim:
An image processing apparatus that processes image code data of image data, the image code data containing a plurality of pieces of rectangular block code data each being generated as a result of dividing the image data into a plurality of rectangular blocks and performing encoding with respect to each rectangular block by reference to image data of a neighboring rectangular block of each of the rectangular blocks, the image processing apparatus comprising: an encoding unit configured to encode a processed image that is obtained by performing image processing on a first decoded image that is obtained by decoding one of the pieces of the rectangular block code data; a determining unit configured to determine whether a reference pixel has been subjected to the image processing, the reference pixel having been referred to among pixels contained in the first decoded image when image data of a rectangular block adjacent to the first decoded image has been subjected to the image processing; and a decoding unit configured to decode, when the determining unit determines that the reference pixel has been subjected to the image processing, a piece of the rectangular block code data of a rectangular block that has referred to the first decoded image thereby acquiring a second decoded image, wherein the encoding unit refers to, when the determining unit determines that the reference pixel has been subjected to the image processing, the processed image and encodes the second decoded image, the encoding unit performs an overlap transform across boundaries between one of the rectangular blocks and a neighboring rectangular block of the one of the rectangular blocks, and the reference pixel is used when performing the overlap transform.