Patent ID: 8861876

Claim:
A pixel data compression device comprising: a first judgment unit for comparing a number of bits of a value of first pixel data and a number of bits of a value of second pixel data with a number of reference bits; a format determination unit for determining a format of compressed data, the format corresponding to the number of bits of the value of the first pixel data and the number of bits of the value of the second pixel data; and a compression unit for generating the compressed data, which corresponds to the format of the compressed data, from the first pixel data and the second pixel data, wherein the compressed data comprises a flag region, a first data region, and a second data region, wherein the format determination unit is configured to determine that the format of the compressed data is a first format when each of the number of bits of the value of the first pixel data and the number of bits of the value of the second pixel data is less than or equal to the number of reference bits, and wherein in the first format, a size of the first data region and a size of the second data region are equal to the number of reference bits, a value of the first data region is equal to the value of the first pixel data, and a value of the second data region is equal to the value of the second pixel data.