CN104461300B - Preview picture method and system - Google Patents
Preview picture method and system Download PDFInfo
- Publication number
- CN104461300B CN104461300B CN201410775605.8A CN201410775605A CN104461300B CN 104461300 B CN104461300 B CN 104461300B CN 201410775605 A CN201410775605 A CN 201410775605A CN 104461300 B CN104461300 B CN 104461300B
- Authority
- CN
- China
- Prior art keywords
- size
- preview picture
- supported
- target
- picture
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04842—Selection of displayed objects or displayed text elements
Abstract
The invention discloses a kind of preview picture method, and suitable for a kind of terminal, the preview picture method includes step:The preview picture size and the size of terminal screen that acquisition terminal is supported;The target size of preview picture, the difference minimum of the target size and the size of terminal screen size preset multiple are treated in determination from the preview picture size supported;Treat that preview picture compresses the first preview picture of generation according to the target size by described;First preview picture is compressed to the second preview picture to match with screen size, and shows second preview picture.The invention also discloses a kind of preview picture system.The invention enables the details for treating preview picture to be all presented, and improves the definition for treating preview picture, ensures the effect of preview picture.
Description
Technical field
The present invention relates to picture Processing Technique field, more particularly to preview picture method and system.
Background technology
With the continuous development of camera technique, increasing picture pick-up device (for example, camera, mobile phone etc.) enters people's
In daily life and work.People can record the drop of live and work picture pick-up device in a manner of taking pictures.People exist
All it is to include shielding by compression by the high-definition picture that camera exports when carrying out preview picture by picture pick-up device
On curtain, or camera is directly allowed to export the operation that a less size completes preview picture.Show in this way
Show that the preview picture of picture pick-up device can not be all presented to the details of some images, preview picture image is especially being amplified it
Afterwards, picture clarity is relatively low.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill
Art.
The content of the invention
It is a primary object of the present invention to provide a kind of preview picture method and system, it is intended to solve preview picture definition
The problem of relatively low.
To achieve the above object, a kind of preview picture method provided by the invention, the preview picture method include step:
The preview picture size and the size of terminal screen that acquisition terminal is supported;
The target size of preview picture, the target size and end panel are treated in determination from the preview picture size supported
The difference of the size of curtain size preset multiple is minimum;
Treat that preview picture compresses the first preview picture of generation according to the target size by described;
First preview picture is compressed to the second preview picture to match with screen size, and shows described second
Preview picture.
Preferably, it is described to determine to wrap the step for the treatment of the target size of preview picture from the preview picture size supported
Include:
It is determined that treat the size of preview picture;
The size for treating preview picture is matched with the size supported, the size matched from the size supported
No more than the size for treating preview picture;
The target size of preview picture is treated in determination from the size matched, and the target size and terminal screen size are pre-
If the difference of the size of multiple is minimum.
Preferably, it is described to determine to wrap the step for the treatment of the target size of preview picture from the preview picture size supported
Include:
It is determined that treat the length-width ratio for the preview picture that the length and width of preview picture are when supported;
The length-width ratio for treating preview picture and the length-width ratio for the preview picture supported are compared, from the length-width ratio supported
It is determined that the size consistent with the length-width ratio for treating preview picture;
The target size of preview picture is treated in determination from the size of determination, and the target size is preset with terminal screen size
The difference of the size of multiple is minimum.
Preferably, it is described to determine to include the step for the treatment of preview picture target size from the preview picture size supported:
Obtain the long boundary values in supported preview picture size and terminal screen size;
The target size of preview picture, the long boundary values of the target size are treated in determination from the preview picture size supported
It is minimum with the difference of the size of the long boundary values preset multiple of terminal screen size.
Preferably, it is described to determine to wrap the step for the treatment of the target size of preview picture from the preview picture size supported
Include:
Obtain short side value corresponding to short side value corresponding to supported preview picture size and terminal screen size;
The target size of preview picture, the short side value of the target size are treated in determination from the preview picture size supported
It is minimum with the difference of the size of terminal screen size short side value preset multiple.
In addition, to achieve the above object, the present invention also provides a kind of preview picture system, the preview picture system bag
Include:
Acquisition module, for obtaining the size of preview picture size that terminal supported and terminal screen;
Processing module, for determining to treat the target size of preview picture, the mesh from the preview picture size supported
The difference of dimensioning and the size of terminal screen size preset multiple is minimum;
Compression module, for treating that preview picture compresses the first preview picture of generation according to the target size by described;Also
The second preview picture is generated for first preview picture to be compressed into screen size;
Previewing module, for showing second preview picture.
Preferably, the processing module also includes determining unit and matching unit,
The determining unit, the size of preview picture is treated for determination;
The matching unit, for the size for treating preview picture to be matched with the size supported, from what is supported
The size matched in size is not more than the size for treating preview picture;
The determining unit, it is additionally operable to determine the target size for treating preview picture, the target from the size matched
The difference of size and the size of terminal screen size preset multiple is minimum.
Preferably, the determining unit, it is additionally operable to determine to treat the preview picture that the length and width of preview picture are when supported
Length-width ratio;
The matching unit, it is additionally operable to the length-width ratio and the length-width ratio ratio for the preview picture supported that will treat preview picture
It is right, the size consistent with the length-width ratio for treating preview picture is determined from the length-width ratio supported;
The determining unit, it is additionally operable to determine the target size for treating preview picture, the target chi from the size of determination
It is very little minimum with the difference of the size of terminal screen size preset multiple.
Preferably, the processing module, in addition to acquiring unit, for obtaining supported preview picture size and terminal
Long boundary values in screen size;
The determining unit, it is additionally operable to determine the target size for treating preview picture from the preview picture size supported,
The difference of the long boundary values of the target size and the size of the long boundary values preset multiple of terminal screen size is minimum.
Preferably, the acquisition module, it is additionally operable to obtain short side value and terminal corresponding to supported preview picture size
Short side value corresponding to screen size;
The determining unit, it is additionally operable to determine the target size for treating preview picture from the preview picture size supported,
The difference of the short side value of the target size and the size of terminal screen size short side value preset multiple is minimum.
The present invention is by obtaining the size of preview picture size that terminal supported and terminal screen;From the picture supported
The target size of preview picture, the target size and the size of terminal screen size preset multiple are treated in determination in preview size
Difference is minimum;First treat that preview picture compresses to obtain the first preview picture according to the target size by described, then by described first
Preview picture generates the second preview picture according to terminal screen size compression, and shows second preview picture.So that treat pre-
Look at picture details all present, improve the definition for treating preview picture, ensure that the effect of preview picture.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the first embodiment of preview picture method of the present invention;
Fig. 2 is present invention determine that the refinement schematic flow sheet of the embodiment of target size one;
Fig. 3 is present invention determine that the refinement schematic flow sheet of another embodiment of target size;
Fig. 4 is the schematic flow sheet of the second embodiment of preview picture method of the present invention;
Fig. 5 is the refinement schematic flow sheet of the embodiments of step S20 mono- in Fig. 1;
Fig. 6 is the schematic flow sheet of the 3rd embodiment of preview picture method of the present invention;
Fig. 7 is the high-level schematic functional block diagram of the first embodiment of preview picture system of the present invention;
Fig. 8 is the refinement high-level schematic functional block diagram of the embodiment of processing module one in Fig. 7;
Fig. 9 is the refinement high-level schematic functional block diagram of another embodiment of processing module in Fig. 7;
Figure 10 is the high-level schematic functional block diagram of the second embodiment of preview picture system of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
With reference to figure 1, the first embodiment of proposition inventive embodiments preview picture method, the preview picture method includes:
Step S10, the preview picture size and the size of terminal screen that acquisition terminal is supported;
The main body for performing preview picture method of the present invention can be picture pick-up device, can further be mounted in the shooting
The application program of preview picture in equipment.The picture pick-up device can be the electronic equipments such as camera, mobile phone, pad, in this implementation
It is preferably mobile phone in example.
The mobile phone is receiving preview picture instruction, i.e., when there is picture to need preview, obtains the mobile phone and supported
Preview picture size and current screen size.The preview picture size that the mobile phone is supported can be:1920*1080、
1280*960,960*720,864*480,720*480 etc., the size of the current screen can be 854*480,720*480 etc..
Step S20, determine to treat the target size of preview picture, the target size from the preview picture size supported
It is minimum with the difference of the size of terminal screen size value preset multiple;
Terminal screen is calculated after the size of supported preview picture size and terminal screen is obtained in the mobile phone
The size of the preset multiple of size value, the preset multiple can be 1.5 times, 2 times or 3 times etc., can be according to treating preview picture
Size set, or system sets a default value, such as 2 times etc. in advance, is preferably 2 times in the present embodiment.The mobile phone
The size of the preset multiple of terminal screen is calculated, the size calculated is compared with the preview picture size supported, from
The minimum size of the difference of the size with being calculated is determined in the preview picture size supported, identified size is target
Size.
The terminal screen size includes short side value and/or long boundary values.The terminal screen size can be terminal screen
Short side value and/or long boundary values.
It is described pre- from the picture supported with reference to figure 2 when the size of the terminal screen is the long boundary values of terminal screen
Look in size and determine that the process for treating the target size of preview picture can include:
Step S21, obtain the long boundary values in supported preview picture size and terminal screen size;
Step S22, determine to treat the target size of preview picture, the target size from the preview picture size supported
Long boundary values and the long boundary values preset multiple of terminal screen size size difference it is minimum.
For example, the long boundary values in terminal screen size is 854, the preset multiple is 1.5 times, calculates terminal screen chi
The size of the preset multiple of long boundary values in very little is 854*1.5=1281, and the preview picture size supported includes:1920*
1080th, 1280*960,960*720,864*480,720*480, then long boundary values and 1281 differences minimum are 1280, then 1280*
960 are defined as treating the target size of preview picture.
Further, it is described from being propped up with reference to figure 3 when the size of the terminal screen is the short side value of terminal screen
Determine that the process for treating the target size of preview picture can also include in the preview picture size held:
Step S23, obtain short side corresponding to short side value corresponding to supported preview picture size and terminal screen size
Value;
Step S24, determine to treat the target size of preview picture, the target size from the preview picture size supported
Short side value and terminal screen size short side value preset multiple size difference it is minimum.
For example, the short side value in terminal screen size is 480, the preset multiple is 2 times, calculates terminal screen size
In the value of preset multiple of short side value be 480*2=960, the preview picture size supported includes:1920*1080、1280*
960th, 960*720,864*480,720*480, then what short side value and 960 differences were minimum is 960, then 1280*960 is defined as treating pre-
Look at the target size of picture.
Step S30, treat that preview picture compresses the first preview picture of generation according to the target size by described;
Step S40, first preview picture is compressed to screen size and generates the second preview picture, and show described the
Two preview pictures.
The mobile phone treats preview picture according to target size compression generation first it is determined that after target size by described
Preview picture, then the picture is generated into the second preview picture according to the size compression of terminal screen, and by second preview
Picture is shown, for example, the size for treating preview picture is 1296*972, target size 1280*960, then by it is described treat it is pre-
The size compression of picture look at is 1280*960, if the size of the terminal screen is 854*480, by the boil down to 1280*
960 picture recompression is shown after being 854*480.
The embodiment of the present invention is by obtaining the size of preview picture size that terminal is supported and terminal screen;From being supported
Preview picture size in determine to treat the target size of preview picture, the target size and terminal screen size preset multiple
The difference of size is minimum;First treat that preview picture compresses to obtain the first preview picture according to the target size by described, then by institute
State the first preview picture and generate the second preview picture according to terminal screen size compression, and show second preview picture.Make
It must treat that the details of preview picture is all presented, improve the definition for treating preview picture, ensure that the effect of preview picture.
Reference picture 4, Fig. 4 are the schematic flow sheet of the second embodiment of preview picture method of the present invention.Based on above-mentioned picture
The first embodiment of method for previewing, the step S20 can also include:
Step S25, it is determined that treating the size of preview picture;
Step S26, the size for treating preview picture is matched with the size supported, matched from the size supported
Size is not more than the size for treating preview picture;
Step S27, determine to treat the target size of preview picture, the target dimension values and terminal from the size matched
The difference of the size of screen size preset multiple is minimum.
The mobile phone first determines to treat the size of preview picture, for example, being 1296*972.The preview picture treated that will be supported
Size matches with the size supported, for example, being 1920*1080,1280*960,960*720,864*480,720*480.From institute
The size matched in the size of support is not more than the size for treating preview picture, then the size supported matched is:1280*
960、960*720、864*480、720*480.Specifically, can be matched according to long boundary values in size and short side value, that is, match
The short side value that long boundary values in the size gone out is not more than in the size treated the long boundary values of preview picture and/or matched, which is not more than, to be treated
The short side value of preview picture.The target size of preview picture, the target size and terminal are treated in determination from the size matched
The difference of the size of screen size preset multiple is minimum, described in specific determination process first embodiment above, herein no longer
Repeat.
Further, can also include with reference to figure 5, the step S20:
Step S28, it is determined that treating the length-width ratio for the preview picture that the length and width of preview picture are when supported;
Step S29, the length-width ratio for treating preview picture and the length-width ratio for the preview picture supported are compared, from what is supported
The size consistent with the length-width ratio for treating preview picture is determined in length-width ratio;
Step S31, determines target size from the size of determination, and the target size is preset again with terminal screen size value
The difference of several sizes is minimum.
The mobile phone first determines to treat the length-width ratio for the preview picture that the length and width of preview picture are when supported, for example, determining
The length-width ratio for treating preview picture is 4:3, it is determined that the length-width ratio for the preview picture supported includes:4:3,3:2, treated from what is supported
The length-width ratio of preview picture is 4:3 size, determine to treat the target size of preview picture, the target chi from the size of determination
It is very little minimum with the difference of the size of terminal screen size preset multiple, described in specific determination process first embodiment above,
It will not be repeated here.
Preferably, in other embodiments of the present invention, it can also be the length-width ratio of terminal screen and treat preview picture
The mode that both sizes are combined matches size from the size for the preview picture supported, the process can first be completed
The matching of preview picture size is treated, then completes to treat the comparison of preview picture length-width ratio or first completes to treat preview graph length of a film
The comparison of wide ratio, then complete to treat the matching of preview picture size.
The embodiment of the present invention treats the comparison of the size and length-width ratio of preview picture by increase, improves what target size determined
Accuracy, the definition of preview picture is further improved, better assure that the effect of preview picture.
Reference picture 6, Fig. 6 are the schematic flow sheet of the 3rd embodiment of preview picture method of the present invention.Based on above-mentioned picture
The second embodiment of method for previewing, after the step S10, it can also include:
Step S50, the size of preview picture is treated described in acquisition;
Step S60, judge whether supported size is consistent with the size for treating preview picture;The mobile phone first obtains
The size for treating preview picture, the size for treating preview picture is compared with the preview picture size supported, propped up
The size held when the size of preview picture is consistent, performs step S60 with described, if the size supported treats preview graph with described
When the size of piece is inconsistent, step S70 is performed.For example, the size for treating preview picture is 1280*960, the picture supported
Preview size includes:1920*1080,1280*960,960*720,864*480,720*480, then judge that supported picture is pre-
The size consistent with the size for treating preview picture be present in size of looking at;The size for treating preview picture is 1296*972, institute
The preview picture size of support includes:1920*1080,1280*960,960*720,864*480,720*480, then judge to be propped up
The size consistent with the size for treating preview picture is not present in the preview picture size held.
Step S70, the first preview picture is generated according to the size compression of the terminal screen preset multiple, and according to terminal
First preview picture described in the size compression of screen generates the second preview picture, and shows second preview picture;
Step S70, perform and the target size for treating preview picture, the target are determined from the preview picture size supported
The size step minimum with the difference of the size of terminal screen size preset multiple.
The mobile phone the supported size with described when the size of preview picture is consistent, treat preview graph by described
Piece generates the first preview picture according to the size compression of the terminal screen preset multiple, and according to the size compression of terminal screen
First preview picture generates the second preview picture and shows second preview picture;If inconsistent preview is treated by described
Picture treats that the process of the target size of preview picture treats preview picture described in showing according to determination in above-described embodiment, to improve figure
The definition and preview effect of piece preview, specific determination treat the process of the target size of preview picture as described in above-mentioned embodiment,
It will not be repeated here.
In the embodiment of the present invention by getting the size of supported preview picture size and terminal screen, institute is obtained
The size for treating preview picture is stated, when having the size consistent with the size when preview picture in the size supported, according to
The size compression of the terminal screen preset multiple generates the first preview picture, and according to described in the size compression of terminal screen the
One preview picture generates the second preview picture and shows second preview picture, and preview picture is treated without being determined again
The process of target size, while the definition and effect of preview picture is improved, system resource is saved, improves systematic function.
It is corresponding, the high-level schematic functional block diagram of the first embodiment of preview picture system of the present invention is proposed, with reference to figure 7, institute
Stating preview picture system includes:Acquisition module 10, processing module 20, compression module 30 and previewing module 40.
The acquisition module 10, for obtaining the size of preview picture size that terminal supported and terminal screen;
Preview picture system can be the preview picture application program on installation and picture pick-up device, wherein, the shooting is set
Standby can be the electronic equipments such as camera, mobile phone, pad, in the present embodiment preferably mobile phone.
The mobile phone is receiving preview picture instruction, i.e., when there is picture to need preview, obtains the mobile phone and supported
Preview picture size and current screen size.The preview picture size that the mobile phone is supported can be:1920*1080、
1280*960,960*720,864*480,720*480 etc., the size of the current screen can be 854*480,720*480 etc..
The processing module 20, for determining to treat the target size of preview picture from the preview picture size supported,
The difference of the target size and the size of terminal screen size value preset multiple is minimum;
Terminal screen is calculated after the size of supported preview picture size and terminal screen is obtained in the mobile phone
The size of the preset multiple of size value, the preset multiple can be 1.5 times, 2 times or 3 times etc., can be according to treating preview picture
Size set, or system sets a default value, such as 2 times etc. in advance, is preferably 2 times in the present embodiment.The mobile phone
The size of the preset multiple of terminal screen is calculated, the size calculated is compared with the preview picture size supported, from
The minimum size of the difference of the size with being calculated is determined in the preview picture size supported, identified size is target
Size.
The terminal screen size includes short side value and/or long boundary values.The terminal screen size can be terminal screen
Short side value and/or long boundary values.
With reference to figure 8, the processing module 20 includes acquiring unit 21 and determining unit 22, when the size of the current screen
For terminal screen long boundary values when,
The acquiring unit 21, for obtaining the long boundary values in supported preview picture size and terminal screen size;
The determining unit 22, for determining to treat the target size of preview picture from the preview picture size supported,
The difference of the long boundary values of the target size and the size of the long boundary values preset multiple of terminal screen size is minimum.
For example, the long boundary values in terminal screen size is 854, the preset multiple is 1.5 times, calculates terminal screen chi
The size of the preset multiple of long boundary values in very little is 854*1.5=1281, and the preview picture size supported includes:1920*
1080th, 1280*960,960*720,864*480,720*480, then long boundary values and 1281 differences minimum are 1280, then 1280*
960 are defined as treating the target size of preview picture.
Further, when the size of the current screen is the long boundary values of terminal screen, the acquiring unit 21, also use
In short side value corresponding to short side value corresponding to the supported preview picture size of acquisition and terminal screen size;
The determining unit 22, it is additionally operable to determine the target chi for treating preview picture from the preview picture size supported
Very little, the difference of the short side value of the target size and the size of terminal screen size short side value preset multiple is minimum.
For example, the short side value in terminal screen size is 480, the preset multiple is 2 times, calculates terminal screen size
In the value of preset multiple of short side value be 480*2=960, the preview picture size supported includes:1920*1080、1280*
960th, 960*720,864*480,720*480, then what short side value and 960 differences were minimum is 960, then 1280*960 is defined as treating pre-
Look at the target size of picture.
The compression module 30, for treating that preview picture compresses the first preview graph of generation according to the target size by described
Piece;It is additionally operable to for first preview picture to be compressed to the second preview picture to match with screen size
The previewing module 30, for showing second preview picture.
The mobile phone treats preview picture according to target size compression generation first it is determined that after target size by described
Preview picture, then the picture is generated into the second preview picture according to the size compression of terminal screen, and by second preview
Picture is shown, for example, the size for treating preview picture is 1296*972, target size 1280*960, then by it is described treat it is pre-
The size compression of picture look at is 1280*960, if the size of the terminal screen is 854*480, by the boil down to 1280*
960 picture recompression is shown after being 854*480.
The embodiment of the present invention is by obtaining the size of preview picture size that terminal is supported and terminal screen;From being supported
Preview picture size in determine to treat the target size of preview picture, the target size and terminal screen size preset multiple
The difference of size is minimum;First treat that preview picture compresses to obtain the first preview picture according to the target size by described, then by institute
State the first preview picture and generate the second preview picture according to terminal screen size compression, and show second preview picture.Make
It must treat that the details of preview picture is all presented, improve the definition for treating preview picture, ensure that the effect of preview picture.
Further, also include matching unit 23 with reference to figure 9, the processing module 20, the determining unit 21, be additionally operable to
It is determined that treat the size of preview picture;
The matching unit 23, for the size for treating preview picture to be matched with the size supported, from the chi supported
The size matched in very little is not more than the size for treating preview picture;
The determining unit 22, it is additionally operable to determine the target size for treating preview picture, the mesh from the size matched
The difference of dimensioning value and the size of terminal screen size preset multiple is minimum.
The mobile phone first determines to treat the size of preview picture, for example, being 1296*972.The preview picture treated that will be supported
Size matches with the size supported, for example, being 1920*1080,1280*960,960*720,864*480,720*480.From institute
The size matched in the size of support is not more than the size for treating preview picture, then the size supported matched is:1280*
960、960*720、864*480、720*480.Specifically, can be matched according to long boundary values in size and short side value, that is, match
The short side value that long boundary values in the size gone out is not more than in the size treated the long boundary values of preview picture and/or matched, which is not more than, to be treated
The short side value of preview picture.The target size of preview picture, the target size and terminal are treated in determination from the size matched
The difference of the size of screen size preset multiple is minimum, described in specific determination process first embodiment above, herein no longer
Repeat.
Further, the determining unit 22, it is additionally operable to determine to treat that the picture that the length and width of preview picture are when supported is pre-
The length-width ratio look at;
The matching unit 23, it is additionally operable to the length-width ratio and the length-width ratio ratio for the preview picture supported that will treat preview picture
It is right, the size consistent with the length-width ratio for treating preview picture is determined from the length-width ratio supported;
The determining unit 22, it is additionally operable to determine target size from the size of determination, the target size and end panel
The difference of the size of curtain size value preset multiple is minimum.
The mobile phone first determines to treat the length-width ratio for the preview picture that the length and width of preview picture are when supported, for example, determining
The length-width ratio for treating preview picture is 4:3, it is determined that the length-width ratio for the preview picture supported includes:4:3,3:2, treated from what is supported
The length-width ratio of preview picture is 4:3 size, determine to treat the target size of preview picture, the target chi from the size of determination
It is very little minimum with the difference of the size of terminal screen size preset multiple, described in specific determination process first embodiment above,
It will not be repeated here.
Preferably, in other embodiments of the present invention, it can also be the length-width ratio of terminal screen and treat preview picture
The mode that both sizes are combined matches size from the size for the preview picture supported, the process can first be completed
The matching of preview picture size is treated, then completes to treat the comparison of preview picture length-width ratio or first completes to treat preview graph length of a film
The comparison of wide ratio, then complete to treat the matching of preview picture size.
The embodiment of the present invention treats the comparison of the size and length-width ratio of preview picture by increase, improves what target size determined
Accuracy, the definition of preview picture is further improved, better assure that the effect of preview picture.
Reference picture 10, Figure 10 are the high-level schematic functional block diagram of the second embodiment of preview picture system of the present invention.The figure
Piece prebrowsing system also includes judge module 50.
The acquisition module 10, it is additionally operable to treat the size of preview picture described in obtaining;
Whether the judge module 50, the size for judging supported are consistent with the size for treating preview picture;Institute
State mobile phone and first obtain the size for treating preview picture, by the size for treating preview picture and the preview picture size supported
Compare, the size supported with described when the size of preview picture is consistent, perform step S60, if the size supported and
It is described when the size of preview picture is inconsistent, perform step S70.For example, the size for treating preview picture is 1280*960,
The preview picture size supported includes:1920*1080,1280*960,960*720,864*480,720*480, then judge institute
The size consistent with the size for treating preview picture be present in the preview picture size of support;It is described treat preview picture size be
1296*972, the preview picture size supported include:1920*1080,1280*960,960*720,864*480,720*480,
Then judge that the size consistent with the size for treating preview picture is not present in supported preview picture size.
The compression module 30, it is additionally operable to generate the first preview graph according to the size compression of the terminal screen preset multiple
Piece, and generate the second preview picture according to the first preview picture described in the size compression of terminal screen;
The previewing module 40, it is additionally operable to show second preview picture.
The mobile phone the supported size with described when the size of preview picture is consistent, treat preview graph by described
Piece generates the first preview picture according to the size compression of the terminal screen preset multiple, and according to the size compression of terminal screen
First preview picture generates the second preview picture and shows second preview picture;If inconsistent preview is treated by described
Picture treats that the process of the target size of preview picture treats preview picture described in showing according to determination in above-described embodiment, to improve figure
The definition and preview effect of piece preview, specific determination treat the process of the target size of preview picture as described in above-mentioned embodiment,
It will not be repeated here.
In the embodiment of the present invention by getting the size of supported preview picture size and terminal screen, institute is obtained
The size for treating preview picture is stated, when having the size consistent with the size when preview picture in the size supported, according to
The size compression of the terminal screen preset multiple generates the first preview picture, and according to described in the size compression of terminal screen the
One preview picture generates the second preview picture and shows second preview picture, and preview picture is treated without being determined again
The process of target size, while the definition and effect of preview picture is improved, system resource is saved, improves systematic function.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of preview picture method, suitable for a kind of terminal, it is characterised in that the preview picture method includes step:
The preview picture size and the size of terminal screen that acquisition terminal is supported;
The target size of preview picture, the target size and terminal screen chi are treated in determination from the preview picture size supported
The difference of the size of very little preset multiple is minimum, and the preset multiple is set according to the size for treating preview picture;
Treat that preview picture compresses the first preview picture of generation according to the target size by described;
First preview picture is compressed to the second preview picture to match with screen size, and shows second preview
Picture.
2. preview picture method as claimed in claim 1, it is characterised in that described true from the preview picture size supported
Surely the step of target size for treating preview picture, includes:
It is determined that treat the size of preview picture;
The size for treating preview picture is matched with the size supported, the size matched from the size supported is little
In the size for treating preview picture;
The target size of preview picture is treated in determination from the size matched, and the target size is preset again with terminal screen size
The difference of several sizes is minimum.
3. preview picture method as claimed in claim 1, it is characterised in that described true from the preview picture size supported
Surely the step of target size for treating preview picture, includes:
It is determined that treat the length-width ratio for the preview picture that the length and width of preview picture are when supported;
The length-width ratio for treating preview picture and the length-width ratio for the preview picture supported are compared, determined from the length-width ratio supported
The size consistent with the length-width ratio for treating preview picture;
The target size of preview picture, the target size and terminal screen size preset multiple are treated in determination from the size of determination
Size difference it is minimum.
4. preview picture method as claimed in claim 1, it is characterised in that described true from the preview picture size supported
Surely the step for the treatment of preview picture target size includes:
Obtain the long boundary values in the long boundary values and terminal screen size of supported preview picture size;
The target size of preview picture, the long boundary values of the target size and end are treated in determination from the preview picture size supported
Hold the difference of the size of the long boundary values preset multiple of screen size minimum.
5. preview picture method as claimed in claim 1, it is characterised in that described true from the preview picture size supported
Surely the step of target size for treating preview picture, includes:
Obtain supported the short side value of preview picture size and the short side value of terminal screen size;
The target size of preview picture, the short side value of the target size and end are treated in determination from the preview picture size supported
Hold the difference of the size of screen size short side value preset multiple minimum.
6. a kind of preview picture system, it is characterised in that the preview picture system includes:
Acquisition module, for obtaining the size of preview picture size that terminal supported and terminal screen;
Processing module, for determining to treat the target size of preview picture, the target chi from the preview picture size supported
Very little minimum with the difference of the size of terminal screen size preset multiple, the preset multiple is set according to the size for treating preview picture
Put;
Compression module, for treating that preview picture compresses the first preview picture of generation according to the target size by described;It is additionally operable to
First preview picture is compressed to the second preview picture to match with screen size;
Previewing module, for showing second preview picture.
7. preview picture system as claimed in claim 6, it is characterised in that the processing module also include determining unit and
With unit,
The determining unit, the size of preview picture is treated for determination;
The matching unit, for the size for treating preview picture to be matched with the size supported, from the size supported
In the size that matches be not more than the size for treating preview picture;
The determining unit, it is additionally operable to determine the target size for treating preview picture, the target size from the size matched
It is minimum with the difference of the size of terminal screen size preset multiple.
8. preview picture system as claimed in claim 6, it is characterised in that the processing module also include determining unit and
With unit,
The determining unit, it is additionally operable to determine the length-width ratio for treating the preview picture that the length and width of preview picture are when supported;
The matching unit, the length-width ratio and the length-width ratio for the preview picture supported for being additionally operable to that preview picture will be treated compare, from
The size consistent with the length-width ratio for treating preview picture is determined in the length-width ratio supported;
The determining unit, is additionally operable to determine to treat the target size of preview picture from the size of determination, the target size with
The difference of the size of terminal screen size preset multiple is minimum.
9. preview picture system as claimed in claim 6, it is characterised in that the processing module is also including acquiring unit and really
Order member,
The acquiring unit, the long side in long boundary values and terminal screen size for obtaining supported preview picture size
Value;
The determining unit, it is additionally operable to determine the target size for treating preview picture from the preview picture size supported, it is described
The difference of the long boundary values of target size and the size of the long boundary values preset multiple of terminal screen size is minimum.
10. preview picture system as claimed in claim 6, it is characterised in that the processing module also include acquiring unit and
Determining unit,
The acquiring unit, it is additionally operable to obtain the supported short side value of preview picture size and the short side of terminal screen size
Value;
The determining unit, it is additionally operable to determine the target size for treating preview picture from the preview picture size supported, it is described
The difference of the short side value of target size and the size of terminal screen size short side value preset multiple is minimum.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410775605.8A CN104461300B (en) | 2014-12-15 | 2014-12-15 | Preview picture method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410775605.8A CN104461300B (en) | 2014-12-15 | 2014-12-15 | Preview picture method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104461300A CN104461300A (en) | 2015-03-25 |
CN104461300B true CN104461300B (en) | 2017-12-12 |
Family
ID=52907443
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410775605.8A Active CN104461300B (en) | 2014-12-15 | 2014-12-15 | Preview picture method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104461300B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105677731B (en) * | 2015-12-29 | 2019-05-21 | 小米科技有限责任公司 | Show method, apparatus, terminal and the server of preview picture figure |
CN105898030B (en) * | 2015-12-31 | 2019-12-13 | 乐融致新电子科技(天津)有限公司 | picture processing method and device and mobile phone |
CN106168900A (en) * | 2016-06-17 | 2016-11-30 | 武汉斗鱼网络科技有限公司 | A kind of picture system of selection and device |
CN106547508A (en) * | 2016-10-20 | 2017-03-29 | 天脉聚源(北京)传媒科技有限公司 | A kind of display methods and device of preview picture |
CN110059274A (en) * | 2019-03-15 | 2019-07-26 | 平安普惠企业管理有限公司 | Front end picture amplifying method, device, computer equipment and storage medium |
CN112055244B (en) * | 2020-09-04 | 2022-06-21 | 维沃移动通信有限公司 | Image acquisition method and device, server and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1469316A (en) * | 2002-06-27 | 2004-01-21 | 精工爱普生株式会社 | Method and apparatus for processing & displaying random enlarged image with high clarity by compression field |
CN101030365A (en) * | 2007-04-10 | 2007-09-05 | 北京中星微电子有限公司 | Digital image storage displaying method and device |
CN103345390A (en) * | 2013-06-17 | 2013-10-09 | 北京金山安全软件有限公司 | Picture output method and device for mobile terminal and mobile terminal |
EP2118847B1 (en) * | 2007-02-16 | 2014-05-28 | Mobile Imaging in Sweden AB | Method for processing a digital image |
CN103870197A (en) * | 2014-03-21 | 2014-06-18 | 天脉聚源(北京)传媒科技有限公司 | Method and device for processing picture |
CN103903221A (en) * | 2012-12-24 | 2014-07-02 | 腾讯科技(深圳)有限公司 | Image generation method, image generation device and image generation system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2012108572A (en) * | 2009-08-11 | 2013-09-20 | Конинклейке Филипс Электроникс Н.В. | METHOD AND DEVICE FOR PROVIDING IMAGES FOR DISPLAY |
-
2014
- 2014-12-15 CN CN201410775605.8A patent/CN104461300B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1469316A (en) * | 2002-06-27 | 2004-01-21 | 精工爱普生株式会社 | Method and apparatus for processing & displaying random enlarged image with high clarity by compression field |
EP2118847B1 (en) * | 2007-02-16 | 2014-05-28 | Mobile Imaging in Sweden AB | Method for processing a digital image |
CN101030365A (en) * | 2007-04-10 | 2007-09-05 | 北京中星微电子有限公司 | Digital image storage displaying method and device |
CN103903221A (en) * | 2012-12-24 | 2014-07-02 | 腾讯科技(深圳)有限公司 | Image generation method, image generation device and image generation system |
CN103345390A (en) * | 2013-06-17 | 2013-10-09 | 北京金山安全软件有限公司 | Picture output method and device for mobile terminal and mobile terminal |
CN103870197A (en) * | 2014-03-21 | 2014-06-18 | 天脉聚源(北京)传媒科技有限公司 | Method and device for processing picture |
Also Published As
Publication number | Publication date |
---|---|
CN104461300A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104461300B (en) | Preview picture method and system | |
KR102149453B1 (en) | Electronic device and method for acquiring image | |
KR102149187B1 (en) | Electronic device and control method of the same | |
EP2854389B1 (en) | Scene recognition method and apparatus | |
EP1558025A3 (en) | Image processing method, image processing apparatus, and computer program used therewith | |
US20160328830A1 (en) | Method for inverse tone mapping of an image | |
US9621767B1 (en) | Spatially adaptive tone mapping for display of high dynamic range (HDR) images | |
KR102124598B1 (en) | Image acquisition method and apparatus | |
CN104917973B (en) | Dynamic exposure method of adjustment and its electronic device | |
US20170064179A1 (en) | Method and Apparatus for Auto Exposure Value Detection for High Dynamic Range Imaging | |
RU2014123684A (en) | DEVICE AND METHOD FOR PROCESSING IMAGES | |
CN104850211B (en) | The method of power saving when smart machine is shot | |
CN105812553A (en) | Rapid shooting method and mobile terminal | |
WO2014169579A1 (en) | Color enhancement method and device | |
JP2010063104A (en) | Digital camera for importing and organizing image before and after shutter signal | |
CN107977946A (en) | Method and apparatus for handling image | |
RU2017134310A (en) | METHOD AND DEVICE FOR REVERSE TONAL DISPLAY | |
WO2012088702A1 (en) | Method and apparatus for providing a mechanism for gesture recognition | |
JP2013254390A5 (en) | ||
CN111062189A (en) | Data analysis method and device and electronic equipment | |
CN108259791B (en) | Method for extracting PRNU noise from video file | |
CN105472245A (en) | Photographing method and electronic device | |
US10003814B2 (en) | Image processor, display image processing method and associated electronic device | |
JP2013125994A5 (en) | ||
WO2012116662A1 (en) | Theme setting method and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |