Patent ID: 8346001

Claim:
An image processing apparatus which processes image data with a line format for each line comprising: compression means for compressing processed image data; determination means for determining whether a process direction of image data of a next line is a first direction or a second direction opposite to the first direction; change means for changing, in accordance with a determination result of said determination means, a data organization of the image data compressed by said compression means; a memory which stores the compressed image data whose data organization has been changed by said change means; decompression means for reading out the compressed image data stored in said memory and decompressing the compressed image data; and image processing means for performing an image process using the image data decompressed by said decompression means and image data of a line adjacent to a line of the processed image data, wherein said compression means concatenates, to image data, an identifier for identifying compressed data from non-compressed data, and wherein said change means swaps, in accordance with the determination result of said determination means, a position where the identifier is concatenated to the image data.