CN113076293B - Data expansion method for intelligent terminal - Google Patents

Data expansion method for intelligent terminal Download PDF

Info

Publication number
CN113076293B
CN113076293B CN202110405160.4A CN202110405160A CN113076293B CN 113076293 B CN113076293 B CN 113076293B CN 202110405160 A CN202110405160 A CN 202110405160A CN 113076293 B CN113076293 B CN 113076293B
Authority
CN
China
Prior art keywords
data
capacity expansion
expansion program
compression
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110405160.4A
Other languages
Chinese (zh)
Other versions
CN113076293A (en
Inventor
李明
王军伟
栗晓
欧阳文联
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Jiawan Technology Co ltd
Li Ming
Original Assignee
Hunan Jiawan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Jiawan Technology Co ltd filed Critical Hunan Jiawan Technology Co ltd
Priority to CN202110405160.4A priority Critical patent/CN113076293B/en
Publication of CN113076293A publication Critical patent/CN113076293A/en
Application granted granted Critical
Publication of CN113076293B publication Critical patent/CN113076293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of data compression, in particular to a data expansion method applied to an intelligent terminal; the method is realized by a capacity expansion program, the intelligent terminal is internally provided with the capacity expansion program, the capacity expansion program is internally provided with a plurality of data compression algorithms and compression configuration parameters aiming at different data formats, the capacity expansion program judges the source data formats and the attribute parameters stored in the intelligent terminal, and the capacity expansion program automatically selects the data compression algorithm and the compression configuration parameters corresponding to the source data formats and the attribute parameter information to perform data compression processing on the source data.

Description

Data expansion method for intelligent terminal
Technical Field
The invention relates to the technical field of data compression, in particular to a data expansion method applied to an intelligent terminal.
Background
With the increasing popularity of smart phones and smart terminal products such as smart televisions, intelligent monitoring cameras and other devices in life, various data types and data contents which need to be stored on the smart terminals are more and more, especially various audio and video image files which are acquired through sensors on the smart phones occupy most of storage space of the smart phones, consumers need to delete various files in the smart phones manually at intervals, which is quite troublesome and faces the problem of choosing which files need to be deleted; the existing files of many types can be reduced by multiple times by utilizing various compression technologies without affecting the characteristics of a source file, the source data file is deleted after the file data is compressed, and only the compressed file is saved, so that the storage space of the mobile phone is enlarged; but for most users, the same problems of manually selecting which compression technique and compression configuration parameters to use for different types of files are faced, and these settings are too professional and cumbersome, which creates significant trouble for the user.
In view of this, how to solve the above-mentioned drawbacks has become a technical problem to be solved by the person skilled in the art.
Disclosure of Invention
Based on the foregoing, it is necessary to provide a data expansion method capable of intelligently selecting a compression algorithm and a compression configuration parameter to automatically compress different types of data, and more particularly, to a data expansion program which operates on an intelligent terminal to automatically select different compression algorithms and compression configuration parameters for different types of data and then compress the data, so as to realize expansion of a storage space of the intelligent terminal.
The method is realized by a capacity expansion program, the intelligent terminal is internally provided with the capacity expansion program, the capacity expansion program is internally provided with a plurality of data compression algorithms and compression configuration parameters aiming at different data formats, the capacity expansion program judges the source data formats and the attribute parameters stored in the intelligent terminal, the capacity expansion program automatically selects the data compression algorithm and the compression configuration parameters corresponding to the source data formats and the attribute parameter information to perform data compression processing on the source data, and the method comprises the following steps:
a) B, if the capacity expansion program is started on the intelligent terminal, entering a step b, otherwise, waiting until the capacity expansion program is started;
b) C, the capacity expansion program obtains the source data format and attribute parameter information thereof stored in the intelligent terminal, and the step c is entered;
c) D, after the capacity expansion program determines the source data format, automatically selecting a corresponding data compression algorithm suitable for the source data format from compression algorithms built in the program, and entering a step d;
d) Automatically selecting preset compression configuration parameter values of the corresponding compression algorithm as compression configuration parameters matched by the compression algorithm according to attribute parameter information of the source data by the capacity expansion program, carrying out data compression on the source data by using the compression algorithm, and entering the step e;
e) After the capacity expansion program finishes compressing the corresponding source data, automatically storing the compressed data into a data storage space of the intelligent terminal, and entering the step f;
f) The capacity expansion program deletes the source data in the intelligent terminal memory; or copying and storing the source data to the appointed network space, deleting the source data stored in the intelligent terminal, and returning to the step b to repeatedly execute the compression process.
The capacity expansion program is internally provided with a plurality of data compression algorithms aiming at different data formats, and the plurality of compression algorithm types comprise a plurality of single compression algorithms aiming at one data format; a plurality of different data compression algorithms for use with a data format; multiple single data compression algorithms are used for multiple data formats.
The capacity expansion program is provided with a filtering rule, and data compression processing is not carried out on the source data which does not accord with the filtering rule according to the acquired format and attribute parameter information of the source data; the capacity expansion program sets a filtering rule according to parameters such as a source data file format, a source data file size, source data generation and storage time, source data attributes, whether compressed data are obtained and the like.
The capacity expansion program runs in the background of the intelligent terminal, judges the CPU utilization rate of the intelligent terminal, starts data compression when the CPU utilization rate of the mobile phone is lower than a program preset value, and interrupts the compression process when the CPU utilization rate of the mobile phone is higher than the program preset value.
After the expansion program compresses the source data to generate compressed data, establishing a hash value and related attribute parameter information of log file compressed data; before executing the data compression action, the capacity expansion program firstly reads the log file to judge whether the data file to be compressed is the data file already compressed by the capacity expansion program, and if the data file is already compressed by the capacity expansion program, the data file is not compressed again.
The program types of the capacity expansion program comprise one or a combination of a plurality of program types of APP, SDK, applet, firmware program and system application embedded module which are installed in the intelligent terminal.
The intelligent terminal comprises a CPU and a memory, wherein the memory stores the code set of the capacity expansion program, and the code set of the capacity expansion program stored in the memory is loaded and executed by the CPU to realize the data capacity expansion method as set forth in any one of claims 1 to 5.
Specifically, the intelligent terminal is a smart phone with an operating system, a tablet computer, a notebook computer, an intelligent display device, an intelligent monitoring device and intelligent hardware.
Drawings
FIG. 1 schematically illustrates a system framework of an exemplary data expansion method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating interaction between a smart terminal and capacity expansion software according to the present invention;
Detailed Description
The objects and functions of the present invention and methods for achieving these objects and functions will be elucidated by referring to exemplary embodiments. However, the present invention is not limited to the exemplary embodiments disclosed below; this may be implemented in different forms. The essence of the description is merely to aid one skilled in the relevant art in comprehensively understanding the specific details of the invention.
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the drawings, the same reference numerals represent the same or similar components, or the same or similar steps.
FIG. 1 schematically illustrates a system framework diagram of an exemplary data expansion method according to one embodiment of the invention; referring to fig. 1, the method includes:
step 101: the capacity expansion program judges whether the program process of the capacity expansion program is started to run in the operating system of the intelligent terminal, and if the program process of the capacity expansion program is started, the step 103 is continuously executed; if the capacity expansion program has not been started in the operating system background, the program start is waited for according to step 102.
Step 103: judging the occupation condition of the CPU of the intelligent terminal after the capacity expansion program is started, if the occupation condition of the CPU is larger than a preset proportion value in the capacity expansion program, the CPU is in a busy state, and at the moment, the capacity expansion program waits for the CPU to enter an idle state according to the step 104 and then continues to execute the step 105; it should be noted that, judging the occupation condition of the CPU can also be judged by other modes, for example, when the intelligent terminal is charged and the mobile phone is in a black screen state, the mobile phone can be judged to be in an idle state at this time, and the occupation condition of the CPU is low; or in a specific time period, such as a time period from night to the next morning, can be used as a reference for judging the cpu occupancy.
Step 105: after the capacity expansion program is run, reading data types and attribute parameter information of related data from various source data stored in the intelligent terminal, wherein the data types are information for judging whether the source data are audio and video image data, executable files and the like, and the attribute parameter information is a characteristic value of the source data, such as information for resolution, frame rate and the like of video files; the expansion program will also hash the source data to perform a hash check on the source data, and proceed to step 106.
Step 106: the capacity expansion program reads log files of the program, and the log files record hash values, file types, attribute parameters and other information of various source data and compressed data stored in the intelligent terminal memory; the capacity expansion program compares the read related information with the source data to be compressed, judges whether to compress the source data, and if the source data is already compressed data or existing data, the capacity expansion program ignores the compression of the data according to the step 107; if the source data has not been compressed, step 108 is performed.
Step 108: the capacity expansion program further judges whether the source data need to be compressed according to the filtering rules in the capacity expansion program; the conditions of the filtering rule comprise setting the conditions of source data file format, source data file size, source data generation and storage time, source data attribute, whether the source data is data compressed by other compression programs and the like; the filtering rules may be one or more rules that are executed according to a specified logical relationship with each other, for example: if the rule sets that the video files meeting the conditions that the resolution is lower than 480p, the file generation time is half a year ago, the file size is lower than 2MB, and the file format is not in mp4 format are not compressed, executing step 109 when the capacity expansion program meets the video files meeting the conditions at the same time, and defaulting to not compress the source data files; if the source data does not satisfy the above conditions at the same time, step 110 is performed. It should be noted that, the setting of the filtering rule is only one implementation mode provided in the present application, but not the only limitation, and the setting of the filtering rule may be different according to the actual application needs.
Step 110: the expansion program selects a compression algorithm corresponding to the type of file according to the file type parameter of the source data obtained in step 105, and it should be noted that, among the compression algorithms built in the expansion program, there may be more than one data compression algorithm for the type of file, and the expansion program proceeds to step 111 after determining and selecting a compression algorithm suitable for the source data in combination with specific attribute parameter information of the source data.
Step 111: after the capacity expansion program determines a suitable data compression algorithm, further obtaining information such as a frame rate, a resolution and the like of the video file according to the specific attribute parameter information of the source data obtained in the step 105, which is also exemplified by the video file; the capacity expansion program automatically and intelligently judges and selects the proper configuration parameters of the compression algorithm according to the preset compression algorithm configuration parameters under the corresponding conditions or by using an artificial intelligent algorithm according to the specific parameter information of the source data, so that the specific configuration parameters of the compression algorithm are set, and the step 112 is entered.
Step 112: after the corresponding compression algorithm and configuration parameters suitable for the source data are selected in step 110 and step 111, the capacity expansion program performs a data compression work on the source data, generates compressed data for the source data, and proceeds to step 113.
Step 113: the capacity expansion program stores the compressed data file into a memory of the intelligent terminal, and deletes the source data file at the same time; or executing step 114, firstly, the dilatation program transfers the source data to a pre-designated network space or other storage area, and then deletes the source file after completing the data transfer work; therefore, the memory space is further saved, the effect of expanding the storage space of the memory is realized, and the data type of the compressed data file is not required to be completely consistent with the data type of the source data, and the file name of the compressed data file can be consistent with the source file.
Step 115: the capacity expansion program performs hash operation on the generated compressed data file to generate a hash value; storing the hash value of the source data, the data value after the source data is compressed, the file name, the file attribute parameter information and other data into a log file; and then proceeds to step 105 to continue the compression of the other source data files.
It should be noted that, when the capacity expansion program specifically runs, the steps 101 to 115 may change the execution sequence of the steps or add/delete specific steps according to specific situations, so long as steps 101, 105, 108, 110, 112 remain; the automatic compression work can be completely realized; the program types of the capacity expansion program comprise one or a combination of a plurality of program types of APP, SDK, applet, firmware program and system application embedded module which are installed in the intelligent terminal.
As shown in fig. 2, which is an interactive schematic diagram of the intelligent terminal and the capacity expansion software, the intelligent terminal includes a cpu201 and a memory 202, the memory 202 stores a capacity expansion program 203, and after the cpu201 retrieves the capacity expansion program 203 from the memory 202, the cpu starts to perform data compression on the source data in the memory according to the step settings in fig. 1.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (6)

1. The method is characterized in that the method is realized by a capacity expansion program, the capacity expansion program is internally provided with a plurality of data compression algorithms and compression configuration parameters aiming at different data formats, the capacity expansion program judges the source data formats and attribute parameters stored in the intelligent terminal, and the capacity expansion program automatically selects the data compression algorithm and the compression configuration parameters corresponding to the source data formats and attribute parameter information to perform data compression processing on the source data, and the method comprises the following steps: a) B, if the capacity expansion program is started on the intelligent terminal, entering a step b, otherwise, waiting until the capacity expansion program is started;
b) C, the capacity expansion program obtains the source data format and attribute parameter information thereof stored in the intelligent terminal, and the step c is entered;
c) D, after the capacity expansion program determines the source data format and the attribute parameter information, automatically selecting a corresponding data compression algorithm suitable for the source data format from compression algorithms built in the program, and entering a step d;
d) Automatically selecting a preset compression configuration parameter value of the corresponding compression algorithm as a compression configuration parameter matched with the selected compression algorithm according to attribute parameter information of the source data by the capacity expansion program, carrying out data compression on the source data by using the compression algorithm, and entering the step e;
e) After the capacity expansion program finishes compressing the corresponding source data, automatically storing the compressed data into a data storage space of the intelligent terminal, and entering the step f;
f) The capacity expansion program deletes the source data in the intelligent terminal memory; or copying and storing the source data to a designated network space, deleting the source data stored in the intelligent terminal, and returning to the step b to repeatedly execute the compression process;
the capacity expansion program is provided with a filtering rule, and data compression processing is not performed on the source data which does not accord with the filtering rule according to the acquired format and attribute parameter information of the source data;
the capacity expansion program sets a filtering rule according to parameters such as a source data file format, a source data file size, source data generation and storage time, source data attributes, whether compressed data are obtained or not and the like;
after the expansion program compresses the source data to generate compressed data, establishing a hash value and related attribute parameter information of log file compressed data; before executing the data compression action, the capacity expansion program firstly reads the log file to judge whether the data file to be compressed is the data file already compressed by the capacity expansion program, and if the data file is already compressed by the capacity expansion program, the data file is not compressed again.
2. The data expansion method according to claim 1, wherein the expansion program incorporates a plurality of data compression algorithms for different data formats, the plurality of compression algorithm types including a plurality of single compression algorithms for use with one data format; a plurality of different data compression algorithms for use with a data format; multiple single data compression algorithms are used for multiple data formats.
3. The method for expanding data according to claim 1, wherein the expansion program runs in the background of the intelligent terminal and judges the cpu utilization of the intelligent terminal, and when the cpu utilization of the mobile phone is lower than a program preset value, data compression is started, and when the cpu utilization of the mobile phone is higher than the program preset value, the compression process is interrupted.
4. The data expansion method of claim 1, wherein the program types of the expansion program include one or more of a combination of program types of APP, SDK, applet, firmware program, system application embedded module installed in the intelligent terminal.
5. An intelligent terminal, characterized in that the intelligent terminal comprises a CPU and a memory, wherein a code set of a capacity expansion program is stored in the memory, and the code set of the capacity expansion program stored in the memory is loaded and executed by the CPU to implement the data capacity expansion method according to any one of claims 1 to 4.
6. The intelligent terminal of claim 5, wherein the intelligent terminal is a smart phone with an operating system, a tablet computer, a notebook computer, an intelligent display device, an intelligent monitoring device, or intelligent hardware.
CN202110405160.4A 2021-04-15 2021-04-15 Data expansion method for intelligent terminal Active CN113076293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110405160.4A CN113076293B (en) 2021-04-15 2021-04-15 Data expansion method for intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110405160.4A CN113076293B (en) 2021-04-15 2021-04-15 Data expansion method for intelligent terminal

Publications (2)

Publication Number Publication Date
CN113076293A CN113076293A (en) 2021-07-06
CN113076293B true CN113076293B (en) 2024-03-08

Family

ID=76617610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110405160.4A Active CN113076293B (en) 2021-04-15 2021-04-15 Data expansion method for intelligent terminal

Country Status (1)

Country Link
CN (1) CN113076293B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186597A (en) * 2011-12-29 2013-07-03 盛大计算机(上海)有限公司 Method and system for expanding hard disk capacity
WO2016086406A1 (en) * 2014-12-05 2016-06-09 华为技术有限公司 Network resource deployment method and device
CN110196836A (en) * 2019-03-29 2019-09-03 腾讯科技(深圳)有限公司 A kind of date storage method and device
CN112527744A (en) * 2020-12-17 2021-03-19 深圳爱加密科技有限公司 Firmware type identification method, intelligent terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10715177B2 (en) * 2017-06-20 2020-07-14 Samsung Electronics Co., Ltd. Lossy compression drive

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186597A (en) * 2011-12-29 2013-07-03 盛大计算机(上海)有限公司 Method and system for expanding hard disk capacity
WO2016086406A1 (en) * 2014-12-05 2016-06-09 华为技术有限公司 Network resource deployment method and device
CN110196836A (en) * 2019-03-29 2019-09-03 腾讯科技(深圳)有限公司 A kind of date storage method and device
CN112527744A (en) * 2020-12-17 2021-03-19 深圳爱加密科技有限公司 Firmware type identification method, intelligent terminal and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZIP文件压缩编码分析;王刚;刘立柱;;微计算机信息(第15期);全文 *
基于无损压缩技术的文件压缩与解压系统;郝雪燕;;数码世界(第10期);全文 *

Also Published As

Publication number Publication date
CN113076293A (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN108063818B (en) Data downloading method, device, terminal and computer readable storage medium
CN108345524B (en) Application program monitoring method and application program monitoring device
US9002059B2 (en) Image processing apparatus capable of selecting a representative image for a group of images, image processing method, and program
CN108494788B (en) Data transmission method, data transmission device and computer readable storage medium
JPH0773080A (en) Multi-media document sotrage management device
CN109976668A (en) Data-erasure method, data deletion apparatus and computer readable storage medium
US9113173B2 (en) Data processing device and data processing method which compresses image data
CN112598448A (en) Dynamic material data processing method, system, computer and readable storage medium
CN113076293B (en) Data expansion method for intelligent terminal
CN105308589A (en) Compacting data based on data content
CN109947722A (en) Data compression method, device and computer readable storage medium for application program
KR100797122B1 (en) Apparatus of processing file using portable storage media in portable terminal and method thereof
US20200379663A1 (en) Adaptive storage management policies for computing devices
CN112654974A (en) File scanning method, file scanning device and terminal equipment
CN114528037A (en) Application starting method and device, electronic equipment and storage medium
CN111144077B (en) View information deleting method, device, equipment and computer readable storage medium
JP4072345B2 (en) File recording control device, file management system, file management method, recording medium, and program
CN113641643A (en) File writing method and device
CN112269675A (en) Data backup method and device and terminal equipment
CN111913918A (en) File storage method and device and electronic equipment
KR20110007838A (en) Image processing method and apparatus
CN106484259A (en) Input method, device and equipment
CN106874285B (en) Photo file processing method and terminal equipment
CN112835525A (en) Method, device and terminal for improving utilization rate of storage space
CN112099858A (en) System data processing logic updating method and device and data processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20231106

Address after: Room 704, Changsha Zhongdian Software Park Headquarters Building, No. 39 Jianshan Road, High tech Development Zone, Changsha City, Hunan Province, 410205

Applicant after: Hunan Jiawan Technology Co.,Ltd.

Applicant after: Li Ming

Address before: 518000 B404, Nanmao garden, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Li Ming

GR01 Patent grant
GR01 Patent grant