Patent ID: 8923613

Claim:
An image compression device that performs fixed length compression of data to be compressed composed of a plurality of components including a luminance component, the image compression device comprising: a code amount allocation unit configured to determine, according to the luminance component, the code amount to be allocated to each of the plurality of components such that a total of the code amount allocated to each of the components remains constant; and a compression unit configured to compress each of the plurality of components according to the code amount determined by the code amount allocation unit, wherein the code amount allocation unit: includes a difference calculation unit configured to calculate, with respect to each of pixels constituting the data to be compressed, an absolute value of a difference between the luminance component of one of the pixels and the luminance component of another pixel adjacent to the one pixel; and is configured to determine the code amount to be allocated according to the absolute value of the difference calculated by the difference calculation unit.