Screen display method and deviceTechnical field
This disclosure relates to field of terminal technology, more particularly to a kind of screen display method and device.
Background technology
In the modern life, the terminal with display screen has turned into part essential in people's life.ForAlleviate the intense strain of work one day, after light of many users in bedroom is closed, be accustomed to browsing in terminal webpage,Read electronic books, viewing video, chat etc..However, due to now indoor dark, and the light on terminal displayLine is brighter, strong luminance contrast, can aggravate the regulation burden of eyes, and then causes deteriorating vision.In order to solve the above problems,The brightness of terminal display can be suitably adjusted, to reduce the difference of the brightness of terminal display and indoor environment brightness, is enteredAnd carry out screen display according to the brightness value after regulation.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of screen display method and device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of screen display method, methods described include:
Obtain the brightness value of three Color Channels of each pixel on display screen;
For any pixel point, judge bright between any two Color Channel in three Color Channels of the pixelWhether degree difference is more than the first default value;
If luminance difference in three Color Channels of the pixel between any two Color Channel is more than described theOne default value, the brightness value of each Color Channel of the pixel is adjusted using the first preset algorithm, obtains instituteState the brightness value after pixel regulation;
If luminance difference in three Color Channels of the pixel between any two Color Channel is less than described theOne default value, the brightness value of each Color Channel of the pixel is adjusted using the second preset algorithm, obtains instituteState the brightness value after pixel regulation;
When all pixels point is through overregulating, screen display is carried out based on the brightness value after regulation.
Alternatively, it is described to obtain on display screen before the brightness value of three Color Channels of each pixel, in addition to:
Monitor whether the luminance difference between the display screen and current environment is more than the second default value;
When the luminance difference between the display screen and current environment is more than second default value, generation brightness is adjustedSection instruction;
Instructed based on the brightness regulation, perform three Color Channels of each pixel on the acquisition display screenThe step of brightness value.
Alternatively, it is described that the brightness value of each Color Channel of the pixel is adjusted using the first preset algorithmSection, the brightness value after the pixel regulation is obtained, including:
Using the first preset algorithm, the brightness value of each Color Channel of the pixel is reduced into identical multiple, obtainedThe brightness regulation value of each Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after the pixel regulation.
Alternatively, first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminutionMultiple.
Alternatively, it is described that the brightness value of each Color Channel of the pixel is adjusted using the second preset algorithmSection, the brightness value after the pixel regulation is obtained, including:
Using second preset algorithm, the brightness regulation value regulation of each Color Channel of the pixel is arrived and specifiedBrightness range, obtain the brightness regulation value of each Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after the pixel regulation.
Alternatively, second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is describedThe minimum value of given luminance scope, b are the maximum of the given luminance scope.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of screen display device, described device include:
Acquisition module, for obtaining the brightness value of three Color Channels of each pixel on display screen;
Judge module, for for any pixel point, judging any two face in three Color Channels of the pixelWhether the luminance difference between chrominance channel is more than the first default value;
First adjustment module, for when bright between any two Color Channel in three Color Channels of the pixelWhen degree difference is more than first default value, the brightness value using the first preset algorithm to each Color Channel of the pixelIt is adjusted, obtains the brightness value after the pixel regulation;
Second adjustment module, for when bright between any two Color Channel in three Color Channels of the pixelWhen degree difference is less than first default value, the brightness value using the second preset algorithm to each Color Channel of the pixelIt is adjusted, obtains the brightness value after the pixel regulation;
Display module, for when all pixels point is through overregulating, screen display to be carried out based on the brightness value after regulation.
Alternatively, described device also includes:
Monitoring modular, for monitoring whether the luminance difference between the display screen and current environment is more than the second present countValue;
Directive generation module, for being preset when the luminance difference between the display screen and current environment is more than described secondDuring numerical value, generation brightness regulation instruction;
The acquisition module, for being instructed based on the brightness regulation, perform each pixel on the acquisition display screenThe step of brightness value of three Color Channels of point.
Alternatively, first adjustment module, specifically for using the first preset algorithm, by each face of the pixelThe brightness value of chrominance channel reduces identical multiple, obtains the brightness regulation value of each Color Channel;Based on the bright of each Color ChannelRegulated value is spent, obtains the brightness value after the pixel regulation.
Alternatively, first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminutionMultiple.
Alternatively, second adjustment module, specifically for using second preset algorithm, by the every of the pixelGiven luminance scope is arrived in the brightness regulation value regulation of individual Color Channel, obtains the brightness regulation value of each Color Channel;Based on everyThe brightness regulation value of individual Color Channel, obtain the brightness value after the pixel regulation.
Alternatively, second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is describedThe minimum value of given luminance scope, b are the maximum of the given luminance scope.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of screen display device, described device include:
Processor;
The instruction executable for storing processor;
Wherein, the processor is configured as:
Obtain the brightness value of three Color Channels of each pixel on display screen;
For any pixel point, judge bright between any two Color Channel in three Color Channels of the pixelWhether degree difference is more than the first default value;
If luminance difference in three Color Channels of the pixel between any two Color Channel is more than described theOne default value, the brightness value of each Color Channel of the pixel is adjusted using the first preset algorithm, obtains instituteState the brightness value after pixel regulation;
If luminance difference in three Color Channels of the pixel between any two Color Channel is less than described theOne default value, the brightness value of each Color Channel of the pixel is adjusted using the second preset algorithm, obtains instituteState the brightness value after pixel regulation;
When all pixels point is through overregulating, screen display is carried out based on the brightness value after regulation.
The technical scheme provided by this disclosed embodiment can include the following benefits:
For the brightness value of three Color Channels of each pixel, it is adjusted in different ways so that regulationDisplay screen afterwards can keep original color effect, be unlikely to excessive with the contrast of surrounding environment again, so as to effectivelyProtect the eyesight of user.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, notThe disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosureExample, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of screen display method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of screen display method according to an exemplary embodiment.
Fig. 3 is a kind of structural representation of screen display device according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of screen display device according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related toDuring accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodimentDescribed in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appendedThe example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of screen display method according to an exemplary embodiment, as shown in figure 1, screenDisplay methods is used in terminal, comprises the following steps.
In a step 101, the brightness value of three Color Channels of each pixel on display screen is obtained.
In a step 102, for any pixel point, any two Color Channel in three Color Channels of pixel is judgedBetween luminance difference whether be more than the first default value.
In step 103, if the luminance difference in three Color Channels of pixel between any two Color Channel is bigIn the first default value, the brightness value of each Color Channel of pixel is adjusted using the first preset algorithm, obtains pictureBrightness value after vegetarian refreshments regulation.
At step 104, if the luminance difference in three Color Channels of pixel between any two Color Channel is smallIn the first default value, the brightness value of each Color Channel of pixel is adjusted using the second preset algorithm, obtains pictureBrightness value after vegetarian refreshments regulation.
In step 105, when all pixels point is through overregulating, screen display is carried out based on the brightness value after regulation.
The method that the embodiment of the present disclosure provides, for the brightness value of three Color Channels of each pixel, using differenceMode be adjusted so that the display screen after regulation can keep original color effect, be unlikely to again and surrounding environmentContrast it is excessive, so as to be effectively protected the eyesight of user.
In another embodiment of the disclosure, the brightness of three Color Channels of each pixel on display screen is obtainedBefore value, in addition to:
Whether the luminance difference between monitoring display screen and current environment is more than the second default value;
When the luminance difference between display screen and current environment is more than the second default value, generation brightness regulation instruction;
Instructed based on brightness regulation, perform and obtain the brightness value of three Color Channels of each pixel on display screenStep.
In another embodiment of the disclosure, using brightness of first preset algorithm to each Color Channel of pixelValue is adjusted, and obtains the brightness value after pixel regulation, including:
Using the first preset algorithm, the brightness value of each Color Channel of pixel is reduced into identical multiple, obtained eachThe brightness regulation value of Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminutionMultiple.
In another embodiment of the disclosure, using brightness of second preset algorithm to each Color Channel of pixelValue is adjusted, and obtains the brightness value after pixel regulation, including:
Using the second preset algorithm, given luminance model is arrived into the brightness regulation value regulation of each Color Channel of pixelEnclose, obtain the brightness regulation value of each Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is specifiedThe minimum value of brightness range, b are the maximum of given luminance scope.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the disclosure, herein no longerRepeat one by one.
Fig. 2 is a kind of flow chart of screen display method according to an exemplary embodiment, as shown in Fig. 2 screenDisplay methods is used in terminal, comprises the following steps.
In step 201, whether the luminance difference between terminal monitoring display screen and current environment is more than the second present countValue, if it is, step 202 is performed, if not, continuing to monitor.
Wherein, terminal is the equipment with display screen, e.g., smart mobile phone, tablet personal computer, TV, game machine etc., this realityApply example and specific limit is not made to the type of terminal.Current environment refers generally to the environment residing for terminal, if user is closed in lightThe indoor using terminal closed, then current environment is indoor environment;If user's night is in outdoor application mobile phone, current environmentOutdoor environment.Current environment can be the dark environment of brightness or the dark environment of brightness, and the present embodiment is to work as front ringBorder is to illustrate exemplified by the dark environment of brightness.
When whether luminance difference of the terminal between monitoring display screen and current environment is more than the second default value, can first it obtainTake the brightness value that display screen is current, and obtain the brightness value of current environment, and by the brightness value of the display screen got withThe brightness value of current environment is compared, and according to comparative result, determines whether is luminance difference between display screen and current environmentMore than the second default value.Wherein, the second default value can be 3cd/m2(candela/square metre), 5cd/m2、8cd/m2Deng,The present embodiment does not make specific limit to the size of the second default value.
In step 202, terminal generation brightness regulation instruction.
When monitoring that the luminance difference between the brightness of display screen and current environment is more than the second default value, illustrate nowThe display screen of terminal is excessively bright, it is necessary to the brightness of screen is dimmed, and to mitigate the regulation burden of eyes, avoids the eyes to userDamage.Therefore, terminal will generate a brightness regulation instruction, brightness regulation instruction can be used for terminal displayBrightness dims.
In step 203, instructed based on brightness regulation, three colors that terminal obtains each pixel on display screen are led toThe brightness value in road.
Based on brightness regulation instruction is got, under the triggering of brightness regulation instruction, terminal will be obtained on display screenThe brightness value of three Color Channels of each pixel.Wherein, three Color Channels are that red (R) Color Channel, green (G) color are led toRoad, indigo plant (B) Color Channel.R, each Color Channel of G, B is divided into 255 rank brightness values, and 0 rank brightness is most dark, and 255 rank brightness are mostIt is bright.When the brightness value of tri- Color Channels of R, G, B is identical, gray color is shown as, the gray color can be white, black or ashColor, specifically, if the brightness value of tri- Color Channels of R, G, B is 0 rank, black is shown as, if tri- colors of R, G, BWhen the brightness value of passage is 255 rank, white is shown as;When the brightness value difference of tri- Color Channels of R, G, B, coloured silk is shown asColor.
In step 204, for any pixel point, terminal judges any two face in three Color Channels of the pixelWhether the luminance difference between chrominance channel is more than the first default value, if it is, step 205 is performed, if it is not, then performing step206。
In practical application, contrast of the contrast of white background, black background and gray background with respect to color backgroundDegree is big, when indoor using terminal of the user in dark, white background, black background and gray background be more easy toThe eyesight at family damages, and adopts and the pixel on display screen is handled in a like fashion, corresponding to color backgroundThe color that pixel is showed is more easy to distortion.Suffered damage in order to avoid the eyesight of user, while keep webpage, video, electronicsThe color effect of the background colours such as book, the present embodiment, which provides method, can be directed to each pixel, using different brightness adjustment approachBrightness to each pixel is adjusted.
Before being adjusted using brightness of the different brightness adjustment approach to each pixel, terminal is needed according to eachThe brightness value of three Color Channels of pixel carries out brightness judgement to each pixel, so as to according to judging that brightness results areEach pixel chooses corresponding regulative mode.Any pixel point being directed on display screen, when specifically judging, terminal needsFirst obtain the luminance difference between any two Color Channel in three Color Channels of the pixel, and then the luminance difference that will be obtainedCompared with the first default value, according to comparative result, any two color in three Color Channels of the pixel is judgedWhether the luminance difference between passage is more than the first default value.Wherein, when the first default value is that pixel shows as colour, threeThe minimum value of luminance difference in individual Color Channel between any two Color Channel, first default value can be 8cd/m2、10cd/m2、16cd/m2Deng the present embodiment not specific restriction of size work to the first default value.
It should be noted that for any pixel point, any two in three Color Channels for calculating the pixelDuring brightness value between individual Color Channel, three luminance differences are can obtain, in three Color Channels for judge the pixel arbitrarilyWhen whether the luminance difference between two Color Channels is more than the first default value, and if only if, and three luminance differences are simultaneously greater than firstDuring default value, step 205 is performed;When any one in three luminance differences is less than the first default value, step 206 is performed.
In step 205, terminal is adjusted using the first preset algorithm to the brightness value of each Color Channel of pixelSection, obtain the brightness value after pixel regulation.
When the luminance difference between any two Color Channel in three Color Channels for judge the pixel is more than firstDuring default value, illustrate that the color that the pixel is showed is colored and three Color Channels of the pixel brightness value differenceIt is larger, the brightness value of each Color Channel of the pixel can be now adjusted using the first preset algorithm.
When it is implemented, terminal can use the first preset algorithm, the brightness value of each Color Channel of pixel is reducedIdentical multiple, obtain the brightness regulation value of each Color Channel, and then the brightness regulation value based on each Color Channel, pass through byThe brightness regulation value of three Color Channels is overlapped, and obtains the brightness value after pixel regulation.Wherein, the first preset algorithm is such asShown in following formula (1):
Yi=Xi/n (1);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminutionMultiple.Certainly, the first preset algorithm can also have other forms, and the present embodiment no longer illustrates one by one.
It is adjusted by using the first preset algorithm, the brightness value after pixel regulation can be obtained.If for example, pictureThe brightness value X of the beauty chrominance channel of vegetarian refreshments1For 160cd/m2, green color passage brightness value X2For 240cd/m2, blue Color ChannelBrightness value X3For 120cd/m2, the multiple of diminution is 4 times, then using the formula in above-mentioned (1), can obtain:
Y1=X1/ n=160/4=40cd/m2;
Y2=X2/ n=240/4=60cd/m2;
Y3=X3/ n=120/4=30cd/m2;
By by the brightness regulation value of beauty chrominance channel obtained above, the brightness regulation value of green color passage and blue faceThe brightness regulation value of chrominance channel is overlapped, and can obtain the brightness value after pixel regulation.
In step 206, terminal is adjusted using the second preset algorithm to the brightness value of each Color Channel of pixelSection, obtain the brightness value after pixel regulation.
When the luminance difference between any two Color Channel in three Color Channels for judge the pixel is less than firstDuring default value, illustrate that the brightness value difference of three Color Channels of the pixel is smaller, can now use the second preset algorithmThe brightness value of each Color Channel of the pixel is adjusted.
When it is implemented, terminal can use the second preset algorithm, by the brightness regulation value of each Color Channel of pixelGiven luminance scope is adjusted, obtains the brightness regulation value of each Color Channel, and then the brightness based on each Color Channel is adjustedSection value, by the way that the brightness regulation value of three Color Channels is overlapped, obtain the brightness value after pixel regulation.Wherein, refer toIt is terminal brightness range according to determined by the brightness value of current environment to determine brightness range, and the given luminance may range from 0cd/m2~32cd/m2、40cd/m2~60cd/m2Deng.Shown in for example following formula (2) of second preset algorithm:
Yi=a+Xi/255*(b-a) (2);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is specifiedThe minimum value of brightness range, b are the maximum of given luminance scope.Certainly, the second preset algorithm can also have other forms, thisEmbodiment no longer illustrates one by one.
It is adjusted by using the first preset algorithm, the brightness value after pixel regulation can be obtained.If for example, pictureThe brightness value X of the beauty chrominance channel of vegetarian refreshments1For 233cd/m2, green color passage brightness value X2For 235cd/m2, blue Color ChannelBrightness value X3For 230cd/m2, given luminance may range from 0cd/m2~32cd/m2, i.e. a=0cd/m2, b=32cd/m2,The formula in above-mentioned (2) is then used, can obtain:
Y1=a+Xi/ 255* (b-a)=0+233* (32-0)/255=29.2;
Y2=a+X2/ 255* (b-a)=0+235* (32-0)/255=29.5;
Y3=a+X3/ 255* (b-a)=0+230* (32-0)/255=28.9;
By by the brightness regulation value of beauty chrominance channel obtained above, the brightness regulation value of green color passage and blue faceThe brightness regulation value of chrominance channel is overlapped, and can obtain the brightness value after pixel regulation.
In step 207, when all pixels point is through overregulating, terminal carries out screen based on the brightness value after regulation and shownShow.
After all pixels on display screen are adjusted using above-mentioned brightness method for turning down sound, terminal rootBrightness value after being adjusted according to each pixel, you can carry out screen display.Now the background colour on screen not only will not distortion, andAnd screen intensity will not also damage to the eyes of user.
So far, realized by above-mentioned steps 201 to 207 under the dark environment of brightness, to the tune of terminal displayDark operation.On this basis, if the brightness of the environment residing for terminal becomes strong suddenly, e.g., user opens the light of interior, thisWhen excessively dark display screen the eyesight of user can also be damaged, therefore, the method that the present embodiment provides is detecting displayWhen luminance difference between screen and current environment is more than the second default value, execution is lightened to the operation of display screen.
During specific execution, terminal will generate a brightness regulation instruction, and brightness regulation instruction can be used for showing terminalDisplay screen curtain lightens, and afterwards, under the triggering of brightness regulation instruction, terminal can obtain three of each pixel on display screenThe brightness value of Color Channel.Any pixel point being directed on display screen, if it is determined that in three Color Channels of pixelLuminance difference between any two Color Channel is more than the first default value, and terminal can use the 3rd preset algorithm to the pixelIn the brightness value of each Color Channel be adjusted.3rd preset algorithm can be Zi=Xi/ n, wherein, ZiFor each faceThe brightness regulation value of chrominance channel, XiFor the brightness value of each Color Channel, i=1,2,3, Z1For the brightness regulation of beauty chrominance channelValue, X1For the brightness value of beauty chrominance channel, Z2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Z3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is the multiple of amplification.If it is determined that pixelThree Color Channels in luminance difference between any two Color Channel be less than the first default value, terminal can be according to working as front ringThe brightness value in border, a brightness range is determined, and then the brightness is arrived into the brightness value regulation of each Color Channel of the pixelScope.When using above-mentioned brightness heighten method to each pixel is adjusted on display screen after, terminal can be carried outScreen display.
The method that the embodiment of the present disclosure provides, for the brightness value of three Color Channels of each pixel, using differenceMode be adjusted so that the display screen after regulation can keep original color effect, be unlikely to again and surrounding environmentContrast it is excessive, so as to be effectively protected the eyesight of user.
Fig. 3 is a kind of schematic diagram of screen display device according to an exemplary embodiment.Reference picture 3, the deviceIncluding:Acquisition module 301, judge module 302, the first adjustment module 303, the second adjustment module 304 and display module 305.
The acquisition module 301 is configured as obtaining the brightness value of three Color Channels of each pixel on display screen;
The judge module 302 is configured as any pixel point, is judged any two in three Color Channels of pixelWhether the luminance difference between individual Color Channel is more than the first default value;
First adjustment module 303 is configured as in three Color Channels of pixel between any two Color ChannelLuminance difference when being more than the first default value, the brightness value of each Color Channel of pixel is carried out using the first preset algorithmRegulation, obtain the brightness value after pixel regulation;
Second adjustment module 304 is configured as in three Color Channels of pixel between any two Color ChannelLuminance difference when being less than the first default value, the brightness value of each Color Channel of pixel is carried out using the second preset algorithmRegulation, obtain the brightness value after pixel regulation;
The display module 305 is configured as all pixels point through overregulating, and is shielded based on the brightness value after regulationCurtain display.
In another embodiment of the disclosure, the device also includes:Monitoring modular and directive generation module.
It is default whether the luminance difference that the monitoring modular is configured as monitoring between display screen and current environment is more than secondNumerical value;
The luminance difference that the directive generation module is configured as between display screen and current environment is more than the second present countDuring value, generation brightness regulation instruction;
The acquisition module 301 is configured as instructing based on brightness regulation, performs and obtains each pixel on display screenThe step of brightness value of three Color Channels.
In another embodiment of the disclosure, first adjustment module 303 is configured as using the first preset algorithm, willThe brightness value of each Color Channel of pixel reduces identical multiple, obtains the brightness regulation value of each Color Channel;Based on everyThe brightness regulation value of individual Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminutionMultiple.
In another embodiment of the disclosure, second adjustment module 304 is configured as using the second preset algorithm, willGiven luminance scope is arrived in the brightness regulation value regulation of each Color Channel of pixel, obtains the brightness regulation of each Color ChannelValue;Brightness regulation value based on each Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is specifiedThe minimum value of brightness range, b are the maximum of given luminance scope.
The device that the embodiment of the present disclosure provides, for the brightness value of three Color Channels of each pixel, using differenceMode be adjusted so that the display screen after regulation can keep original color effect, be unlikely to again and surrounding environmentContrast it is excessive, so as to be effectively protected the eyesight of user.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this methodEmbodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram for screen display device 400 according to an exemplary embodiment.For example, device400 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, and medical treatment is setIt is standby, body-building equipment, personal digital assistant etc..
Reference picture 4, device 400 can include following one or more assemblies:Processing component 402, memory 404, power supplyComponent 406, multimedia groupware 408, audio-frequency assembly 410, input/output (I/O) interface 412, sensor cluster 414, Yi JitongBelieve component 416.
The integrated operation of the usual control device 400 of processing component 402, such as communicated with display, call, data, phaseThe operation that machine operates and record operation is associated.Processing component 402 can refer to including one or more processors 420 to performOrder, to complete all or part of step of above-mentioned method.In addition, processing component 402 can include one or more modules, justInteraction between processing component 402 and other assemblies.For example, processing component 402 can include multi-media module, it is more to facilitateInteraction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shownExample includes the instruction of any application program or method for being operated on device 400, contact data, telephone book data, disappearsBreath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their groupClose and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compileJourney read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flashDevice, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 can include power management systemSystem, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between described device 400 and user.OneIn a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screenCurtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensingsDevice is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding actionBorder, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakersBody component 408 includes a front camera and/or rear camera.When device 400 is in operator scheme, such as screening-mode orDuring video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera andRear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured as output and/or input audio signal.For example, audio-frequency assembly 410 includes a MikeWind (MIC), when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by withIt is set to reception external audio signal.The audio signal received can be further stored in memory 404 or via communication setPart 416 is sent.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exports audio signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module canTo be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lockDetermine button.
Sensor cluster 414 includes one or more sensors, and the state for providing various aspects for device 400 is commentedEstimate.For example, sensor cluster 414 can detect opening/closed mode of device 400, and the relative positioning of component, for example, it is describedComponent is the display and keypad of device 400, and sensor cluster 414 can be with 400 1 components of detection means 400 or devicePosition change, the existence or non-existence that user contacts with device 400, the orientation of device 400 or acceleration/deceleration and device 400Temperature change.Sensor cluster 414 can include proximity transducer, be configured to detect in no any physical contactThe presence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for intoAs being used in application.In certain embodiments, the sensor cluster 414 can also include acceleration transducer, gyro sensorsDevice, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementationIn example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, the communication component 416 also includes near-field communication (NFC) module, to promote junction service.ExampleSuch as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can (ASIC, numeral be believed by one or more application specific integrated circuitsNumber processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally providedSuch as include the memory 404 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 420 of device 400.For example,The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy diskWith optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminalWhen device performs so that mobile terminal is able to carry out a kind of screen display method, and methods described includes:
Obtain the brightness value of three Color Channels of each pixel on display screen;
For any pixel point, the luminance difference between any two Color Channel in three Color Channels of pixel is judgedWhether the first default value is more than;
If the luminance difference in three Color Channels of pixel between any two Color Channel is more than the first present countValue, the brightness value of each Color Channel of pixel is adjusted using the first preset algorithm, after obtaining pixel regulationBrightness value;
If the luminance difference in three Color Channels of pixel between any two Color Channel is less than the first present countValue, the brightness value of each Color Channel of pixel is adjusted using the second preset algorithm, after obtaining pixel regulationBrightness value;
When all pixels point is through overregulating, screen display is carried out based on the brightness value after regulation.
In another embodiment of the disclosure, the brightness of three Color Channels of each pixel on display screen is obtainedBefore value, in addition to:
Whether the luminance difference between monitoring display screen and current environment is more than the second default value;
When the luminance difference between display screen and current environment is more than the second default value, generation brightness regulation instruction;
Instructed based on brightness regulation, perform and obtain the brightness value of three Color Channels of each pixel on display screenStep.
In another embodiment of the disclosure, using brightness of first preset algorithm to each Color Channel of pixelValue is adjusted, and obtains the brightness value after pixel regulation, including:
Using the first preset algorithm, the brightness value of each Color Channel of pixel is reduced into identical multiple, obtained eachThe brightness regulation value of Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminutionMultiple.
In another embodiment of the disclosure, using brightness of second preset algorithm to each Color Channel of pixelValue is adjusted, and obtains the brightness value after pixel regulation, including:
Using the second preset algorithm, given luminance model is arrived into the brightness regulation value regulation of each Color Channel of pixelEnclose, obtain the brightness regulation value of each Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is specifiedThe minimum value of brightness range, b are the maximum of given luminance scope.
The non-transitorycomputer readable storage medium that the embodiment of the present disclosure provides, for three colors of each pixelThe brightness value of passage, is adjusted in different ways so that the display screen after regulation can keep original colored effectFruit, it is unlikely to excessive with the contrast of surrounding environment again, so as to be effectively protected the eyesight of user.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed hereinIts embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes orPerson's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosureOr conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by followingClaim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, andAnd various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.