Summary of the invention
For solving the problem on the above-mentioned prior art, the present invention provides a kind of applied range, intelligent dimming method and portable terminal when taking into account the shooting preview of preview effect and Overall Power Consumption.
The present invention realizes through following mode:
A kind of intelligent dimming method of making a video recording during preview, the portable terminal that is applied to have camera module and light sensation module comprises step:
Trigger the preview function of camera module when receiving the shooting instruction;
Judge whether the light sensation function opens; If open; Obtain the pairing first screen backlight progression of light sensation parameter that the light sensation module provides, the pairing second screen backlight progression of exposure parameter that camera module provides respectively; And the size of the comparison first screen backlight sum of series second screen backlight progression, regulate screen backlight brightness according to progression backlight less in the first screen backlight sum of series, the second screen backlight progression;
If do not open, the pairing screen backlight progression of exposure parameter that then obtaining camera module provides is regulated screen backlight brightness.
A kind of portable terminal of the light-dimming method when adopting described shooting preview has camera module, light sensation module, also comprises:
Judge module is used to judge whether the light sensation module opens;
Acquisition module is used to obtain the pairing first screen backlight progression of light sensation parameter that the light sensation module provides, the pairing second screen backlight progression of exposure parameter that camera module provides;
Comparison module, when illuminant module is opened, the size of the first screen backlight sum of series, the second screen backlight progression that is used for relatively obtaining;
Adjustment module; Be used for to regulate automatically screen backlight brightness according to the comparative result of the first screen backlight sum of series, the second screen backlight progression; If the first screen backlight progression is less; Then come to regulate automatically screen backlight brightness according to the first screen progression, otherwise, then come to regulate automatically screen backlight brightness according to the second screen progression.
Intelligent dimming method and portable terminal during shooting preview provided by the present invention; Opening and camera through judging the light sensation function come adjusting screen backlight brightness automatically with the parameter that the light sensation function is obtained; No matter whether mobile phone opens the light sensation function thereby reach; Can come to regulate automatically the purpose of screen backlight brightness when getting into the camera preview interface according to surrounding environment, intelligent, efficient, energy-conservation.
Embodiment
For the ease of those skilled in the art's understanding, to the present invention and the effect and the advantage that can produce, the preferred embodiment of lifting this case specifies as follows below in conjunction with accompanying drawing.
The schematic flow sheet of the intelligent dimming method when accompanying drawing 1 is made a video recording preview for the embodiment of the invention.
A kind of intelligent dimming method of making a video recording during preview, the portable terminal that is applied to have camera module and light sensation module comprises step:
Step 101, receive when instruction shooting and trigger the preview function of camera module; Button or touch operation instruction through accepting the user make camera get into operating state, and show preview interface.
Step 102, judge whether the light sensation module opens;
Can judge through the state value that obtains status register.
Step 103, obtain the pairing first screen backlight progression of light sensation parameter that the light sensation module provides, the pairing second screen backlight progression of exposure parameter that camera module provides respectively;
Judging under the situation that the light sensation module has been opened, obtaining the pairing first screen backlight progression of light sensation parameter that the light sensation module provides, the pairing second screen backlight progression of exposure parameter that camera module provides respectively, wherein,
The view data that baseband chip or picture processing chip are exported according to camera obtains the required exposure yield value of present image; The pairing wealthy family of this exposure yield value and current backlight brightness limit value; Minimum threshold relatively, if greater than wealthy family limit value, progression then backlight adds one-level; Software is reset the threshold value of current backlight through I2C (address of Inter-Integrated Circuit internal integration circuit is a kind of serial communication bus); If less than minimum threshold, progression then backlight subtracts one-level, and software is reset the threshold value of current backlight through I2C; Within institute was to the threshold value scope with backlight illumination, progression backlight at this moment was the pairing second screen backlight progression of exposure parameter that camera module provides up to this exposure yield value,
Meanwhile; The light sensation device of light sensation module receives external ambient light, after the conversion of internal mode number converter, obtains a numerical value (light sensation parameter promptly numerical value) for this reason, the pairing wealthy family of this numerical value and current backlight brightness limit value; Minimum threshold compares; If greater than wealthy family limit value, progression then backlight adds one-level, software is reset the threshold value of current backlight through I2C; If less than minimum threshold, progression then backlight subtracts one-level, and software is reset the threshold value of current backlight through I2C; Up to this numerical value to threshold value scope with backlight illumination within, this moment progression backlight be the pairing first screen backlight progression of light sensation parameter that the light sensation module provides.
The size of step 104, the comparison first screen backlight sum of series second screen backlight progression is regulated screen backlight brightness according to progression backlight less in the first screen backlight sum of series, the second screen backlight progression;
Step 105, obtain the pairing second screen backlight progression of exposure parameter that camera module provides;
Judging under the situation that the light sensation module is not opened as yet; The view data that baseband chip or picture processing chip are exported according to camera obtains the required exposure yield value of present image; The pairing wealthy family of this exposure yield value and current backlight brightness limit value; Minimum threshold relatively, if greater than wealthy family limit value, progression then backlight adds one-level; Software is reset the threshold value of current backlight through I2C (address of Inter-Integrated Circuit internal integration circuit is a kind of serial communication bus); If less than minimum threshold, progression then backlight subtracts one-level, and software is reset the threshold value of current backlight through I2C; Within institute was to the threshold value scope with backlight illumination, progression backlight at this moment was the pairing second screen backlight progression of exposure parameter that camera module provides up to this exposure yield value.
Step 106, second progression backlight that obtains according to camera are regulated screen backlight brightness.
Through present embodiment, no matter whether the user opens the light sensation module, can both when getting into the camera preview interface, brake adjusting screen backlight brightness purpose according to surrounding environment, efficient, convenient, intelligent, energy-conservation.
The embodiment of the invention also provides a kind of intelligent dimming portable terminal of making a video recording during preview, and is as shown in Figure 2, has camera module, light sensation module, also comprises:
Judge module is used to judge whether the light sensation module opens;
Acquisition module is used to obtain the pairing first screen backlight progression of light sensation parameter that the light sensation module provides, the pairing second screen backlight progression of exposure parameter that camera module provides;
When the light sensation module is opened; Acquisition module obtains the pairing first screen backlight progression of light sensation parameter that the light sensation module provides, the pairing second screen backlight progression of exposure parameter that camera module provides simultaneously; Otherwise, only obtain the pairing second screen backlight progression of exposure parameter that camera module provides.
Comparison module, when illuminant module is opened, the size of the first screen backlight sum of series, the second screen backlight progression that is used for relatively obtaining;
Adjustment module; When the light sensation module is opened; Be used for to regulate automatically screen backlight brightness,, then come to regulate automatically screen backlight brightness according to the first screen progression if the first screen backlight progression is less according to the comparative result of the first screen backlight sum of series, the second screen backlight progression; Otherwise, then come to regulate automatically screen backlight brightness according to the second screen progression.If the light sensation module is not opened, the pairing second screen backlight progression of exposure parameter that then direct camera module provides draws regulates screen backlight brightness.
The method of interpolation frequent contact provided by the present invention is when also can be applicable to handset dialing interpolation contact person, in handset dialing dish interface.
The content of mentioning in the foregoing description is not to be to qualification of the present invention, and under the prerequisite that does not break away from the present invention's design, any conspicuous replacement is all within protection scope of the present invention.