CN106293589A - A kind of the method for preview resolution, device and terminal are set - Google Patents
A kind of the method for preview resolution, device and terminal are set Download PDFInfo
- Publication number
- CN106293589A CN106293589A CN201610790518.9A CN201610790518A CN106293589A CN 106293589 A CN106293589 A CN 106293589A CN 201610790518 A CN201610790518 A CN 201610790518A CN 106293589 A CN106293589 A CN 106293589A
- Authority
- CN
- China
- Prior art keywords
- resolution
- preview
- pixels
- ratio
- initial
- 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.)
- Granted
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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1415—Digital output to display device ; Cooperation and interconnection of the display device with other functional units with means for detecting differences between the image stored in the host and the images displayed on the displays
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses and a kind of the method for preview resolution, device and terminal are set, relate to communication technical field, it is possible to solve because preview resolution is too high, and the problem that the mobile telephone power consumption that causes is big.The method of the embodiment of the present invention includes: the initial preview resolution during the screen resolution of acquisition terminal and terminal taking, described initial preview resolution is identical with the resolution ratio of camera head of terminal;If described initial preview resolution is more than described screen resolution, then according to the ratio of described initial preview resolution with the Vertical number of pixels of described screen resolution, and the ratio of described initial preview resolution and the Horizontal number of pixels of described screen resolution determines preview ratio;According to described preview ratio, by described initial resolution, the preview resolution during described terminal taking being adjusted to current preview resolution, described current preview resolution is less than described initial preview resolution.The present invention is applicable to arrange the process of preview resolution.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of arrange the method for preview resolution, device and terminal.
Background technology
At present, camera function has become as one of basic functions of electronic product such as mobile phone, and user has got used at any time
Occurrence in life is recorded everywhere by mobile phone photograph.In actual use, preview interface can present shooting
The picture of head current shooting, makes user can adjust camera site according to the content shown by preview interface.
If the resolution of preview interface is relatively low, then it is possible that preview effect is bigger with actual photographed effect difference
Situation.In order to make preview effect closing to reality shooting effect, can be by the resolution of preview interface in mobile phone and dividing of photographic head
Resolution is set to identical resolution.For the photographic head that resolution is higher, use above-mentioned implementation can cause preview
The resolution at interface is also at higher state.But, when the resolution of preview interface reaches the maximum that display screen can be supported
After resolution, the increase of preview resolution can not improve preview effect, and higher preview resolution can increase user's shooting
During the real time data that produces, thus take a large amount of mobile phone EMS memory and resource, increase mobile telephone power consumption.
Summary of the invention
The present invention provides a kind of and arranges the method for preview resolution, device and terminal, solves because preview resolution is too high,
And the problem that the power consumption of terminal that causes is big.
For reaching above-mentioned purpose, the embodiment of the present invention adopts the following technical scheme that
First aspect, the present invention provides a kind of method arranging preview resolution, and described method includes:
Initial preview resolution during the screen resolution of acquisition terminal and terminal taking, described initial preview is differentiated
Rate is identical with the resolution ratio of camera head of terminal;
If described initial preview resolution is more than described screen resolution, then according to described initial preview resolution and institute
State the ratio of the Vertical number of pixels of screen resolution, and the horizontal pixel of described initial preview resolution and described screen resolution
The ratio of number determines preview ratio;
According to described preview ratio, the preview resolution during described terminal taking is adjusted by described initial resolution
For current preview resolution, described current preview resolution is less than described initial preview resolution.
Second aspect, the present invention provides a kind of device arranging preview resolution, and described device includes:
Acquisition module, the initial preview resolution during the screen resolution obtaining terminal and terminal taking, institute
State initial preview resolution identical with the resolution ratio of camera head of terminal;
Determining module, the initial preview resolution for obtaining when described acquisition module obtains more than described acquisition module
During screen resolution, according to the ratio of described initial preview resolution with the Vertical number of pixels of described screen resolution and described
Initial preview resolution determines preview ratio with the ratio of the Horizontal number of pixels of described screen resolution;
Adjusting module, for according to the described preview ratio determining that module determines, pre-by during described terminal taking
The initial resolution that resolution of looking at is obtained by described acquisition module is adjusted to current preview resolution, described current preview resolution
Less than described initial preview resolution.
The third aspect, the present invention provides a kind of terminal, and described terminal at least includes that the preview that arranges described in second aspect divides
The device of resolution.
What the present invention provided arranges the method for preview resolution, device and terminal, if the initial preview resolution obtained
More than screen resolution, then according to the ratio of the Vertical number of pixels of initial preview resolution and screen resolution, and the water of the two
The ratio of flat pixel count determines preview ratio, is divided by initial preview by the preview resolution during terminal taking according to preview ratio
Resolution is adjusted to current preview resolution;Otherwise, still use initial preview resolution as the preview during terminal taking
Resolution.It is compared in prior art preview resolution and resolution ratio of camera head are set to identical resolution, the present invention
When initial preview resolution is more than screen resolution, can be according to the proportionate relationship of initial preview resolution Yu screen resolution
Adjust initial preview resolution, yield less than the current preview resolution of initial preview resolution.Due to current preview resolution
Less than initial preview resolution, the pixel quantity of current preview resolution is the most just less than the pixel number of initial preview resolution
Amount.Therefore, during terminal uses current preview resolution to carry out preview, terminal needs the pixel quantity of real-time update
Tail off, reduce the power consumption of terminal.Therefore, the present invention can solve big the asking of power consumption of terminal caused because preview resolution is too high
Topic.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below by use required in embodiment
Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, for ability
From the point of view of the those of ordinary skill of territory, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings
Figure.
A kind of method flow diagram that preview resolution is set that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 arranges the method flow diagram of preview resolution for the another kind that the embodiment of the present invention provides;
Fig. 3 arranges the method flow diagram of preview resolution for the another kind that the embodiment of the present invention provides;
Fig. 4 arranges the method flow diagram of preview resolution for the another kind that the embodiment of the present invention provides;
A kind of device schematic diagram that preview resolution is set that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, those of ordinary skill in the art obtained under not making creative work premise all other
Embodiment, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of method arranging preview resolution, and the method can apply to mobile phone, flat board electricity
The terminals such as brain.As it is shown in figure 1, the method flow process specifically includes:
101, the initial preview resolution during the screen resolution of terminal and terminal taking is obtained.
Wherein, initial preview resolution is identical with the resolution ratio of camera head of terminal.
In actual applications, the shooting process of user relates to three resolution parameters, specifically includes: resolution ratio of camera head,
Screen resolution and preview resolution.In order to obtain the picture of different quality, the photographic head of different resolution can be selected
Becoming the gatherer process of image, resolution ratio of camera head as corresponding in picture that size is 8M is 3264*2448, and size is the figure of 13M
The resolution ratio of camera head that sheet is corresponding is 4208*3120.The size of screen resolution is determined by the hardware configuration of screen, such as FHD (English
Literary composition: Full High Definition, Chinese: full HD) screen resolution that shields is that 1920*1080, HD are (English: High
Definition, Chinese: high definition) screen resolution that shields is 1280*720.And in order to ensure preview effect, generally use shooting
Head resolution is as preview resolution.
At present, owing to terminal realizing the software section of camera function, " preview " and " taking pictures " can be realized and separately process, i.e.
Preview, by one group of parameter, is taken pictures and is organized parameter with another, between parameter and the parameter of process of taking pictures use that previews uses mutually
Do not affect.Therefore, the change of preview resolution can't affect the quality of picture.
It should be noted that user can select different resolution ratio of camera heads according to self-demand, but work as taking the photograph of terminal
As head is fixed, then the maximum of resolution ratio of camera head is the full-scale resolution of photographic head.
102, determine that whether initial resolution is more than screen resolution.
If initial preview resolution is more than screen resolution, then perform step 103 and step 104;Otherwise, step is performed
105。
103, according to the ratio of initial preview resolution with the Vertical number of pixels of screen resolution, and initial preview resolution
Preview ratio is determined with the ratio of the Horizontal number of pixels of screen resolution.
When initial preview resolution more than screen resolution time, screen resolution become limit preview effect main because of
Element, is now adjusted initial preview resolution, does not interferes with preview effect.Therefore, it can at the beginning of according to preview scale smaller
Beginning preview resolution.
Preview ratio can be according to the ratio of initial preview resolution with the Vertical number of pixels of screen resolution and the most pre-
The ratio of the resolution Horizontal number of pixels with screen resolution look at determines.Such as, initial preview resolution is 3264*2448, screen
Resolution is 1920*1080, and initial preview resolution is 3264/1920 with the ratio of the Vertical number of pixels of screen resolution, initially
Preview resolution is 2448/1080 with the ratio of the Horizontal number of pixels of screen resolution, and preview ratio can be according to Vertical number of pixels
Ratio be 3264/1920 and the ratio of Horizontal number of pixels is 2448/1080 to determine, specifically determine that mode can propose later, at this
Do not repeat.
104, according to preview ratio, the preview resolution during terminal taking is adjusted to current pre-by initial resolution
Look at resolution.
In embodiments of the present invention, current preview resolution is less than initial preview resolution, also implies that, will be the most pre-
Resolution of looking at reduces according to preview ratio, can yield less than the current preview resolution of initial preview resolution.
105, initial resolution is set to current preview resolution.
When initial preview resolution is less than or equal to screen resolution, initial preview resolution is to determine preview effect
Principal element, is now adjusted initial preview resolution, may affect preview effect.Therefore, in order to avoid to preview
The impact of effect, is set to initial preview resolution current preview resolution, does not divides the preview during terminal taking
Resolution is adjusted.
The method arranging preview resolution that the embodiment of the present invention provides, if the initial preview resolution obtained is more than screen
Curtain resolution, then according to the ratio of the Vertical number of pixels of initial preview resolution and screen resolution, and the horizontal pixel of the two
The ratio of number determines preview ratio, is adjusted by initial preview resolution by the preview resolution during terminal taking according to preview ratio
Whole for current preview resolution;Otherwise, still use initial preview resolution as the preview resolution during terminal taking.
Being compared in prior art preview resolution and resolution ratio of camera head are set to identical resolution, the present invention is initial pre-
When resolution of looking at is more than screen resolution, terminal can be adjusted according to the proportionate relationship of initial preview resolution with screen resolution
Preview ratio in shooting process.Owing to the current preview resolution obtained after adjusting is less than initial preview resolution, the most in advance
Look at the pixel quantity of resolution the most just less than the pixel quantity of initial preview resolution.Therefore, use the most in advance in terminal
During resolution of looking at carries out preview, terminal needs the pixel number quantitative change of real-time update few, reduces the power consumption of terminal.Cause
This, the present invention can solve the problem that the power consumption of terminal that causes because preview resolution is too high is big.
Impact on preview effect is adjusted, in an implementation of the embodiment of the present invention in order to reduce preview resolution
In, when the Vertical number of pixels of initial preview resolution is more than the Vertical number of pixels of screen resolution, and initial preview resolution
When Horizontal number of pixels is more than the Horizontal number of pixels of screen resolution, need preview resolution is adjusted.Therefore, such as Fig. 1
On the basis of shown implementation, it is also possible to be embodied as implementation as shown in Figure 2.Wherein, step 102 determines initial point
Resolution, whether more than screen resolution, can be implemented as step 1021 to step 1024:
1021, judge whether the Vertical number of pixels of initial preview resolution is more than the Vertical number of pixels of screen resolution.
If the Vertical number of pixels of initial preview resolution is more than the Vertical number of pixels of screen resolution, then perform step
1022;Otherwise, step 1024 is performed.
1022, judge whether the Horizontal number of pixels of initial preview resolution is more than the Horizontal number of pixels of screen resolution.
If the Horizontal number of pixels of initial preview resolution is more than the Horizontal number of pixels of screen resolution, then perform step
1023;Otherwise, step 1024 is performed.
If the Vertical number of pixels of initial preview resolution is less than or equal to the Vertical number of pixels of screen resolution, show to hang down
Upwards, initial preview resolution is the principal element affecting preview effect to Nogata, now adjusts initial preview resolution easily in advance
Effect of looking at impacts.If the Horizontal number of pixels of initial preview resolution is less than or the Horizontal number of pixels of screen resolution, table
Upwards, initial preview resolution is the principal element affecting preview effect to open fire square, now adjusts initial preview resolution easy
Preview effect is impacted.Therefore, in embodiments of the present invention, in order to reduce the impact on preview effect, initial preview is worked as
The Vertical number of pixels of resolution is less than or equal to the Vertical number of pixels of screen resolution, or, the level of initial preview resolution
When pixel count is less than or equal to the Horizontal number of pixels of screen resolution, determine that initial preview resolution is differentiated less than or equal to screen
Rate.When the Vertical number of pixels of initial preview resolution is more than the Vertical number of pixels of screen resolution, and initial preview resolution
When Horizontal number of pixels is more than the Horizontal number of pixels of screen resolution, determine that initial preview resolution is more than screen resolution.Such as,
When initial preview resolution is 3264*2448, and screen resolution is 1920*1080, determine that initial preview resolution is more than screen
Curtain resolution;When initial preview resolution is 1280*960, and screen resolution is 1920*1080, determine that initial resolution is little
In or equal to screen resolution.
1023, determine that initial preview resolution is more than screen resolution.
1024, determine that initial preview resolution is less than or equal to screen resolution.
It should be noted that for the comparison of Vertical number of pixels and the sequencing of the comparison procedure of Horizontal number of pixels, this
Invention does not limits.
The method that preview resolution is set that the embodiment of the present invention provides, if the Vertical number of pixels of initial preview resolution
More than the Vertical number of pixels of screen resolution, and the Horizontal number of pixels of initial preview resolution is more than the level picture of screen resolution
Prime number, it is determined that initial preview resolution is more than screen resolution;Otherwise determine that initial preview resolution is less than or equal to screen
Resolution.It is compared in prior art preview resolution and resolution ratio of camera head are set to identical resolution, the present invention
On the basis of the too high power consumption of terminal caused is big because of preview resolution the problem of solution, only vertical when initial preview resolution
Pixel count is more than the Vertical number of pixels of screen resolution, and the Horizontal number of pixels of initial preview resolution is more than screen resolution
During Horizontal number of pixels, determine that initial preview resolution is more than screen resolution, thus avoid initial preview resolution adjustment not conform to
Reason, the impact on preview effect.
In order to ensure the preview effect after adjusting preview resolution, in an implementation of the embodiment of the present invention, will
The ratio of the Vertical number of pixels value less with the ratio of Horizontal number of pixels is as preview ratio.Therefore, in realization side as shown in Figure 1
On the basis of formula, it is also possible to be embodied as implementation as shown in Figure 3.Wherein, step 103 is according to initial preview resolution and screen
The ratio of Vertical number of pixels of curtain resolution, and the ratio of initial preview resolution and the Horizontal number of pixels of screen resolution determines pre-
Look at ratio, step 1031 can be implemented as to 1033:
1031, determine whether the ratio of Vertical number of pixels is more than the ratio of Horizontal number of pixels.
If the ratio of Vertical number of pixels is more than the ratio of Horizontal number of pixels, then perform step 1032;Otherwise, step is performed
1033。
In order to avoid the initial preview resolution after adjusting is less than screen resolution, thus affect preview effect, by level
Less in the ratio of pixel count and the ratio of Vertical number of pixels one, is defined as preview ratio.Such as, initial preview resolution is
3264*2448, screen resolution is 1920*1080, and the ratio 3264/1920 of Vertical number of pixels is less than the ratio of Horizontal number of pixels
2448/1080, the ratio of Vertical number of pixels is defined as preview ratio;Initial preview resolution is 3264*2448, screen resolution
For 1280*1024, the ratio 3264/1280 of Vertical number of pixels more than the ratio 2448/1024 of Horizontal number of pixels, by Horizontal number of pixels it
Ratio is defined as preview ratio.
1032, the ratio of Horizontal number of pixels is defined as preview ratio.
1033, the ratio of Vertical number of pixels is defined as preview ratio.
The method that preview resolution is set that the embodiment of the present invention provides, the vertical picture of preview resolution and screen resolution
The ratio of prime number, and less with the ratio of the Horizontal number of pixels of screen resolution of preview resolution is as preview ratio.
Be compared in prior art preview resolution and resolution ratio of camera head are set to identical resolution, the present invention solve because of
On the basis of the problem that the too high power consumption of terminal caused of preview resolution is big, by hanging down preview resolution and screen resolution
The ratio of straight pixel count, and less with the ratio of the Horizontal number of pixels of screen resolution of preview resolution is as preview ratio
Example, it is ensured that the initial preview resolution after adjustment is still above screen resolution, so that the adjustment of initial preview resolution,
Do not affect preview effect.
In order to ensure that the preview interface after adjusting preview resolution will not deform upon, in a reality of the embodiment of the present invention
In existing mode, adjust Vertical number of pixels and the Vertical number of pixels of initial resolution the most respectively.Therefore, such as Fig. 1
On the basis of shown implementation, it is also possible to be embodied as implementation as shown in Figure 4.Wherein, step 104 is according to preview ratio
Example, is adjusted to current preview resolution by the preview resolution during terminal taking by initial resolution, can implement
For step 1041 to step 1043:
1041, Vertical number of pixels and the Horizontal number of pixels of initial preview resolution is reduced according to preview ratio.
The Vertical number of pixels of the initial preview resolution after 1042, reducing and Horizontal number of pixels, be set to current preview
The Vertical number of pixels of resolution and Horizontal number of pixels.
1043, the preview resolution during terminal taking is adjusted to current preview resolution.
Such as, initial preview resolution is 3264*2448, and screen resolution is 1920*1080, by initial preview resolution
Vertical number of pixels 3264, adjust according to preview ratio 3264/1920, the Vertical number of pixels obtaining current preview resolution is
3264/ (3264/1920)=1920;By the Horizontal number of pixels 2448 of initial preview resolution, according to preview ratio 3264/1920
Adjusting, the horizontal resolution obtaining current preview resolution is 2448/ (3264/1920)=1440, i.e. current preview resolution
For 1920*1440.At this point it is possible to the preview resolution during terminal taking is adjusted to 1920*1440 by 3264*2448.
It should be noted that initial preview resolution is 3264*2448, when screen resolution is 1920*1080, if will
Preview ratio-dependent is 2448/1080, and the Vertical number of pixels of the current preview resolution obtained is 1440, and Horizontal number of pixels is
1080, it can be seen that the Vertical number of pixels 1440 of current preview resolution is less than the Vertical number of pixels 1920 of screen resolution, meeting
Affect preview effect.
The method that preview resolution is set that the embodiment of the present invention provides, by the Vertical number of pixels of initial preview resolution and
Horizontal number of pixels all adjusts according to preview ratio, differentiates Vertical number of pixels and the Horizontal number of pixels obtaining current preview resolution,
Preview resolution during terminal taking is adjusted to current preview resolution.It is compared in prior art differentiate preview
Rate and resolution ratio of camera head are set to identical resolution, the power consumption of terminal that the present invention causes because preview resolution is too high in solution
On the basis of big problem, Vertical number of pixels and Horizontal number of pixels to initial preview resolution are adjusted according to same ratio
Whole, it is ensured that the picture that preview interface catches relative to photographic head will not deform upon.
The embodiment of the present invention also provides for a kind of device 20 arranging preview resolution, as it is shown in figure 5, this device 20 is used for holding
Row any one method flow as shown in Figures 1 to 4, this device 20 includes:
Acquisition module 21, the initial preview resolution during the screen resolution obtaining terminal and terminal taking,
Initial preview resolution is identical with the resolution ratio of camera head of terminal.
Determine module 22, the screen that the initial preview resolution for obtaining obtains more than acquisition module 21 when acquisition module 21
During curtain resolution, according to the ratio of initial preview resolution with the Vertical number of pixels of screen resolution, and initial preview resolution
Preview ratio is determined with the ratio of the Horizontal number of pixels of screen resolution.
Adjusting module 23, for according to the preview ratio determining that module 22 determines, divides the preview during terminal taking
The initial resolution that resolution is obtained by acquisition module 21 is adjusted to current preview resolution, and current preview resolution is pre-less than initial
Look at resolution.
In an implementation of the embodiment of the present invention, device 20 also includes:
Judge module 24, for judging whether the Vertical number of pixels of initial preview resolution that acquisition module 21 obtains is more than
The Vertical number of pixels of the screen resolution that acquisition module 21 obtains;And when the Vertical number of pixels of initial preview resolution is more than screen
During the Vertical number of pixels of curtain resolution, it is judged that whether the Horizontal number of pixels of initial preview resolution is more than the level of screen resolution
Pixel count.
Determine module 22, be additionally operable to when judge module 24 determines that the Horizontal number of pixels of initial preview resolution divides more than screen
During the Horizontal number of pixels of resolution, determine that initial preview resolution is more than screen resolution.
In an implementation of the embodiment of the present invention, determine module 22, big specifically for the ratio when Vertical number of pixels
When the ratio of Horizontal number of pixels, the ratio of Horizontal number of pixels is defined as preview ratio;When the ratio of Vertical number of pixels is less than or equal to
During the ratio of Horizontal number of pixels, then the ratio of Vertical number of pixels is defined as preview ratio.
In an implementation of the embodiment of the present invention, adjusting module 23, at the beginning of reducing according to preview ratio
The Vertical number of pixels of beginning preview resolution and Horizontal number of pixels;The Vertical number of pixels of the initial preview resolution after reducing and water
Flat pixel count, is set to Vertical number of pixels and the Horizontal number of pixels of current preview resolution;By the preview during terminal taking
Resolution adjustment is current preview resolution.
Determine module 22, be additionally operable to, when initial resolution is less than or equal to screen resolution, initial resolution be arranged
For current preview resolution.
The device arranging preview resolution that the embodiment of the present invention provides, if the initial preview resolution obtained is more than screen
Curtain resolution, then according to the ratio of the Vertical number of pixels of initial preview resolution and screen resolution, and the horizontal pixel of the two
The ratio of number determines preview ratio, is adjusted by initial preview resolution by the preview resolution during terminal taking according to preview ratio
Whole for current preview resolution;Otherwise, still use initial preview resolution as the preview resolution during terminal taking.
Being compared in prior art preview resolution and resolution ratio of camera head are set to identical resolution, the present invention is initial pre-
When resolution of looking at is more than screen resolution, terminal can be adjusted according to the proportionate relationship of initial preview resolution with screen resolution
Preview ratio in shooting process.Owing to the current preview resolution obtained after adjusting is less than initial preview resolution, the most in advance
Look at the pixel quantity of resolution the most just less than the pixel quantity of initial preview resolution.Therefore, use the most in advance in terminal
During resolution of looking at carries out preview, terminal needs the pixel number quantitative change of real-time update few, reduces the power consumption of terminal.Cause
This, the present invention can solve the problem that the power consumption of terminal that causes because preview resolution is too high is big.
The embodiment of the present invention also provides for a kind of terminal, and this terminal, should for performing method flow as shown in Figures 1 to 4
Terminal at least includes the device arranging preview resolution as shown in Figure 5.
The terminal that the embodiment of the present invention provides, if the initial preview resolution obtained is more than screen resolution, then basis
The ratio of the Vertical number of pixels of initial preview resolution and screen resolution, and the ratio of the Horizontal number of pixels of the two determines preview ratio
Example, according to preview ratio by the preview resolution during terminal taking by initial preview resolution adjustment be current preview differentiate
Rate;Otherwise, still use initial preview resolution as the preview resolution during terminal taking.It is compared to prior art
Middle preview resolution and resolution ratio of camera head are set to identical resolution, the present invention in initial preview resolution more than screen
During resolution, the preview during terminal taking can be adjusted according to the proportionate relationship of initial preview resolution with screen resolution
Ratio.Owing to the current preview resolution obtained after adjusting is less than initial preview resolution, the pixel of current preview resolution
Quantity is the most just less than the pixel quantity of initial preview resolution.Therefore, current preview resolution is used to carry out preview in terminal
During, terminal needs the pixel number quantitative change of real-time update few, reduces the power consumption of terminal.Therefore, the present invention can solve
The problem that the power consumption of terminal that causes because preview resolution is too high is big.
Each embodiment in this specification all uses the mode gone forward one by one to describe, identical similar portion between each embodiment
Dividing and see mutually, what each embodiment stressed is the difference with other embodiments.Real especially for device
For executing example, owing to it is substantially similar to embodiment of the method, so describing fairly simple, relevant part sees embodiment of the method
Part illustrate.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissible
Instructing relevant hardware by computer program to complete, described program can be stored in computer read/write memory medium
In, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only store-memory body (English: Read-Only Memory, be called for short: ROM) or random store-memory body (English:
Random Access Memory, is called for short: RAM) etc..
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art in the technical scope that the invention discloses, the change that can readily occur in or replacement, all answer
Contain within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.
Claims (10)
1. the method that preview resolution is set, it is characterised in that described method includes:
Obtain the initial preview resolution during the screen resolution of terminal and terminal taking, described initial preview resolution with
The resolution ratio of camera head of terminal is identical;
If described initial preview resolution is more than described screen resolution, then according to described initial preview resolution and described screen
The ratio of Vertical number of pixels of curtain resolution, and the Horizontal number of pixels of described initial preview resolution and described screen resolution it
Ratio determines preview ratio;
According to described preview ratio, the preview resolution during described terminal taking is adjusted to by described initial resolution and works as
Front preview resolution, described current preview resolution is less than described initial preview resolution.
Method the most according to claim 1, it is characterised in that at initial preview resolution and the screen of described acquisition terminal
After resolution, also include:
Judge whether the Vertical number of pixels of described initial preview resolution is more than the Vertical number of pixels of described screen resolution;
If the Vertical number of pixels of described initial preview resolution is more than the Vertical number of pixels of described screen resolution, then judge institute
Whether the Horizontal number of pixels stating initial preview resolution is more than the Horizontal number of pixels of described screen resolution;
If the Horizontal number of pixels of described initial preview resolution is more than the Horizontal number of pixels of described screen resolution, it is determined that institute
State initial preview resolution more than described screen resolution.
Method the most according to claim 1, it is characterised in that described according to described initial preview resolution and described screen
The ratio of the Vertical number of pixels of resolution, and the ratio of described initial preview resolution and the Horizontal number of pixels of described screen resolution
Determine preview ratio, including:
If the ratio of described Vertical number of pixels is more than the ratio of described Horizontal number of pixels, then the ratio of described Horizontal number of pixels is defined as
Described preview ratio;
If the ratio of described Vertical number of pixels is less than or equal to the ratio of described Horizontal number of pixels, then by the ratio of described Vertical number of pixels
It is defined as described preview ratio.
Method the most according to claim 1, it is characterised in that described according to described preview ratio initial by described terminal
Preview resolution is adjusted to current preview resolution, including:
Vertical number of pixels and the Horizontal number of pixels of described initial preview resolution is reduced according to described preview ratio;
The Vertical number of pixels of the initial preview resolution after reducing and Horizontal number of pixels, be set to described current preview resolution
Vertical number of pixels and Horizontal number of pixels;
Preview resolution during described terminal taking is adjusted to current preview resolution.
Method the most as claimed in any of claims 1 to 4, it is characterised in that initial pre-in described acquisition terminal
Look at after resolution and screen resolution, also include:
If described initial resolution is less than or equal to described screen resolution, then described initial resolution is set to current pre-
Look at resolution.
6. the device that preview resolution is set, it is characterised in that described device includes:
Acquisition module, the initial preview resolution during obtaining the screen resolution of terminal and terminal taking, described at the beginning of
Beginning preview resolution is identical with the resolution ratio of camera head of terminal;
Determine module, the screen that the initial preview resolution for obtaining obtains more than described acquisition module when described acquisition module
During resolution, according to the ratio of described initial preview resolution with the Vertical number of pixels of described screen resolution, and described initially
Preview resolution determines preview ratio with the ratio of the Horizontal number of pixels of described screen resolution;
Adjusting module, for according to the described preview ratio determining that module determines, divides the preview during described terminal taking
The initial resolution that resolution is obtained by described acquisition module is adjusted to current preview resolution, and described current preview resolution is less than
Described initial preview resolution.
Device the most according to claim 6, it is characterised in that described device also includes:
Judge module, for judging whether the Vertical number of pixels of initial preview resolution that described acquisition module obtains is more than described
The Vertical number of pixels of the screen resolution that acquisition module obtains;And when the Vertical number of pixels of described initial preview resolution is more than
During the Vertical number of pixels of described screen resolution, it is judged that whether the Horizontal number of pixels of described initial preview resolution is more than described screen
The Horizontal number of pixels of curtain resolution;
Described determine module, be additionally operable to when described judge module determines that the Horizontal number of pixels of initial preview resolution is more than described screen
During the Horizontal number of pixels of curtain resolution, determine that described initial preview resolution is more than described screen resolution.
Device the most according to claim 6, it is characterised in that described determine module, specifically for when described vertical pixel
When the ratio of number is more than the ratio of described Horizontal number of pixels, the ratio of described Horizontal number of pixels is defined as described preview ratio;
When the ratio of described Vertical number of pixels is less than or equal to the ratio of described Horizontal number of pixels, then by the ratio of described Vertical number of pixels
It is defined as described preview ratio.
Device the most according to claim 6, it is characterised in that described adjusting module, specifically for according to described preview ratio
Example reduces Vertical number of pixels and the Horizontal number of pixels of described initial preview resolution;Hanging down of initial preview resolution after reducing
Straight pixel count and Horizontal number of pixels, be set to Vertical number of pixels and the Horizontal number of pixels of described current preview resolution;By described
Preview resolution during terminal taking is adjusted to current preview resolution;
Described determine module, be additionally operable to when described initial resolution is less than or equal to described screen resolution, by described initially
Resolution is set to current preview resolution.
10. a terminal, it is characterised in that described terminal at least includes the setting as described in any one in claim 6 to 9
The device of preview resolution.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610790518.9A CN106293589B (en) | 2016-08-31 | 2016-08-31 | A kind of method, apparatus and terminal that preview resolution is set |
PCT/CN2016/100682 WO2018040174A1 (en) | 2016-08-31 | 2016-09-28 | Method and apparatus for setting preview resolution, and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610790518.9A CN106293589B (en) | 2016-08-31 | 2016-08-31 | A kind of method, apparatus and terminal that preview resolution is set |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106293589A true CN106293589A (en) | 2017-01-04 |
CN106293589B CN106293589B (en) | 2019-04-12 |
Family
ID=57674113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610790518.9A Active CN106293589B (en) | 2016-08-31 | 2016-08-31 | A kind of method, apparatus and terminal that preview resolution is set |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106293589B (en) |
WO (1) | WO2018040174A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110636354A (en) * | 2019-06-10 | 2019-12-31 | 青岛海信电器股份有限公司 | Display device |
CN110765799A (en) * | 2019-10-21 | 2020-02-07 | 高新兴科技集团股份有限公司 | Client code scanning identification method, device, equipment and storage medium |
WO2020078273A1 (en) * | 2018-10-15 | 2020-04-23 | 华为技术有限公司 | Photographing method, and electronic device |
CN112019738A (en) * | 2020-07-31 | 2020-12-01 | 广东小天才科技有限公司 | Photographing method and terminal equipment |
CN112153293A (en) * | 2020-09-28 | 2020-12-29 | 广东小天才科技有限公司 | Image data display method, electronic equipment and storage medium |
CN114422694A (en) * | 2022-01-18 | 2022-04-29 | 杭州逗酷软件科技有限公司 | Preview resolution adaptation method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019537A (en) * | 2012-11-19 | 2013-04-03 | 广东欧珀移动通信有限公司 | Image preview method and image preview device |
CN103139473A (en) * | 2011-11-28 | 2013-06-05 | 三星电子株式会社 | Method of eliminating a shutter-lag, camera module, and mobile device having the same |
US20150024728A1 (en) * | 2013-07-16 | 2015-01-22 | Lg Electronics Inc. | Mobile terminal and controlling method thereof |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100133807A (en) * | 2009-06-12 | 2010-12-22 | 삼성전자주식회사 | Method for converting a resolution and image sensor thereof |
CN103546689B (en) * | 2013-10-11 | 2018-02-13 | Tcl集团股份有限公司 | The resolution ratio acquisition methods and device of external camera of android system |
-
2016
- 2016-08-31 CN CN201610790518.9A patent/CN106293589B/en active Active
- 2016-09-28 WO PCT/CN2016/100682 patent/WO2018040174A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139473A (en) * | 2011-11-28 | 2013-06-05 | 三星电子株式会社 | Method of eliminating a shutter-lag, camera module, and mobile device having the same |
CN103019537A (en) * | 2012-11-19 | 2013-04-03 | 广东欧珀移动通信有限公司 | Image preview method and image preview device |
US20150024728A1 (en) * | 2013-07-16 | 2015-01-22 | Lg Electronics Inc. | Mobile terminal and controlling method thereof |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020078273A1 (en) * | 2018-10-15 | 2020-04-23 | 华为技术有限公司 | Photographing method, and electronic device |
CN110636354A (en) * | 2019-06-10 | 2019-12-31 | 青岛海信电器股份有限公司 | Display device |
CN110765799A (en) * | 2019-10-21 | 2020-02-07 | 高新兴科技集团股份有限公司 | Client code scanning identification method, device, equipment and storage medium |
CN110765799B (en) * | 2019-10-21 | 2023-05-02 | 高新兴科技集团股份有限公司 | Client code scanning identification method, device, equipment and storage medium |
CN112019738A (en) * | 2020-07-31 | 2020-12-01 | 广东小天才科技有限公司 | Photographing method and terminal equipment |
CN112019738B (en) * | 2020-07-31 | 2022-03-01 | 广东小天才科技有限公司 | Photographing method and terminal equipment |
CN112153293A (en) * | 2020-09-28 | 2020-12-29 | 广东小天才科技有限公司 | Image data display method, electronic equipment and storage medium |
CN114422694A (en) * | 2022-01-18 | 2022-04-29 | 杭州逗酷软件科技有限公司 | Preview resolution adaptation method and device and electronic equipment |
CN114422694B (en) * | 2022-01-18 | 2024-03-26 | 杭州逗酷软件科技有限公司 | Preview resolution adaptation method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106293589B (en) | 2019-04-12 |
WO2018040174A1 (en) | 2018-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106293589A (en) | A kind of the method for preview resolution, device and terminal are set | |
US11375128B2 (en) | Method for obtaining exposure compensation values of high dynamic range image, terminal device and non-transitory computer-readable storage medium | |
EP3200446A1 (en) | Method and apparatus for generating high dynamic range image | |
CN104269155A (en) | Method and device for adjusting refreshing rate of screen | |
US11194536B2 (en) | Image processing method and apparatus for displaying an image between two display screens | |
CN104658487B (en) | Adjust method, device and the mobile terminal of brightness of image | |
CN104580969A (en) | Video frame rate adjusting method and device | |
CN109936698A (en) | A kind of automatic exposure control method, device, electronic equipment and storage medium | |
CN104917973B (en) | Dynamic exposure method of adjustment and its electronic device | |
CN105025215A (en) | Method and apparatus for achieving group shooting through terminal on the basis of multiple pick-up heads | |
CN205647832U (en) | Mobile terminal based on many cameras realize that 3D makes a video recording | |
CN109375970A (en) | Screen self-adapting regulation method, computer readable storage medium and terminal device | |
CN107993604A (en) | Display screen adjusting method and device | |
US20170163902A1 (en) | Method and electronic device for generating high dynamic range image | |
CN107465811B (en) | Method for reducing temperature rise, computer readable storage medium and electronic equipment | |
CN105493493A (en) | Imaging device, imaging method, and image processing device | |
CN106445129A (en) | Method, device and system for displaying panoramic picture information | |
US20210084230A1 (en) | Information Processing Method, Terminal and Readable Storage Medium | |
CN110868533B (en) | HDR mode determination method, device, storage medium and terminal | |
CN105472245A (en) | Photographing method and electronic device | |
CN109616080A (en) | A kind of abnormity screen outline compensation method and terminal | |
DE102021121513A1 (en) | Projection device and control method | |
CN107342876A (en) | The method of testing and system of mobile terminal video speech quality | |
CN109192158A (en) | Control method of display panel, display panel and storage medium | |
CN105282428B (en) | A kind of method and mobile terminal of mobile terminal shooting |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |