本发明专利申请是申请日为2012年5月30日、申请号为201210174964.9、名称为“数据压缩方法及装置”的中国发明专利申请的分案申请。The patent application of the present invention is a divisional application of the Chinese invention patent application with the filing date of May 30, 2012, the application number of 201210174964.9, and the title of "data compression method and device".
技术领域technical field
本发明涉及计算机技术领域,特别是涉及一种数据压缩方法及装置。The invention relates to the field of computer technology, in particular to a data compression method and device.
背景技术Background technique
在现有技术中,压缩工具通过一定的压缩算法改变文件内容和数据,使得数据占用更小的存储空间。具体地,普通文件一般都包含一定的重复数据,这些重复的数据往往占据多倍的存储空间,压缩工具需要查找文件内的这些重复数据,通过合适的算法将数据进行重建,让多个重复数据只占用一个存储空间,在解压缩时,再通过相应的解压算法将压缩后的文件进行还原,这种压缩算法一般属于无损压缩。例如,在文本文件中包含多个相同的词"中华人民共和国",通过压缩工具压缩之后,只需占用一个存储空间进行存储,从而达到缩小文件的目的。In the prior art, a compression tool changes file content and data through a certain compression algorithm, so that the data occupies less storage space. Specifically, ordinary files generally contain a certain amount of repeated data, and these repeated data often occupy multiple times the storage space. It only takes up one storage space, and when decompressing, the compressed file is restored through the corresponding decompression algorithm, which generally belongs to lossless compression. For example, if a text file contains multiple identical words "People's Republic of China", after being compressed by a compression tool, it only needs to occupy one storage space for storage, thereby achieving the purpose of shrinking the file.
此外,压缩工具不仅能够帮助用户节省空间,同时也能将多个文件打成一个压缩数据包,以方便用户备份、传输和分享。目前,现有技术中有多款压缩工具,例如:winzip压缩工具,winrar压缩工具,7-zip压缩工具等;与压缩工具相对应的压缩格式也有多种,例如:rar格式、zip格式、7z格式、cab格式等。In addition, the compression tool can not only help users save space, but also pack multiple files into a compressed data package, which is convenient for users to backup, transfer and share. At present, there are multiple compression tools in the prior art, such as: winzip compression tool, winrar compression tool, 7-zip compression tool, etc.; there are also multiple compression formats corresponding to the compression tools, such as: rar format, zip format, 7z format, cab format, etc.
上述的每个压缩工具和压缩格式都有各自特点。例如:zip格式的优点是使用广泛,压缩速度快,但是压缩率较小;rar格式通常比zip格式的压缩率要高,但是压缩速度较慢,并且winrar压缩工具对于文本、声音、以及图像在32位和64位英特尔(Intel)微处理器上能够执行程序压缩特殊优化算法,进一步提高了压缩率;7z格式通常比zip格式和rar格式压缩率都要高,同时压缩时间也比zip格式和rar格式都要长。Each of the compression tools and compression formats mentioned above has its own characteristics. For example: the advantage of the zip format is that it is widely used and the compression speed is fast, but the compression rate is small; the rar format is usually higher than the compression rate of the zip format, but the compression speed is slower, and the winrar compression tool is suitable for text, sound, and images. 32-bit and 64-bit Intel (Intel) microprocessors can execute special optimization algorithms for program compression, further improving the compression rate; 7z format is usually higher than zip format and rar format, and the compression time is also faster than zip format and rar format The rar format is long.
普通用户在使用压缩软件时,有时仅仅需要快速对多个文件进行打包,对压缩率并没有过多的要求;有时用户在考虑到传输的需要时,对压缩率会有比较高的要求,但对于压缩时间并没有过多的要求,图1是现有技术中使用压缩软件进行参数配置的示意图,如图1所示,用户在使用压缩软件时,对话框中包括压缩文件格式选项,提示用户选择相应的压缩算法,然而,关于上述压缩软件的专业知识对于普通用户来说并不了解,因此,普通用户不知道如何配置压缩算法才能获取合适的压缩文件。When ordinary users use compression software, sometimes they only need to pack multiple files quickly, and do not have too many requirements for the compression rate; sometimes users have relatively high requirements for the compression rate when considering the needs of transmission, but There are not too many requirements for the compression time. Figure 1 is a schematic diagram of parameter configuration using compression software in the prior art. As shown in Figure 1, when the user uses the compression software, the dialog box includes a compressed file format option to prompt the user Select the corresponding compression algorithm, however, the professional knowledge about the above-mentioned compression software is not known to ordinary users, therefore, ordinary users do not know how to configure the compression algorithm to obtain suitable compressed files.
发明内容Contents of the invention
本发明提供一种数据压缩方法及装置,以解决现有技术中用户由于缺乏专业知识不能够根据自己的需要选择合适的压缩算法的问题。The invention provides a data compression method and device to solve the problem in the prior art that users cannot choose a suitable compression algorithm according to their needs due to lack of professional knowledge.
本发明提供一种数据压缩方法,包括:调用压缩数据统计表,其中,压缩数据统计表中保存有数据格式、压缩配置、以及压缩效果信息之间的一一对应关系;根据待压缩数据的数据格式和用户选择的压缩模式从压缩数据统计表中获取相应的压缩效果信息,并根据压缩效果信息选择与压缩模式相对应的压缩配置,其中,压缩模式包括:压缩速度优先模式、以及压缩体积优先模式;根据压缩配置对待压缩数据进行压缩,获取压缩数据包。The present invention provides a data compression method, comprising: calling the compressed data statistical table, wherein the compressed data statistical table stores the one-to-one correspondence between the data format, compression configuration, and compression effect information; The format and the compression mode selected by the user obtain the corresponding compression effect information from the compression data statistics table, and select the compression configuration corresponding to the compression mode according to the compression effect information. The compression mode includes: compression speed priority mode, and compression volume priority mode Mode; compress the data to be compressed according to the compression configuration, and obtain the compressed data package.
优选地,压缩效果信息包括:压缩时间。Preferably, the compression effect information includes: compression time.
优选地,根据待压缩数据的数据格式和用户选择的压缩模式从压缩数据统计表中获取相应的压缩效果信息,并根据压缩效果信息选择与压缩模式相对应的压缩配置具体包括:在用户选择的压缩模式为压缩速度优先模式的情况下,获取待压缩数据的数据格式;从压缩数据统计表中获取数据格式在不同的压缩配置下的压缩时间;根据压缩时间获取压缩速度最快的压缩配置。Preferably, according to the data format of the data to be compressed and the compression mode selected by the user, the corresponding compression effect information is obtained from the compressed data statistics table, and the compression configuration corresponding to the compression mode is selected according to the compression effect information. When the compression mode is the compression speed priority mode, obtain the data format of the data to be compressed; obtain the compression time of the data format under different compression configurations from the compressed data statistics table; obtain the compression configuration with the fastest compression speed according to the compression time.
优选地,调用压缩数据统计表之前,上述方法还包括:根据待压缩数据的数据格式,对待压缩数据进行过滤,过滤出已被压缩过的数据,获取没有被压缩过的数据、Preferably, before invoking the compressed data statistics table, the above method further includes: filtering the data to be compressed according to the data format of the data to be compressed, filtering out the compressed data, obtaining uncompressed data,
优选地,根据压缩配置对待压缩数据进行压缩之后,方法还包括:将过滤出的已被压缩过的数据直接存储到压缩数据包中。Preferably, after compressing the data to be compressed according to the compression configuration, the method further includes: directly storing the filtered and compressed data into the compressed data package.
优选地,压缩效果信息包括:压缩数据包大小。Preferably, the compression effect information includes: compressed data package size.
优选地,根据待压缩数据的数据格式和用户选择的压缩模式从压缩数据统计表中获取相应的压缩效果信息,并根据压缩效果信息选择与压缩模式相对应的压缩配置具体包括:在用户选择的压缩模式为压缩体积优先模式的情况下,获取待压缩数据的数据格式;从压缩数据统计表中获取数据格式在不同的压缩配置下的压缩数据包大小;根据压缩数据包大小获取压缩数据包体积最小的压缩配置。Preferably, according to the data format of the data to be compressed and the compression mode selected by the user, the corresponding compression effect information is obtained from the compressed data statistics table, and the compression configuration corresponding to the compression mode is selected according to the compression effect information. When the compression mode is the compression volume priority mode, obtain the data format of the data to be compressed; obtain the compressed data package size of the data format under different compression configurations from the compressed data statistics table; obtain the compressed data package volume according to the compressed data package size Minimal compression configuration.
优选地,压缩配置包括:压缩算法、以及压缩参数。Preferably, the compression configuration includes: a compression algorithm and compression parameters.
优选地,待压缩数据包括一个或多个不同数据格式的数据;根据压缩配置对待压缩数据进行压缩,获取压缩数据包具体包括:根据各个不同数据格式对应的压缩配置分别对待压缩数据中各个不同数据格式的数据进行压缩,获取压缩数据包。Preferably, the data to be compressed includes data in one or more different data formats; compressing the data to be compressed according to the compression configuration, and obtaining the compressed data package specifically includes: treating each different data in the compressed data according to the compression configuration corresponding to each different data format The data in the format is compressed to obtain the compressed data package.
本发明还提供了一种数据压缩装置,包括:调用模块,用于调用压缩数据统计表,其中,压缩数据统计表中保存有数据格式、压缩配置、以及压缩效果信息之间的一一对应关系;选择模块,用于根据待压缩数据的数据格式和用户选择的压缩模式从压缩数据统计表中获取相应的压缩效果信息,并根据压缩效果信息选择与压缩模式相对应的压缩配置,其中,压缩模式包括:压缩速度优先模式、以及压缩体积优先模式;压缩模块,用于根据压缩配置对待压缩数据进行压缩,获取压缩数据包。The present invention also provides a data compression device, including: a call module for calling the compressed data statistical table, wherein the compressed data statistical table stores the one-to-one correspondence between data format, compression configuration, and compression effect information ; The selection module is used to obtain the corresponding compression effect information from the compressed data statistics table according to the data format of the data to be compressed and the compression mode selected by the user, and select the compression configuration corresponding to the compression mode according to the compression effect information, wherein the compression The modes include: compression speed priority mode, and compression volume priority mode; the compression module is used to compress the data to be compressed according to the compression configuration, and obtain the compressed data package.
优选地,压缩效果信息包括:压缩时间。Preferably, the compression effect information includes: compression time.
优选地,选择模块具体用于:在用户选择的压缩模式为压缩速度优先模式的情况下,获取待压缩数据的数据格式;从压缩数据统计表中获取数据格式在不同的压缩配置下的压缩时间;根据压缩时间获取压缩速度最快的压缩配置。Preferably, the selection module is specifically used to: obtain the data format of the data to be compressed when the compression mode selected by the user is the compression speed priority mode; obtain the compression time of the data format under different compression configurations from the compressed data statistical table ; Get the compression configuration with the fastest compression speed according to the compression time.
优选地,上述装置还包括:过滤模块,用于在调用模块调用压缩数据统计表之前,根据待压缩数据的数据格式,对待压缩数据进行过滤,过滤出已被压缩过的数据,获取没有被压缩过的数据;存储模块,用于在压缩模块根据压缩配置对待压缩数据进行压缩之后,将过滤出的已被压缩过的数据直接存储到压缩数据包中。Preferably, the above device further includes: a filtering module, used to filter the data to be compressed according to the data format of the data to be compressed before calling the statistical table of compressed data by the calling module, to filter out the data that has been compressed, and obtain the data that has not been compressed the compressed data; the storage module is configured to directly store the filtered compressed data into the compressed data package after the compression module compresses the data to be compressed according to the compression configuration.
优选地,压缩效果信息包括:压缩数据包大小。Preferably, the compression effect information includes: compressed data package size.
优选地,选择模块具体用于:在用户选择的压缩模式为压缩体积优先模式的情况下,获取待压缩数据的数据格式;从压缩数据统计表中获取数据格式在不同的压缩配置下的压缩数据包大小;根据压缩数据包大小获取压缩数据包体积最小的压缩配置。Preferably, the selection module is specifically used to: obtain the data format of the data to be compressed when the compression mode selected by the user is the compression volume priority mode; obtain the compressed data of the data format under different compression configurations from the compressed data statistical table Packet size; obtain the compression configuration with the smallest compressed data packet size according to the compressed data packet size.
优选地,压缩配置包括:压缩算法、以及压缩参数。Preferably, the compression configuration includes: a compression algorithm and compression parameters.
优选地,待压缩数据包括一个或多个不同数据格式的数据;压缩模块具体用于:根据各个不同数据格式对应的压缩配置分别对待压缩数据中各个不同数据格式的数据进行压缩,获取压缩数据包。Preferably, the data to be compressed includes data in one or more different data formats; the compression module is specifically used to: compress data in different data formats in the data to be compressed according to compression configurations corresponding to each different data format, and obtain compressed data packets .
本发明有益效果如下:The beneficial effects of the present invention are as follows:
通过在压缩文件时智能匹配与用户选择的压缩模式相对应的压缩配置对用户的数据进行压缩,解决了现有技术中用户由于缺乏专业知识不能够根据自己的需要选择合适的压缩算法的问题,本发明实施例的技术方案能够根据用户的需要,自动为用户匹配最合适的压缩配置,从而达到压缩速度最快或压缩体积最小的目的,提高了用户的使用感受。By intelligently matching the compression configuration corresponding to the compression mode selected by the user when compressing files, the user's data is compressed, which solves the problem in the prior art that users cannot choose the appropriate compression algorithm according to their needs due to lack of professional knowledge. The technical solution of the embodiment of the present invention can automatically match the most suitable compression configuration for the user according to the needs of the user, so as to achieve the purpose of the fastest compression speed or the smallest compression volume, and improve the user experience.
附图说明Description of drawings
图1是现有技术中使用压缩软件进行参数配置的示意图;Fig. 1 is a schematic diagram of parameter configuration using compression software in the prior art;
图2是本发明实施例的数据压缩方法的流程图;Fig. 2 is the flowchart of the data compression method of the embodiment of the present invention;
图3是本发明实施例的数据压缩装置的结构示意图。Fig. 3 is a schematic structural diagram of a data compression device according to an embodiment of the present invention.
具体实施方式Detailed ways
为了解决现有技术中用户由于缺乏专业知识不能够根据自己的需要选择合适的压缩算法的问题,本发明提供了一种数据压缩方法及装置,本发明实施例的技术方案能够根据用户选择的压缩模式,自动地为用户选择合适的压缩配置,从而达到用户的压缩目的。以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the problem in the prior art that users cannot choose a suitable compression algorithm according to their own needs due to lack of professional knowledge, the present invention provides a data compression method and device. The technical solution of the embodiment of the present invention can compress Mode, automatically select the appropriate compression configuration for the user, so as to achieve the user's compression purpose. The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
方法实施例method embodiment
根据本发明的实施例,提供了一种数据压缩方法,图2是本发明实施例的数据压缩方法的流程图,如图2所示,根据本发明实施例的数据压缩方法包括如下处理:According to an embodiment of the present invention, a data compression method is provided. FIG. 2 is a flow chart of the data compression method according to an embodiment of the present invention. As shown in FIG. 2 , the data compression method according to an embodiment of the present invention includes the following processing:
步骤201,调用压缩数据统计表,其中,压缩数据统计表中保存有数据格式、压缩配置、以及压缩效果信息之间的一一对应关系。Step 201, calling the compressed data statistical table, wherein the compressed data statistical table stores the one-to-one correspondence between data format, compression configuration, and compression effect information.
优选地,上述压缩配置包括:压缩算法、以及压缩参数;上述压缩效果信息包括:压缩时间、以及压缩数据包大小。在实际应用中,压缩算法包括:压缩数据包为rar格式的rar压缩算法、压缩数据包为zip格式的zip压缩算法、压缩数据包为7z格式的7z压缩算法、以及压缩数据包为cab格式的cab压缩算法等。压缩参数包括:是否加密、固实(Solid)压缩参数、以及压缩后是否删除源文件等参数。Preferably, the above-mentioned compression configuration includes: a compression algorithm, and compression parameters; the above-mentioned compression effect information includes: compression time, and compressed data package size. In practical applications, the compression algorithms include: the rar compression algorithm in which the compressed data package is in rar format, the zip compression algorithm in which the compressed data package is in zip format, the 7z compression algorithm in which the compressed data package is in 7z format, and the compression algorithm in which the compressed data package is in cab format cab compression algorithm, etc. Compression parameters include: whether to encrypt, solid (Solid) compression parameters, and parameters such as whether to delete the source file after compression.
在实际应用中,压缩数据统计表是在大量的实验中对各种不同的文件格式(即,上述数据格式)在不同的压缩算法下的表现进行统计而获取的,在压缩数据统计表中,包括不同的压缩配置在速度(速度的计算是在同一个的硬件环境下进行)和压缩率两方面的统计数据,为对文件进行压缩时智能匹配最合适的压缩配置提供依据,从而达到速度最快或压缩率最低(压缩后体积最小)的目的。需要说明的是,在本发明实施例中,压缩率的计算方法为:压缩率=压缩数据包大小/待压缩数据大小。根据本发明实施例的压缩数据统计表如表1所示:In practical applications, the compressed data statistical table is obtained by performing statistics on the performance of various file formats (that is, the above-mentioned data formats) under different compression algorithms in a large number of experiments. In the compressed data statistical table, Including the statistical data of different compression configurations in terms of speed (calculation of speed is carried out in the same hardware environment) and compression ratio, it provides a basis for intelligently matching the most suitable compression configuration when compressing files, so as to achieve the highest speed. The purpose of fast or lowest compression ratio (smallest volume after compression). It should be noted that, in the embodiment of the present invention, the calculation method of the compression rate is: compression rate=compressed data package size/to-be-compressed data size. The compressed data statistical table according to the embodiment of the present invention is as shown in Table 1:
表1Table 1
需要说明的是,表1中的各个数据仅为举例说明,并不是实际测得的实验数据。It should be noted that each data in Table 1 is only for illustration, and is not actually measured experimental data.
步骤202,根据待压缩数据的数据格式和用户选择的压缩模式从压缩数据统计表中获取相应的压缩效果信息,并根据压缩效果信息选择与压缩模式相对应的压缩配置,其中,压缩模式包括:压缩速度优先模式、以及压缩体积优先模式;Step 202, obtain corresponding compression effect information from the compressed data statistical table according to the data format of the data to be compressed and the compression mode selected by the user, and select a compression configuration corresponding to the compression mode according to the compression effect information, wherein the compression mode includes: Compression speed priority mode, and compression volume priority mode;
在用户选择的压缩模式为压缩速度优先模式的情况下,步骤202具体包括如下处理:In the case that the compression mode selected by the user is the compression speed priority mode, step 202 specifically includes the following processing:
1、获取待压缩数据的数据格式,例如,数据格式为.gif;1. Obtain the data format of the data to be compressed, for example, the data format is .gif;
2、从压缩数据统计表中获取该数据格式在不同的压缩配置下的压缩时间,例如,如表1所示,数据格式为.gif时,在rar压缩算法下,压缩时间为5s,在zip压缩算法下,压缩时间为2s;在实际应用中,压缩数据统计表中的统计数据都是以压缩前大小为1M的数据为基准进行的统计,但是,在进行数据压缩时,需要压缩的数据的大小是不定的,在实际应用中,可以仅以压缩数据统计表中统计的压缩时间为准进行比较,也可以按照体积比例计算得到当前待压缩数据的预计压缩完成时间,并以该预计压缩完成时间为基准进行比较。2. Obtain the compression time of the data format under different compression configurations from the compressed data statistics table. For example, as shown in Table 1, when the data format is .gif, the compression time is 5s under the rar compression algorithm, and the compression time is 5s under the zip Under the compression algorithm, the compression time is 2s; in practical applications, the statistical data in the compressed data statistics table is based on the data with a size of 1M before compression. However, when performing data compression, the compressed data The size of is variable. In practical applications, you can only use the compression time counted in the compressed data statistics table as the standard for comparison, or you can calculate the estimated compression completion time of the current data to be compressed according to the volume ratio, and use the estimated compression time Completion times are used as benchmarks for comparison.
3、根据压缩时间获取压缩速度最快的压缩配置,例如,数据格式为.gif时,从表1中获取的压缩时间分别为5s和2s,压缩速度最快的压缩配置为2s所对应的zip压缩算法。3. Obtain the compression configuration with the fastest compression speed according to the compression time. For example, when the data format is .gif, the compression times obtained from Table 1 are 5s and 2s respectively, and the compression configuration with the fastest compression speed is zip corresponding to 2s compression algorithm.
通过上述处理,可以帮助用户智能地选择最优的压缩配置从而实现压缩速度最快的目的。Through the above processing, the user can be helped to intelligently select the optimal compression configuration so as to achieve the fastest compression speed.
在本发明实施例中,压缩速度优先模式并不是完全不考虑文件压缩率,而是在以压缩方式为标准的前提下进行计算,在牺牲压缩率不是很大的前提下获得最快的速度。具体实现如下:In the embodiment of the present invention, the compression speed priority mode does not completely ignore the file compression rate, but calculates on the premise of taking the compression method as the standard, and obtains the fastest speed under the premise of not sacrificing too much compression rate. The specific implementation is as follows:
根据实验统计,对于大部分格式的待压缩数据,压缩速度最快的是zip压缩算法,而对于一部分已经被压缩的图片、音视频文件、文档等数据,再进行压缩时的压缩率非常高,当压缩率高到预先设置的阈值(例如,阈值为98%)时,在压缩速度优先模式下会智能跳过这些文件类型,即,不对上述文件进行压缩。According to experimental statistics, for most formats of data to be compressed, the zip compression algorithm has the fastest compression speed, and for some data such as pictures, audio and video files, and documents that have been compressed, the compression rate is very high when compressed. When the compression rate reaches a preset threshold (for example, the threshold is 98%), these file types will be skipped intelligently in the compression speed priority mode, that is, the above-mentioned files will not be compressed.
具体地,在用户选择的压缩模式为压缩速度优先模式的情况下,在调用压缩数据统计表之前,首先根据待压缩数据的数据格式,对待压缩数据进行过滤,过滤出已被压缩过的数据(例如,已经被压缩的图片、音视频文件、文档等数据),获取没有被压缩过的数据。随后,对获取的没有被压缩过的待压缩数据执行步骤201。例如:本发明实施例的技术方案自动地跳过rmvb格式的文件(或者跳过已压缩过的其他文件),对其他文件采用标准的zip压缩算法。Specifically, in the case that the compression mode selected by the user is the compression speed priority mode, before calling the compressed data statistical table, firstly, according to the data format of the data to be compressed, the data to be compressed is filtered to filter out the compressed data ( For example, data such as pictures, audio and video files, and documents that have been compressed) to obtain uncompressed data. Subsequently, step 201 is performed on the acquired uncompressed data to be compressed. For example: the technical scheme of the embodiment of the present invention automatically skips files in rmvb format (or skips other files that have been compressed), and uses a standard zip compression algorithm for other files.
在用户选择的压缩模式为压缩体积优先模式的情况下,步骤202具体包括如下处理:In the case that the compression mode selected by the user is the compression volume priority mode, step 202 specifically includes the following processing:
1、获取待压缩数据的数据格式;例如,数据格式为.gif;1. Obtain the data format of the data to be compressed; for example, the data format is .gif;
2、从压缩数据统计表中获取数据格式在不同的压缩配置下的压缩数据包大小;例如,如表1所示,数据格式为.gif时,在rar压缩算法下,压缩数据包大小为7M,在zip压缩算法下,压缩数据包大小为9M;在实际应用中,压缩数据统计表中的统计数据都是以压缩前大小为1M的数据为准进行的统计,但是,在进行数据压缩时,待压缩数据的大小是不定的,在实际应用中,可以仅以压缩数据统计表中统计的压缩数据包大小为基准进行比较,也可以按照体积比例计算得到当前待压缩数据的预计压缩数据包大小,并以该预计压缩数据包大小为基准进行比较。2. Obtain the compressed data packet size of the data format under different compression configurations from the compressed data statistics table; for example, as shown in Table 1, when the data format is .gif, under the rar compression algorithm, the compressed data packet size is 7M , under the zip compression algorithm, the size of the compressed data package is 9M; in practical applications, the statistical data in the compressed data statistics table are based on the data whose size is 1M before compression. However, when performing data compression , the size of the data to be compressed is uncertain. In practical applications, the compressed data package size in the compressed data statistics table can be used as a benchmark for comparison, or the estimated compressed data package of the current data to be compressed can be calculated according to the volume ratio. size, and compare against the estimated compressed packet size.
3、根据压缩数据包大小获取压缩数据包体积最小的压缩配置。例如,从表1中获取的压缩数据包大小分别为7M和9M,压缩数据包最小的压缩配置为7M所对应的rar压缩算法。3. Obtain the compression configuration with the smallest volume of the compressed data package according to the size of the compressed data package. For example, the sizes of the compressed data packages obtained from Table 1 are 7M and 9M respectively, and the smallest compression configuration of the compressed data packages is the rar compression algorithm corresponding to 7M.
需要说明的是,根据实验统计,固实压缩参数可以让压缩率更低,因此,压缩数据统计表中的实验统计的都是固实压缩的数据。并且对于大部分格式文件,压缩率最高的都是7z格式,只有个别图片、音视频文件、文档等文件类型,rar格式的压缩率更胜一筹。例如,本发明实施例的技术方案对于个别图片、音视频文件、文档等数据类型使用rar压缩算法,并配置固实压缩参数进行压缩,对其他文件采用7z压缩算法,并配置固实压缩参数进行压缩。It should be noted that according to the experimental statistics, solid compression parameters can make the compression rate lower. Therefore, the experimental statistics in the compressed data statistics table are all solid compressed data. And for most format files, the 7z format has the highest compression rate. Only for individual pictures, audio and video files, documents and other file types, the compression rate of the rar format is even better. For example, the technical solution of the embodiment of the present invention uses the rar compression algorithm for data types such as individual pictures, audio and video files, and documents, and configures solid compression parameters for compression, and uses the 7z compression algorithm for other files, and configures solid compression parameters for compression. compression.
通过上述处理,可以帮助用户智能地选择最优的压缩配置从而实现压缩数据包最小的目的。Through the above processing, it can help the user to intelligently select the optimal compression configuration so as to achieve the purpose of minimizing the compressed data package.
优选地,在本发明实施例中,用户还可以手动对压缩配置进行选择。Preferably, in the embodiment of the present invention, the user can also manually select the compression configuration.
步骤203,根据压缩配置对待压缩数据进行压缩,获取压缩数据包。Step 203, compress the data to be compressed according to the compression configuration, and obtain the compressed data package.
需要说明的是,如果在调用压缩数据统计表之前,对待压缩数据进行了过滤操作,那么,在对待压缩数据进行压缩之后,需要将过滤出的已被压缩过的数据直接存储到该压缩数据包中。It should be noted that if the data to be compressed is filtered before calling the compressed data statistics table, then after the data to be compressed is compressed, the filtered and compressed data needs to be directly stored in the compressed data package middle.
需要说明的是,待压缩数据可以包括一个或多个不同数据格式的数据,因此,在实际应用中,需要从压缩数据统计表中获取与待压缩数据中各个数据格式分别对应的压缩配置,在待压缩数据进行压缩时,需要根据各个不同数据格式对应的压缩配置对待压缩数据中各个不同数据格式的数据分别进行压缩,获取压缩数据包。It should be noted that the data to be compressed may include one or more data in different data formats. Therefore, in practical applications, it is necessary to obtain the compression configuration corresponding to each data format in the data to be compressed from the compressed data statistics table. When the data to be compressed is compressed, it is necessary to compress the data in different data formats in the data to be compressed according to the compression configurations corresponding to the different data formats to obtain compressed data packets.
综上所述,借助于本发明实施例的技术方案,通过在压缩文件时智能匹配与用户选择的压缩模式相对应的压缩配置对用户的数据进行压缩,解决了现有技术中用户由于缺乏专业知识不能够根据自己的需要选择合适的压缩算法的问题,本发明实施例的技术方案能够根据用户的需要,自动为用户匹配最合适的压缩配置,从而达到压缩速度最快或压缩体积最小的目的,提高了用户的使用感受。In summary, with the help of the technical solution of the embodiment of the present invention, the user's data is compressed by intelligently matching the compression configuration corresponding to the compression mode selected by the user when compressing the file, which solves the problem that the user lacks expertise in the prior art. Knowledge cannot choose the appropriate compression algorithm according to their own needs. The technical solution of the embodiment of the present invention can automatically match the most suitable compression configuration for the user according to the needs of the user, so as to achieve the purpose of the fastest compression speed or the smallest compression volume , improving the user experience.
装置实施例Device embodiment
根据本发明的实施例,提供了一种数据压缩装置,图3是本发明实施例的数据压缩装置的结构示意图,如图3所示,根据本发明实施例的数据压缩装置包括:调用模块30、选择模块32、以及压缩模块34,以下对本发明实施例的各个模块进行详细的说明。According to an embodiment of the present invention, a data compression device is provided. FIG. 3 is a schematic structural diagram of the data compression device according to an embodiment of the present invention. As shown in FIG. 3 , the data compression device according to an embodiment of the present invention includes: a calling module 30 , the selection module 32 , and the compression module 34 , each module of the embodiment of the present invention will be described in detail below.
调用模块30,用于调用压缩数据统计表,其中,压缩数据统计表中保存有数据格式、压缩配置、以及压缩效果信息之间的一一对应关系;The calling module 30 is used to call the compressed data statistical table, wherein the compressed data statistical table stores the one-to-one correspondence between data format, compression configuration, and compression effect information;
优选地,上述压缩配置包括:压缩算法、以及压缩参数;上述压缩效果信息包括:压缩时间、以及压缩数据包大小。在实际应用中,压缩算法包括:压缩数据包为rar格式的rar压缩算法、压缩数据包为zip格式的zip压缩算法、压缩数据包为7z格式的7z压缩算法、以及压缩数据包为cab格式的cab压缩算法等。压缩参数包括:是否加密、固实(Solid)压缩参数、以及压缩后是否删除源文件等参数。Preferably, the above-mentioned compression configuration includes: a compression algorithm, and compression parameters; the above-mentioned compression effect information includes: compression time, and compressed data package size. In practical applications, the compression algorithms include: the rar compression algorithm in which the compressed data package is in rar format, the zip compression algorithm in which the compressed data package is in zip format, the 7z compression algorithm in which the compressed data package is in 7z format, and the compression algorithm in which the compressed data package is in cab format cab compression algorithm, etc. Compression parameters include: whether to encrypt, solid (Solid) compression parameters, and parameters such as whether to delete the source file after compression.
在实际应用中,压缩数据统计表是在大量的实验中对各种不同的文件格式(即,上述数据格式)在不同的压缩算法下的表现进行统计而获取的,在压缩数据统计表中,包括不同的压缩配置在速度(速度的计算是在同一个的硬件环境下进行)和压缩率两方面的统计数据,为对文件进行压缩时智能匹配最合适的压缩配置提供依据,从而达到速度最快或压缩率最低(压缩后体积最小)的目的。需要说明的是,在本发明实施例中,压缩率的计算方法为:压缩率=压缩数据包大小/待压缩数据大小。根据本发明实施例的压缩数据统计表如表1所示:In practical applications, the compressed data statistical table is obtained by performing statistics on the performance of various file formats (that is, the above-mentioned data formats) under different compression algorithms in a large number of experiments. In the compressed data statistical table, Including the statistical data of different compression configurations in terms of speed (calculation of speed is carried out in the same hardware environment) and compression ratio, it provides a basis for intelligently matching the most suitable compression configuration when compressing files, so as to achieve the highest speed. The purpose of fast or lowest compression ratio (smallest volume after compression). It should be noted that, in the embodiment of the present invention, the calculation method of the compression rate is: compression rate=compressed data package size/to-be-compressed data size. The compressed data statistical table according to the embodiment of the present invention is as shown in Table 1:
表1Table 1
需要说明的是,表1中的各个数据仅为举例说明,并不是实际测得的实验数据。It should be noted that each data in Table 1 is only for illustration, and is not actually measured experimental data.
选择模块32,用于根据待压缩数据的数据格式和用户选择的压缩模式从压缩数据统计表中获取相应的压缩效果信息,并根据压缩效果信息选择与压缩模式相对应的压缩配置,其中,压缩模式包括:压缩速度优先模式、以及压缩体积优先模式;The selection module 32 is used to obtain corresponding compression effect information from the compressed data statistics table according to the data format of the data to be compressed and the compression mode selected by the user, and select a compression configuration corresponding to the compression mode according to the compression effect information, wherein the compression Modes include: compression speed priority mode, and compression volume priority mode;
在用户选择的压缩模式为压缩速度优先模式的情况下,选择模块32具体用于:In the case that the compression mode selected by the user is the compression speed priority mode, the selection module 32 is specifically used for:
1、获取待压缩数据的数据格式,例如,数据格式为.gif;1. Obtain the data format of the data to be compressed, for example, the data format is .gif;
2、从压缩数据统计表中获取该数据格式在不同的压缩配置下的压缩时间,例如,如表1所示,数据格式为.gif时,在rar压缩算法下,压缩时间为5s,在zip压缩算法下,压缩时间为2s;在实际应用中,压缩数据统计表中的统计数据都是以压缩前大小为1M的数据为基准进行的统计,但是,在进行数据压缩时,需要压缩的数据的大小是不定的,在实际应用中,可以仅以压缩数据统计表中统计的压缩时间为准进行比较,也可以按照体积比例计算得到当前待压缩数据的预计压缩完成时间,并以该预计压缩完成时间为基准进行比较。2. Obtain the compression time of the data format under different compression configurations from the compressed data statistics table. For example, as shown in Table 1, when the data format is .gif, the compression time is 5s under the rar compression algorithm, and the compression time is 5s under the zip Under the compression algorithm, the compression time is 2s; in practical applications, the statistical data in the compressed data statistics table is based on the data with a size of 1M before compression. However, when performing data compression, the compressed data The size of is variable. In practical applications, you can only use the compression time counted in the compressed data statistics table as the standard for comparison, or you can calculate the estimated compression completion time of the current data to be compressed according to the volume ratio, and use the estimated compression time Completion times are used as benchmarks for comparison.
3、根据压缩时间获取压缩速度最快的压缩配置,例如,数据格式为.gif时,从表1中获取的压缩时间分别为5s和2s,压缩速度最快的压缩配置为2s所对应的zip压缩算法。3. Obtain the compression configuration with the fastest compression speed according to the compression time. For example, when the data format is .gif, the compression times obtained from Table 1 are 5s and 2s respectively, and the compression configuration with the fastest compression speed is zip corresponding to 2s compression algorithm.
通过上述处理,可以帮助用户智能地选择最优的压缩配置从而实现压缩速度最快的目的。Through the above processing, the user can be helped to intelligently select the optimal compression configuration so as to achieve the fastest compression speed.
在本发明实施例中,压缩速度优先模式并不是完全不考虑文件压缩率,而是在以压缩方式为标准的前提下进行计算,在牺牲压缩率不是很大的前提下获得最快的速度。具体实现如下:In the embodiment of the present invention, the compression speed priority mode does not completely ignore the file compression rate, but calculates on the premise of taking the compression method as the standard, and obtains the fastest speed under the premise of not sacrificing too much compression rate. The specific implementation is as follows:
根据实验统计,对于大部分格式的待压缩数据,压缩速度最快的是zip压缩算法,而对于一部分已经被压缩的图片、音视频文件、文档等数据,再进行压缩时的压缩率非常高,当压缩率高到预先设置的阈值(例如,阈值为98%)时,在压缩速度优先模式下会智能跳过这些文件类型,即,不对上述文件进行压缩。According to experimental statistics, for most formats of data to be compressed, the zip compression algorithm has the fastest compression speed, and for some data such as pictures, audio and video files, and documents that have been compressed, the compression rate is very high when compressed. When the compression rate reaches a preset threshold (for example, the threshold is 98%), these file types will be skipped intelligently in the compression speed priority mode, that is, the above-mentioned files will not be compressed.
优选地,根据本发明实施例的装置还包括:过滤模块、以及存储模块,具体地:Preferably, the device according to the embodiment of the present invention further includes: a filtering module, and a storage module, specifically:
过滤模块,用于在用户选择的压缩模式为压缩速度优先模式的情况下,在调用模块30调用压缩数据统计表之前,首先根据待压缩数据的数据格式,对待压缩数据进行过滤,过滤出已被压缩过的数据(例如,已经被压缩的图片、音视频文件、文档等数据),获取没有被压缩过的数据。随后,对获取的没有被压缩过的待压缩数据执行调用模块30的处理步骤。例如:过滤模块自动地跳过rmvb格式的文件(或者跳过已压缩过的其他文件),对其他文件采用标准的zip压缩算法。The filtering module is used to filter the data to be compressed according to the data format of the data to be compressed before the calling module 30 calls the compressed data statistical table when the compression mode selected by the user is the compression speed priority mode, and filters out the data that has been compressed. Compressed data (for example, data such as pictures, audio and video files, documents, etc. that have been compressed), obtain uncompressed data. Subsequently, the processing steps of calling the module 30 are executed on the acquired uncompressed data to be compressed. For example: the filter module automatically skips files in rmvb format (or skips other files that have been compressed), and uses the standard zip compression algorithm for other files.
存储模块,用于在压缩模块34对待压缩数据进行压缩之后,将过滤出的已被压缩过的数据直接存储到压缩数据包中。The storage module is configured to directly store the filtered and compressed data into the compressed data package after the compression module 34 compresses the data to be compressed.
在用户选择的压缩模式为压缩体积优先模式的情况下,选择模块32具体用于:In the case that the compression mode selected by the user is the compression volume priority mode, the selection module 32 is specifically used for:
1、获取待压缩数据的数据格式;例如,数据格式为.gif;1. Obtain the data format of the data to be compressed; for example, the data format is .gif;
2、从压缩数据统计表中获取数据格式在不同的压缩配置下的压缩数据包大小;例如,如表1所示,数据格式为.gif时,在rar压缩算法下,压缩数据包大小为7M,在zip压缩算法下,压缩数据包大小为9M;在实际应用中,压缩数据统计表中的统计数据都是以压缩前大小为1M的数据为准进行的统计,但是,在进行数据压缩时,待压缩数据的大小是不定的,在实际应用中,可以仅以压缩数据统计表中统计的压缩数据包大小为基准进行比较,也可以按照体积比例计算得到当前待压缩数据的预计压缩数据包大小,并以该预计压缩数据包大小为基准进行比较。2. Obtain the compressed data packet size of the data format under different compression configurations from the compressed data statistics table; for example, as shown in Table 1, when the data format is .gif, under the rar compression algorithm, the compressed data packet size is 7M , under the zip compression algorithm, the size of the compressed data package is 9M; in practical applications, the statistical data in the compressed data statistics table are based on the data whose size is 1M before compression. However, when performing data compression , the size of the data to be compressed is uncertain. In practical applications, the compressed data package size in the compressed data statistics table can be used as a benchmark for comparison, or the estimated compressed data package of the current data to be compressed can be calculated according to the volume ratio. size, and compare against the estimated compressed packet size.
3、根据压缩数据包大小获取压缩数据包体积最小的压缩配置。例如,从表1中获取的压缩数据包大小分别为7M和9M,压缩数据包最小的压缩配置为7M所对应的rar压缩算法。3. Obtain the compression configuration with the smallest volume of the compressed data package according to the size of the compressed data package. For example, the sizes of the compressed data packages obtained from Table 1 are 7M and 9M respectively, and the smallest compression configuration of the compressed data packages is the rar compression algorithm corresponding to 7M.
需要说明的是,根据实验统计,固实压缩参数可以让压缩率更低,因此,压缩数据统计表中的实验统计的都是固实压缩的数据。并且对于大部分格式文件,压缩率最高的都是7z格式,只有个别图片、音视频文件、文档等文件类型,rar格式的压缩率更胜一筹。例如,本发明实施例的技术方案对于个别图片、音视频文件、文档等数据类型使用rar压缩算法,并配置固实压缩参数进行压缩,对其他文件采用7z压缩算法,并配置固实压缩参数进行压缩。It should be noted that according to the experimental statistics, solid compression parameters can make the compression rate lower. Therefore, the experimental statistics in the compressed data statistics table are all solid compressed data. And for most format files, the 7z format has the highest compression rate. Only for individual pictures, audio and video files, documents and other file types, the compression rate of the rar format is even better. For example, the technical solution of the embodiment of the present invention uses the rar compression algorithm for data types such as individual pictures, audio and video files, and documents, and configures solid compression parameters for compression, and uses the 7z compression algorithm for other files, and configures solid compression parameters for compression. compression.
通过上述处理,可以帮助用户智能地选择最优的压缩配置从而实现压缩数据包最小的目的。Through the above processing, it can help the user to intelligently select the optimal compression configuration so as to achieve the purpose of minimizing the compressed data package.
优选地,在本发明实施例中,还可以包括自定义模块,用于根据用户的手动设置确定压缩配置。Preferably, in the embodiment of the present invention, a custom module may also be included, configured to determine the compression configuration according to the user's manual settings.
压缩模块34,用于根据压缩配置对数据进行压缩,获取压缩数据包。The compression module 34 is configured to compress the data according to the compression configuration, and obtain the compressed data package.
需要说明的是,待压缩数据可以包括一个或多个不同数据格式的数据,因此,在实际应用中,选择模块32需要从压缩数据统计表中获取与待压缩数据中各个数据格式分别对应的压缩配置,在待压缩数据进行压缩时,压缩模块34需要根据各个不同数据格式对应的压缩配置对待压缩数据中各个不同数据格式的数据分别进行压缩,获取压缩数据包。It should be noted that the data to be compressed may include data in one or more different data formats. Therefore, in practical applications, the selection module 32 needs to obtain the compression data corresponding to each data format in the data to be compressed from the statistical table of compressed data. Configuration, when the data to be compressed is compressed, the compression module 34 needs to compress data in different data formats in the data to be compressed according to the compression configuration corresponding to each different data format, and obtain compressed data packets.
综上所述,借助于本发明实施例的技术方案,通过在压缩文件时智能匹配与用户选择的压缩模式相对应的压缩配置对用户的数据进行压缩,解决了现有技术中用户由于缺乏专业知识不能够根据自己的需要选择合适的压缩算法的问题,本发明实施例的技术方案能够根据用户的需要,自动为用户匹配最合适的压缩配置,从而达到压缩速度最快或压缩体积最小的目的,提高了用户的使用感受。In summary, with the help of the technical solution of the embodiment of the present invention, the user's data is compressed by intelligently matching the compression configuration corresponding to the compression mode selected by the user when compressing the file, which solves the problem that the user lacks expertise in the prior art. Knowledge cannot choose the appropriate compression algorithm according to their own needs. The technical solution of the embodiment of the present invention can automatically match the most suitable compression configuration for the user according to the needs of the user, so as to achieve the purpose of the fastest compression speed or the smallest compression volume , improving the user experience.
尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。Although preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and therefore, the scope of the present invention should not be limited to the above-described embodiments.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510219225.0ACN104796155B (en) | 2012-05-30 | 2012-05-30 | Data compression method and apparatus |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510219225.0ACN104796155B (en) | 2012-05-30 | 2012-05-30 | Data compression method and apparatus |
| CN201210174964.9ACN102684705B (en) | 2012-05-30 | 2012-05-30 | Data compression method and device |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210174964.9ADivisionCN102684705B (en) | 2012-05-30 | 2012-05-30 | Data compression method and device |
| Publication Number | Publication Date |
|---|---|
| CN104796155Atrue CN104796155A (en) | 2015-07-22 |
| CN104796155B CN104796155B (en) | 2019-03-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510219225.0AActiveCN104796155B (en) | 2012-05-30 | 2012-05-30 | Data compression method and apparatus |
| CN201210174964.9AActiveCN102684705B (en) | 2012-05-30 | 2012-05-30 | Data compression method and device |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210174964.9AActiveCN102684705B (en) | 2012-05-30 | 2012-05-30 | Data compression method and device |
| Country | Link |
|---|---|
| CN (2) | CN104796155B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106027615A (en)* | 2016-05-10 | 2016-10-12 | 乐视控股(北京)有限公司 | Object storage method and system |
| CN106936441A (en)* | 2017-02-27 | 2017-07-07 | 深圳国泰安教育技术股份有限公司 | A kind of data compression method and device |
| CN107341113A (en)* | 2016-04-29 | 2017-11-10 | 龙芯中科技术有限公司 | Cache compression method and device |
| CN112311720A (en)* | 2019-07-23 | 2021-02-02 | 腾讯科技(深圳)有限公司 | Data transmission method and device |
| CN113850055A (en)* | 2021-09-29 | 2021-12-28 | 北京有竹居网络技术有限公司 | Data processing method, equipment, storage medium and product |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9355613B2 (en)* | 2012-10-09 | 2016-05-31 | Mediatek Inc. | Data processing apparatus for transmitting/receiving compression-related indication information via display interface and related data processing method |
| CN104067523B (en) | 2013-01-17 | 2018-03-09 | 华为技术有限公司 | A data packet processing method and device |
| CN104427341B (en)* | 2013-08-28 | 2019-01-15 | 腾讯科技(深圳)有限公司 | A kind of image processing method, device and terminal |
| CN105718478A (en)* | 2014-12-03 | 2016-06-29 | 北京奇虎科技有限公司 | Data storage method and device |
| CN105760183A (en)* | 2014-12-15 | 2016-07-13 | 北京奇虎科技有限公司 | File processing method, device and communication system |
| US10313256B2 (en)* | 2015-05-21 | 2019-06-04 | Intel Corporation | Apparatus and methods for adaptive data compression |
| CN107124559B (en)* | 2017-06-19 | 2019-08-13 | 成都优孚达信息技术有限公司 | A kind of communication data compression method |
| CN108427704B (en)* | 2018-01-05 | 2022-08-09 | 平安科技(深圳)有限公司 | Compression tool calling method and device and storage medium |
| CN108492339B (en)* | 2018-03-28 | 2021-06-01 | 腾讯科技(深圳)有限公司 | Method and device for acquiring resource compression packet, electronic equipment and storage medium |
| CN110941596A (en)* | 2018-09-21 | 2020-03-31 | 北京奇虎科技有限公司 | Disk space release method and device, computing equipment and computer storage medium |
| CN111526151A (en)* | 2020-04-28 | 2020-08-11 | 网易(杭州)网络有限公司 | Data transmission method and device, electronic equipment and storage medium |
| CN111817722B (en)* | 2020-07-09 | 2025-07-11 | 北京奥星贝斯科技有限公司 | Data compression method, device and computer equipment |
| CN113038139B (en)* | 2021-03-25 | 2023-05-12 | 贵州电网有限责任公司 | Image compression method applied to machine inspection picture uploading |
| CN114265821A (en)* | 2021-12-28 | 2022-04-01 | 深圳市云语科技有限公司 | File compression algorithm selection method based on capability negotiation |
| CN116561082A (en)* | 2023-04-07 | 2023-08-08 | 苏州浪潮智能科技有限公司 | Data compression method, compression monitor, electronic device, and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5467087A (en)* | 1992-12-18 | 1995-11-14 | Apple Computer, Inc. | High speed lossless data compression system |
| KR20070009312A (en)* | 2005-07-15 | 2007-01-18 | 엘지전자 주식회사 | Data Compression Apparatus and Method |
| US20070098082A1 (en)* | 2003-06-19 | 2007-05-03 | Tsuyoshi Maeda | Transmitting apparatus, image processing system, image processing method, program, and storage medium |
| CN101355364A (en)* | 2008-09-08 | 2009-01-28 | 北大方正集团有限公司 | File compression method and device, file decompression method and device |
| CN102255692A (en)* | 2011-07-14 | 2011-11-23 | 电信科学技术研究院 | Data compression method and equipment |
| CN102437894A (en)* | 2011-11-04 | 2012-05-02 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for compressing information to be sent |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1584875B (en)* | 2004-06-01 | 2011-08-10 | 北京九州软件有限公司 | Ergodic compressing and decompressing method for batched computer document |
| US7420992B1 (en)* | 2005-03-17 | 2008-09-02 | Packeteer, Inc. | Adaptive network traffic compression mechanism including dynamic selection of compression algorithms |
| CN1318974C (en)* | 2005-08-05 | 2007-05-30 | 北京九州汇宝软件有限公司 | Method for compression and search of database backup data |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5467087A (en)* | 1992-12-18 | 1995-11-14 | Apple Computer, Inc. | High speed lossless data compression system |
| US20070098082A1 (en)* | 2003-06-19 | 2007-05-03 | Tsuyoshi Maeda | Transmitting apparatus, image processing system, image processing method, program, and storage medium |
| KR20070009312A (en)* | 2005-07-15 | 2007-01-18 | 엘지전자 주식회사 | Data Compression Apparatus and Method |
| CN101355364A (en)* | 2008-09-08 | 2009-01-28 | 北大方正集团有限公司 | File compression method and device, file decompression method and device |
| CN102255692A (en)* | 2011-07-14 | 2011-11-23 | 电信科学技术研究院 | Data compression method and equipment |
| CN102437894A (en)* | 2011-11-04 | 2012-05-02 | 百度在线网络技术(北京)有限公司 | Method, device and equipment for compressing information to be sent |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107341113A (en)* | 2016-04-29 | 2017-11-10 | 龙芯中科技术有限公司 | Cache compression method and device |
| CN107341113B (en)* | 2016-04-29 | 2020-05-26 | 龙芯中科技术有限公司 | Cache compression method and device |
| CN106027615A (en)* | 2016-05-10 | 2016-10-12 | 乐视控股(北京)有限公司 | Object storage method and system |
| CN106936441A (en)* | 2017-02-27 | 2017-07-07 | 深圳国泰安教育技术股份有限公司 | A kind of data compression method and device |
| CN106936441B (en)* | 2017-02-27 | 2020-08-21 | 深圳国泰安教育技术有限公司 | A data compression method and device |
| CN112311720A (en)* | 2019-07-23 | 2021-02-02 | 腾讯科技(深圳)有限公司 | Data transmission method and device |
| CN112311720B (en)* | 2019-07-23 | 2022-10-14 | 腾讯科技(深圳)有限公司 | Data transmission method and device |
| CN113850055A (en)* | 2021-09-29 | 2021-12-28 | 北京有竹居网络技术有限公司 | Data processing method, equipment, storage medium and product |
| CN113850055B (en)* | 2021-09-29 | 2024-11-15 | 北京有竹居网络技术有限公司 | Data processing method, device, storage medium and product |
| Publication number | Publication date |
|---|---|
| CN102684705B (en) | 2015-06-03 |
| CN104796155B (en) | 2019-03-01 |
| CN102684705A (en) | 2012-09-19 |
| Publication | Publication Date | Title |
|---|---|---|
| CN102684705B (en) | Data compression method and device | |
| CN102761339B (en) | Data compression method and device | |
| CN102761540B (en) | Data compression method, device, system and server | |
| US9369507B2 (en) | Systems and methods for reliable backup of media | |
| US10108626B2 (en) | Proactively clearing digital storage | |
| US10459642B2 (en) | Method and device for data replication | |
| CN101841337B (en) | Data compression and decompression processing method and mobile storage device | |
| CN104427341B (en) | A kind of image processing method, device and terminal | |
| CN103631873B (en) | A kind of data compression method and storage system | |
| CN101799738B (en) | Method and device for dynamically adjusting compression rate of browser | |
| CN117097717B (en) | File transmission optimization method, system and electronic device for simulation results | |
| CN105610899A (en) | Text file parallel uploading method and device | |
| CN110288666B (en) | Data compression method and device | |
| WO2019134244A1 (en) | Method for calling compression tool, device, and storage medium | |
| CN110515770A (en) | A data cloud backup method, device, equipment and storage medium | |
| CN103049561B (en) | A kind of data compression method, storage engines and storage system | |
| CN102999626A (en) | Data compression/decompression device, as well as method and system thereof | |
| JP2004214738A5 (en) | ||
| CN107783990B (en) | Data compression method and terminal | |
| CN107679197A (en) | A kind of optimization method and device of file truncation | |
| US9059729B1 (en) | Statistical compressibility determination system and method | |
| CN103034702B (en) | Device, method and system for data compression/decompression contracting | |
| CN104954280B (en) | A kind of data message processing method and device | |
| WO2018082188A1 (en) | Method and system for panoramic image file processing | |
| CN106844766A (en) | The method and device of a kind of compressed file decompression |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| EXSB | Decision made by sipo to initiate substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right | Effective date of registration:20220721 Address after:Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after:BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before:100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before:BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before:Qizhi software (Beijing) Co.,Ltd. |