主权项 |
1. A graphic data compression device, comprising:
a processing unit, configured to process graphic data; and a mixed-type compression unit, configured to perform a compression on the data processed by the processing unit, the mixed-type compression unit comprising:
a lossless compression module, configured to perform the compression on the processed data by a lossless compression algorithm; anda nearly-lossless compression module, comprising:
an adjustment module, configured to perform an adjustment on the processed data to reduce a size of the processed data; anda compression module, configured to perform, by the lossless compression algorithm, a compression on the data adjusted by the adjustment module, wherein the mixed-type compression unit is further configured to determine whether the compression performed by the lossless compression module is successful, and to output the data compressed by the lossless compression module when the compression performed by the lossless compression module is determined to be successful, wherein the mixed-type compression unit is further configured to further determine whether the compression performed by the nearly-lossless compression module is successful when the compression performed by the lossless compression module is determined to be unsuccessful, and to output the data compressed by the nearly-lossless compression module when the compression performed by the nearly-lossless compression module is determined to be successful or to directly output uncompressed data processed by the processing unit. |