Patent ID: 7468803

Claim:
An image processing method executed by an image processing apparatus having a first memory and a second memory, comprising: an input step of inputting, for each tile of an image, packet data including an image data and header data; an extraction step of extracting the image data from the packet data input in the input step; a first compression step of compressing the extracted image data at a first compression ratio to generate first compressed data, and storing the generated first compressed data into the first memory; a first updating step of extracting the header data from the packet data input in the input step, and updating the extracted header data based on the compression processing executed in the first compression step; a step of, if a data size of the first compressed data is equal to or less than a predetermined value, generating a first packet data by combining the updated header data and the first compressed data; a step of storing the generated first packet data into the second memory; a second compression step of, if the data size of the first compressed data is not less than the predetermined value, recompressing the first compressed data stored in the first memory at a second compression ratio, which is higher ratio than the first compression ratio, to generate second compressed data; a second updating step of extracting the header data from the packet data input in the input step, and updating the extracted header data based on the recompression processing executed in the second compression step; a step of, if the data size of the second compressed data is equal to or less than the predetermined value, generating a second packet data by combining the header data updated in the second updating step and the second compressed data; a step of storing the generated second packet data into the second memory; and a step of, instead of the packet data input in the input step, outputting data, which is the first packet data or the second packet data, stored in the second memory.