Patent ID: 8125364

Claim:
A compression/decompression method for a compression engine to compress data and a decompression engine to decompress compressed data, wherein said compression engine is configured to: start compressing data according to a first compression rule used at the start of a preset data compression process and analyze characteristics of the data; when the characteristics of the data satisfy a preset switching condition, compress data following the data according to a second compression rule different from said first compression rule; and when the characteristics of the data do not satisfy said switching condition, compress the data and the following data according to said first compression rule, and said decompression engine is configured to: start decompressing compressed data according to a first decompression rule corresponding to said first compression rule; when the characteristics of the data after decompression satisfy said switching condition, decompress compressed data following the data according to a second decompression rule corresponding to said second compression rule; and when the characteristics of the data after decompression do not satisfy said switching condition, decompress the data and the following compressed data according to said first decompression rule; and said switching condition is that the same data succeeds for a plurality of times.