CN106293589B - A kind of method, apparatus and terminal that preview resolution is set - Google Patents
A kind of method, apparatus and terminal that preview resolution is set Download PDFInfo
- Publication number
- CN106293589B CN106293589B CN201610790518.9A CN201610790518A CN106293589B CN 106293589 B CN106293589 B CN 106293589B CN 201610790518 A CN201610790518 A CN 201610790518A CN 106293589 B CN106293589 B CN 106293589B
- Authority
- CN
- China
- Prior art keywords
- ratio
- preview
- resolution
- pixels
- 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.)
- 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
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 a kind of method, apparatus and terminal that preview resolution is arranged, and are related to field of communication technology, are able to solve because preview resolution is excessively high, and caused by the big problem of mobile telephone power consumption.The method of the embodiment of the present invention includes: the initial preview resolution ratio in the screen resolution and terminal shooting process for obtain terminal, and the initial preview resolution ratio is identical as the resolution ratio of camera head of terminal;If the initial preview resolution ratio is greater than the screen resolution, preview ratio is then determined according to the ratio between the ratio between Vertical number of pixels of the initial preview resolution ratio and the screen resolution and the initial preview resolution ratio and the Horizontal number of pixels of the screen resolution;According to the preview ratio, the preview resolution in the terminal shooting process is adjusted to current preview resolution ratio by the initial resolution, the current preview resolution ratio is less than the initial preview resolution ratio.The present invention is suitable for being arranged the process of preview resolution.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of method, apparatus and terminal that preview resolution is arranged.
Background technique
Currently, camera function has become one of basic functions of electronic products such as mobile phone, user has got used at any time
The thing occurred in life is recorded by mobile phone photograph everywhere.In actual use, camera shooting can be presented in preview interface
The picture of head current shooting, allows user according to content shown by preview interface to adjust camera site.
If the resolution ratio of preview interface is lower, it is possible that preview effect and actual photographed effect difference are biggish
Situation.It, can be by point of the resolution ratio of preview interface in mobile phone and camera in order to make preview effect closing to reality shooting effect
Resolution is set as identical resolution ratio.For camera higher for resolution ratio, preview will cause using above-mentioned implementation
The resolution ratio at interface is also at higher state.However, the resolution ratio when preview interface reaches the maximum that display screen can be supported
After resolution ratio, the increase of preview resolution can not improve preview effect, and higher preview resolution will increase user's shooting
The real time data generated in the process increases mobile telephone power consumption to occupy a large amount of mobile phone EMS memories and resource.
Summary of the invention
The present invention provides a kind of method, apparatus and terminal that preview resolution is arranged, and solves because preview resolution is excessively high,
The big problem of power consumption of terminal caused by and.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the present invention provides a kind of method that preview resolution is arranged, which comprises
The initial preview resolution ratio in the screen resolution and terminal shooting process of terminal is obtained, the initial preview is differentiated
Rate is identical as the resolution ratio of camera head of terminal;
If the initial preview resolution ratio is greater than the screen resolution, according to the initial preview resolution ratio and institute
State the horizontal pixel of the ratio between Vertical number of pixels of screen resolution and the initial preview resolution ratio and the screen resolution
The ratio between number determines preview ratio;
According to the preview ratio, the preview resolution in the terminal shooting process is adjusted by the initial resolution
For current preview resolution ratio, the current preview resolution ratio is less than the initial preview resolution ratio.
Second aspect, the present invention provide a kind of device that preview resolution is arranged, and described device includes:
Obtain module, the initial preview resolution ratio in screen resolution and terminal shooting process for obtaining terminal, institute
It is identical as the resolution ratio of camera head of terminal to state initial preview resolution ratio;
Determining module, the initial preview resolution ratio for obtaining when the acquisition module are greater than what the acquisition module obtained
When screen resolution, according to the ratio between Vertical number of pixels of the initial preview resolution ratio and the screen resolution and described
The ratio between Horizontal number of pixels of initial preview resolution ratio and the screen resolution determines preview ratio;
Module is adjusted, the preview ratio for determining according to the determining module will be pre- in the terminal shooting process
Look at resolution ratio by it is described acquisition module obtain initial resolution be adjusted to current preview resolution ratio, the current preview resolution ratio
Less than the initial preview resolution ratio.
The third aspect, the present invention provide a kind of terminal, and the terminal includes at least setting preview described in second aspect point
The device of resolution.
The method, apparatus and terminal of setting preview resolution provided by the invention, if the initial preview resolution ratio obtained
Greater than screen resolution, then according to the ratio between Vertical number of pixels of initial preview resolution ratio and screen resolution and the water of the two
The ratio between flat pixel number determines preview ratio, according to preview ratio by the preview resolution in terminal shooting process by initial preview point
Resolution is adjusted to current preview resolution ratio;Otherwise, still use initial preview resolution ratio as the preview in terminal shooting process
Resolution ratio.It is compared to and sets identical resolution ratio for preview resolution and resolution ratio of camera head in the prior art, the present invention
It, can be according to the proportionate relationship of initial preview resolution ratio and screen resolution when initial preview resolution ratio is greater than screen resolution
Initial preview resolution ratio is adjusted, the current preview resolution ratio less than initial preview resolution ratio is obtained.Due to current preview resolution ratio
Less than initial preview resolution ratio, the pixel quantity of current preview resolution ratio is also just less than the pixel number of initial preview resolution ratio
Amount.Therefore, during terminal carries out preview using current preview resolution ratio, terminal needs the pixel quantity of real-time update
It tails off, reduces the power consumption of terminal.Therefore, the present invention can solve because preview resolution it is excessively high caused by power consumption of terminal is big asks
Topic.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of method flow diagram that preview resolution is arranged provided in an embodiment of the present invention;
Fig. 2 is the method flow diagram of another setting preview resolution provided in an embodiment of the present invention;
Fig. 3 is the method flow diagram of another setting preview resolution provided in an embodiment of the present invention;
Fig. 4 is the method flow diagram of another setting preview resolution provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic device that preview resolution is arranged provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of method that preview resolution is arranged, and this method can be applied to mobile phone, plate electricity
The terminals such as brain.As shown in Figure 1, this method process specifically includes:
101, the initial preview resolution ratio in the screen resolution and terminal shooting process of terminal is obtained.
Wherein, initial preview resolution ratio is identical as the resolution ratio of camera head of terminal.
In practical applications, the shooting process of user is related to three resolution parameters, specifically includes: resolution ratio of camera head,
Screen resolution and preview resolution.The picture of different quality in order to obtain, the camera that can choose different resolution have come
The corresponding resolution ratio of camera head of picture for being 8M at the collection process of image, such as size is 3264*2448, and size is the figure of 13M
The corresponding resolution ratio of camera head of piece is 4208*3120.The size of screen resolution is determined by the hardware configuration of screen, such as FHD (English
Text: Full High Definition, Chinese: it is full HD) screen screen resolution be 1920*1080, HD (English: High
Definition, Chinese: high definition) screen screen resolution be 1280*720.And in order to guarantee preview effect, usually using camera shooting
Head resolution ratio is as preview resolution.
Currently, due to realizing the software section of camera function in terminal, it can be achieved that " preview " and " taking pictures " is separately handled, i.e.,
One group of parameter of preview, takes pictures with another group of parameter, between the parameter that the parameter that previews use and the process of taking pictures use mutually
It does not influence.Therefore, the change of preview resolution can't influence the quality of picture.
It should be noted that user can select different resolution ratio of camera head, but taking the photograph when terminal according to self-demand
As head is fixed, then the maximum value of resolution ratio of camera head is the full-scale resolution ratio of camera.
102, determine whether initial resolution is greater than screen resolution.
If initial preview resolution ratio is greater than screen resolution, 103 and step 104 are thened follow the steps;Otherwise, step is executed
105。
103, according to the ratio between Vertical number of pixels of initial preview resolution ratio and screen resolution and initial preview resolution ratio
With the determining preview ratio of the ratio between the Horizontal number of pixels of screen resolution.
When initial preview resolution be greater than screen resolution when, screen resolution become limitation preview effect it is main because
Element is at this time adjusted initial preview resolution ratio, will not influence preview effect.It therefore, can be according at the beginning of preview scale smaller
Beginning preview resolution.
Preview ratio can be pre- according to the ratio between initial preview resolution ratio and the Vertical number of pixels of screen resolution, and initially
The ratio between the Horizontal number of pixels of resolution ratio and screen resolution look at determines.For example, initial preview resolution ratio is 3264*2448, screen
Resolution ratio is 1920*1080, and the ratio between initial preview resolution ratio and the Vertical number of pixels of screen resolution are 3264/1920, initially
The ratio between Horizontal number of pixels of preview resolution and screen resolution is 2448/1080, and preview ratio can be according to Vertical number of pixels
The ratio between for the ratio between 3264/1920 and Horizontal number of pixels be 2448/1080 to determine that specific method of determination can propose later, herein
It does not repeat them here.
104, according to preview ratio, the preview resolution in terminal shooting process is adjusted to current pre- by initial resolution
Look at resolution ratio.
In embodiments of the present invention, current preview resolution ratio is less than initial preview resolution ratio, also means that, will be initially pre-
Resolution ratio of looking at reduces according to preview ratio, the available current preview resolution ratio less than initial preview resolution ratio.
105, current preview resolution ratio is set by initial resolution.
When initial preview resolution is less than or equal to screen resolution, initial preview resolution ratio is to determine preview effect
Principal element is at this time adjusted initial preview resolution ratio, may will affect preview effect.Therefore, in order to avoid to preview
Initial preview resolution ratio is set current preview resolution ratio by the influence of effect, i.e., not to the preview in terminal shooting process point
Resolution is adjusted.
The method of setting preview resolution provided in an embodiment of the present invention, if the initial preview resolution ratio obtained is greater than screen
Curtain resolution ratio, then according to the ratio between Vertical number of pixels of initial preview resolution ratio and screen resolution and the horizontal pixel of the two
The ratio between number determines preview ratio, according to preview ratio by the preview resolution in terminal shooting process by initial preview resolution ratio tune
Whole is current preview resolution ratio;Otherwise, still use initial preview resolution ratio as the preview resolution in terminal shooting process.
It is compared to and sets identical resolution ratio for preview resolution and resolution ratio of camera head in the prior art, the present invention is initial pre-
When resolution ratio of looking at is greater than screen resolution, terminal can be adjusted according to initial preview resolution ratio and the proportionate relationship of screen resolution
Preview ratio in shooting process.It is current pre- since the current preview resolution ratio obtained after adjustment is less than initial preview resolution ratio
Look at resolution ratio pixel quantity also just be less than initial preview resolution ratio pixel quantity.Therefore, it is used in terminal current pre-
During resolution ratio of looking at carries out preview, terminal needs the pixel quantity of real-time update to tail off, and reduces the power consumption of terminal.Cause
This, the present invention can solve because preview resolution it is excessively high caused by the big problem of power consumption of terminal.
In order to reduce influence of the adjustment of preview resolution to preview effect, in an implementation of the embodiment of the present invention
In, when the Vertical number of pixels of initial preview resolution is greater than the Vertical number of pixels of screen resolution, and initial preview resolution ratio
When Horizontal number of pixels is greater than the Horizontal number of pixels of screen resolution, need to be adjusted preview resolution.Therefore, in such as Fig. 1
Shown on the basis of implementation, be also implemented as implementation as shown in Figure 2.Wherein, step 102 determines initial point
Whether resolution is greater than screen resolution, can be implemented as step 1021 to step 1024:
1021, judge whether the Vertical number of pixels of initial preview resolution ratio is greater than the Vertical number of pixels of screen resolution.
If the Vertical number of pixels of initial preview resolution ratio is greater than the Vertical number of pixels of screen resolution, then follow the steps
1022;Otherwise, step 1024 is executed.
1022, judge whether the Horizontal number of pixels of initial preview resolution ratio is greater than the Horizontal number of pixels of screen resolution.
If the Horizontal number of pixels of initial preview resolution ratio is greater than the Horizontal number of pixels of screen resolution, then follow the steps
1023;Otherwise, step 1024 is executed.
If the Vertical number of pixels of initial preview resolution ratio is less than or equal to the Vertical number of pixels of screen resolution, show to hang down
Histogram is upward, and initial preview resolution ratio is to influence the principal element of preview effect, adjusts initial preview resolution ratio at this time easily to pre-
Effect of looking at impacts.If the Horizontal number of pixels of initial preview resolution ratio is less than or the Horizontal number of pixels of screen resolution, table
In bright horizontal direction, initial preview resolution ratio is to influence the principal element of preview effect, and it is easy to adjust initial preview resolution ratio at this time
Preview effect is impacted.Therefore, in embodiments of the present invention, in order to reduce the influence to preview effect, work as initial preview
The Vertical number of pixels of resolution ratio is less than or equal to the Vertical number of pixels of screen resolution, alternatively, the level of initial preview resolution ratio
When pixel number is less than or equal to the Horizontal number of pixels of screen resolution, determine that initial preview resolution ratio is differentiated less than or equal to screen
Rate.When the Vertical number of pixels of initial preview resolution is greater than the Vertical number of pixels of screen resolution, and initial preview resolution ratio
When Horizontal number of pixels is greater than the Horizontal number of pixels of screen resolution, determine that initial preview resolution ratio is greater than screen resolution.For example,
When initial preview resolution is 3264*2448, and screen resolution is 1920*1080, determine that initial preview resolution ratio is greater than screen
Curtain resolution ratio;When initial preview resolution is 1280*960, and screen resolution is 1920*1080, determine that initial resolution is small
In or equal to screen resolution.
1023, determine that initial preview resolution ratio is greater than screen resolution.
1024, determine that initial preview resolution ratio is less than or equal to screen resolution.
It should be noted that the sequencing of the comparison procedure of comparison and Horizontal number of pixels for Vertical number of pixels, this
Invention is without limitation.
The method of setting preview resolution provided in an embodiment of the present invention, if the Vertical number of pixels of initial preview resolution ratio
Greater than the Vertical number of pixels of screen resolution, and the Horizontal number of pixels of initial preview resolution ratio is greater than the horizontal picture of screen resolution
Prime number, it is determined that initial preview resolution ratio is greater than screen resolution;Otherwise determine that initial preview resolution ratio is less than or equal to screen
Resolution ratio.It is compared to and sets identical resolution ratio for preview resolution and resolution ratio of camera head in the prior art, the present invention
Solve the problems, such as because of preview resolution it is excessively high caused by power consumption of terminal it is big on the basis of, it is only vertical when initial preview resolution
Pixel number is greater than the Vertical number of pixels of screen resolution, and the Horizontal number of pixels of initial preview resolution ratio is greater than screen resolution
When Horizontal number of pixels, determine that initial preview resolution ratio is greater than screen resolution, so that initial preview resolution adjustment be avoided not conform to
Reason, the influence to preview effect.
It, will in an implementation of the embodiment of the present invention in order to guarantee the preview effect after adjustment preview resolution
Lesser value is used as preview ratio in the ratio between the ratio between Vertical number of pixels and Horizontal number of pixels.Therefore, in realization side as shown in Figure 1
On the basis of formula, it is also implemented as implementation as shown in Figure 3.Wherein, step 103 is according to initial preview resolution ratio and screen
The ratio between the ratio between Vertical number of pixels of curtain resolution ratio and initial preview resolution ratio and the Horizontal number of pixels of screen resolution determine pre-
It lookes at ratio, step 1031 can be implemented as to 1033:
1031, determine whether the ratio between Vertical number of pixels is greater than the ratio between Horizontal number of pixels.
If the ratio between Vertical number of pixels is greater than the ratio between Horizontal number of pixels, 1032 are thened follow the steps;Otherwise, step is executed
1033。
In order to avoid initial preview resolution ratio adjusted is less than screen resolution, so that preview effect is influenced, it will be horizontal
Lesser one in the ratio between the ratio between pixel number and Vertical number of pixels, it is determined as preview ratio.For example, initial preview resolution ratio is
3264*2448, screen resolution 1920*1080, the ratio between Vertical number of pixels 3264/1920 are less than the ratio between Horizontal number of pixels
2448/1080, the ratio between Vertical number of pixels is determined as preview ratio;Initial preview resolution ratio is 3264*2448, screen resolution
For 1280*1024, the ratio between Vertical number of pixels 3264/1280 is greater than the ratio between Horizontal number of pixels 2448/1024, by Horizontal number of pixels it
Than being determined as preview ratio.
1032, the ratio between Horizontal number of pixels is determined as preview ratio.
1033, the ratio between Vertical number of pixels is determined as preview ratio.
The method of setting preview resolution provided in an embodiment of the present invention, preview resolution picture vertical with screen resolution
Lesser one is used as preview ratio in the ratio between Horizontal number of pixels of the ratio between prime number and preview resolution and screen resolution.
Be compared to and set identical resolution ratio for preview resolution and resolution ratio of camera head in the prior art, the present invention solve because
On the basis of the big problem of power consumption of terminal caused by preview resolution is excessively high, pass through hanging down preview resolution and screen resolution
Lesser one is used as preview ratio in the ratio between Horizontal number of pixels of the ratio between straight pixel number and preview resolution and screen resolution
Example, ensure that screen resolution is still greater than in initial preview resolution ratio adjusted, thus make the adjustment of initial preview resolution ratio,
Preview effect is not influenced.
In order to guarantee adjust preview resolution after preview interface will not deformation occurs, in a reality of the embodiment of the present invention
In existing mode, the Vertical number of pixels and Vertical number of pixels of initial resolution are adjusted separately according to a certain percentage.Therefore, in such as Fig. 1
Shown on the basis of implementation, be also implemented as implementation as shown in Figure 4.Wherein, step 104 is according to preview ratio
Example, is adjusted to current preview resolution ratio by initial resolution for the preview resolution in terminal shooting process, can implement
For step 1041 to step 1043:
1041, reduce the Vertical number of pixels and Horizontal number of pixels of initial preview resolution ratio according to preview ratio.
1042, by the Vertical number of pixels and Horizontal number of pixels of the initial preview resolution ratio after reduction, it is set as current preview
The Vertical number of pixels and Horizontal number of pixels of resolution ratio.
1043, the preview resolution in terminal shooting process is adjusted to current preview resolution ratio.
For example, initial preview resolution ratio is 3264*2448, screen resolution 1920*1080, by initial preview resolution ratio
Vertical number of pixels 3264, adjusted according to preview ratio 3264/1920, the Vertical number of pixels for obtaining current preview resolution ratio is
3264/ (3264/1920)=1920;By the Horizontal number of pixels 2448 of initial preview resolution ratio, according to preview ratio 3264/1920
Adjustment, the horizontal resolution for obtaining current preview resolution ratio is 2448/ (3264/1920)=1440, i.e. current preview resolution ratio
For 1920*1440.At this point it is possible to which the preview resolution in terminal shooting process is adjusted to 1920*1440 by 3264*2448.
It should be noted that initial preview resolution ratio is 3264*2448, when screen resolution is 1920*1080, if will
Preview ratio-dependent is 2448/1080, and the Vertical number of pixels of obtained current preview resolution ratio is 1440, and Horizontal number of pixels is
1080, it can be seen that the Vertical number of pixels 1440 of current preview resolution ratio is less than the Vertical number of pixels 1920 of screen resolution, meeting
Influence preview effect.
The method of setting preview resolution provided in an embodiment of the present invention, by the Vertical number of pixels of initial preview resolution ratio and
Horizontal number of pixels is adjusted according to preview ratio, and resolution obtains the Vertical number of pixels and Horizontal number of pixels of current preview resolution ratio,
Preview resolution in terminal shooting process is adjusted to current preview resolution ratio.It is compared to and in the prior art differentiates preview
Rate and resolution ratio of camera head are set as identical resolution ratio, present invention power consumption of terminal caused by solution is excessively high because of preview resolution
On the basis of big problem, Vertical number of pixels and Horizontal number of pixels to initial preview resolution ratio are adjusted according to same ratio
It is whole, it is ensured that preview interface relative to camera capture picture will not deformation occurs.
The embodiment of the present invention also provides a kind of device 20 that preview resolution is arranged, as shown in figure 5, the device 20 is for holding
Row any one method flow as shown in Figures 1 to 4, the device 20 include:
Acquisition module 21, the initial preview resolution ratio in screen resolution and terminal shooting process for obtaining terminal,
Initial preview resolution ratio is identical as the resolution ratio of camera head of terminal.
Determining module 22, for being greater than the screen for obtaining module 21 and obtaining when the initial preview resolution ratio for obtaining the acquisition of module 21
When curtain resolution ratio, according to the ratio between Vertical number of pixels of initial preview resolution ratio and screen resolution and initial preview resolution ratio
With the determining preview ratio of the ratio between the Horizontal number of pixels of screen resolution.
Module 23 is adjusted, the preview ratio for determining according to determining module 22, by the preview in terminal shooting process point
Resolution is adjusted to current preview resolution ratio by the initial resolution that acquisition module 21 obtains, and current preview resolution ratio is less than initial pre-
Look at resolution ratio.
In an implementation of the embodiment of the present invention, device 20 further include:
Judgment module 24, for judging whether the Vertical number of pixels for obtaining the initial preview resolution ratio that module 21 obtains is greater than
Obtain the Vertical number of pixels for the screen resolution that module 21 obtains;And when the Vertical number of pixels of initial preview resolution is greater than screen
When the Vertical number of pixels of curtain resolution ratio, judge whether the Horizontal number of pixels of initial preview resolution ratio is greater than the level of screen resolution
Pixel number.
Determining module 22 is also used to determine the Horizontal number of pixels of initial preview resolution ratio greater than screen point when judgment module 24
When the Horizontal number of pixels of resolution, determine that initial preview resolution ratio is greater than screen resolution.
In an implementation of the embodiment of the present invention, determining module 22 is specifically used for when the ratio between Vertical number of pixels is big
When the ratio between Horizontal number of pixels, the ratio between Horizontal number of pixels is determined as preview ratio;When the ratio between Vertical number of pixels is less than or equal to
When the ratio between Horizontal number of pixels, then the ratio between Vertical number of pixels is determined as preview ratio.
In an implementation of the embodiment of the present invention, module 23 is adjusted, is specifically used for reducing just according to preview ratio
The Vertical number of pixels and Horizontal number of pixels of beginning preview resolution;By the Vertical number of pixels and water of the initial preview resolution ratio after reduction
Flat pixel number is set as the Vertical number of pixels and Horizontal number of pixels of current preview resolution ratio;By the preview in terminal shooting process
Resolution adjustment is current preview resolution ratio.
Determining module 22 is also used to that initial resolution is arranged when initial resolution is less than or equal to screen resolution
For current preview resolution ratio.
The device of setting preview resolution provided in an embodiment of the present invention, if the initial preview resolution ratio obtained is greater than screen
Curtain resolution ratio, then according to the ratio between Vertical number of pixels of initial preview resolution ratio and screen resolution and the horizontal pixel of the two
The ratio between number determines preview ratio, according to preview ratio by the preview resolution in terminal shooting process by initial preview resolution ratio tune
Whole is current preview resolution ratio;Otherwise, still use initial preview resolution ratio as the preview resolution in terminal shooting process.
It is compared to and sets identical resolution ratio for preview resolution and resolution ratio of camera head in the prior art, the present invention is initial pre-
When resolution ratio of looking at is greater than screen resolution, terminal can be adjusted according to initial preview resolution ratio and the proportionate relationship of screen resolution
Preview ratio in shooting process.It is current pre- since the current preview resolution ratio obtained after adjustment is less than initial preview resolution ratio
Look at resolution ratio pixel quantity also just be less than initial preview resolution ratio pixel quantity.Therefore, it is used in terminal current pre-
During resolution ratio of looking at carries out preview, terminal needs the pixel quantity of real-time update to tail off, and reduces the power consumption of terminal.Cause
This, the present invention can solve because preview resolution it is excessively high caused by the big problem of power consumption of terminal.
The embodiment of the present invention also provides a kind of terminal, which, should for executing method flow as shown in Figures 1 to 4
Terminal includes at least the device of setting preview resolution as shown in Figure 5.
Terminal provided in an embodiment of the present invention, if the initial preview resolution ratio obtained is greater than screen resolution, basis
The ratio between Vertical number of pixels of initial preview resolution ratio and screen resolution and the ratio between the Horizontal number of pixels of the two determine preview ratio
Example, according to preview ratio by the preview resolution in terminal shooting process by initial preview resolution adjustment be current preview differentiate
Rate;Otherwise, still use initial preview resolution ratio as the preview resolution in terminal shooting process.It is compared to the prior art
Middle to set identical resolution ratio for preview resolution and resolution ratio of camera head, the present invention is greater than screen in initial preview resolution ratio
It, can be according to the preview in initial preview resolution ratio and the proportionate relationship of screen resolution adjustment terminal shooting process when resolution ratio
Ratio.Since the current preview resolution ratio obtained after adjustment is less than initial preview resolution ratio, the pixel of current preview resolution ratio
Quantity is also just less than the pixel quantity of initial preview resolution ratio.Therefore, preview is carried out using current preview resolution ratio in terminal
During, terminal needs the pixel quantity of real-time update to tail off, and reduces the power consumption of terminal.Therefore, the present invention can solve
Because preview resolution it is excessively high caused by the big problem of power consumption of terminal.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (English: Read-Only Memory, referred to as: ROM) or random access memory (English:
Random Access Memory, referred to as: RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of method that preview resolution is arranged, which is characterized in that the described method includes:
Obtain terminal screen resolution and terminal shooting process in initial preview resolution ratio, the initial preview resolution ratio with
The resolution ratio of camera head of terminal is identical;
If the initial preview resolution ratio is greater than the screen resolution, according to the initial preview resolution ratio and the screen
The Horizontal number of pixels of the ratio between Vertical number of pixels of curtain resolution ratio and the initial preview resolution ratio and the screen resolution it
Than determining preview ratio;
According to the preview ratio, by the preview resolution in the terminal shooting process by the initial preview resolution adjustment
For current preview resolution ratio, the current preview resolution ratio is less than the initial preview resolution ratio.
2. the method according to claim 1, wherein in the initial preview resolution ratio and screen for obtaining terminal
After resolution ratio, further includes:
Judge whether the Vertical number of pixels of the initial preview resolution ratio is greater than the Vertical number of pixels of the screen resolution;
If the Vertical number of pixels of the initial preview resolution ratio is greater than the Vertical number of pixels of the screen resolution, institute is judged
Whether the Horizontal number of pixels for stating initial preview resolution ratio is greater than the Horizontal number of pixels of the screen resolution;
If the Horizontal number of pixels of the initial preview resolution ratio is greater than the Horizontal number of pixels of the screen resolution, it is determined that institute
Initial preview resolution ratio is stated greater than the screen resolution.
3. the method according to claim 1, wherein described according to the initial preview resolution ratio and the screen
The ratio between the Horizontal number of pixels of the ratio between Vertical number of pixels of resolution ratio and the initial preview resolution ratio and the screen resolution
Determine preview ratio, comprising:
If the ratio between described Vertical number of pixels is greater than the ratio between described Horizontal number of pixels, the ratio between described Horizontal number of pixels is determined as
The preview ratio;
If the ratio between described Vertical number of pixels is less than or equal to the ratio between described Horizontal number of pixels, by the ratio between described Vertical number of pixels
It is determined as the preview ratio.
4. the method according to claim 1, wherein it is described according to the preview ratio by the initial of the terminal
Preview resolution is adjusted to current preview resolution ratio, comprising:
Reduce the Vertical number of pixels and Horizontal number of pixels of the initial preview resolution ratio according to the preview ratio;
By the Vertical number of pixels and Horizontal number of pixels of the initial preview resolution ratio after reduction, it is set as the current preview resolution ratio
Vertical number of pixels and Horizontal number of pixels;
Preview resolution in the terminal shooting process is adjusted to current preview resolution ratio.
5. method as claimed in any of claims 1 to 4, which is characterized in that obtain the initial pre- of terminal described
It lookes at after resolution ratio and screen resolution, further includes:
If the initial preview resolution ratio is less than or equal to the screen resolution, the initial preview resolution ratio is set
It is set to current preview resolution ratio.
6. a kind of device that preview resolution is arranged, which is characterized in that described device includes:
Module is obtained, the initial preview resolution ratio in screen resolution and terminal shooting process for obtaining terminal is described first
Beginning preview resolution is identical as the resolution ratio of camera head of terminal;
Determining module, the initial preview resolution ratio for obtaining when the acquisition module are greater than the screen that the acquisition module obtains
When resolution ratio, according to the ratio between Vertical number of pixels of the initial preview resolution ratio and the screen resolution and described initial
The ratio between Horizontal number of pixels of preview resolution and the screen resolution determines preview ratio;
Module is adjusted, the preview ratio for determining according to the determining module, by the preview in the terminal shooting process point
Resolution is current preview resolution ratio, the current preview resolution ratio by the initial preview resolution adjustment that the acquisition module obtains
Less than the initial preview resolution ratio.
7. device according to claim 6, which is characterized in that described device further include:
Judgment module, for judging it is described whether the Vertical number of pixels of initial preview resolution ratio of the acquisition module acquisition is greater than
Obtain the Vertical number of pixels for the screen resolution that module obtains;And when the Vertical number of pixels of the initial preview resolution ratio is greater than
When the Vertical number of pixels of the screen resolution, judge whether the Horizontal number of pixels of the initial preview resolution ratio is greater than the screen
The Horizontal number of pixels of curtain resolution ratio;
The determining module is also used to determine that the Horizontal number of pixels of initial preview resolution ratio is greater than the screen when the judgment module
When the Horizontal number of pixels of curtain resolution ratio, determine that the initial preview resolution ratio is greater than the screen resolution.
8. device according to claim 6, which is characterized in that the determining module is specifically used for working as the vertical pixel
When the ratio between number is greater than the ratio between described Horizontal number of pixels, the ratio between described Horizontal number of pixels is determined as the preview ratio;
When the ratio between described Vertical number of pixels is less than or equal to the ratio between described Horizontal number of pixels, then by the ratio between described Vertical number of pixels
It is determined as the preview ratio.
9. device according to claim 6, which is characterized in that the adjustment module is specifically used for according to the preview ratio
Example reduces the Vertical number of pixels and Horizontal number of pixels of the initial preview resolution ratio;By hanging down for the initial preview resolution ratio after reduction
Straight pixel number and Horizontal number of pixels, are set as the Vertical number of pixels and Horizontal number of pixels of the current preview resolution ratio;It will be described
Preview resolution in terminal shooting process is adjusted to current preview resolution ratio;
The determining module is also used to when the initial preview resolution ratio is less than or equal to the screen resolution, will be described
Initial preview resolution ratio is set as current preview resolution ratio.
10. a kind of terminal, which is characterized in that the terminal includes at least the setting as described in any one of 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 CN106293589A (en) | 2017-01-04 |
CN106293589B true 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) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111050062B (en) * | 2018-10-15 | 2022-01-14 | 华为技术有限公司 | Shooting method and electronic equipment |
CN110636353B (en) * | 2019-06-10 | 2022-09-02 | 海信视像科技股份有限公司 | Display device |
CN110765799B (en) * | 2019-10-21 | 2023-05-02 | 高新兴科技集团股份有限公司 | Client code scanning identification method, device, equipment and storage medium |
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 |
CN114422694B (en) * | 2022-01-18 | 2024-03-26 | 杭州逗酷软件科技有限公司 | Preview resolution adaptation method and device and electronic equipment |
Family Cites Families (5)
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 |
KR101796481B1 (en) * | 2011-11-28 | 2017-12-04 | 삼성전자주식회사 | Method of eliminating shutter-lags with low power consumption, camera module, and mobile device having the same |
CN103019537B (en) * | 2012-11-19 | 2016-04-13 | 广东欧珀移动通信有限公司 | A kind of image preview method and device |
KR102182160B1 (en) * | 2013-07-16 | 2020-11-24 | 엘지전자 주식회사 | Mobile terminal and method for controlling the same |
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
Also Published As
Publication number | Publication date |
---|---|
WO2018040174A1 (en) | 2018-03-08 |
CN106293589A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106293589B (en) | A kind of method, apparatus and terminal that preview resolution is set | |
US11375128B2 (en) | Method for obtaining exposure compensation values of high dynamic range image, terminal device and non-transitory computer-readable storage medium | |
KR101998531B1 (en) | Real-time video enhancement methods, terminals, and non-transitory computer readable storage media | |
KR102149187B1 (en) | Electronic device and control method of the same | |
EP3200446A1 (en) | Method and apparatus for generating high dynamic range image | |
CN109936698A (en) | A kind of automatic exposure control method, device, electronic equipment and storage medium | |
CN104580969A (en) | Video frame rate adjusting method and device | |
CN103973983A (en) | Method for intelligently adjusting brightness of picture on basis of detection of environmental brightness in photographing | |
CN109375970A (en) | Screen self-adapting regulation method, computer readable storage medium and terminal device | |
CN105100637A (en) | Image processing method and electronic equipment | |
CN104917973B (en) | Dynamic exposure method of adjustment and its electronic device | |
CN105916056B (en) | Backlight adaptive regulation method and device | |
WO2017107737A1 (en) | Method, apparatus and device for adjusting screen turn-off time of terminal, and computer storage media | |
CN105744317A (en) | Method for rapidly modifying display background | |
CN107454344B (en) | A kind of acquisition parameters setting method and user terminal | |
CN104793742A (en) | Shooting previewing method and device | |
CN105472245A (en) | Photographing method and electronic device | |
CN109616080A (en) | A kind of abnormity screen outline compensation method and terminal | |
CN110868533B (en) | HDR mode determination method, device, storage medium and terminal | |
CN106357978B (en) | Image output method, device and terminal | |
CN103327254A (en) | Automatic focusing method and focusing system thereof | |
CN104994280A (en) | Method for processing preview image and user terminal | |
CN104683680A (en) | A method, device and mobile terminal for automatically taking a picture | |
CN104811802A (en) | Image playing method and apparatus | |
CN104539923A (en) | Depth-of-field adaptive holographic display method and device thereof |
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 |