Pixel data compression device
暂无分享,去创建一个
A pixel data compression device is provided. The pixel data compression device includes: a first judgment unit for comparing the number of bits of a value of first pixel data and the number of bits of a value of second pixel data with the number of reference bits; a format determination unit for determining the format of compressed data including a flag region, a first data region, and a second data region, 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 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, the size of the first data region and the size of the second data region are equal to the number of reference bits, the value of the first data region is equal to the value of the first pixel data, and the value of the second data region is equal to the value of the second pixel data. [Reference numerals] (10) First judgment unit; (20) Second judgment unit; (30) Format determination unit; (40) Compression unit