Data compression and decompression method and equipment
A data compression and decompression technology, applied in the computer field, can solve the problems of poor data compression effect in non-text form, and achieve the effect of high data compression efficiency and space reduction.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] like figure 1 As shown, it is a schematic diagram of a method for compressing data in Embodiment 1 of the present application, and the method includes the following steps:
[0041] Step 101: Determine some or all of the bits that need to be removed in the data;
[0042] Step 102: Write the content of sign bit information, length information and remaining bits of the data into the compressed array as compressed content, wherein the length information is the length information of the removed or remaining bits, that is, the removed The length information of the bits or the length information of the remaining bits after removing the bits.
[0043] Through the solution of Embodiment 1 of the present invention, when compressing data, some or all invalid data in the data is removed, and only the remaining data is compressed, which can effectively reduce the space occupied by stored data and improve data compression efficiency.
Embodiment 2
[0045] In the process of data compression, a large amount of long integer data needs to be compressed. In this embodiment, each long integer data can be sequentially executed in a serial manner according to the scheme of each step of this embodiment to obtain compressed long integer data. The solution of each step of this embodiment can be executed on multiple long integer data in parallel. In the first embodiment, the compression of a long integer data is taken as an example for description.
[0046] like figure 2 As shown, it is a schematic diagram of a method for compressing data in Embodiment 2 of the present application, and the method includes the following steps:
[0047] Step 201: Determine part or all of the invalid bits that need to be removed in the data;
[0048] Before compressing a long integer data, it is necessary to know the compressible invalid bits of the long integer data. A long integer data needs to occupy 8 bytes, that is, 64 bits, and the invalid bi...
Embodiment 3
[0088] Embodiment 3 of the present application is a method of decompression, such as Figure 4 As shown, the method includes the following steps:
[0089] Step 301: receiving the compressed array and additional information of the compressed array;
[0090] In this step, the compressed data in the compressed array may be compressed in the manner of Embodiment 1, or may be compressed in other ways.
[0091] In this embodiment, it is assumed that the compressed data is compressed according to the method of Embodiment 1, then the compressed array is compressed according to image 3 The structure shown stores compressed data. The additional information of the compressed array may include the total bit length of the data and the information of the bit unit X.
[0092] Step 302: Obtain the sign bit information, length information, and remaining bit content of the data from the compressed data of the compressed array, wherein the length information is the length information of the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com