Patent ID: 6879726

Claim:
An image processing apparatus for dividing an input image into a plurality of tiles to process the image, comprising: encoding means for subjecting individual tiles of the plurality of tiles to encoding processing on a per-bit-plane basis; storage means for storing a code stream, which is encoded by said encoding means, tile by tile; determination means for determining whether all code of tiles that have been encoded by said encoding means can be stored in said storage means when the code streams encoded by said encoding means are stored successively in said storage means; and control means, responsive to a signal from said determination means indicating that all of the code cannot be stored, for executing control so as to substantially equally divide the amount of code that overflows said storage means and store the divided code in said storage means in an opposite direction from a storing start address of each of code areas of tiles, by distributing the divided code over the code areas of tiles that have already been stored and specifying the storing start address of each code area.