Patent ID: 8554003

Claim:
An image data processing apparatus comprising: a lossless compression device that performs lossless compression for each line of image data; a configuration controller that performs control so that a first configuration and a second configuration are selectively set in a reconfigurable circuit, the first configuration including a first line memory set for retaining therein compressed image data obtained by performing lossless compression by using the lossless compression device and a decompression circuit set for decompressing the compressed image data, the second configuration including a second line memory set for retaining therein the image data in the form of non-compressed image data, a capacity of the first line memory set being determined so that a circuit scale of the first configuration is equal to or smaller than a circuit scale of the second configuration; a maximum size determining device that causes the lossless compression device to compress each of the lines of a unit of processing of the image data and that determines a maximum size among data sizes of the lines of the compressed image data; and an output controller that performs control so that, when the maximum size determined by the maximum size determining device is equal to or smaller than a predetermined threshold which corresponds to the capacity of the first line memory set, the output controller instructs the configuration controller to set the first configuration in the reconfigurable circuit and also outputs the compressed image data obtained by the lossless compression device to an image processing circuit via the first line memory set, and so that, when the maximum size determined by the maximum size determining device is greater than the predetermined threshold, the output controller instructs the configuration controller to set the second configuration in the reconfigurable circuit and also outputs the non-compressed image data to the image processing circuit via the second line memory set.