Backlight value method to set up and device
Technical field
The embodiment of the present invention belongs to display backlight control field, more particularly to a kind of backlight value method to set up and device.
Background technology
In order to reduce the power consumption of terminal device, the display module of present many terminal devices (such as mobile phone, panel computer)
All take the measure of reducing power consumption.
In existing method, in order to save intensity loss, usual control display screen dynamically adjusts backlight according to display content
Brightness.Wherein, the brightness of backlight and backlight value are one-to-one relations.In the process of the dynamically brightness of adjustment backlight
In, if the content deltas very little of front and rear two frames picture, the difference of the front and rear backlight value for dynamically being adjusted according to display content twice
Also can very little;If difference all very littles of the content of multiple frame picture (are such as chatted in wechat chat interface and good friend in a period of time
When, ceaselessly it is input into word using input method so that display content ceaselessly changes, but display content difference very little), then carry on the back
Light value will ceaselessly in a small range change, (for example, backlight value be being adjusted with such sequence:64,66,65,67,65,
66,64 ... ...), and the change of backlight value also causes the brightness of backlight ceaselessly respective change, the brightness of flicker has a strong impact on
The visual experience of user.
The content of the invention
The embodiment of the invention provides a kind of backlight value method to set up and device, it is intended to solve existing method in display content
When difference is smaller, do not stop the problem of screen flicker caused by adjustment backlight value.
The embodiment of the present invention is achieved in that a kind of backlight value method to set up, and methods described includes:
The backlight value level that acquisition will be set;
Judge whether the level is less than default threshold value with the absolute value of the difference of the backlight value for having set of storage, and
When the level is less than default threshold value with the absolute value of the difference of the backlight value for having set of storage, this backlight is not carried out
The setting of value.
The another object of the embodiment of the present invention is to provide a kind of backlight value to set device, and described device includes:
Backlight value acquiring unit to be set, for obtaining the backlight value level that will be set;
Backlight value comparing unit to be set, for judging that the level is absolute with the difference of the backlight value for having set of storage
Whether value is less than default threshold value, and is less than with the absolute value of the difference of the backlight value for having set of storage in the level default
Threshold value when, do not carry out the setting of this backlight value.
In embodiments of the present invention, it is pre- due to being less than with the absolute value of the difference of the backlight value for having set of storage in level
If threshold value when, do not carry out the setting of this backlight value, therefore, it is possible to reduce backlight value ceaselessly a small range change, subtract
Lack the brightness of backlight value ceaselessly respective change, so as to reduce the scintillation of display screen, improve the visual experience of user.
Brief description of the drawings
Fig. 1 is a kind of flow chart of backlight value method to set up that first embodiment of the invention is provided;
Fig. 2 is the structure chart that a kind of backlight value that second embodiment of the invention is provided sets device.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In the embodiment of the present invention, the backlight value level that acquisition will be set judges the setting of the level and storage
The absolute value of difference of backlight value whether be less than default threshold value, and in the backlight value that has set of the level and storage
When poor absolute value is less than default threshold value, the setting of this backlight value is not carried out.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
Fig. 1 shows a kind of flow chart of backlight value method to set up that first embodiment of the invention is provided, and details are as follows:
Step S11, the backlight value level that acquisition will be set;
In the step, it is first determined the display content of display screen, further according to the backlight value that display content determines to set,
Brightness value for example according to the corresponding picture frame of display content determines the backlight value that will be set.In embodiments of the present invention, should
Backlight value is represented using level.
Whether step S12, judge the level with the absolute value of the difference of the backlight value for having set of storage less than default
Threshold value, and when the level is less than default threshold value with the absolute value of the difference of the backlight value for having set of storage, this is not carried out
The setting of secondary backlight value.
In the step, the backlight value that storage has been set, such as backlight value (being represented using current) of storage current setting,
Backlight value (being represented using last), the backlight value (being represented using last_last) of setting of upper last time that last time is set, certainly,
Other backlight values for having set can also be stored, is not construed as limiting herein.Judge the backlight value for having set of the level and storage
Difference absolute value whether be less than default threshold value, specially judge whether the absolute value of the difference of the level and current small
In default threshold value, and/or, whether the absolute value of difference of the level and last is judged less than default threshold value, and/or, sentence
Whether the absolute value of the difference of the disconnected level and last_last is less than default threshold value etc., wherein, default threshold value is small more than 0
In 255, unit is pixel.
In this step, it is more than or equal to the absolute value of the difference of the backlight value for having set of storage in the level pre-
If threshold value when, backlight value is set to level, and update the backlight value for having set of storage, specially:Level assignment
To current, last is assigned to last_last, and level is assigned to last.
Alternatively, it is described to judge the level with the absolute value of the difference of the backlight value for having set of storage whether less than pre-
If threshold value, and the level with storage the backlight value for having set difference absolute value be less than default threshold value when, do not enter
The setting of capable this backlight value, specifically includes:
A1, judge the level and current setting backlight value current difference absolute value whether less than the first threshold
Value;
A2, the level and current difference absolute value be less than first threshold when, do not carry out this backlight value
Set.
In above-mentioned A1~A2, first threshold is more than or equal to 0, and less than or equal to 5, such as first threshold can be taken as 1.Due to
When the absolute value of the difference of level and current is less than first threshold, the setting of this backlight value is not carried out, therefore, reduce the back of the body
The adjustment number of times of light value, so as to reduce the probability that display screen flashes, improves the visual experience of user.
In order to improve the accuracy of adjustment backlight value, the A2 is small in the absolute value of the difference of the level and current
When first threshold, the setting of this backlight value is not carried out, specifically included:
A21, the level and current difference absolute value be less than first threshold when, judge the level with it is upper
The absolute value of the difference of the backlight value last for once setting whether be less than Second Threshold, the level and last difference it is absolute
When value is less than Second Threshold, judge whether the absolute value of the difference of the backlight value last_last that the level was set with last time is small
In the 3rd threshold value;
A22, the level and last_last difference absolute value be less than three threshold values when, do not carry out this backlight value
Setting.
In above-mentioned A21~A22, Second Threshold is more than or equal to 0, and less than or equal to 5, usual value is 2;3rd threshold value is equal to 0,
Less than or equal to 5, usual value is 1.Because the absolute value only in level and the difference of current is less than first threshold, level
When absolute value with the difference of last is less than three threshold values less than the absolute value of Second Threshold and the difference of level and last_last,
The setting of this backlight value is not just carried out, therefore so that the backlight value of adjustment is more matched with the display content of display screen, is easy to use
Display content is checked at family.When the setting of this backlight value is not carried out, the backlight value for having set of storage is updated, concretely:
Last is assigned to last_last, level is assigned to last, current values are constant.
In order to further reduce the adjustment number of times of backlight value, the accuracy of backlight value adjustment is improved, the A1 judges described
Whether level is less than first threshold with the absolute value of the difference of the backlight value current of current setting, specifically includes:
A11, judge the level whether more than the 4th threshold value;4th threshold value is more than following any one value:First threshold
Value, Second Threshold, the 3rd threshold value;
A12, when the level is less than four threshold values, judge the level and current difference absolute value whether
Less than first threshold.
In above-mentioned A11~A12, the 4th threshold value is less than or equal to 255 more than 0, and the 4th threshold value is more than first threshold, the second threshold
Any one value in value, the 3rd threshold value.For example, the 4th threshold value can value be 128 or 160 etc., it is of course also possible to be other values,
It is not construed as limiting herein.
Alternatively, the level be more than or equal to four threshold values when, judge the level and current difference it is exhausted
Whether the 5th threshold value is less than to value, and when the absolute value of the level and the difference of current is less than five threshold values, is not carried out
The setting of this backlight value;5th threshold value is more than first threshold.
Level be more than or equal to four threshold values when, show that backlight value is larger, and backlight value it is larger when, user is difficult to feel
The slight change of backlight value is examined, and the 5th threshold value will be set and be more than first threshold, can further reduce the adjustment time of backlight value
Number.
Further, when the absolute value of the level and the difference of current is less than five threshold values, this back of the body is not carried out
The setting of light value, specifically includes:
When the absolute value of the level and the difference of current is less than five threshold values, judge the level and last's
Whether poor absolute value is less than the 6th threshold value, when the absolute value of the level and the difference of last is less than six threshold values, judges institute
Whether the absolute value of difference of level and last_last is stated less than the 7th threshold value, the level and last_last difference it is exhausted
During to value less than seven threshold values, the setting of this backlight value is not carried out, otherwise, carry out the setting of this backlight value.Certainly, no matter
The setting of this backlight value is carried out or do not carried out, is required for updating the backlight value for having set for storing.
In first embodiment of the invention, the backlight value level that acquisition will be set judges the level with storage
Whether the absolute value of the difference of the backlight value of setting is less than default threshold value, and in the level and the backlight for having set for storing
When the absolute value of the difference of value is less than default threshold value, the setting of this backlight value is not carried out.Due in level and having set for storing
When the absolute value of the difference of the backlight value put is less than default threshold value, the setting of this backlight value is not carried out, therefore, it is possible to reduce the back of the body
Light value ceaselessly changes in a small range, the brightness of backlight value ceaselessly respective change is reduced, so as to reduce display screen
Scintillation, improves the visual experience of user.
It should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to the elder generation of execution sequence
Afterwards, the execution sequence of each process should be with its function and internal logic determination, the implementation process structure without tackling the embodiment of the present invention
Into any restriction.
Embodiment two:
Fig. 2 shows that a kind of backlight value that second embodiment of the invention is provided sets the structure chart of device, and the backlight value sets
Put during device can be applied to terminal device, the terminal device can be included through wireless access network RAN and one or more core nets
The user equipment for being communicated, the user equipment can be mobile phone (or being " honeycomb " phone), with mobile device
Computer etc., for example, user equipment can also be portable, pocket, hand-held, built-in computer or vehicle-mounted movement
Device, they exchange voice and/or data with wireless access network.Again for example, the mobile device can include smart mobile phone, flat board
Computer, personal digital assistant PDA, point-of-sale terminal POS or vehicle-mounted computer etc..For convenience of description, illustrate only and reality of the present invention
Apply the related part of example.
The backlight value sets device to be included:Backlight value acquiring unit 21 to be set and backlight value comparing unit 22 to be set.Its
In:
Backlight value acquiring unit 21 to be set, for obtaining the backlight value level that will be set.
Specifically, it is first determined the display content of display screen, the backlight value that will be set is determined further according to display content.
Backlight value comparing unit 22 to be set, for judging that the level is exhausted with the difference of the backlight value for having set of storage
Whether default threshold value is less than to value, and is less than with the absolute value of the difference of the backlight value for having set of storage in the level pre-
If threshold value when, do not carry out the setting of this backlight value.
Terminal device prestores the backlight value for having set, and the backlight value of such as storage current setting (uses current tables
Show), the backlight value (being represented using last_last) that sets of the last backlight value (being represented using last) for setting, upper last time, when
So, other backlight values for having set can also be stored, is not construed as limiting herein.
When the level is more than or equal to default threshold value with the absolute value of the difference of the backlight value for having set of storage,
Backlight value is set to level, and updates the backlight value for having set of storage, specially:Level is assigned to current,
Last is assigned to last_last, and level is assigned to last.
Alternatively, the backlight value comparing unit 22 to be set includes:First threshold comparison module and the first refusal set mould
Block.Wherein:
First threshold comparison module, for judging that the level is absolute with the difference of the backlight value current of current setting
Whether value is less than first threshold.Wherein, first threshold is more than or equal to 0, and less than or equal to 5, such as first threshold can be taken as 1.Due to
When the absolute value of the difference of level and current is less than first threshold, the setting of this backlight value is not carried out, therefore, reduce the back of the body
The adjustment number of times of light value, so as to reduce the probability that display screen flashes, improves the visual experience of user.
First refusal setup module, during for the absolute value in the level and the difference of current less than first threshold,
The setting of this backlight value is not carried out.
Alternatively, the first refusal setup module includes:
Second Threshold comparison module, during for the absolute value in the level and the difference of current less than first threshold,
Judge whether the level is less than Second Threshold with the absolute value of the difference of the last backlight value last for setting, in the level
When absolute value with the difference of last is less than Second Threshold, judge the backlight value last_last's that the level was set with last time
Whether poor absolute value is less than the 3rd threshold value.
Second refusal setup module, the 3rd threshold value is less than for the absolute value in the level and the difference of last_last
When, do not carry out the setting of this backlight value.
Wherein, Second Threshold is more than or equal to 0, and less than or equal to 5, usual value is 2;3rd threshold value is equal to 0, less than or equal to 5,
Usual value is 1.Due to only in the difference of the absolute value less than first threshold, level and last of level and the difference of current
Absolute value when being less than three threshold values with the absolute value of the difference of last_last less than Second Threshold and level, this is not just carried out
The setting of secondary backlight value, therefore so that the backlight value of adjustment is more matched with the display content of display screen, is easy to user to check display
Content.When the setting of this backlight value is not carried out, the backlight value for having set of storage is updated, concretely:Last assignment
To last_last, level is assigned to last, current values are constant.
Alternatively, the first threshold comparison module includes:
4th threshold value comparison module, for judging the level whether more than the 4th threshold value.4th threshold value be more than with
Lower any one value:First threshold, Second Threshold, the 3rd threshold value.Wherein, the 4th threshold value is less than or equal to 255, and the 4th threshold more than 0
Value is more than any one value in first threshold, Second Threshold, the 3rd threshold value.For example, the 4th threshold value can value be 128 or 160 etc.,
It is of course also possible to be other values, it is not construed as limiting herein.
Difference comparsion module, for when the level is less than four threshold values, judging the difference of the level and current
Absolute value whether be less than first threshold.
Alternatively, the backlight value sets device and includes:
5th threshold value comparing unit, for the level be more than or equal to four threshold values when, judge the level and
Whether the absolute value of the difference of current is less than the 5th threshold value, and the level and the difference of current absolute value less than the
During five threshold values, the setting of this backlight value is not carried out.5th threshold value is more than first threshold.
Level be more than or equal to four threshold values when, show that backlight value is larger, and backlight value it is larger when, user is difficult to feel
The slight change of backlight value is examined, and the 5th threshold value will be set and be more than first threshold, can further reduce the adjustment time of backlight value
Number.
Further, when the absolute value of the level and the difference of current is less than five threshold values, this back of the body is not carried out
The setting of light value, specifically includes:
When the absolute value of the level and the difference of current is less than five threshold values, judge the level and last's
Whether poor absolute value is less than the 6th threshold value, when the absolute value of the level and the difference of last is less than six threshold values, judges institute
Whether the absolute value of difference of level and last_last is stated less than the 7th threshold value, the level and last_last difference it is exhausted
During to value less than seven threshold values, the setting of this backlight value is not carried out, otherwise, carry out the setting of this backlight value.Certainly, no matter
The setting of this backlight value is carried out or do not carried out, is required for updating the backlight value for having set for storing.
In second embodiment of the invention, due to small with the absolute value of the difference of the backlight value for having set of storage in level
When default threshold value, the setting of this backlight value is not carried out, ceaselessly changed in a small range therefore, it is possible to reduce backlight value
Become, reduce the brightness of backlight value ceaselessly respective change, so as to reduce the scintillation of display screen, improve the vision of user
Experience.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function, but this realization can be realized it is not considered that exceeding using distinct methods to each specific application
The scope of the present invention.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example multiple units or component
Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, it is shown or
The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme
's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is to realize in the form of SFU software functional unit and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.