CN105007082A - Data compression method and device, and terminal - Google Patents

Data compression method and device, and terminal Download PDF

Info

Publication number
CN105007082A
CN105007082A CN201510406470.2A CN201510406470A CN105007082A CN 105007082 A CN105007082 A CN 105007082A CN 201510406470 A CN201510406470 A CN 201510406470A CN 105007082 A CN105007082 A CN 105007082A
Authority
CN
China
Prior art keywords
data
target data
target
compressed
terminal
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.)
Pending
Application number
CN201510406470.2A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510406470.2A priority Critical patent/CN105007082A/en
Publication of CN105007082A publication Critical patent/CN105007082A/en
Priority to PCT/CN2016/086463 priority patent/WO2017005085A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The embodiment of the invention discloses a data compression method, a data compression device and a terminal. The data compression method comprises a step of determining target data to be compressed; a step of detecting a target data type of the target data; a step of determining a target process for compressing the target data according to the target data type, wherein the target process is a process for compressing data in a preset compression mode corresponding to the target data type; and a step of invoking the target process to compress the target data. According to the method implemented in the embodiment of the invention, the compression process can be flexibly selected for compressing the target data according to the target data type.

Description

A kind of data compression method, device and terminal
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of data compression method, device and terminal.
Background technology
At present, along with the development of computer technology, the data volume stored in terminal also gets more and more, and in order to reduce the memory space of these data, data can be compressed, to improve the utilance of memory space.But, in existing data compression scheme, unified compression method is all adopted to all types of data, cause the flexibility of data compression poor.
Summary of the invention
The embodiment of the invention discloses a kind of data compression method, device and terminal, the flexibility of data compression can be improved.
The embodiment of the invention discloses a kind of data compression method, comprising:
Determine target data to be compressed;
Detect the target data type of described target data;
The target process compressing described target data is determined according to described target data type; Described target process is the process adopting compact model corresponding to the described target data type that presets to carry out data compression;
Call described target process to compress described target data.
The embodiment of the invention also discloses a kind of data compression device, described device comprises:
First determination module, for determining target data to be compressed;
Detection module, for detecting the target data type of the target data that described first determination module is determined;
Second determination module, the target data type for detecting according to described detection module determines the target process compressing described target data; Described target process is the process adopting compact model corresponding to the described target data type that presets to carry out data compression;
Compression module, the target process determined for calling described second determination module compresses described target data.
The embodiment of the invention also discloses a kind of terminal, described terminal comprises the data compression device described in foregoing invention embodiment.
The embodiment of the present invention can determine target data to be compressed; Detect the target data type of this target data; According to the target process of target data type determination compression goal data; This target process is the process adopting compact model corresponding to the target data type that presets to carry out data compression; Invocation target process is compressed target data.Implement the embodiment of the present invention, data compression process can be selected flexibly to compress target data for target data type.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of data compression method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of data compression method disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of data compression device disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of data compression device disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of data compression method, device and terminal, the flexibility of data compression can be improved.In the embodiment of the present invention, terminal can comprise mobile phone, panel computer, notebook or other portable sets etc., and in the embodiment of the present invention, target data can be divided three classes: the data of the types such as picture, audio frequency and video and text.The essence of data compression is the redundancy section removed in data, and don't the understanding of impact to initial data, why data can be because there is data redundancy by compression, such as spatial redundancy, time redundancy etc., the audio frequency changed in the data of audio frequency and video type or the object of motion less in the change of adjacent time sequence, only need store discrepant part; And the data of picture/mb-type are all same or analogous at a lot of pixel, the data of text file type have a lot of word repeated, if all store all, can take more memory space, therefore uncertain or incoherent data only need remain by data compression.Because different types of data has time redundancy or the spatial redundancy of above-mentioned emphasis, therefore the embodiment of the present invention can for the different types of data of target data, compact model corresponding to the target data type that flexible selection presets carries out data compression, to improve data compression ratio, improve data compression effects.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of data compression method disclosed in the embodiment of the present invention.As shown in Figure 1, this data compression method can comprise the following steps.
S101, terminal determine target data to be compressed;
As one execution mode alternatively, terminal determines that target data to be compressed can comprise the following steps:
11) terminal receives the operation information of user's input, and this operation information comprises operand data and operation finger print data;
12) whether terminal detects operation finger print data and mates with the operation finger print data preset, if operation finger print data mates with default operation finger print data, then using operand data as target data to be compressed, otherwise, process ends.
For example, operand data are video frequency program A, and default operation finger print data is the default finger print data carrying out data compression, as the middle finger fingerprint of terminal binding user account number; When user with middle finger video frequency program A is clicked, double-click or the operation such as slip time, terminal reception user input operation object data is video frequency program A, operation finger print data is middle finger fingerprint, through step 12) judge that this middle finger fingerprint is default operation finger print data, then terminal using this video frequency program A as target data to be compressed.
This execution mode can according to when in the operation information of user's input, to operate finger print data be default operation finger print data, get final product trigger data squeeze operation, with in prior art by compared with corresponding compression button or the squeeze operation of control trigger data, this execution mode can simplify user operation flow process, improves Consumer's Experience.
As the optional execution mode of another kind, terminal determines that target data to be compressed can comprise the following steps:
21) terminal determines to obtain the ratio that the memory space that uses of each application that local terminal installs accounts for the total memory space of local terminal;
22) ratio is greater than the storage data of the application correspondence of the second predetermined threshold value as target data to be compressed by terminal.
Such as, each application that local terminal is installed comprises the application of camera, e-book and video-see, camera, e-book and video-see are applied the storage size used and are respectively 8GB, 2GB, 15GB, the total memory space of terminal is 30GB, terminal can determine that local terminal installs respectively these apply the ratio that the memory space used accounts for the total memory space of local terminal and be respectively 0.27,0.1,0.5, second predetermined threshold value is 0.4, then the storage data that terminal can be corresponding using the video-see application being greater than the second predetermined threshold value are as target data to be compressed.
This execution mode using the storage data of application correspondence excessive for the ratio that accounts for the total memory space of local terminal as target data to be compressed, can by the data compression of the least possible number of times, the relatively more free memory of release.
S102, terminal detect the target data type of target data;
S103, terminal are according to the target process of target data type determination compression goal data;
In the embodiment of the present invention, the target data type of the target data that terminal detects can comprise any one or more type in audio frequency and video, picture and text.In the embodiment of the present invention, target process is the process adopting compact model corresponding to the target data type that presets to carry out data compression.
Alternatively, if target data type comprises numerous types of data simultaneously, the target process of target data that then terminal is determined according to target data type can comprise multiple process, and the task parallelism that namely terminal can to call in numerous types of data compact model corresponding to often kind of data type corresponding simultaneously performs data compression.
S104, terminal invocation target process are compressed target data.
In the embodiment of the present invention, terminal invocation target process is compressed target data, target data can be compressed in data block corresponding to the target data type of this target data, such as by the data compression of text class in text data block, it is medium audio, video data to be compressed to audio, video data block.
For example, terminal determines that target data to be compressed comprises text and audio, video data, then terminal comprises text data type and audio, video data type by the target data type of the target data of step S102 detection target data, then terminal can determine for these two kinds of data types target process A and B compressing each data type in step s 103 respectively respectively, then terminal can be compressed text by invocation target process A in step S104 simultaneously, and invocation target process B compresses audio frequency and video.Further, text can be compressed in data block A by terminal, is compressed to by audio-video document in data block B, and wherein, data block A is different with the data type stored in data block B.
In the data compression method described by Fig. 1, terminal can determine target data to be compressed, and detect the target data type of this target data, determining according to target data type the target process compressing this target data, can compress target data by calling this target process.Visible, according to the target data type of target data, can determine that target process compresses target data flexibly, thus improve the flexibility of data compression in the method described by Fig. 1.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another kind of data compression method disclosed in the embodiment of the present invention.As shown in Figure 2, this data compression method can comprise the following steps.
Whether the residue free memory of S201, terminal judges local terminal is less than the first predetermined threshold value, if be less than the first predetermined threshold value, then performs step S202, otherwise, process ends.
In the embodiment of the present invention, due to residue free memory too small time, the speed of service that terminal is respectively applied can be affected, therefore terminal can set the first predetermined threshold value according to total memory space of equipment, or by User Defined first predetermined threshold value, making terminal when judging that the residue free memory of local terminal is less than the first predetermined threshold value, data compression can be carried out to improve the utilance of memory space to data, relatively expanding residue free memory.
For example, the first predetermined threshold value is 5GB, then, when the residue free memory of local terminal is 4GB, because terminal can judge that the residue free memory of local terminal is less than the first predetermined threshold value, therefore can perform step S202.
S202, terminal export the prompting message being used for prompting residue free memory deficiency;
In the embodiment of the present invention, terminal or can eject the mode of prompting frame and exports prompting message for prompting residue free memory deficiency with voice mode.Alternatively, this prompting message also can specifically note that residue free memory is probably how many GB.
S203, terminal receive the confirmation condensed instruction for prompting message input;
In the embodiment of the present invention, determine the click that condensed instruction can be inputted by touch screen for user or slide instruction, the phonetic order etc. that also can be inputted by microphone for user.
This confirmation condensed instruction of S204, terminal response, the memory space that each application obtaining local terminal installation uses accounts for the ratio of the total memory space of local terminal;
Ratio is greater than the storage data of the application correspondence of the second predetermined threshold value as target data to be compressed by S205, terminal.
Such as, each application that local terminal is installed comprises the application of camera, e-book and video-see, camera, e-book and video-see are applied the storage size used and are respectively 8GB, 2GB, 15GB, the total memory space of terminal is 30GB, terminal can determine that local terminal installs respectively these apply the ratio that the memory space used accounts for the total memory space of local terminal and be respectively 0.27,0.1,0.5, second predetermined threshold value is 0.4, then the storage data that terminal can be corresponding using the video-see application being greater than the second predetermined threshold value are as target data to be compressed.
S206, terminal detect the target data type of this target data;
S207, terminal are according to the target process of target data type determination compression goal data;
In the embodiment of the present invention, target process is the process adopting compact model corresponding to the described target data type that presets to carry out data compression;
S208, terminal invocation target process are compressed target data.
Wherein, the concrete elaboration of step S204 to S208 can see the relevant elaboration in foregoing invention embodiment, and the embodiment of the present invention no longer describes in detail.
In the data compression method described by Fig. 2, terminal can when judging that the residue free memory of local terminal is less than the first predetermined threshold value, export the prompting message being used for prompting residue free memory deficiency, and receive the confirmation condensed instruction inputted for this prompting message, respond this confirmation condensed instruction, determine target data to be compressed, and then detect the target data type of this target data, determine corresponding target process according to this target data type, thus call this target process target data is compressed.Visible, the method described by Fig. 2 not only can determine target process according to target data type flexibly, and better to target data procedure compresses, can improve data compression effects according to the target process that target data type is determined.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of data compression device disclosed in the embodiment of the present invention.Wherein, data compression device shown in Fig. 3 can be arranged in the terminals such as mobile phone, panel computer, notebook or other portable sets, concrete, data compression device shown in Fig. 3 can comprise: the first determination module 310, detection module 320, second determination module 330 and compression module 340, wherein:
First determination module 310, for determining target data to be compressed;
Detection module 320, for detecting the target data type of the target data that the first determination module 310 is determined;
Second determination module 330, for the target process of target data type determination compression goal data detected according to detection module 320;
In the embodiment of the present invention, target process is the process adopting compact model corresponding to the target data type that presets to carry out data compression;
Compression module 340, the target process determined for calling the second determination module 330 compresses target data.
In the embodiment of the present invention, target data can be divided three classes: the data of the types such as picture, audio frequency and video and text.The essence of data compression is the redundancy section removed in data, and don't the understanding of impact to initial data, why data can be because there is data redundancy by compression, such as spatial redundancy, time redundancy etc., the audio frequency changed in the data of audio frequency and video type or the object of motion less in the change of adjacent time sequence, only need store discrepant part; And the data of picture/mb-type are all same or analogous at a lot of pixel, the data of text file type have a lot of word repeated, if all store all, can take more memory space, therefore uncertain or incoherent data only need remain by data compression.Because different types of data has time redundancy or the spatial redundancy of above-mentioned emphasis, therefore the embodiment of the present invention can for the different types of data of target data, compact model corresponding to the target data type that presets is selected to carry out data compression, to improve data compression ratio, improve data compression effects.
See also Fig. 4, Fig. 4 is the structural representation of another kind of data compression device disclosed in the embodiment of the present invention.Wherein, the data compression device shown in Fig. 4 is that data compression device is as shown in Figure 3 optimized and obtains.Compared with the data compression device shown in Fig. 3, in the data compression device shown in Fig. 4, the first determination module 310 can comprise with lower unit:
Receiving element 311, for receiving the operation information of user's input, this operation information comprises operand data and operation finger print data;
Detecting unit 312, for detect receiving element 311 receive operation information in operate finger print data with preset operation finger print data whether mate, if mate, the first determining unit 313 can be triggered and perform following operation.
Operand data, during for detecting that at detecting unit 312 operation finger print data mates with the operation finger print data preset, are defined as target data to be compressed by the first determining unit 313.
For example, operand data are video frequency program A, and default operation finger print data is the default finger print data carrying out data compression, as the middle finger fingerprint of terminal binding user account number; When user with middle finger video frequency program A is clicked, double-click or the operation such as slip time, receiving element 311 receive user's input operation object data be video frequency program A, operation finger print data be middle finger fingerprint, detect that this middle finger fingerprint is default operation finger print data through detecting unit 312, then the first determining unit 313 using this video frequency program A as target data to be compressed.
In the embodiment of the present invention, can also comprise with lower module in the data compression device shown in Fig. 4:
Judge module 350, for judging whether the residue free memory of local terminal is less than the first predetermined threshold value;
Output module 360, during for judging that the residue free memory of local terminal is less than the first predetermined threshold value at judge module 350, exports the prompting message being used for prompting residue free memory deficiency;
Receiver module 370, for receiving the confirmation condensed instruction for prompting message input, and responds this confirmation condensed instruction, trigger the first determination module perform described in the operation of determination target data to be compressed.
In the embodiment of the present invention, determine the click that condensed instruction can be inputted by touch screen for user or slide instruction, the phonetic order etc. that also can be inputted by microphone for user.
In the embodiment of the present invention, due to residue free memory too small time, the speed of service that terminal is respectively applied can be affected, therefore terminal can set the first predetermined threshold value according to total memory space of equipment, or by User Defined first predetermined threshold value, make judge module 350 can when judging that the residue free memory of local terminal is less than the first predetermined threshold value, carry out data compression to improve the utilance of memory space by output module 360, receiver module 370, second determination module and calling module 340 pairs of data, relatively expand residue free memory.
As the optional execution mode of another kind, in the data compression device shown in Fig. 4, the first determination module 310 can comprise with lower unit:
Acquiring unit 314, the memory space that each application of installing for obtaining local terminal uses accounts for the ratio of the total memory space of local terminal;
Second determining unit 315, the storage data that the ratio for being obtained by acquiring unit 314 is greater than the application correspondence of the second predetermined threshold value are defined as target data to be compressed.
In the embodiment of the present invention, first determination module 310 can determine target data to be compressed by the receiving element 311 in above-mentioned execution mode, detecting unit 312 and the first determining unit 313, or can determine target data to be compressed by the acquiring unit 314 in above-mentioned execution mode and the second determining unit 315, therefore the first determination module can comprise the unit in above-mentioned two kinds of execution modes simultaneously.
Such as, each application that local terminal is installed comprises camera, e-book and video-see application, camera, e-book and video-see are applied the storage size used and are respectively 8GB, 2GB, 15GB, the total memory space of terminal is 30GB, the ratio that the memory space that these application that acquiring unit 314 can obtain local terminal installation respectively use accounts for the total memory space of local terminal is respectively 0.27, 0.1, 0.5, second predetermined threshold value is 0.4, the storage data that then the second determining unit 315 can be corresponding using the video-see application being greater than the second predetermined threshold value are as target data to be compressed.
In the embodiment of the present invention, the target data type of the target data that terminal detects can comprise any one or more type in audio frequency and video, picture and text.Correspondingly, compact model corresponding to the target data type preset that target process adopts comprises the compact model for audio, video data, the compact model for picture and for any one or more in the compact model of text.
Alternatively, if target data type comprises numerous types of data simultaneously, the target process of target data that then the second determination module 330 can be determined according to target data type can comprise multiple process, and the task parallelism that compression module 340 can to call in numerous types of data compact model corresponding to often kind of data type corresponding simultaneously performs data compression.
In the embodiment of the present invention, terminal invocation target process is compressed target data, target data can be compressed in data block corresponding to the target data type of this target data, such as by the data compression of text class in text data block, it is medium audio, video data to be compressed to audio, video data block.
For example, first determination module 310 determines that target data to be compressed comprises text and audio, video data, the target data type that then detection module 320 detects the target data of target data comprises text data type and audio, video data type, then the second determination module 330 can determine for these two kinds of data types target process A and B compressing each data type respectively respectively, then compression module 340 can compress text by invocation target process A simultaneously, and invocation target process B compresses audio frequency and video.Further, text can be compressed in data block A by terminal, is compressed to by audio-video document in data block B, and wherein, data block A is different with the data type stored in data block B.
In the data compression device shown in Fig. 3 and Fig. 4, first determination module can determine target data to be compressed, detection module can detect the target data type of this target data, second determination module can determine according to target data type the target process compressing this target data, and calling module can call this target process and compress target data.Visible, the data compression device shown in Fig. 3 and Fig. 4 according to the target data type of target data, can be determined that target process compresses target data, thus improves the flexibility of data compression flexibly.Further, in the data compression device shown in Fig. 4, judge module can when judging that the residue free memory of local terminal is less than the first predetermined threshold value, output module can export the prompting message for prompting residue free memory deficiency, receiver module can receive the confirmation condensed instruction inputted for this prompting message, respond this confirmation condensed instruction, determine target data to be compressed, thus can when terminal residual free space is not enough, timely select target process is compressed the data in terminal, better to target data procedure compresses, improve data compression effects.
Refer to Fig. 5, Fig. 5 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention, and this terminal can perform the function of above-mentioned data compression method.As shown in Figure 5, this terminal can comprise: at least one processor 401, such as CPU, at least one memory 402, at least one communication bus 403, user interface 404 and network interface 405.Communication bus 403 is for realizing the communication connection between these assemblies.User interface 404 can comprise display screen (Display), keyboard (Keyboard) etc.Memory 402 can be high-speed RAM memory, also can be non-labile memory, such as at least one magnetic disc store.As shown in Figure 5, operating system, network communication protocol module and data compression program etc. can be comprised in this memory 402.
In the terminal shown in Fig. 5, network interface 405 is mainly used in other-end and carries out data communication, the reception of such as various message and transmission etc.; And processor 401 can call the data compression program stored in memory 402, and perform following operation:
Determine target data to be compressed;
Detect the target data type of target data;
According to the target process of target data type determination compression goal data; Target process is the process adopting compact model corresponding to the target data type that presets to carry out data compression;
Invocation target process is compressed target data.
In the embodiment of the present invention, target data can be divided three classes: the data of the types such as picture, audio frequency and video and text.The essence of data compression is the redundancy section removed in data, and don't the understanding of impact to initial data, why data can be because there is data redundancy by compression, such as spatial redundancy, time redundancy etc., the audio frequency changed in the data of audio frequency and video type or the object of motion less in the change of adjacent time sequence, only need store discrepant part; And the data of picture/mb-type are all same or analogous at a lot of pixel, the data of text file type have a lot of word repeated, if all store all, can take more memory space, therefore uncertain or incoherent data only need remain by data compression.Because different types of data has time redundancy or the spatial redundancy of above-mentioned emphasis, therefore the embodiment of the present invention can for the different types of data of target data, compact model corresponding to the target data type that presets is selected to carry out data compression, to improve data compression ratio, improve data compression effects.
In the embodiment of the present invention, processor 401 calls the program stored in memory 402, determines target data to be compressed, can specifically comprise following operation:
Receive the operation information of user's input, operation information comprises operand data and operation finger print data;
Detect operation finger print data whether to mate with the operation finger print data preset;
If operation finger print data mates with default operation finger print data, then using operand data as target data to be compressed.
For example, operand data are video frequency program A, and default operation finger print data is the default finger print data carrying out data compression, as the middle finger fingerprint of terminal binding user account number; When user with middle finger video frequency program A is clicked, double-click or the operation such as slip time, processor 401 can receive user's input operation object data be video frequency program A, operation finger print data be middle finger fingerprint, processor 401 judges that this middle finger fingerprint is default operation finger print data, then using this video frequency program A as target data to be compressed.
In the embodiment of the present invention, processor 401 calls the program stored in memory 402, can also perform following operation:
Judge whether the residue free memory of local terminal is less than the first predetermined threshold value;
If be less than the first predetermined threshold value, then export the prompting message being used for prompting residue free memory deficiency;
Receive the confirmation condensed instruction for prompting message input;
Response confirmation condensed instruction, the operation of the target data that the determination described in execution is to be compressed.
In the embodiment of the present invention, due to residue free memory too small time, the speed of service that terminal is respectively applied can be affected, therefore processor 401 can set the first predetermined threshold value according to total memory space of equipment, or by User Defined first predetermined threshold value, making processor 401 when judging that the residue free memory of local terminal is less than the first predetermined threshold value, data compression can be carried out to improve the utilance of memory space to data, relatively expanding residue free memory.
In the embodiment of the present invention, processor 401 or can eject the mode of prompting frame and exports prompting message for prompting residue free memory deficiency with voice mode.Alternatively, this prompting message also can specifically note that residue free memory is probably how many GB.
In the embodiment of the present invention, determine the click that condensed instruction can be inputted by touch screen for user or slide instruction, the phonetic order etc. that also can be inputted by microphone for user.
As the optional execution mode of another kind, processor 401 calls the program stored in memory 402, determines target data to be compressed, can comprise the following steps:
The memory space that each application obtaining local terminal installation uses accounts for the ratio of the total memory space of local terminal;
Ratio is greater than the storage data of the application correspondence of the second predetermined threshold value as target data to be compressed.
Such as, each application that local terminal is installed comprises the application of camera, e-book and video-see, camera, e-book and video-see are applied the storage size used and are respectively 8GB, 2GB, 15GB, the total memory space of terminal is 30GB, processor 401 can determine that local terminal installs respectively these apply the ratio that the memory space used accounts for the total memory space of local terminal and be respectively 0.27,0.1,0.5, second predetermined threshold value is 0.4, then the storage data that processor 401 can be corresponding using the video-see application being greater than the second predetermined threshold value are as target data to be compressed.
In the embodiment of the present invention, the target data type of the target data that processor 401 detects can comprise any one or more type in audio frequency and video, picture and text.In the embodiment of the present invention, target process is the process adopting compact model corresponding to the target data type that presets to carry out data compression.
In the embodiment of the present invention, processor 401 invocation target process is compressed target data, target data can be compressed in data block corresponding to the target data type of this target data, such as by the data compression of text class in text data block, it is medium audio, video data to be compressed to audio, video data block.
For example, processor 401 determines that target data to be compressed comprises text and audio, video data, the target data type that then processor 401 detects the target data of target data comprises text data type and audio, video data type, processor 401 can determine for these two kinds of data types target process A and B compressing each data type respectively respectively, processor 401 can compress text by invocation target process A simultaneously, and invocation target process B compresses audio frequency and video.Further, text can be compressed in data block A by processor 401, is compressed to by audio-video document in data block B, and wherein, data block A is different with the data type stored in data block B.
Concrete, the terminal introduced in the present embodiment can implement the part or all of flow process in the data compression method embodiment of composition graphs 1 of the present invention or Fig. 2 introduction.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal or equipment or subelement can carry out merging, divide and deleting according to actual needs.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this specification or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in flow chart or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasablely edit read-only memory (EPROM or flash memory), fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanner to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.Be described in detail the embodiment of the invention discloses a kind of data compression method, device and terminal above, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (13)

1. a data compression method, is characterized in that, described method comprises:
Determine target data to be compressed;
Detect the target data type of described target data;
The target process compressing described target data is determined according to described target data type; Described target process is the process adopting compact model corresponding to the described target data type that presets to carry out data compression;
Call described target process to compress described target data.
2. the method for claim 1, is characterized in that, describedly determines target data to be compressed, comprising:
Receive the operation information of user's input, described operation information comprises operand data and operation finger print data;
Detect described operation finger print data whether to mate with the operation finger print data preset;
If described operation finger print data with preset operation finger print data mate, then using described operand data as target data to be compressed.
3. the method for claim 1, is characterized in that, described method also comprises:
Judge whether the residue free memory of local terminal is less than the first predetermined threshold value;
If be less than described first predetermined threshold value, then export the prompting message being used for prompting residue free memory deficiency;
Receive the confirmation condensed instruction inputted for described prompting message;
Respond described confirmation condensed instruction, the step of the target data that the determination described in execution is to be compressed.
4. method as claimed in claim 3, is characterized in that, describedly determines target data to be compressed, comprising:
The memory space that each application obtaining local terminal installation uses accounts for the ratio of the total memory space of described local terminal;
Described ratio is greater than the storage data of the application correspondence of the second predetermined threshold value as target data to be compressed.
5. the method as described in any one of Claims 1-4, is characterized in that, described target data type comprises any one or more type in audio frequency and video, picture and text.
6. method as claimed in claim 5, it is characterized in that, compact model corresponding to the described target data type preset that described target process adopts comprises the compact model for audio, video data, the compact model for picture and for any one or more in the compact model of text.
7. a data compression device, is characterized in that, described device comprises:
First determination module, for determining target data to be compressed;
Detection module, for detecting the target data type of the target data that described first determination module is determined;
Second determination module, the target data type for detecting according to described detection module determines the target process compressing described target data; Described target process is the process adopting compact model corresponding to the described target data type that presets to carry out data compression;
Compression module, the target process determined for calling described second determination module compresses described target data.
8. device as claimed in claim 7, it is characterized in that, described first determination module comprises:
Receiving element, for receiving the operation information of user's input, described operation information comprises operand data and operation finger print data;
Whether detecting unit, operate finger print data described in operation information that described receiving element receives mate with default operation finger print data for detecting;
Described operand data, during for detecting that at described detecting unit described operation finger print data mates with the operation finger print data preset, are defined as target data to be compressed by the first determining unit.
9. device as claimed in claim 7, it is characterized in that, described device also comprises:
Judge module, for judging whether the residue free memory of local terminal is less than the first predetermined threshold value;
Output module, during for judging that the residue free memory of local terminal is less than described first predetermined threshold value at described judge module, exports the prompting message being used for prompting residue free memory deficiency;
Receiver module, for receiving the confirmation condensed instruction inputted for described prompting message, and responds described confirmation condensed instruction, trigger the first determination module perform described in the operation of determination target data to be compressed.
10. device as claimed in claim 9, it is characterized in that, described first determination module comprises:
Acquiring unit, the memory space that each application of installing for obtaining local terminal uses accounts for the ratio of the total memory space of described local terminal;
Second determining unit, the storage data that the ratio for being obtained by described acquiring unit is greater than the application correspondence of the second predetermined threshold value are defined as target data to be compressed.
11. devices as described in any one of claim 7 to 10, it is characterized in that, described target data type comprises any one or more type in audio frequency and video, picture and text.
12. devices as claimed in claim 11, it is characterized in that, compact model corresponding to the described target data type preset that described target process adopts comprises the compact model for audio, video data, the compact model for picture and for any one or more in the compact model of text.
13. 1 kinds of terminals, is characterized in that, described terminal comprises the device described in any one of claim 7 to 12.
CN201510406470.2A 2015-07-09 2015-07-09 Data compression method and device, and terminal Pending CN105007082A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510406470.2A CN105007082A (en) 2015-07-09 2015-07-09 Data compression method and device, and terminal
PCT/CN2016/086463 WO2017005085A1 (en) 2015-07-09 2016-06-20 Data compression method, apparatus, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510406470.2A CN105007082A (en) 2015-07-09 2015-07-09 Data compression method and device, and terminal

Publications (1)

Publication Number Publication Date
CN105007082A true CN105007082A (en) 2015-10-28

Family

ID=54379623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510406470.2A Pending CN105007082A (en) 2015-07-09 2015-07-09 Data compression method and device, and terminal

Country Status (2)

Country Link
CN (1) CN105007082A (en)
WO (1) WO2017005085A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017005085A1 (en) * 2015-07-09 2017-01-12 广东欧珀移动通信有限公司 Data compression method, apparatus, and terminal
CN106507107A (en) * 2016-12-08 2017-03-15 北京聚爱聊网络科技有限公司 The treating method and apparatus of data
CN109313632A (en) * 2016-04-22 2019-02-05 远程媒体有限责任公司 It is a kind of for enhancing the system and method for data processing in network environment
CN109947722A (en) * 2019-02-13 2019-06-28 北京达佳互联信息技术有限公司 Data compression method, device and computer readable storage medium for application program
CN110998508A (en) * 2017-10-18 2020-04-10 深圳市欢太科技有限公司 File processing method and device, computer equipment and computer readable storage medium
CN112506879A (en) * 2020-12-18 2021-03-16 深圳智慧林网络科技有限公司 Data processing method and related equipment
CN113346909A (en) * 2021-05-11 2021-09-03 清华大学 Data compression method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310627B (en) * 2020-02-07 2024-01-30 广州视源电子科技股份有限公司 Detection method and device of sensing device and electronic equipment
CN114827288B (en) * 2022-03-30 2024-06-25 阿里云计算有限公司 Data forwarding device, data processing method, and computer-readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252749A (en) * 2008-03-28 2008-08-27 深圳华为通信技术有限公司 Apparatus and method for processing mobile terminal information
CN103488481B (en) * 2013-09-11 2017-02-15 华为技术有限公司 Application program control method, terminal equipment and remote control system
CN103942481A (en) * 2014-05-04 2014-07-23 上海鼎为电子科技(集团)有限公司 Application access method and mobile terminal
CN105007082A (en) * 2015-07-09 2015-10-28 广东欧珀移动通信有限公司 Data compression method and device, and terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017005085A1 (en) * 2015-07-09 2017-01-12 广东欧珀移动通信有限公司 Data compression method, apparatus, and terminal
CN109313632A (en) * 2016-04-22 2019-02-05 远程媒体有限责任公司 It is a kind of for enhancing the system and method for data processing in network environment
CN109313632B (en) * 2016-04-22 2022-04-29 维迪阁传媒公司 System and method for enhancing data processing in a network environment
CN106507107A (en) * 2016-12-08 2017-03-15 北京聚爱聊网络科技有限公司 The treating method and apparatus of data
CN110998508A (en) * 2017-10-18 2020-04-10 深圳市欢太科技有限公司 File processing method and device, computer equipment and computer readable storage medium
CN109947722A (en) * 2019-02-13 2019-06-28 北京达佳互联信息技术有限公司 Data compression method, device and computer readable storage medium for application program
CN112506879A (en) * 2020-12-18 2021-03-16 深圳智慧林网络科技有限公司 Data processing method and related equipment
CN112506879B (en) * 2020-12-18 2024-06-25 深圳智慧林网络科技有限公司 Data processing method and related equipment
CN113346909A (en) * 2021-05-11 2021-09-03 清华大学 Data compression method and device

Also Published As

Publication number Publication date
WO2017005085A1 (en) 2017-01-12

Similar Documents

Publication Publication Date Title
CN105007082A (en) Data compression method and device, and terminal
US10599252B2 (en) Intelligent terminal control method utilizing touch contact location and pressure
CN109257646A (en) Method for processing video frequency, device, electronic equipment and computer-readable medium
CN107329717B (en) Processing method, display method and display system of screen display information
EP2423807A2 (en) Method and apparatus to process audio signal
CN111988647A (en) Sound and picture synchronous adjusting method, device, equipment and medium
CN104461473A (en) Screen locking wallpaper switching method and device and terminal equipment
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN104601683A (en) File download management method, mobile terminal and communication system
CN110390641B (en) Image desensitizing method, electronic device and storage medium
CN104408193B (en) The processing method and processing device of data visualization model
CN105739827A (en) Display control method, display control apparatus and electronic apparatus
CN110086941B (en) Voice playing method and device and terminal equipment
CN105491129A (en) Page loading progress display method and device and mobile terminal
CN106990887A (en) Data inputting method, device and terminal device
CN103941957A (en) Method and device for deleting content of user equipment and user equipment
CN105163186A (en) Playing operation method and terminal
CN105204767A (en) Touch and remote control method and mobile terminal
KR20150095523A (en) Electronic apparatus and method for extracting color in electronic apparatus
CN104615339B (en) Control shows method and device
WO2016078528A1 (en) Method and device for displaying object information
CN105357391A (en) Phone-call recording method and mobile terminal
CN105261176A (en) Touch remote control method and mobile terminal
CN104808895A (en) Icon arranging method
CN104808998A (en) Method, device and mobile terminal for showing global control

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151028