Patent ID: 7512281

Claim:
An image processing apparatus that divides data related to an image into bit-planes and performs a coding process on data of each of the bit-planes, the image processing apparatus comprising: a multi-layer generation part that divides codes obtained by the coding process into a plurality of layers sequentially from the codes corresponding to higher bit-planes such that an amount of the codes of each of the layers is equal to or less than a predetermined value; a code generation part that generates coded data in units of the codes divided into the respective layers by the multi-layer generation part; and a truncation cable including truncation data that specify the codes to be discarded sequentially from the codes corresponding to lower bit-planes for each of the blocks, wherein, based on the truncation table, the multi-layer generation part specifies for a top layer the truncation data of a table number with which quality of a reproduced image is maximized, and specifies for subsequent layers the truncation data of table numbers such that a difference between a code amount of one of the subsequent layers and a code amount after discarding based on the truncation data specified for a preceding layer is a predetermined value or less and the quality of the reproduced image is maximized.