CN105677185A - Data compression method and mobile terminal - Google Patents

Data compression method and mobile terminal Download PDF

Info

Publication number
CN105677185A
CN105677185A CN201610019448.7A CN201610019448A CN105677185A CN 105677185 A CN105677185 A CN 105677185A CN 201610019448 A CN201610019448 A CN 201610019448A CN 105677185 A CN105677185 A CN 105677185A
Authority
CN
China
Prior art keywords
compressed
data
pressing information
data file
compression
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
CN201610019448.7A
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 CN201610019448.7A priority Critical patent/CN105677185A/en
Publication of CN105677185A publication Critical patent/CN105677185A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position

Abstract

The embodiment of the invention provides a data compression method and a mobile terminal. The method comprises the steps of acquiring pressing information for data files to be compressed, and compressing the data files to be compressed according to the press information in different compression ratios. By means of the data compression method and the mobile terminal, a user can compress the data files to be compressed in different compression ratios.

Description

Data compression method and mobile terminal
Technical field
The present invention relates to moving communicating field, particularly relate to a kind of data compression method and mobile terminal.
Background technology
Existing mobile terminal is when being compressed data, and user is by the long-time data touching compression, so that ejecting compression function menu, again through selecting compression options, data to be compressed is compressed. But, the compression ratio of the data compression of existing mobile terminal is fixing.
Summary of the invention
In view of this, it is necessary to providing a kind of data compression method, described method includes:
A kind of data compression method, including:
Obtain the pressing information for data file to be compressed;
According to described pressing information, described data file to be compressed is compressed with different compression ratios.
A kind of mobile terminal, including housing, the touch screen being arranged on housing, the circuit board being arranged in housing and arrange memorizer on circuit boards and processor, described memorizer in order to store executable data, described processor in order to perform the data in described memorizer, with:
Obtain the pressing information for data file to be compressed;
According to described pressing information, described data file to be compressed is compressed with different compression ratios.
Compared with prior art, data compression method in the embodiment of the present invention and in mobile terminal, obtain the pressing information for data file to be compressed; According to described pressing information, described data file to be compressed is compressed with different compression ratios, so that data file to be compressed is being compressed by the compression ratio that user can be different.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme in the embodiment of the present invention, the accompanying drawing used required in embodiment, description will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the embodiment of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of the data compression method that Fig. 1 provides for the embodiment of the present invention.
The structural representation of the mobile terminal that Fig. 2 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the embodiment of the present invention, rather than whole embodiments. Based on the embodiment in the embodiment of the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of embodiment of the present invention protection.
Fig. 1 is the schematic flow sheet of the data compression method of the embodiment of the present invention. As it is shown in figure 1, the method includes:
S110, obtain for the pressing information of data file to be compressed;
S120, according to described pressing information, described data file to be compressed is compressed with different compression ratios.
Alternatively, described touch screen can receive or obtain touch or the pressing information of user. Any position on described touch screen all can the pressing information of perception user operation. Described touch screen can include capacitance touch unit and be electrically connected described capacitance touch unit one or more pressure transducer, described touch screen can also include capacitance touch unit and with the pressure sensitive film being arranged on below capacitance touch unit.
Alternatively, can be compressed for multiple data files to be compressed. Described acquisition is for the pressing information of data file to be compressed, including the pressing information obtaining multiple finger and being respectively directed to multiple data to be compressed; Described according to described pressing information, described data file to be compressed is compressed with different compression ratios, including: according to the pressing information of each finger of multiple fingers, multiple data to be compressed are compressed simultaneously.
Specifically, a data file to be compressed can be pressed respectively by multiple fingers, then obtain multiple finger prick pressing information to corresponding data file to be compressed, and then the plurality of data to be compressed are compressed by the pressing information according to each finger of multiple fingers simultaneously. It is to be appreciated that compression ratio when the plurality of data to be compressed are compressed by the pressing information of described each finger according to multiple fingers can be identical or different simultaneously. Said method also includes, and forms multiple independent compressed package data, i.e. each data file to be compressed forms compressed package data after being compressed respectively after the plurality of data to be compressed are compressed simultaneously.
Alternatively, can only forming compressed package data after the plurality of data to be compressed are compressed simultaneously, described compressed package data are formed after the plurality of data file to be compressed is compressed.
Alternatively, described according to described pressing information, described data file to be compressed is compressed with different compression ratios, including: after calculating the residual memory space of storage device at described data file place to be compressed, according to the size of described residual memory space and described pressing information, described data file to be compressed is compressed. Wherein, described storage device can be read only memory.
Specifically, in order to optimize compression ratio further, can first calculate the size of the residual memory space of the storage device at described data file place to be compressed, based on the size of the remaining space of described storage device, according to described pressing information, described data file to be compressed is compressed. Further, before treating compression data file compression according to described pressing information, the size of the compressed package data that can compression be subsequently formed in advance compares with described residual memory space size, when being compressed the size of the compressed package data being subsequently formed less than or equal to described residual memory space size, with the compression ratio corresponding with described pressing information, described data file to be compressed is compressed; Otherwise, when the size of the compressed package data that described compression is subsequently formed is more than described residual memory space size, prompting user reacquires pressing information to select bigger compression ratio to be compressed or to point out user to cannot be carried out compression.
Alternatively, described pressing information includes by surging, and described more big by surging, described compression ratio is more big.
Alternatively, described pressing information includes pressing area, and described pressing area is more big, and described compression ratio is more big.
In the data compression method of the embodiment of the present invention, obtain the pressing information for data file to be compressed; According to described pressing information, described data file to be compressed is compressed with different compression ratios, so that data file to be compressed is being compressed by the compression ratio that user can be different.
Refer to the structural representation that Fig. 2, Fig. 2 are the mobile terminal 200 in the embodiment of the present invention. Described mobile terminal 200, including housing 210, it is arranged on the touch screen 220 on housing 210, it is arranged on the circuit board in housing 210 and is arranged on the processor on described circuit board and memorizer, described memorizer is used for storing executable data, described processor in order to perform data in described memorizer with:
Obtain the pressing information for data file to be compressed;
According to described pressing information, described data file to be compressed is compressed with different compression ratios.
Alternatively, described touch screen 220 can receive or obtain touch or the pressing information of user. Any position on described touch screen 220 all can the pressing information of perception user operation. Described touch screen 220 include capacitance touch unit and be electrically connected described capacitance touch unit one or more pressure transducer, described touch screen 220 can also include capacitance touch unit and with the pressure sensitive film being arranged on below capacitance touch unit.
Described mobile terminal 200 be preferably mobile phone, panel computer, personal digital assistant or other possess touch function electronic equipment. Described housing 210 can be the combination of plastic housing, metal-back or plastic housing and metal-back, and the material of described housing 210 is not construed as limiting in the present invention.
Described memorizer is in order to deposit executable program or instruction, to realize man-machine interaction. Described processor is in order to perform described executable program. Memorizer can include read only memory and random access memory, and provides instruction and data to processor. A part for memorizer can also include non-volatile row random access memory (NVRAM). Described processor can also be called CPU (CentralProcessingUnit, CPU).
Alternatively, described processor performs the data in described memorizer to be compressed for multiple data files to be compressed. Described processor performs the data in described memorizer to obtain the pressing information for data file to be compressed, including the pressing information obtaining multiple finger and being respectively directed to multiple data to be compressed; Described processor performs the data in described memorizer described data file to be compressed to be compressed with different compression ratios according to described pressing information, including: according to the pressing information of each finger of multiple fingers, multiple data to be compressed are compressed simultaneously.
Specifically, described processor performs the data in described memorizer to press a data file to be compressed respectively by multiple fingers, then obtain multiple finger prick pressing information to corresponding data file to be compressed, and then the plurality of data to be compressed are compressed by the pressing information according to each finger of multiple fingers simultaneously. It is to be appreciated that compression ratio when the plurality of data to be compressed are compressed by the pressing information of described each finger according to multiple fingers can be identical or different simultaneously.Described processor performs the data in described memorizer to form multiple independent compressed package data after the plurality of data to be compressed are compressed simultaneously, i.e. each data file to be compressed forms independent compressed package data after being compressed respectively.
Alternatively, described processor performs the data in described memorizer can only form compressed package data after the plurality of data to be compressed are compressed simultaneously, and described compressed package data are formed after the plurality of data file to be compressed is compressed.
Alternatively, described processor performs the data in described memorizer described data file to be compressed to be compressed with different compression ratios according to described pressing information, including: after calculating the residual memory space of storage device at described data file place to be compressed, according to the size of described residual memory space and described pressing information, described data file to be compressed is compressed.
Specifically, in order to optimize compression ratio further, described processor performs the data in described memorizer to calculate the size of the residual memory space of the storage device at described data file place to be compressed, based on the size of the remaining space of described storage device, according to described pressing information, described data file to be compressed is compressed.
Further, described processor performs the data in described memorizer with before treating compression data file compression according to described pressing information, the size of the compressed package data that can compression be subsequently formed in advance compares with described residual memory space size, when being compressed the size of the compressed package data being subsequently formed less than or equal to described residual memory space size, with the compression ratio corresponding with described pressing information, described data file to be compressed is compressed; Otherwise, when the size of the compressed package data that described compression is subsequently formed is more than described residual memory space size, prompting user reacquires pressing information to select bigger compression ratio to be compressed or to point out user to cannot be carried out compression.
Alternatively, described pressing information includes by surging, and described more big by surging, described compression ratio is more big.
Alternatively, described pressing information includes pressing area, and described pressing area is more big, and described compression ratio is more big.
In the mobile terminal 200 of the present invention, processor in mobile terminal 200 perform data in memorizer with: obtain the pressing information for data file to be compressed; According to described pressing information, described data file to be compressed is compressed with different compression ratios, so that data file to be compressed is being compressed by the compression ratio that user can be different.
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention. Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.

Claims (16)

1. a data compression method, it is characterised in that including:
Obtain the pressing information for data file to be compressed;
According to described pressing information, described data file to be compressed is compressed with different compression ratios.
2. data compression method as claimed in claim 1, it is characterised in that obtain the pressing information for data file to be compressed, including:
Obtain multiple finger and be respectively directed to the pressing information of multiple data to be compressed;
According to described pressing information, described data file to be compressed is compressed with different compression ratios, including:
Multiple data to be compressed are compressed by the pressing information of each finger according to multiple fingers simultaneously.
3. data compression method as claimed in claim 2, it is characterized in that, multiple data to be compressed are compressed by the pressing information of described each finger according to multiple fingers simultaneously, including: form multiple independent compressed package data after the plurality of data to be compressed are compressed simultaneously.
4. data compression method as claimed in claim 2, it is characterized in that, multiple data to be compressed are carried out data compression by the pressing information of described each finger according to multiple fingers simultaneously, including: form compressed package data after the plurality of data to be compressed are compressed simultaneously.
5. data compression method as claimed in claim 1, it is characterized in that, described according to described pressing information, described data file to be compressed is compressed with different compression ratios, including: after calculating the residual memory space of storage device at described data file place to be compressed, according to described residual memory space and described pressing information, described data file to be compressed is compressed.
6. the data compression method as described in any one in claim 1-5 item, it is characterised in that described pressing information includes by surging, described more big by surging, described compression ratio is more big.
7. the data compression method as described in any one in claim 1-5 item, it is characterised in that described pressing information includes pressing area, and described pressing area is more big, and described compression ratio is more big.
8. data compression method as claimed in claim 1, it is characterized in that, described according to described pressing information, described data file to be compressed is compressed with different compression ratios, including: after calculating the residual memory space of storage device at described data file place to be compressed, according to the size of described residual memory space and described pressing information, described data file to be compressed is compressed.
9. data compression method as claimed in claim 1, it is characterized in that, before treating compression data file compression according to described pressing information, the size of compressed package data compression being subsequently formed in advance and described residual memory space size compare, when being compressed the size of the compressed package data being subsequently formed less than or equal to described residual memory space size, with the compression ratio corresponding with described pressing information, described data file to be compressed is compressed; Otherwise, when the size of the compressed package data that described compression is subsequently formed is more than described residual memory space size, prompting user reacquires pressing information to select bigger compression ratio to be compressed or to point out user to cannot be carried out compression.
10. a mobile terminal, including housing, the touch screen being arranged on housing, the circuit board being arranged in housing and arrange memorizer on circuit boards and processor, described memorizer in order to store executable data, described processor in order to perform the data in described memorizer, with:
Obtain the pressing information for data file to be compressed;
According to described pressing information, described data file to be compressed is compressed with different compression ratios.
11. mobile terminal as claimed in claim 10, it is characterised in that described processor performs the data in described memorizer to obtain the pressing information for data file to be compressed, including:
Obtain multiple finger and be respectively directed to the pressing information of multiple data to be compressed;
According to described pressing information, described data file to be compressed is compressed with different compression ratios, including:
Multiple data to be compressed are compressed by the pressing information of each finger according to multiple fingers simultaneously.
12. mobile terminal as claimed in claim 10, it is characterized in that, multiple data to be compressed are compressed by the data that described memorizer performs in described memorizer with the pressing information of each finger according to multiple fingers simultaneously, including: form multiple independent compressed package data after the plurality of data to be compressed are compressed simultaneously.
13. mobile terminal as claimed in claim 11, it is characterized in that, multiple data to be compressed are carried out data compression with the pressing information of each finger according to multiple fingers by the data that described memorizer performs in described memorizer simultaneously, including: form compressed package data after the plurality of data to be compressed are compressed simultaneously.
14. mobile terminal as claimed in claim 10, it is characterized in that, described memorizer performs the data in described memorizer described data file to be compressed to be compressed with different compression ratios according to described pressing information, including: after calculating the residual memory space of storage device at described data file place to be compressed, according to described residual memory space and described pressing information, described data file to be compressed is compressed.
15. the mobile terminal as described in any one in claim 10-14 item, it is characterised in that described pressing information includes by surging, described more big by surging, described compression ratio is more big.
16. the mobile terminal as described in any one in claim 10-14 item, it is characterised in that described pressing information includes pressing area, and described pressing area is more big, and described compression ratio is more big.
CN201610019448.7A 2016-01-11 2016-01-11 Data compression method and mobile terminal Pending CN105677185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610019448.7A CN105677185A (en) 2016-01-11 2016-01-11 Data compression method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610019448.7A CN105677185A (en) 2016-01-11 2016-01-11 Data compression method and mobile terminal

Publications (1)

Publication Number Publication Date
CN105677185A true CN105677185A (en) 2016-06-15

Family

ID=56300320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610019448.7A Pending CN105677185A (en) 2016-01-11 2016-01-11 Data compression method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105677185A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933348A (en) * 2019-05-05 2020-03-27 唐山明天科技有限公司 Digital video recording method and device adopting dynamic compression ratio

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816091A (en) * 2005-02-01 2006-08-09 乐金电子(中国)研究开发中心有限公司 Memory device management method for video storage and mobile communication terminal thereof
CN101630223A (en) * 2009-07-25 2010-01-20 深圳华为通信技术有限公司 Method and terminal for adjusting interface
CN102112946A (en) * 2008-08-01 2011-06-29 三星电子株式会社 Electronic apparatus and method for implementing user interface
US20110193788A1 (en) * 2010-02-10 2011-08-11 Apple Inc. Graphical objects that respond to touch or motion input
CN102682020A (en) * 2011-03-15 2012-09-19 深圳富泰宏精密工业有限公司 File management system and method
CN103294401A (en) * 2013-06-03 2013-09-11 广东欧珀移动通信有限公司 Icon processing method and device for electronic instrument with touch screen
CN104063280A (en) * 2014-06-25 2014-09-24 华为技术有限公司 Control method of intelligent terminal
CN104866231A (en) * 2015-06-12 2015-08-26 联想(北京)有限公司 Information processing method, device and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816091A (en) * 2005-02-01 2006-08-09 乐金电子(中国)研究开发中心有限公司 Memory device management method for video storage and mobile communication terminal thereof
CN102112946A (en) * 2008-08-01 2011-06-29 三星电子株式会社 Electronic apparatus and method for implementing user interface
CN101630223A (en) * 2009-07-25 2010-01-20 深圳华为通信技术有限公司 Method and terminal for adjusting interface
US20110193788A1 (en) * 2010-02-10 2011-08-11 Apple Inc. Graphical objects that respond to touch or motion input
CN102682020A (en) * 2011-03-15 2012-09-19 深圳富泰宏精密工业有限公司 File management system and method
CN103294401A (en) * 2013-06-03 2013-09-11 广东欧珀移动通信有限公司 Icon processing method and device for electronic instrument with touch screen
CN104063280A (en) * 2014-06-25 2014-09-24 华为技术有限公司 Control method of intelligent terminal
CN104866231A (en) * 2015-06-12 2015-08-26 联想(北京)有限公司 Information processing method, device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933348A (en) * 2019-05-05 2020-03-27 唐山明天科技有限公司 Digital video recording method and device adopting dynamic compression ratio

Similar Documents

Publication Publication Date Title
KR101199618B1 (en) Apparatus and Method for Screen Split Displaying
CN108021259B (en) False touch prevention method and electronic equipment
CN107563170B (en) Fingerprint unlocking method and related product
KR101561763B1 (en) Information processing method and device for electronic device having touch screen
CN109543570B (en) Fingerprint identification method and related product
CN105912918B (en) A kind of unlocked by fingerprint method and terminal
CN105159592A (en) Application starting method and terminal
CN105739773A (en) Screen capture method and terminal
CN106572207B (en) Device and method for identifying single-hand mode of terminal
CN104571829A (en) Display control method of terminal and terminal
CN105718199A (en) Control method of application program and mobile terminal
CN105872542A (en) Image compression method and device and electronic equipment
CN105760101A (en) Video playing control method and electronic device
CN105653259A (en) Application starting method, apparatus and terminal
CN105988805A (en) Management method for application programs and mobile terminal
CN108932057A (en) Method of controlling operation thereof, device, storage medium and electronic equipment
US20160162182A1 (en) Method and Terminal for Varying Keys of a Touch Keyboard
CN106203034A (en) A kind of unlocked by fingerprint method and terminal
CN105630285A (en) Application startup method and device, and mobile terminal
CN105677788A (en) File searching method and user terminal
CN105718142B (en) A kind of status bar notification message display methods and mobile terminal
CN105824564A (en) Method for using function of return key and terminal
CN105824534A (en) Information processing method and electronic equipment
CN105677185A (en) Data compression method and mobile terminal
CN105824548A (en) Methods and devices for merging and splitting spreadsheet cells

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: 20160615