Disclosure of Invention
The disclosure provides a display brightness adjusting method and device.
A first aspect of an embodiment of the present disclosure provides a display brightness adjustment method, including:
acquiring an original gray scale value of a pixel point in a display interface;
performing gray scale transformation on the pixel points to obtain transformed gray scale values of the pixel points;
adjusting the gray scale of the display interface according to the converted gray scale value of the pixel point;
the performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
acquiring corresponding relation data of gray scale conversion, wherein the corresponding relation data comprises a converted gray scale value corresponding to an original gray scale value of the pixel point;
and inquiring the transformed gray-scale value corresponding to the original gray-scale value of the pixel point from the corresponding relation data.
Optionally, performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
obtaining a transformation function of gray scale transformation;
and calculating to obtain the transformed gray-scale value of the pixel point according to the transformation function and the original gray-scale value of the pixel point.
Optionally, performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
detecting the current environment brightness;
selecting corresponding relation data or a transformation function for gray scale transformation according to the current environment brightness;
and inquiring the transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected corresponding relation data, or calculating the transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected transformation function.
Optionally, performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
acquiring the display digit of the original gray scale value;
selecting corresponding relation data or a transformation function for gray scale transformation according to the display digit of the original gray scale value;
and inquiring the transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected corresponding relation data, or calculating the transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected transformation function.
Optionally, performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
detecting the current environment brightness;
and when the current environment brightness is smaller than or equal to a preset brightness value, performing gray scale transformation on the pixel point to obtain a transformed gray scale value of the pixel point.
Optionally, the method further includes:
detecting a brightness value of the environment;
adjusting the screen display brightness value according to the environment brightness value;
judging the relation between the current brightness value after the screen adjustment and a set value;
when the current brightness value is judged to be lower than the first set brightness, adjusting the first class gray scale value;
and when the current brightness value is judged to be higher than the second set brightness, adjusting the second type of gray scale value.
Optionally, before the obtaining of the original gray scale value of the pixel point in the display interface, the method further includes:
detecting the brightness value of a pixel point in a display interface;
judging whether the brightness value of the detected pixel points in the interface exceeds a set brightness value or not;
when the pixel point exceeding the set brightness value is judged, determining the position information of the pixel point exceeding the set brightness value;
and adjusting the gray-scale value of the pixel point at the determined position.
Optionally, the method further includes:
acquiring a color gamut space value displayed on a screen;
and adjusting the gray scale value of each pixel point in the display interface according to the obtained color gamut space value.
Optionally, the method further includes:
establishing a corresponding relation of input gray-scale values and output gray-scale values of different groups corresponding to each pixel point, wherein the corresponding relation is that the ratio of the input gray-scale values to the output gray-scale values changes nonlinearly or linearly along with the gray-scale values, and the ratio of the input gray-scale values to the output gray-scale values is not less than 1;
and when the acquired screen brightness value is higher than the set brightness, adjusting the output gray value of the pixel point of the screen display interface according to the ratio.
A second aspect of an embodiment of the present disclosure provides a display luminance adjusting apparatus, including:
the acquisition module is used for acquiring the original gray scale value of the pixel point in the display interface;
the transformation module is used for carrying out gray scale transformation on the pixel points to obtain transformed gray scale values of the pixel points;
the adjusting module is used for adjusting the gray scale of the display interface according to the converted gray scale value of the pixel point;
the transformation module comprises:
the first obtaining submodule is used for obtaining corresponding relation data of gray scale conversion, and the corresponding relation data comprises converted gray scale values corresponding to original gray scale values of the pixel points;
the query submodule is used for querying the transformed gray-scale value corresponding to the original gray-scale value of the pixel point from the corresponding relation data;
optionally, the transformation module comprises:
the second obtaining submodule is used for obtaining a transformation function of gray scale transformation;
and the calculation submodule is used for calculating to obtain the converted gray-scale value of the pixel point according to the conversion function and the original gray-scale value of the pixel point.
Optionally, the transformation module further includes:
the detection submodule is used for detecting the current environment brightness;
the selection submodule is used for selecting corresponding relation data for gray scale conversion according to the current environment brightness;
and the query submodule is used for determining a transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected corresponding relation data.
In one embodiment, the transformation module further comprises:
the detection submodule is used for detecting the current environment brightness;
the selection submodule is used for selecting a transformation function for gray scale transformation according to the current environment brightness;
and the calculation submodule is used for determining a transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected transformation function.
In one embodiment, the first obtaining sub-module is configured to:
acquiring the display digit of the original gray scale value;
selecting corresponding relation data for gray scale conversion according to the display digit of the original gray scale value;
and the query submodule is used for querying the transformed gray-scale value corresponding to the original gray-scale value of the pixel point according to the selected corresponding relation data.
In one embodiment, the second obtaining sub-module is configured to:
acquiring the display digit of the original gray scale value;
selecting a transformation function for gray scale transformation according to the display digit of the original gray scale value;
and the calculation submodule is used for calculating a converted gray scale value corresponding to the original gray scale value of the pixel point according to the selected conversion function.
Optionally, the transformation module includes:
the detection submodule is used for detecting the current environment brightness;
and the transformation submodule is used for carrying out gray scale transformation on the pixel point when the current environment brightness is less than or equal to a preset brightness value to obtain a transformed gray scale value of the pixel point.
Optionally, the apparatus further comprises:
the first detection module is used for detecting the brightness value of the environment;
the second adjusting module is used for adjusting the screen display brightness value according to the environment brightness value;
the first judgment module is used for judging the relationship between the current brightness value after the screen adjustment and a set value;
the first adjusting module is used for adjusting the first class gray scale value when the current brightness value is judged to be lower than the first set brightness; and when the current brightness value is judged to be higher than the second set brightness, adjusting the second type of gray scale value.
Optionally, the apparatus further comprises:
the second detection module is used for detecting the brightness value of the pixel point in the display interface before the original gray scale value of the pixel point in the display interface is obtained;
the second judgment module is used for judging whether the brightness value of the detected pixel point in the interface exceeds a set brightness value or not;
the determining module is used for determining the position information of the pixel points exceeding the set brightness value when the pixel points exceeding the set brightness value are judged;
and the first adjusting module is used for adjusting the gray-scale value of the pixel point at the determined position.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring a color gamut space value displayed on a screen;
the first adjusting module is configured to adjust a gray scale value of each pixel point in the display interface according to the obtained color gamut space value.
Optionally, the apparatus further comprises:
the establishing module is used for establishing a corresponding relation between input gray-scale values and output gray-scale values of different groups corresponding to each pixel point, wherein the corresponding relation is that the ratio of the input gray-scale values to the output gray-scale values changes nonlinearly or linearly along with the gray-scale values, and the ratio of the input gray-scale values to the output gray-scale values is not less than 1;
and the first adjusting module is used for adjusting the output gray value of the pixel point of the screen display interface according to the ratio when the acquired screen brightness value is higher than the set brightness.
A third aspect of embodiments of the present disclosure provides a display luminance adjusting apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring an original gray scale value of each pixel point in a display interface;
performing gray scale transformation on the pixel points to obtain transformed gray scale values of the pixel points;
adjusting the gray scale of the display interface according to the converted gray scale value of the pixel point;
the performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
acquiring corresponding relation data of gray scale conversion, wherein the corresponding relation data comprises a converted gray scale value corresponding to an original gray scale value of the pixel point;
and inquiring the transformed gray-scale value corresponding to the original gray-scale value of the pixel point from the corresponding relation data.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: in the environment with extremely low brightness, the display system can output extremely low brightness, reduces the harm to eyes and is suitable for the low-brightness environment without lighting equipment. And all display contents are effective, but not limited to a certain application program, so that a corresponding night mode does not need to be developed independently for each application degree, the size of a resource file is reduced, the storage space is saved, the operation is simple, and the user experience is better.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the embodiment of the disclosure, the gray scale value of the display interface is changed when the brightness is low, so as to achieve the purpose of not damaging eyes and not sacrificing image quality.
Fig. 1 is a flowchart illustrating a display brightness adjustment method according to an exemplary embodiment, where the display brightness adjustment method is used in a terminal, as shown in fig. 1, and includes the following steps.
In step S11, obtaining an original gray scale value of a pixel point in the display interface;
in step S12, performing gray-scale conversion on the pixel point to obtain a converted gray-scale value of the pixel point;
in step S13, the gray scale of the display interface is adjusted according to the transformed gray scale values of the pixels.
In the embodiment, the gray scale of the display interface is adjusted, and the brightness and the contrast of the display interface are changed, so that when the ambient brightness is low, the backlight transmittance of the display interface with the lowered gray scale is reduced, the overall brightness and the contrast of the display interface are obviously reduced, and the purpose of protecting the eyesight of a screen user is achieved; in addition, in a low-brightness environment, the influence of the reduction of the brightness and the contrast of the display interface on the display image quality is small, so that the requirements of users on the image quality can be met, the power consumption of the terminal is saved, and the user experience is good.
As shown in fig. 2, optionally, step S12 includes:
in step S21, obtaining correspondence data of the gray scale conversion, where the correspondence data includes a converted gray scale value corresponding to an original gray scale value of the pixel point;
in step S22, the transformed gray-scale values corresponding to the original gray-scale values of the pixels are searched for from the correspondence data.
Fig. 3 is a flowchart illustrating a display brightness adjustment method according to another exemplary embodiment, and as shown in fig. 3, optionally, step S12 includes:
in step S31, a transformation function of the grayscale transformation is acquired;
in step S32, a transformed gray scale value of each pixel is calculated according to the transformation function and the original gray scale value of each pixel.
In an alternative scheme, corresponding relation data of gray scale conversion can be preset, converted gray scale values corresponding to original gray scale values of pixel points are inquired through the corresponding relation data, a conversion function of gray scale conversion can also be preset, and the converted gray scale values corresponding to the original gray scale values of the pixel points are calculated according to the conversion function. Therefore, the gray scale value after gray scale conversion can be determined quickly and accurately, so that the brightness and the contrast of the display interface can be adjusted to the degree of adapting to the brightness of the current environment, and the image quality is ensured on the premise of not damaging the eyesight of a user.
Optionally, the corresponding relationship data may include randomly selected uniformly distributed original gray scale values and corresponding transformed gray scale values. For example, when the original gray-scale values are 0 to 255, the corresponding relationship data may only include the transformed gray-scale values corresponding to 10 original gray-scale values, as shown in table 1 below,
TABLE 1
| Original gray scale value | Transformedgray scale value |
| 0 | 0 |
| 25 | 20 |
| 65 | 45 |
| 95 | 55 |
| 95 | 75 |
| 175 | 95 |
| 190 | 105 |
| 210 | 90 |
| 235 | 155 |
| 255 | 170 |
According to the corresponding relation data in table 1, a gray scale transformation curve can be fitted, and according to the curve, transformed gray scale values corresponding to all the original gray scale values can be obtained.
Fig. 4 is a flowchart illustrating a display brightness adjustment method according to another exemplary embodiment, as shown in fig. 4, optionally, step S12 includes:
in step S41, a luminance value of the environment is detected;
in step S42, selecting the correspondence data or the transformation function for the grayscale transformation according to the luminance value of the environment;
in step S43, the transformed gray scale value corresponding to the original gray scale value of the pixel point is queried according to the selected correspondence data, or the transformed gray scale value corresponding to the original gray scale value of the pixel point is calculated according to the selected transformation function.
In an alternative scheme, corresponding relation data or a transformation function of corresponding gray scale transformation can be selected according to the environment brightness, namely, different brightness transformation bases are adopted for gray scale adjustment of a display interface in different environment brightness environments. For example, when the ambient brightness is 0.001lux, the correspondence table a is selected for the grayscale conversion; when the ambient brightness is 0.003lux, selecting the corresponding relation table B for gray scale conversion; and so on. Under different environment brightness, the adjustment targets of the gray scales of the display interface are different, and corresponding relation data or a transformation function is selected according to the environment brightness, so that the brightness and the contrast of the display interface are always adapted to the environment brightness, the eyesight of a screen user is better protected, and the user experience is better.
Fig. 5 is a flowchart illustrating a display luminance adjusting method according to another exemplary embodiment, as shown in fig. 5, optionally, step S12 includes:
in step S51, the number of display bits of the original grayscale value is acquired;
in step S52, selecting the corresponding relation data or the transformation function for the gray-scale transformation according to the display bit number of the original gray-scale value;
in step S53, the transformed gray scale value corresponding to the original gray scale value of the pixel point is queried according to the selected correspondence data, or the transformed gray scale value corresponding to the original gray scale value of the pixel point is calculated according to the selected transformation function.
In an alternative scheme, corresponding relation data or a transformation function of corresponding gray scale transformation can be selected according to gray scale display digit. For example, when the gray scale display bit number is 8 bits, the corresponding relation table 1 is selected for gray scale conversion; when the gray scale display digit is 10 bits, selecting the corresponding relation table 2 for gray scale conversion; and so on. Therefore, the gray scale adjustment can adapt to display interfaces with different display parameters, namely, for application programs with different display parameters, the method can be adopted to carry out gray scale adjustment, and the application range is wider.
Fig. 6 is a flowchart illustrating a display luminance adjusting method according to another exemplary embodiment, as shown in fig. 6, optionally, step S12 includes:
in step S61, the current ambient brightness is detected;
in step S62, when the current ambient brightness is less than or equal to the preset brightness value, the gray-scale conversion is performed on the pixel point to obtain a converted gray-scale value of the pixel point.
In an alternative scheme, only when the ambient brightness is lower than a certain degree, for example, when the ambient brightness is less than or equal to 0.1lux, the gray scale adjustment is performed on the display interface, so that the gray scale of the display interface is prevented from being frequently adjusted according to the ambient brightness, the processing capability and the power consumption of the terminal are saved, and the user experience is better.
As shown in fig. 7a and 7b, the gray scale value of the bright portion is significantly reduced, so that the transmittance of the backlight is reduced, the overall brightness is significantly reduced, and the contrast of the screen is also reduced. In a low-luminance environment, the contrast reduction does not greatly affect the image quality, and therefore, it is sufficient to meet the user's requirements.
In a display processor (for example, a display processor of an AP or a DDIC), a series of lookup tables are set, and the original gray-scale data is converted through the corresponding lookup tables, specifically which set of lookup tables is called, and the conversion can be automatically selected according to the ambient light brightness or manually selected. The lookup table is a group of numbers, the content is different according to the bit number difference of the gray scale, if the gray scale is 8 bits for display, the original gray scale value and the converted gray scale value of the lookup table are between 0 and 255; if the gray scale is 10bit display, the original gray scale value of the lookup table and the transformed gray scale value are between 0 and 1023.
As shown in fig. 8, for example, if the original gray level value is a straight line a, if the B curve is selected as the lookup table, the gray level value of 255 in the data becomes 175, and the 256 th cell of the lookup table should be (175/255) × 255; when the 150 gray level becomes 90, the number corresponding to the 150 gray level in the lookup table is (90/150) × 255. The lookup tables are normalized to the power of 8 of 2 or to the power of 10 of 2.
Fig. 9 is a flowchart illustrating a display brightness adjustment method according to another exemplary embodiment, as shown in fig. 9, the method further includes, optionally:
in step S91, a luminance value of the environment is detected;
in step S92, adjusting the screen display brightness value according to the environment brightness value;
in step S93, the relationship between the current brightness value after screen adjustment and the set value is determined;
in step S94, when the current brightness value is lower than the first set brightness, adjusting the first class gray scale value;
in step S95, when the current brightness value is higher than the second set brightness, the second type gray scale value is adjusted.
When the ambient brightness is low, the terminal automatically adjusts the display brightness of the screen, but the adjusted display brightness of the screen is still likely to be bright for the user, and after the user opens some application programs, the display brightness on the screen still returns to the brightness before brightness adjustment, so that the user experience is poor. In an alternative scheme, after the brightness of the screen is adjusted, the brightness of different positions on the screen is judged again, and different gray scale adjustments are performed on parts with different brightness, as shown in fig. 7a, the gray scale value of the upper half part of the screen is larger, the brightness is lower, gray scale adjustment is not required, the gray scale of the lower half part of the screen is smaller, the brightness is higher, and only the lower half part of the screen can be adjusted. Therefore, under any condition, the brightness of the screen display interface can be effectively reduced, and the purpose of protecting the eyesight of a screen user is achieved.
Fig. 10 is a flowchart illustrating a display brightness adjustment method according to another exemplary embodiment, as shown in fig. 10, before the obtaining of the original gray-scale values of the pixels in the display interface, optionally, the method further includes:
in step S101, detecting a brightness value of a pixel point in a display interface;
in step S102, determining whether the brightness value of the detected pixel point in the interface exceeds a set brightness value;
in step S103, when it is determined that the brightness value exceeds the set brightness value, determining location information of the pixel point exceeding the set brightness value;
in step S104, the gray level of the pixel at the determined position is adjusted.
In the alternative scheme, the gray scale of each pixel point is adjusted according to the brightness of each pixel point on the screen, so that the brightness of a screen display interface can be reduced more quickly and accurately, and the purpose of protecting the eyesight of a screen user is achieved.
Fig. 11 is a flowchart illustrating a display brightness adjustment method according to another exemplary embodiment, as shown in fig. 11, optionally, the method further includes:
in step S111, a color gamut space value of the screen display is acquired;
in step S112, the gray scale value of each pixel point in the display interface is adjusted according to the obtained color gamut space value.
In an alternative scheme, a color gamut space value displayed on a screen, that is, a numerical value corresponding to a range region formed by the number of colors that can be expressed by a certain color expression mode of the screen, is further acquired, and different gray scale adjustments are adopted for different color gamut spaces. Therefore, the adjustment of the screen brightness is more in line with the performance of the screen, the brightness adjustment effect is better, and the eyesight of a user is protected.
Fig. 12 is a flowchart illustrating a display brightness adjustment method according to another exemplary embodiment, as shown in fig. 12, the method further includes, optionally:
in step S121, establishing a corresponding relationship between input gray scale values and output gray scale values of different sets corresponding to each pixel point, where the corresponding relationship is that a ratio of the input gray scale values to the output gray scale values changes nonlinearly or linearly with a gray scale value, and the ratio of the input gray scale values to the output gray scale values is not less than 1;
in step S122, when the acquired screen brightness value is higher than the set brightness, the output gray scale value of the pixel point of the screen display interface is adjusted according to the ratio.
In an alternative scheme, a corresponding relation of gray scale adjustment can be established in advance, and the gray scale value of the adjusted screen is larger than that of the screen before adjustment, so that the brightness of the adjusted screen is reduced, and the eyesight of a user is protected.
In the embodiment, in the environment with extremely low brightness, the display system can output extremely low brightness, the damage to eyes is reduced, and the method is suitable for the low-brightness environment without lighting equipment.
And all display contents are effective, but not limited to a certain application program, so that a corresponding night mode does not need to be developed independently for each application degree, the size of a resource file is reduced, the storage space is saved, the operation is simple, and the user experience is better.
Fig. 13 is a block diagram illustrating a display brightness adjustment apparatus according to an exemplary embodiment. As shown in fig. 13, the apparatus includes:
the first obtainingmodule 1301 is configured to obtain an original gray scale value of a pixel point in a display interface;
thetransformation module 1302 is configured to perform gray scale transformation on the pixel point to obtain a transformed gray scale value of the pixel point;
thefirst adjusting module 1303 is configured to adjust the gray scale of the display interface according to the transformed gray scale value of the pixel point, where, as shown in fig. 14, the transformingmodule 1302 may include:
the first obtainingsubmodule 141 is configured to obtain correspondence data of gray scale conversion, where the correspondence data includes a converted gray scale value corresponding to an original gray scale value of the pixel point;
thequery submodule 142 is configured to query the transformed gray-scale value corresponding to the original gray-scale value of the pixel point from the correspondence data;
fig. 15 is a block diagram illustrating a transformation module according to another example embodiment. As shown in fig. 15, optionally, thetransformation module 1302 includes:
the second obtainingsub-module 151 is configured to obtain a transformation function of the gray-scale transformation;
thecalculation submodule 152 is configured to calculate a transformed gray scale value of the pixel according to the transformation function and the original gray scale value of the pixel.
Fig. 16 is a block diagram illustrating a transformation module according to another example embodiment. As shown in fig. 16, optionally, thetransformation module 1302 includes:
thedetection sub-module 161 is configured to detect the current ambient brightness;
theselection submodule 162 is configured to select the correspondence data for the grayscale conversion according to the current ambient brightness;
thequery submodule 142 is configured to determine a transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected correspondence data; or
Thetransformation module 1302 includes:
adetection sub-module 161 for detecting the current ambient brightness;
aselection submodule 162 configured to select a transform function for gray scale transformation according to the current ambient brightness;
the calculatingsubmodule 152 is configured to determine a transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected transformation function.
In one embodiment, the first obtainingsubmodule 141 is configured to:
acquiring the display digit of the original gray scale value;
selecting corresponding relation data for gray scale conversion according to the display digit of the original gray scale value;
and inquiring the transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected corresponding relation data.
In one embodiment, the second obtainingsub-module 151 is configured to:
acquiring the display digit of the original gray scale value;
selecting a transformation function for gray scale transformation according to the display digit of the original gray scale value;
the calculatingsubmodule 152 is configured to calculate a transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected transformation function.
Fig. 17 is a block diagram illustrating a transformation module according to another example embodiment. As shown in fig. 17, optionally, thetransformation module 1302 includes:
thedetection sub-module 171 is configured to detect the current ambient brightness;
thetransformation submodule 172 is configured to perform gray scale transformation on the pixel point when the current environment brightness is less than or equal to a preset brightness value, so as to obtain a transformed gray scale value of the pixel point.
Fig. 18 is a block diagram illustrating a display luminance adjusting apparatus according to another exemplary embodiment. As shown in fig. 18, optionally, the apparatus further includes:
afirst detection module 1304 for detecting a brightness value of an environment;
asecond adjusting module 1305, configured to adjust a screen display brightness value according to the environment brightness value;
afirst judging module 1306, configured to judge a relationship between the current brightness value after the screen adjustment and a set value;
thefirst adjusting module 1303 is configured to adjust a first class of gray scale values when the current brightness value is determined to be lower than a first set brightness; and when the current brightness value is judged to be higher than the second set brightness, adjusting the second type of gray scale value.
Fig. 19 is a block diagram illustrating a display luminance adjusting apparatus according to another exemplary embodiment. As shown in fig. 19, optionally, the apparatus further includes:
the second detectingmodule 1307 is configured to detect a luminance value of a pixel point in the display interface before acquiring an original gray scale value of the pixel point in the display interface;
asecond judging module 1308, configured to judge whether the detected brightness value of a pixel point in the interface exceeds a set brightness value;
a determiningmodule 1309, configured to determine, when it is determined that the brightness value exceeds the set brightness value, location information of the pixel point exceeding the set brightness value;
thefirst adjusting module 1303 is configured to adjust the gray scale value of the pixel point at the determined position.
Fig. 20 is a block diagram illustrating a display luminance adjusting apparatus according to another exemplary embodiment. As shown in fig. 20, optionally, the apparatus further includes:
a second obtainingmodule 1310, configured to obtain a color gamut space value of the screen display;
thefirst adjusting module 1303 is configured to adjust a gray scale value of each pixel point in the display interface according to the obtained color gamut space value.
Fig. 21 is a block diagram illustrating a display luminance adjusting apparatus according to another exemplary embodiment. As shown in fig. 21, optionally, the apparatus further includes:
theestablishing module 1311 is configured to establish a corresponding relationship between input gray scale values and output gray scale values of different groups set corresponding to each pixel point, where the corresponding relationship is that a ratio of the input gray scale values to the output gray scale values changes nonlinearly or linearly with a gray scale value, and the ratio of the input gray scale values to the output gray scale values is not less than 1;
and thefirst adjusting module 1303 is configured to adjust the output gray value of the pixel point of the screen display interface according to the ratio when the acquired screen brightness value is higher than the set brightness.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present disclosure also provides a display brightness adjusting apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring an original gray scale value of each pixel point in a display interface;
performing gray scale transformation on the pixel points to obtain transformed gray scale values of the pixel points;
adjusting the gray scale of the display interface according to the converted gray scale value of the pixel point;
the performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
acquiring corresponding relation data of gray scale conversion, wherein the corresponding relation data comprises a converted gray scale value corresponding to an original gray scale value of the pixel point;
and inquiring the transformed gray-scale value corresponding to the original gray-scale value of the pixel point from the corresponding relation data.
Fig. 22 is a block diagram illustrating an apparatus for display brightness adjustment according to an example embodiment. For example, theapparatus 2200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
As shown in fig. 22,apparatus 2200 may include one or more of the following components:processing component 2202,memory 2204,power component 2206,multimedia component 2208,audio component 2210, interface to input/output (I/O) 2212,sensor component 2214, andcommunication component 2216.
Theprocessing component 2202 generally controls overall operation of theapparatus 2200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing component 2202 may include one ormore processors 2220 to execute instructions to perform all or part of the steps of the methods described above. Further, theprocessing component 2202 may include one or more modules that facilitate interaction between theprocessing component 2202 and other components. For example, theprocessing component 2202 can include a multimedia module to facilitate interaction between themultimedia component 2208 and theprocessing component 2202.
Thememory 2204 is configured to store various types of data to support operations at theapparatus 2200. Examples of such data include instructions for any application or method operating ondevice 2200, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 2204 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Thepower supply component 2206 provides power to the various components of thedevice 2200. Thepower components 2206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for theapparatus 2200.
Themultimedia component 2208 includes a screen that provides an output interface between thedevice 2200 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia component 2208 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when thedevice 2200 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 2210 is configured to output and/or input audio signals. For example,audio component 2210 includes a Microphone (MIC) configured to receive external audio signals whenapparatus 2200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in thememory 2204 or transmitted via thecommunication component 2216. In some embodiments,audio component 2210 also includes a speaker for outputting audio signals.
The I/O interface 2212 provides an interface between theprocessing component 2202 and a peripheral interface module, which may be a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Thesensor assembly 2214 includes one or more sensors for providing various aspects of state assessment for theapparatus 2200. For example, thesensor assembly 2214 may detect an open/closed state of theapparatus 2200, the relative positioning of components, such as a display and keypad of theapparatus 2200, thesensor assembly 2214 may also detect a change in position of theapparatus 2200 or a component of theapparatus 2200, the presence or absence of user contact with theapparatus 2200, orientation or acceleration/deceleration of theapparatus 2200, and a change in temperature of theapparatus 2200. Thesensor assembly 2214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Thesensor assembly 2214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 2214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 2216 is configured to facilitate wired or wireless communication between theapparatus 2200 and other devices. Theapparatus 2200 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, thecommunication component 2216 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 2216 also includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, theapparatus 2200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as thememory 2204 comprising instructions, executable by theprocessor 2220 of thedevice 2200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a display brightness adjustment method, the method comprising:
acquiring an original gray scale value of a pixel point in a display interface;
performing gray scale transformation on the pixel points to obtain transformed gray scale values of the pixel points;
adjusting the gray scale of the display interface according to the converted gray scale value of the pixel point;
the performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
acquiring corresponding relation data of gray scale conversion, wherein the corresponding relation data comprises a converted gray scale value corresponding to an original gray scale value of the pixel point;
inquiring a transformed gray scale value corresponding to the original gray scale value of the pixel point from the corresponding relation data;
or,
optionally, the performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
obtaining a transformation function of gray scale transformation;
and calculating to obtain the transformed gray-scale value of the pixel point according to the transformation function and the original gray-scale value of the pixel point.
Optionally, performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
detecting the current environment brightness;
selecting corresponding relation data or a transformation function for gray scale transformation according to the current environment brightness;
and inquiring the transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected corresponding relation data, or calculating the transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected transformation function.
Optionally, performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
acquiring the display digit of the original gray scale value;
selecting corresponding relation data or a transformation function for gray scale transformation according to the display digit of the original gray scale value;
and inquiring the transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected corresponding relation data, or calculating the transformed gray scale value corresponding to the original gray scale value of the pixel point according to the selected transformation function.
Optionally, performing gray scale conversion on the pixel point to obtain a converted gray scale value of the pixel point includes:
detecting the current environment brightness;
and when the current environment brightness is smaller than or equal to a preset brightness value, performing gray scale transformation on the pixel point to obtain a transformed gray scale value of the pixel point.
Optionally, the method further includes:
detecting a brightness value of the environment;
adjusting the screen display brightness value according to the environment brightness value;
judging the relation between the current brightness value after the screen adjustment and a set value;
when the current brightness value is judged to be lower than the first set brightness, adjusting the first class gray scale value;
and when the current brightness value is judged to be higher than the second set brightness, adjusting the second type of gray scale value.
Optionally, before the obtaining of the original gray scale value of the pixel point in the display interface, the method further includes:
detecting the brightness value of a pixel point in a display interface;
judging whether the brightness value of the detected pixel points in the interface exceeds a set brightness value or not;
when the pixel point exceeding the set brightness value is judged, determining the position information of the pixel point exceeding the set brightness value;
and adjusting the gray-scale value of the pixel point at the determined position.
Optionally, the method further includes:
acquiring a color gamut space value displayed on a screen;
and adjusting the gray scale value of each pixel point in the display interface according to the obtained color gamut space value.
Optionally, the method further includes:
establishing a corresponding relation of input gray-scale values and output gray-scale values of different groups corresponding to each pixel point, wherein the corresponding relation is that the ratio of the input gray-scale values to the output gray-scale values changes nonlinearly or linearly along with the gray-scale values, and the ratio of the input gray-scale values to the output gray-scale values is not less than 1;
and when the acquired screen brightness value is higher than the set brightness, adjusting the output gray value of the pixel point of the screen display interface according to the ratio.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.