CN105045846A - Image storage method and terminal - Google Patents
Image storage method and terminal Download PDFInfo
- Publication number
- CN105045846A CN105045846A CN201510383136.XA CN201510383136A CN105045846A CN 105045846 A CN105045846 A CN 105045846A CN 201510383136 A CN201510383136 A CN 201510383136A CN 105045846 A CN105045846 A CN 105045846A
- Authority
- CN
- China
- Prior art keywords
- target
- free memory
- compression
- view data
- ratio
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
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)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Embodiments of the present invention disclose an image storage method and a terminal. The method comprises the following steps of: acquiring to-be-stored image data, and detecting target available storage space of a terminal; determining, according to the target available storage space, a target compression ratio corresponding to the image data; and compressing the image data according to the target compression ratio to generate a target image, and storing the target image into the target available storage space. By adopting the image storage method, the storage efficiency of the terminal can be improved, and then the intelligence and convenience of the terminal can be improved.
Description
Technical field
The present invention relates to technical field of information processing, particularly relate to a kind of storage means and terminal of image.
Background technology
Along with the development of electronic technology, terminal becomes necessity indispensable in people's life already, and camera is one of most terminal necessity configuration, and people can use it to take personage, landscape to record life, are very welcome functions.The camera pixel that configures along with terminal increases, and makes the quality that improve pictures taken, and also allow picture take up space increase, such as, 1,300 ten thousand pixel camera heads, the image size of clapping reaches about 3M simultaneously.When the smaller or remaining storage space in poke space is smaller, many bat several the images of user or many storages several images will cause the situation of memory space inadequate, reduce the storage efficiency of terminal, have impact on the intelligent of terminal and convenience.
Summary of the invention
The embodiment of the present invention provides a kind of storage means and terminal of image, can improve the storage efficiency of terminal, and then improves the intelligent and convenience of terminal.
Embodiment of the present invention first aspect provides a kind of storage means of image, comprising:
Obtain view data to be stored, and the target free memory of sense terminals;
According to described target free memory, determine the target compression ratio that described view data is corresponding;
According to described target compression ratio, described Image Data Compression is generated target image, and described target image is stored to described target free memory.
In the first possible implementation of embodiment of the present invention first aspect, the view data that described acquisition is to be stored, comprising:
Obtain the view data to be stored generated according to photographing instruction;
Or,
When receiving the storage instruction to image, obtain the view data that described storage instruction is corresponding.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second of embodiment of the present invention first aspect is possible, described according to described target free memory, before determining the target compression ratio that described view data is corresponding, also comprise:
Obtain the mapping table of free memory scope and the ratio of compression prestored;
Described according to described target free memory, determine to comprise the target compression ratio that described view data is corresponding:
The free memory scope residing for described target free memory is found out in the mapping table of described free memory scope and ratio of compression;
At the ratio of compression that described free memory scope is corresponding with finding out described free memory scope in the mapping table of ratio of compression, and the ratio of compression found out is defined as target compression ratio corresponding to described view data.
In conjunction with the first possible implementation of first aspect or first aspect, in the third possible implementation of embodiment of the present invention first aspect, describedly according to described target compression ratio, described Image Data Compression is generated target image, and before described target image is stored to described target free memory, also comprise:
Calculate taking up room of described view data, and take up room whether be greater than predetermined threshold value described in judging;
When described take up room be greater than predetermined threshold value time, perform, according to described target compression ratio, described Image Data Compression generated target image, and described target image is stored to the step of described target free memory.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of embodiment of the present invention first aspect, take up room described in described judgement after whether being greater than predetermined threshold value, also comprise:
When described take up room be not more than predetermined threshold value time, described target data Lossless Compression is generated target image, and described target image is stored to described target free memory.
Embodiment of the present invention second aspect provides a kind of terminal, comprising:
First acquiring unit, for obtaining view data to be stored, and the target free memory of sense terminals;
Determining unit, for according to described target free memory, determines the target compression ratio that described view data is corresponding;
Storage unit, for described Image Data Compression being generated target image according to described target compression ratio, and is stored to described target free memory by described target image.
In the first possible implementation of embodiment of the present invention second aspect, described first acquiring unit is specifically for obtaining the view data to be stored generated according to photographing instruction;
Or,
Described first acquiring unit, specifically for when receiving the storage instruction to image, obtains the view data that described storage instruction is corresponding.
In conjunction with the first possible implementation of second aspect or second aspect, in the implementation that the second of embodiment of the present invention second aspect is possible, described terminal also comprises:
Second acquisition unit, for obtaining the mapping table of free memory scope and the ratio of compression prestored;
Described determining unit comprises:
First searches subelement, for finding out the free memory scope residing for described target free memory in the mapping table of described free memory scope and ratio of compression;
Second searches subelement, at the described free memory scope ratio of compression corresponding with finding out described free memory scope in the mapping table of ratio of compression;
Determine subelement, for the ratio of compression found out is defined as target compression ratio corresponding to described view data.
In conjunction with the first possible implementation of second aspect or second aspect, in the third possible implementation of embodiment of the present invention second aspect, described terminal also comprises:
Computing unit, for calculating taking up room of described view data, and takes up room whether be greater than predetermined threshold value described in judging;
Described storage unit specifically for when described in take up room be greater than predetermined threshold value time, perform, according to described target compression ratio, described Image Data Compression generated target image, and described target image is stored to the step of described target free memory.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of embodiment of the present invention second aspect, described terminal also comprises:
Described storage unit, also for when described in take up room be not more than predetermined threshold value time, described target data Lossless Compression is generated target image, and described target image is stored to described target free memory.
In embodiments of the present invention, by obtaining view data to be stored, and the target free memory of sense terminals, according to described target free memory, determine the target compression ratio that described view data is corresponding, according to described target compression ratio, described Image Data Compression is generated target image, and described target image is stored to described target free memory.By determining the target compression ratio to view data according to the target free memory of terminal, so just, can when memory space inadequate, many storage several images, improve the storage efficiency of image, and then also improve the intelligent of terminal and convenience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only 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 the storage means of a kind of image that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the storage means of the another kind of image that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the another kind of terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the determining unit that the embodiment of the present invention provides.
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 only 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 paying the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The storage means of the image that the embodiment of the present invention provides and terminal can be applied to the situation that terminal is in photographed scene, such as: when terminal taking obtains view data to be stored, the target free memory of sense terminals, according to target free memory, determine the target compression ratio that view data is corresponding, according to target compression ratio, Image Data Compression is generated target image, and target image is stored to target free memory.By determining the target compression ratio to view data according to the target free memory of terminal, so just, can when memory space inadequate, many storage several images, improve the storage efficiency of image, and then also improve the intelligent of terminal and convenience.
The terminal that the embodiment of the present invention relates to can be any equipment possessing communication and memory function, such as: panel computer, mobile phone, electronic reader, telepilot, personal computer (PersonalComputer, PC), notebook computer, mobile unit, Web TV, wearable device etc. have the smart machine of network function.
Below in conjunction with accompanying drawing 1-accompanying drawing 2, the storage means of the image that the embodiment of the present invention provides is described in detail.
Refer to Fig. 1, for embodiments providing a kind of schematic flow sheet of storage means of image.As shown in Figure 1, the described method of the embodiment of the present invention can comprise the following steps S101-step S103.
S101, obtains view data to be stored, and the target free memory of sense terminals.
Concrete, terminal obtains view data to be stored, and the target free memory of sense terminals.Wherein, described view data to be stored can be use camera take pictures obtain view data, also can be the view data etc. that the view data downloaded from application program (such as, browser software, instant communication software etc.) or manual sectional drawing obtain.After getting view data to be stored, described terminal detects the target free memory of local terminal, in order to store view data according to target free memory.
S102, according to described target free memory, determines the target compression ratio that described view data is corresponding.
Concrete, described terminal, according to described target free memory, determines the target compression ratio that described view data is corresponding.Wherein, described target compression ratio is the compression factor changing view data.Such as, when target free memory is less than 300M and is more than or equal to 100M, target setting ratio of compression is 80%; When target free memory is less than 100M and is more than or equal to 50M, target setting ratio of compression is 70%; When target free memory is less than 50M and is more than or equal to 30M, target setting ratio of compression is 60%, in addition, when target free memory is less than 30M, now do not allow to take pictures, download image or storage figure picture, be because picture quality reduces again, will picture quality be had a strong impact on, and have impact on storage effect.These are only and enumerate, by the size determination target compression ratio according to target free memory, can storage efficiency be improved, allow many storage several the images of user, strengthen user's stickiness.
S103, generates target image according to described target compression ratio by described Image Data Compression, and described target image is stored to described target free memory.
Concrete, after determining the target compression ratio to view data to be stored, described Image Data Compression is generated target image according to described target compression ratio by described terminal, and described target image is stored to described target free memory.Be understandable that, the concrete store path of described target image can be determined by user or determine according to the default path of application software.Store by carrying out compression generation target image to target data, save certain storage space, this mode, when free memory is less, uses more, improves the intelligent of mobile terminal and convenience.
In embodiments of the present invention, by obtaining view data to be stored, and the target free memory of sense terminals, according to described target free memory, determine the target compression ratio that described view data is corresponding, according to described target compression ratio, described Image Data Compression is generated target image, and described target image is stored to described target free memory.By determining the target compression ratio to view data according to the target free memory of terminal, so just, can when memory space inadequate, many storage several images, improve the storage efficiency of image, and then also improve the intelligent of terminal and convenience.
Refer to Fig. 2, for embodiments providing the schematic flow sheet of the storage means of another kind of image.As shown in Figure 2, the described method of the embodiment of the present invention can comprise the following steps S201-step S206.
S201, obtains view data to be stored, and the target free memory of sense terminals.
Concrete, described terminal obtains view data to be stored, and detects the target free memory of local terminal.Wherein, the view data that described acquisition is to be stored comprises the view data to be stored obtaining and generate according to photographing instruction; Or described acquisition view data to be stored comprises when receiving the storage instruction to image, obtains the view data that described storage instruction is corresponding.After getting view data to be stored, described terminal detects the target free memory of local terminal, in order to store view data according to target free memory.
S202, obtains the mapping table of free memory scope and the ratio of compression prestored.
Concrete, described terminal obtains the mapping table of free memory scope and the ratio of compression prestored.The corresponding relation of free memory scope and ratio of compression is have recorded in the mapping table of described free memory scope and ratio of compression.Such as, when free memory scope is for being less than 300M and being more than or equal to 100M, setting ratio of compression is 80%; When free memory scope is for being less than 100M and being more than or equal to 50M, setting ratio of compression is 70%; When free memory scope is for being less than 50M and being more than or equal to 30M, setting ratio of compression is 60%, in addition, when free memory scope is for being less than 30M, now do not allow to take pictures, download image or storage figure picture, be because picture quality reduces again, will picture quality be had a strong impact on, and have impact on storage effect.In feasible scheme, the change of user to the mapping table of described free memory scope and ratio of compression can be received, more can meet the actual demand of user, strengthen user's stickiness.
S203, finds out the free memory scope residing for described target free memory in the mapping table of described free memory scope and ratio of compression.
Concrete, described terminal is according to the target free memory detected, the free memory scope residing for described target free memory is found out, in order to search ratio of compression corresponding to described target free memory further in the mapping table of described free memory scope and ratio of compression.
S204, at the ratio of compression that described free memory scope is corresponding with finding out described free memory scope in the mapping table of ratio of compression, and is defined as target compression ratio corresponding to described view data by the ratio of compression found out.
Concrete, described terminal is according to the described free memory scope found, at the ratio of compression that described free memory scope is corresponding with finding out described free memory scope in the mapping table of ratio of compression, and the ratio of compression found out is defined as target compression ratio corresponding to described view data.
S205, calculates taking up room of described view data, and takes up room whether be greater than predetermined threshold value described in judging.
Concrete, described terminal calculates taking up room of described view data, and takes up room whether be greater than predetermined threshold value described in judging.If taking up room of described view data is greater than predetermined threshold value, then perform step S206; If taking up room of described view data is not more than predetermined threshold value, then perform step S207.
S206, generates target image according to described target compression ratio by described Image Data Compression, and described target image is stored to described target free memory.
Concrete, when described view data take up room be greater than predetermined threshold value time, according to described target compression ratio, described Image Data Compression is generated target image, and described target image is stored to described target free memory.Be understandable that, the concrete store path of described target image can be determined by user or determine according to the default path of application software.Store by carrying out compression generation target image to target data, save certain storage space, this mode, when free memory is less, uses more, improves the intelligent of mobile terminal and convenience.
S207, generates target image by described target data Lossless Compression, and described target image is stored to described target free memory.
Concrete, when described take up room be not more than predetermined threshold value time, described target data Lossless Compression is generated target image, and described target image is stored to described target free memory.Thisly determine whether to carry out according to target compression ratio the mode compressed according to taking up room of view data, when view data take up room originally just little, can not compress, and then also can not the quality of effect diagram picture.Such as, the pixel of the front-facing camera of mobile terminal configuration is lower, use front-facing camera take the view data that obtains corresponding take up room smaller, picture quality is general, even if be 70% according to free memory determination ratio of compression current in mobile terminal, view data take up room be less than predetermined threshold value time, image is not compressed.So just, stored view data can be ensured, while raising storage efficiency, ensure that the quality of storage figure picture.
In embodiments of the present invention, by obtaining view data to be stored, and the target free memory of sense terminals, according to described target free memory, determine the target compression ratio that described view data is corresponding, according to described target compression ratio, described Image Data Compression is generated target image, and described target image is stored to described target free memory.By determining the target compression ratio to view data according to the target free memory of terminal, so just, can when memory space inadequate, many storage several images, improve the storage efficiency of image, can determine whether to be compressed according to taking up room of view data again simultaneously, and then the storage quality of the view data ensured, also improve the intelligent of terminal and convenience.
Below in conjunction with accompanying drawing 3-accompanying drawing 5, the terminal that the embodiment of the present invention provides is described in detail.It should be noted that, the terminal shown in accompanying drawing 3-accompanying drawing 5, for performing the method for Fig. 1 of the present invention-embodiment illustrated in fig. 2, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment shown in Fig. 1-Fig. 2 of the present invention.
Refer to Fig. 3, for embodiments providing a kind of structural representation of terminal.As shown in Figure 3, the described terminal 1 of the embodiment of the present invention can comprise: the first acquiring unit 11, determining unit 12 and storage unit 13.
First acquiring unit 11, for obtaining view data to be stored, and the target free memory of sense terminals.
In specific implementation, described first acquiring unit 11 obtains view data to be stored, and the target free memory of sense terminals.Wherein, described view data to be stored can be use camera take pictures obtain view data, also can be the view data etc. that the view data downloaded from application program (such as, browser software, instant communication software etc.) or manual sectional drawing obtain.After getting view data to be stored, described terminal detects the target free memory of local terminal, in order to store view data according to target free memory.
Determining unit 12, for according to described target free memory, determines the target compression ratio that described view data is corresponding.
In specific implementation, described determining unit 12, according to described target free memory, determines the target compression ratio that described view data is corresponding.Wherein, described target compression ratio is the compression factor changing view data.Such as, when target free memory is less than 300M and is more than or equal to 100M, target setting ratio of compression is 80%; When target free memory is less than 100M and is more than or equal to 50M, target setting ratio of compression is 70%; When target free memory is less than 50M and is more than or equal to 30M, target setting ratio of compression is 60%, in addition, when target free memory is less than 30M, now do not allow to take pictures, download image or storage figure picture, be because picture quality reduces again, will picture quality be had a strong impact on, and have impact on storage effect.These are only and enumerate, by the size determination target compression ratio according to target free memory, can storage efficiency be improved, allow many storage several the images of user, strengthen user's stickiness.
Storage unit 13, for described Image Data Compression being generated target image according to described target compression ratio, and is stored to described target free memory by described target image.
In specific implementation, after determining the target compression ratio to view data to be stored, described Image Data Compression is generated target image according to described target compression ratio by described storage unit 13, and described target image is stored to described target free memory.Be understandable that, the concrete store path of described target image can be determined by user or determine according to the default path of application software.Store by carrying out compression generation target image to target data, save certain storage space, this mode, when free memory is less, uses more, improves the intelligent of mobile terminal and convenience.
In embodiments of the present invention, by obtaining view data to be stored, and the target free memory of sense terminals, according to described target free memory, determine the target compression ratio that described view data is corresponding, according to described target compression ratio, described Image Data Compression is generated target image, and described target image is stored to described target free memory.By determining the target compression ratio to view data according to the target free memory of terminal, so just, can when memory space inadequate, many storage several images, improve the storage efficiency of image, and then also improve the intelligent of terminal and convenience.
Refer to Fig. 5, for embodiments providing the structural representation of another kind of terminal.As shown in Figure 5, the described terminal 1 of the embodiment of the present invention can comprise: the first acquiring unit 11, determining unit 12, storage unit 13, second acquisition unit 14 and computing unit 15.
First acquiring unit 11, for obtaining view data to be stored, and the target free memory of sense terminals.
In specific implementation, described first acquiring unit 11 obtains view data to be stored, and detects the target free memory of local terminal.Wherein, the view data that described acquisition is to be stored comprises the view data to be stored obtaining and generate according to photographing instruction; Or described acquisition view data to be stored comprises when receiving the storage instruction to image, obtains the view data that described storage instruction is corresponding.After getting view data to be stored, described first acquiring unit 11 detects the target free memory of local terminal, in order to store view data according to target free memory.
Second acquisition unit 14, for obtaining the mapping table of free memory scope and the ratio of compression prestored.
In specific implementation, described second acquisition unit 14 obtains the mapping table of free memory scope and the ratio of compression prestored.The corresponding relation of free memory scope and ratio of compression is have recorded in the mapping table of described free memory scope and ratio of compression.Such as, when free memory scope is for being less than 300M and being more than or equal to 100M, setting ratio of compression is 80%; When free memory scope is for being less than 100M and being more than or equal to 50M, setting ratio of compression is 70%; When free memory scope is for being less than 50M and being more than or equal to 30M, setting ratio of compression is 60%, in addition, when free memory scope is for being less than 30M, now do not allow to take pictures, download image or storage figure picture, be because picture quality reduces again, will picture quality be had a strong impact on, and have impact on storage effect.In feasible scheme, the change of user to the mapping table of described free memory scope and ratio of compression can be received, more can meet the actual demand of user, strengthen user's stickiness.
Determining unit 12, for according to described target free memory, determines the target compression ratio that described view data is corresponding.
In specific implementation, please also refer to Fig. 5, for embodiments providing the structural representation of generation unit.As shown in Figure 5, the described determining unit 12 of the embodiment of the present invention can comprise: first searches subelement 121, second searches subelement 122 and determines subelement 123.
First searches subelement 121, for finding out the free memory scope residing for described target free memory in the mapping table of described free memory scope and ratio of compression;
In specific implementation, described first searches subelement 121 according to the target free memory detected, the free memory scope residing for described target free memory is found out, in order to search ratio of compression corresponding to described target free memory further in the mapping table of described free memory scope and ratio of compression.
Second searches subelement 122, at the described free memory scope ratio of compression corresponding with finding out described free memory scope in the mapping table of ratio of compression.
In specific implementation, described second searches subelement 122 according to the described free memory scope found, at the ratio of compression that described free memory scope is corresponding with finding out described free memory scope in the mapping table of ratio of compression.
Determine subelement 123, for the ratio of compression found out is defined as target compression ratio corresponding to described view data.
In specific implementation, describedly determine that the ratio of compression found out is defined as target compression ratio corresponding to described view data by subelement 123, in order to compress according to described targeted compression comparison view data.
Computing unit 15, for calculating taking up room of described view data, and takes up room whether be greater than predetermined threshold value described in judging.
In specific implementation, described computing unit 15 calculates taking up room of described view data, and takes up room whether be greater than predetermined threshold value described in judging.
Storage unit 13, for described Image Data Compression being generated target image according to described target compression ratio, and is stored to described target free memory by described target image.
In specific implementation, when described view data take up room be greater than predetermined threshold value time, described Image Data Compression is generated target image according to described target compression ratio by described storage unit 13, and described target image is stored to described target free memory.Be understandable that, the concrete store path of described target image can be determined by user or determine according to the default path of application software.Store by carrying out compression generation target image to target data, save certain storage space, this mode, when free memory is less, uses more, improves the intelligent of mobile terminal and convenience.
Described storage unit 13, also for when described in take up room be not more than predetermined threshold value time, described target data Lossless Compression is generated target image, and described target image is stored to described target free memory.
In specific implementation, when described take up room be not more than predetermined threshold value time, described target data Lossless Compression is generated target image by described storage unit 13, and described target image is stored to described target free memory.Thisly determine whether to carry out according to target compression ratio the mode compressed according to taking up room of view data, when view data take up room originally just little, can not compress, and then also can not the quality of effect diagram picture.Such as, the pixel of the front-facing camera of mobile terminal configuration is lower, use front-facing camera take the view data that obtains corresponding take up room smaller, picture quality is general, even if be 70% according to free memory determination ratio of compression current in mobile terminal, view data take up room be less than predetermined threshold value time, image is not compressed.So just, stored view data can be ensured, while raising storage efficiency, ensure that the quality of storage figure picture.
In embodiments of the present invention, by obtaining view data to be stored, and the target free memory of sense terminals, according to described target free memory, determine the target compression ratio that described view data is corresponding, according to described target compression ratio, described Image Data Compression is generated target image, and described target image is stored to described target free memory.By determining the target compression ratio to view data according to the target free memory of terminal, so just, can when memory space inadequate, many storage several images, improve the storage efficiency of image, can determine whether to be compressed according to taking up room of view data again simultaneously, and then the storage quality of the view data ensured, also improve the intelligent of terminal and convenience.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.
Claims (10)
1. a storage means for image, is characterized in that, comprising:
Obtain view data to be stored, and the target free memory of sense terminals;
According to described target free memory, determine the target compression ratio that described view data is corresponding;
According to described target compression ratio, described Image Data Compression is generated target image, and described target image is stored to described target free memory.
2. method according to claim 1, is characterized in that, the view data that described acquisition is to be stored, comprising:
Obtain the view data to be stored generated according to photographing instruction;
Or,
When receiving the storage instruction to image, obtain the view data that described storage instruction is corresponding.
3. method according to claim 1 and 2, is characterized in that, described according to described target free memory, before determining the target compression ratio that described view data is corresponding, also comprises:
Obtain the mapping table of free memory scope and the ratio of compression prestored;
Described according to described target free memory, determine to comprise the target compression ratio that described view data is corresponding:
The free memory scope residing for described target free memory is found out in the mapping table of described free memory scope and ratio of compression;
At the ratio of compression that described free memory scope is corresponding with finding out described free memory scope in the mapping table of ratio of compression, and the ratio of compression found out is defined as target compression ratio corresponding to described view data.
4. method according to claim 1 and 2, is characterized in that, describedly according to described target compression ratio, described Image Data Compression is generated target image, and before described target image is stored to described target free memory, also comprises:
Calculate taking up room of described view data, and take up room whether be greater than predetermined threshold value described in judging;
When described take up room be greater than predetermined threshold value time, perform, according to described target compression ratio, described Image Data Compression generated target image, and described target image is stored to the step of described target free memory.
5. method according to claim 4, is characterized in that, takes up room after whether being greater than predetermined threshold value, also comprise described in described judgement:
When described take up room be not more than predetermined threshold value time, described target data Lossless Compression is generated target image, and described target image is stored to described target free memory.
6. a terminal, is characterized in that, comprising:
First acquiring unit, for obtaining view data to be stored, and the target free memory of sense terminals;
Determining unit, for according to described target free memory, determines the target compression ratio that described view data is corresponding;
Storage unit, for described Image Data Compression being generated target image according to described target compression ratio, and is stored to described target free memory by described target image.
7. terminal according to claim 6, is characterized in that, described first acquiring unit is specifically for obtaining the view data to be stored generated according to photographing instruction;
Or,
Described first acquiring unit, specifically for when receiving the storage instruction to image, obtains the view data that described storage instruction is corresponding.
8. the terminal according to claim 6 or 7, is characterized in that, described terminal also comprises:
Second acquisition unit, for obtaining the mapping table of free memory scope and the ratio of compression prestored;
Described determining unit comprises:
First searches subelement, for finding out the free memory scope residing for described target free memory in the mapping table of described free memory scope and ratio of compression;
Second searches subelement, at the described free memory scope ratio of compression corresponding with finding out described free memory scope in the mapping table of ratio of compression;
Determine subelement, for the ratio of compression found out is defined as target compression ratio corresponding to described view data.
9. the terminal according to claim 6 or 7, is characterized in that, described terminal also comprises:
Computing unit, for calculating taking up room of described view data, and takes up room whether be greater than predetermined threshold value described in judging;
Described storage unit specifically for when described in take up room be greater than predetermined threshold value time, perform, according to described target compression ratio, described Image Data Compression generated target image, and described target image is stored to the step of described target free memory.
10. terminal according to claim 9, is characterized in that, described terminal also comprises:
Described storage unit, also for when described in take up room be not more than predetermined threshold value time, described target data Lossless Compression is generated target image, and described target image is stored to described target free memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510383136.XA CN105045846A (en) | 2015-06-30 | 2015-06-30 | Image storage method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510383136.XA CN105045846A (en) | 2015-06-30 | 2015-06-30 | Image storage method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105045846A true CN105045846A (en) | 2015-11-11 |
Family
ID=54452393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510383136.XA Pending CN105045846A (en) | 2015-06-30 | 2015-06-30 | Image storage method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105045846A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105959558A (en) * | 2016-06-08 | 2016-09-21 | 天脉聚源(北京)教育科技有限公司 | Method and device for taking and displaying picture |
CN110225399A (en) * | 2019-06-19 | 2019-09-10 | 深圳市共进电子股份有限公司 | Streaming Media processing method, device, computer equipment and storage medium |
CN110618973A (en) * | 2019-09-09 | 2019-12-27 | 大唐网络有限公司 | Image storage method and device |
CN110837343A (en) * | 2019-09-27 | 2020-02-25 | 华为技术有限公司 | Snapshot processing method and device and terminal |
CN110990606A (en) * | 2019-12-11 | 2020-04-10 | Tcl移动通信科技(宁波)有限公司 | Picture storage method and device, storage medium and electronic equipment |
CN113033779A (en) * | 2021-03-18 | 2021-06-25 | 联想(北京)有限公司 | Model processing method based on equipment parameters and electronic equipment |
CN114006947A (en) * | 2021-11-05 | 2022-02-01 | 统信软件技术有限公司 | File downloading method and device, computing equipment and storage medium |
CN114302146A (en) * | 2021-12-30 | 2022-04-08 | 阿里巴巴新加坡控股有限公司 | Image processing method, image processing device, electronic equipment and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101789016A (en) * | 2010-02-08 | 2010-07-28 | 浪潮(北京)电子信息产业有限公司 | Method and device thereof for improving valid storage capacity of file system |
CN102436421A (en) * | 2010-09-29 | 2012-05-02 | 腾讯科技(深圳)有限公司 | Data caching method |
CN103793928A (en) * | 2014-02-20 | 2014-05-14 | Tcl集团股份有限公司 | Self-adaptive image scaling method and device of mobile platform information |
CN103838766A (en) * | 2012-11-26 | 2014-06-04 | 深圳市腾讯计算机***有限公司 | Empty cache prevention method and device |
WO2015027882A1 (en) * | 2013-08-28 | 2015-03-05 | Tencent Technology (Shenzhen) Company Limited | Method, apparatus and terminal for image processing |
-
2015
- 2015-06-30 CN CN201510383136.XA patent/CN105045846A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101789016A (en) * | 2010-02-08 | 2010-07-28 | 浪潮(北京)电子信息产业有限公司 | Method and device thereof for improving valid storage capacity of file system |
CN102436421A (en) * | 2010-09-29 | 2012-05-02 | 腾讯科技(深圳)有限公司 | Data caching method |
CN103838766A (en) * | 2012-11-26 | 2014-06-04 | 深圳市腾讯计算机***有限公司 | Empty cache prevention method and device |
WO2015027882A1 (en) * | 2013-08-28 | 2015-03-05 | Tencent Technology (Shenzhen) Company Limited | Method, apparatus and terminal for image processing |
CN103793928A (en) * | 2014-02-20 | 2014-05-14 | Tcl集团股份有限公司 | Self-adaptive image scaling method and device of mobile platform information |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105959558A (en) * | 2016-06-08 | 2016-09-21 | 天脉聚源(北京)教育科技有限公司 | Method and device for taking and displaying picture |
CN110225399A (en) * | 2019-06-19 | 2019-09-10 | 深圳市共进电子股份有限公司 | Streaming Media processing method, device, computer equipment and storage medium |
CN110225399B (en) * | 2019-06-19 | 2021-11-23 | 深圳市共进电子股份有限公司 | Streaming media processing method and device, computer equipment and storage medium |
CN110618973A (en) * | 2019-09-09 | 2019-12-27 | 大唐网络有限公司 | Image storage method and device |
CN110837343A (en) * | 2019-09-27 | 2020-02-25 | 华为技术有限公司 | Snapshot processing method and device and terminal |
CN110990606A (en) * | 2019-12-11 | 2020-04-10 | Tcl移动通信科技(宁波)有限公司 | Picture storage method and device, storage medium and electronic equipment |
CN110990606B (en) * | 2019-12-11 | 2023-10-03 | Tcl移动通信科技(宁波)有限公司 | Picture storage method and device, storage medium and electronic equipment |
CN113033779A (en) * | 2021-03-18 | 2021-06-25 | 联想(北京)有限公司 | Model processing method based on equipment parameters and electronic equipment |
CN114006947A (en) * | 2021-11-05 | 2022-02-01 | 统信软件技术有限公司 | File downloading method and device, computing equipment and storage medium |
CN114006947B (en) * | 2021-11-05 | 2024-03-01 | 统信软件技术有限公司 | File downloading method and device, computing equipment and storage medium |
CN114302146A (en) * | 2021-12-30 | 2022-04-08 | 阿里巴巴新加坡控股有限公司 | Image processing method, image processing device, electronic equipment and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105045846A (en) | Image storage method and terminal | |
CN105554369B (en) | Electronic device and method for processing image | |
CN109407936B (en) | Screenshot method and related device | |
CN108024065B (en) | Terminal shooting method, terminal and computer readable storage medium | |
US10847073B2 (en) | Image display optimization method and apparatus | |
CN104883497A (en) | Positioning shooting method and mobile terminal | |
CN103871051A (en) | Image processing method, device and electronic equipment | |
CN108322663B (en) | Photographing method, device, terminal and storage medium | |
WO2016009110A1 (en) | Method and apparatus for detecting imaging conditions | |
CN104536711A (en) | Control method of terminal display | |
CN104780316A (en) | Camera starting detection method and camera starting detection device | |
CN105427233A (en) | Method and device for removing watermark | |
CN105578056A (en) | Photographing terminal and method | |
CN106454100B (en) | Focusing method, device and mobile terminal | |
CN104169913A (en) | A picture display method and device and a terminal device | |
CN110072057B (en) | Image processing method and related product | |
CN105472246A (en) | Photographing device and method | |
CN104994291A (en) | Method for starting wide-angle camera based on shooting scene environment, and terminal | |
CN104252697A (en) | Method and apparatus for rotating photo automatically, and terminal | |
CN105306802A (en) | Photographing mode switching method and device | |
CN105163035A (en) | Mobile terminal shooting system and mobile terminal shooting method | |
CN104580705A (en) | Terminal | |
CN111373728B (en) | Control method and device for camera application | |
CN110677580B (en) | Shooting method, shooting device, storage medium and terminal | |
US10838601B2 (en) | Processing method and terminal |
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 |
Application publication date: 20151111 |
|
RJ01 | Rejection of invention patent application after publication |