Data compression method and apparatus, and data decompression method and apparatus
AssigneeCalterah Semiconductor Technology (Shanghai) Co., Ltd.
InventorQi Xu
Life of this patent
Estimating the term…
Abstract
A data compression method, apparatus, a data decompression method and apparatus are provided. In the methods an apparatuses, on the basis of an average effective bit value of data in a data block and an average storage bit width occupied by e remaining part of each item of data in the compressed data block, compression of a fixed compression rate is implemented on the remaining part of the data, reducing the storage space occupied by the remaining part of the data whilst allowing for quick restoration of the compressed data into the original data.
Claims20
A data compression method, applied to lossy compression, comprising:
- acquiring a data block to be compressed;
- calculating an average significant digit value of each data within the data block;
- calculating and storing an average storage bit width occupied by a remainder part of each data within the data block to be compressed according to a preset compression ratio;
- and
- dynamically shifting an original remainder part of each data within the data block according to the average significant digit value and the average storage bit width to obtain the remainder part of each data after being compressed within the data block.
A data decompression method, comprising:
- acquiring data to be decompressed, the data comprising a significant digit corresponding to each data within a data block stored in a compression process applied to lossy compression, an average storage bit width occupied by a remainder part of each data within the data block, and the remainder part of each data after being compressed within the data block;
- calculating an average significant digit value of the data in the data block according to the significant digit corresponding to each data within the data block;
- and
- dynamically shifting the remainder part of each data after being compressed in the data block according to the average significant digit value and the average storage bit width to obtain an original remainder part of each data within the data block.
A method of data compression and storage, applied to lossy compression, applied to any data block to be compressed, the data block comprising at least two data to be compressed, the method comprising:
- for any of the data to be compressed, compressing and storing the data to be compressed as compressed data of a data combination,
- wherein the data combination comprises a significant digit unit and a remainder unit.
Dependencies are inferred from the claim text.