CN114170976A - Display brightness adjusting method and device, electronic equipment and computer readable storage medium - Google Patents

Display brightness adjusting method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114170976A
CN114170976A CN202111520046.2A CN202111520046A CN114170976A CN 114170976 A CN114170976 A CN 114170976A CN 202111520046 A CN202111520046 A CN 202111520046A CN 114170976 A CN114170976 A CN 114170976A
Authority
CN
China
Prior art keywords
brightness
target
backlight
screen
backlight brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111520046.2A
Other languages
Chinese (zh)
Inventor
陈永兴
凌霄
冷文华
朱奇才
刘杰
韩高军
冯天思
疏翠平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202111520046.2A priority Critical patent/CN114170976A/en
Publication of CN114170976A publication Critical patent/CN114170976A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness

Abstract

The application relates to a display brightness adjusting method and device, an electronic device and a computer readable storage medium, and aims to respond to a backlight brightness adjusting instruction aiming at a screen and acquire target backlight brightness of the screen. And adjusting the initial brightness of the content to be displayed of the screen to generate target display content according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness. And controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen. When the electronic equipment adjusts the backlight brightness of the screen, the initial brightness of the content to be displayed of the screen is adjusted to generate the target display content based on the target backlight brightness and the target native backlight brightness, so that the adjustment process of the display brightness of the screen obtained based on the target native backlight brightness and the target display content is more precise. Therefore, the flickering effect on the screen during backlight brightness adjustment is improved, and the display effect of the screen is improved.

Description

Display brightness adjusting method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of display technologies, and in particular, to a method and an apparatus for adjusting display brightness, an electronic device, and a computer-readable storage medium.
Background
As display technologies develop, more and more electronic devices can adjust the target backlight brightness. Generally, when the electronic device is backlight-adjusted, the manual adjustment mode and the automatic adjustment mode can be classified. In the manual adjustment mode, the user may drag the backlight bar to adjust the target backlight brightness to a target backlight brightness that satisfies the user's visual needs. In the auto-adjustment mode, the electronic device automatically adjusts the target backlight brightness to a target backlight brightness that meets the visual needs of the user based on ambient light or other factors.
However, since the human eye is very sensitive to brightness in low brightness situations. Under the condition of low brightness, when the traditional method is adopted to adjust the brightness of the display screen of the electronic equipment, human eyes still can perceive that obvious flicker phenomenon appears on the display screen, and the current visual demand of a user cannot be met.
Disclosure of Invention
The embodiment of the application provides a display brightness adjusting method and device, electronic equipment and a computer readable storage medium, which can improve the flickering effect on a screen during backlight brightness adjustment and improve the display effect of the screen.
In one aspect, a display brightness adjustment method includes:
responding to a backlight brightness adjusting instruction aiming at the screen, and acquiring target backlight brightness of the screen;
adjusting the initial brightness of the content to be displayed of the screen to generate target display content according to the target backlight brightness and the target native backlight brightness corresponding to the target backlight brightness;
and controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen.
In another aspect, a display luminance adjusting apparatus includes:
the target backlight brightness obtaining module is used for responding to a backlight brightness adjusting instruction aiming at the screen and obtaining the target backlight brightness of the screen;
the to-be-displayed content brightness adjusting module is used for adjusting the initial brightness of the to-be-displayed content of the screen according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness to generate target display content;
and the screen display brightness adjusting module is used for controlling the target native backlight brightness and the target display content to take effect simultaneously and adjusting the display brightness of the screen.
In another aspect, an electronic device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the display brightness adjusting method.
In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the display brightness adjustment method as described above.
In another aspect, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the display brightness adjustment method as described above.
The display brightness adjusting method responds to the backlight brightness adjusting instruction aiming at the screen, and obtains the target backlight brightness of the screen. And adjusting the initial brightness of the content to be displayed of the screen to generate target display content according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness. And controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen. When the electronic device adjusts the backlight brightness of the screen, the electronic device may determine a target native backlight brightness corresponding to the target backlight brightness based on the target backlight brightness that needs to be adjusted. Then, the initial brightness of the content to be displayed of the screen is adjusted to generate the target display content based on the target backlight brightness and the target native backlight brightness, so that the adjustment process of the display brightness of the screen obtained based on the target native backlight brightness and the target display content is more precise. Therefore, the flickering effect on the screen during backlight brightness adjustment is improved, and the display effect of the screen is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an exemplary embodiment of an application environment for a display brightness adjustment method;
FIG. 2 is a flow diagram of a method for adjusting display brightness in one embodiment;
FIG. 3 is a flowchart illustrating a method for adjusting the display brightness of the screen in FIG. 2, wherein the target native backlight brightness and the target display content are simultaneously effective;
FIG. 4 is a waveform diagram illustrating a process of adjusting the display brightness of the screen by taking an OLED screen as an example in one embodiment;
FIG. 5 is a timing diagram illustrating a brightness adjustment method according to one embodiment;
FIG. 6 is a flowchart of a method for adjusting the initial brightness of the content to be displayed on the screen to generate the target display content according to the target backlight brightness and the target native backlight brightness corresponding to the target backlight brightness in FIG. 2;
FIG. 7 is a flowchart of the method for adjusting the initial brightness of the content to be displayed on the screen to generate the target display content according to the target backlight brightness and the adjacent native backlight brightness in FIG. 6;
FIG. 8 is a flowchart illustrating a method for generating target display content by adjusting an initial brightness of the content to be displayed to a target brightness using a preset color matrix according to a brightness difference in one embodiment;
FIG. 9 is a flow chart of a display brightness adjustment method in one particular embodiment;
FIG. 10 is a block diagram showing the structure of a luminance adjusting apparatus according to an embodiment;
FIG. 11 is a block diagram of the screen display brightness adjustment module shown in FIG. 10;
FIG. 12 is a block diagram of a brightness adjustment module for the content to be displayed in FIG. 10;
fig. 13 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, the first luminance may be referred to as a second luminance, and similarly, the second luminance may be referred to as the first luminance, without departing from the scope of the present application. The first luminance and the second luminance are both luminances, but they are not the same luminance.
Conventionally, a user may trigger a backlight brightness adjustment command by sliding a screen brightness bar. The electronic device may then adjust between screen native backlight levels based on the backlight brightness adjustment instruction after receiving the backlight brightness adjustment instruction. The native backlight levels of the screen are fixed in advance, and each native backlight level corresponds to a native backlight brightness, so the native backlight brightness is also fixed in advance and is generally determined by the material or hardware of the screen. Due to the material limitation or hardware limitation of the screen, when the backlight brightness of the electronic equipment is adjusted, the backlight brightness of the electronic equipment can be adjusted only based on a certain brightness interval, and complete linear adjustment cannot be achieved. Therefore, these native backlight intensities can only be a set of spaced values.
However, since human eyes are very sensitive to brightness in a low-brightness condition, the display screen of the electronic device is still subjected to backlight brightness adjustment based on a certain brightness interval in the low-brightness condition, and the human eyes can perceive that an obvious flicker phenomenon appears on the display screen.
In order to solve the problems that human eyes can perceive that obvious flicker occurs on a display screen and the visual requirements of users cannot be met when backlight brightness is adjusted under the condition of low brightness, a novel display brightness adjusting method is provided. Fig. 1 is a schematic diagram of an application environment of the display brightness adjusting method in one embodiment. As shown in fig. 1, the application environment includes an electronic device 120. The electronic device 120 may acquire a target backlight luminance of the screen in response to the backlight luminance adjustment instruction for the screen; adjusting the initial brightness of the content to be displayed of the screen to generate target display content according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness; and controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen. The electronic device 120 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable equipment can be intelligent wrist-watch, intelligent bracelet, head-mounted apparatus etc. and this application does not restrict this.
FIG. 2 is a flow chart of a method for adjusting display brightness in one embodiment. The display brightness adjustment method in this embodiment is described by taking the example of the method performed in the terminal or the server in fig. 1. As shown in fig. 2, the display brightness adjustment method includes steps 220 to 260.
Step 220, responding to a backlight brightness adjusting instruction aiming at the screen, and acquiring target backlight brightness of the screen;
the backlight brightness adjustment instruction for the screen may be a backlight brightness adjustment instruction actively triggered by the electronic device, or a backlight brightness adjustment instruction triggered by a user for the screen. The electronic device may actively detect the ambient light intensity or detect the process type of the currently running application program, or actively trigger the backlight brightness adjustment instruction based on the personal setting of the backlight brightness by the user. Of course, the backlight brightness adjustment instruction for the screen may also be triggered by the user by sliding the screen brightness bar or based on voice control or other manners. Here, the above-described manner of the backlight luminance adjustment instruction specific to the screen is not limited. The target backlight brightness is carried in the backlight brightness adjusting instruction.
Then, the electronic device acquires a target backlight brightness of the screen in response to the backlight brightness adjustment instruction for the screen. The backlight brightness is the brightness of the screen of the electronic device. The brightness is the brightness of the picture, and is reported in candela per square meter (cd/m2) or nit. The screen may be an OLED (organic light-Emitting Diode) screen or an LED (light-Emitting Diode) screen, which is not limited in the present application. The LED screen and the OLED screen are different in the aspects of light emitting principle, structure, screen thickness, display effect, service life and the like. The OLED screen and the LED screen have different light emitting principles, wherein the LED panel has a light emitting layer composed of a plurality of red light emitting diodes, and displays different images by using molecular deflection of a liquid crystal layer. Each pixel point of the OLED can emit monochromatic light, so that a light emitting layer is not needed, and the organic thin film can be directly driven by current to emit light.
Specifically, a plurality of native backlight levels are preset in the electronic device, and each native backlight level corresponds to a native backlight brightness, and the conventional electronic device can only adjust between the native backlight levels. For example, assuming that the electronic device has a maximum native backlight brightness of 200nit and a minimum native backlight brightness of 0nit, 0-200 different native backlight levels may be set in the electronic device, where the native backlight brightness of the native backlight level 200 is 200nit, the native backlight brightness of the native backlight level 0 is 0nit, and thus, the interval between adjacent native backlight levels is 1 nit. Therefore, the minimum granularity of backlight brightness adjustment of the electronic device by the conventional electronic device is 1 nit. Since human eyes are very sensitive to brightness in a low-brightness situation (it is assumed that 81nit and below are divided into low brightness), the human eyes can perceive that a flicker phenomenon appears on a display screen of an electronic device when backlight brightness adjustment is performed on the display screen of the electronic device based on a certain brightness interval in the low-brightness situation. For example, by adjusting the backlight brightness of the electronic device from 81nit to 80nit, the human eye can perceive that a distinct flicker phenomenon appears on the display screen.
In order to improve the flicker problem in the screen backlight adjustment process under the low-brightness condition, the electronic equipment responds to a backlight brightness adjustment instruction aiming at the screen to acquire the target backlight brightness of the screen. Here, the target backlight luminance includes a native backlight luminance and at least one virtual backlight luminance between two adjacent native backlight luminances. For example, the target backlight luminance includes any one of the backlight luminances 0nit to 200nit, and further includes at least one virtual backlight luminance between adjacent two of the backlight luminances 0nit, 1nit, 2nit, 3nit, and 4nit … … 200 nit. For the interval of 80nit to 81nit, virtual backlight luminances such as 80.25nit, 80.5nit and 80.75nit are included between 80nit and 81nit, or the division granularity is finer until the virtual backlight luminance of linear transformation, which is not limited in the present application.
Step 240, adjusting the initial brightness of the content to be displayed on the screen to generate target display content according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness;
after the electronic device obtains the target backlight brightness of the screen in response to the backlight brightness adjustment instruction for the screen, the initial brightness of the content to be displayed of the screen can be adjusted based on the target backlight brightness and the target native backlight brightness corresponding to the target backlight brightness to generate the target display content.
Wherein the target native backlight luminance corresponding to the target backlight luminance refers to a native backlight luminance adjacent to the target backlight luminance. For example, if the target backlight luminance is 80.25nit, the target native backlight luminance corresponding to the target backlight luminance may be 80nit or 81nit directly adjacent to the target backlight luminance, or may be 79nit or 82nit indirectly adjacent to the target backlight luminance, which is not limited in the present application.
Specifically, since the electronic device can originally adjust between the native backlight brightness, if the target backlight brightness is the native backlight brightness, the current backlight brightness of the electronic device can be directly adjusted based on the native backlight brightness, and the initial brightness of the content to be displayed on the screen is not adjusted. For example, if the current backlight luminance of the electronic device is 81nit and the target backlight luminance is 80nit, the current backlight luminance of the electronic device may be directly adjusted from 81nit to 80nit without adjusting the initial luminance of the content to be displayed on the screen.
Due to the fact that: the display brightness of the screen seen by the human eye is the screen backlight brightness + the display content brightness. Of course, if the target backlight brightness is the native backlight brightness, the current backlight brightness may be kept unchanged. Then, on the basis of the current backlight brightness, the initial brightness of the content to be displayed of the screen is adjusted to adjust the display brightness of the screen, and finally the backlight brightness can be adjusted to the target backlight brightness. For example, if the current backlight brightness of the electronic device is 81nit and the target backlight brightness is 80nit, the current backlight brightness 81nit may be kept unchanged. And the initial brightness of the content to be displayed on the screen is reduced by 1nit, so that the display brightness of the screen seen by human eyes is 80nit based on the above formula. Since the backlight brightness setting in the electronic device is generally set based on a white picture (i.e. a picture with RGB gray-scale values of 255), and the default display content brightness of the white picture is 0, when the display brightness of the screen viewed by human eyes is 80nit, the final backlight brightness can be adjusted to the target backlight brightness of 80 nit.
Specifically, if the target backlight brightness is not the native backlight brightness but at least one virtual backlight brightness between two adjacent native backlight brightness, the current backlight brightness cannot be adjusted to the virtual backlight brightness based on the existing backlight adjustment method. Therefore, the target native backlight brightness corresponding to the target backlight brightness can be determined, and then the initial brightness of the content to be displayed on the screen is adjusted to generate the target display content. Finally, the backlight brightness can be adjusted to the virtual backlight brightness by adjusting the brightness of the content to be displayed on the screen. It is assumed that the backlight luminance setting in the electronic device is generally set based on a white picture (i.e., a picture in which the gradation values of RGB are all 255), and the display content luminance of the white picture is 0 by default. For example, if the target backlight luminance is 80.25nit, the target native backlight luminance corresponding to the target backlight luminance is determined to be 81 nit. Then, the initial brightness of the content to be displayed on the screen is adjusted to be 0.75nit lower to generate the target display content. Based on the above formula, the display luminance of the screen seen by the human eye is 80.25 nit. Therefore, when the display luminance of the screen viewed by the human eye is realized to be 80.25nit, it is also realized that the backlight luminance can be adjusted to the target backlight luminance of 80.25nit in practice.
And step 260, controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen.
After the initial brightness of the content to be displayed on the screen is adjusted to generate the target display content, the target native backlight brightness and the target display content can be controlled to take effect simultaneously, and the display brightness of the screen is adjusted. I.e., the control target native backlight brightness is in effect in the same frame as the target display content. Since the effective time of the electronic device after receiving the adjustment instruction of the target native backlight brightness is different from the effective time after receiving the data of the target display content, the electronic device generally takes effect immediately after receiving the data of the target display content, and the effective time of the electronic device after receiving the adjustment instruction of the target native backlight brightness is related to the backlight brightness adjustment mechanism of the electronic device, and may take effect in the next frame, and may take effect in the next few frames. Therefore, it is necessary to control the target display content and the corresponding target native backlight brightness to be effective in the same frame, so as to adjust the display brightness of the screen to the appropriate display brightness. A more refined adjustment of the backlight brightness is achieved in the end.
For example, in the process of adjusting the current backlight brightness of the screen from the native backlight brightness 81nit to the native backlight brightness 80nit, the conventional method can only adjust the backlight brightness from 81nit directly to 80 nit. Based on the above formula, the span of the backlight brightness is large, which causes the span corresponding to the display brightness of the screen seen by human eyes to be large, so that the screen will flicker when seen by human eyes. However, by adopting the method in the embodiment of the present application, the process of directly adjusting the backlight brightness from 81nit to 80nit is also adopted, and although the original backlight brightness is not changed in the adjustment process (for example, the original backlight brightness is still 81nit), the process of gradually changing the display brightness of the screen seen by human eyes is realized by adjusting the brightness of the content to be displayed, which is equivalent to increasing a plurality of virtual backlight brightness. For example, a plurality of virtual backlight luminances increased by 80.75nit, 80.5nit, 80.25nit, and the like are realized.
In the embodiment of the application, the target backlight brightness of the screen is acquired in response to the backlight brightness adjusting instruction for the screen. And adjusting the initial brightness of the content to be displayed of the screen to generate target display content according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness. And controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen. When the electronic device adjusts the backlight brightness of the screen, the electronic device may determine a target native backlight brightness corresponding to the target backlight brightness based on the target backlight brightness that needs to be adjusted. Then, the initial brightness of the content to be displayed of the screen is adjusted to generate the target display content based on the target backlight brightness and the target native backlight brightness, so that the adjustment process of the display brightness of the screen obtained based on the target native backlight brightness and the target display content is more precise. Therefore, the flickering effect on the screen during backlight brightness adjustment is improved, and the display effect of the screen is improved.
In the previous embodiment, a method for adjusting the display brightness of the screen is described, in this embodiment, as shown in fig. 3, a detailed description is given to step 260, where the specific implementation steps of controlling the target native backlight brightness and the target display content to be simultaneously effective and adjusting the display brightness of the screen include:
step 262, sending the target native backlight brightness and the target display content obtained in the user space to the kernel space;
the Android system (Android) running in the electronic device is a Linux kernel-based operating system. The Android system (Android) comprises a kernel space (kernel space) and a user space (user space), wherein a hardware driver runs in the kernel space, and an application runs in the user space.
Specifically, in response to a backlight luminance adjustment instruction for a screen, a target backlight luminance of the screen is acquired in a user space. And adjusting the initial brightness of the content to be displayed of the screen according to the target backlight brightness and the target native backlight brightness corresponding to the target backlight brightness to generate the target display content, wherein the adjustment is also performed in the user space. And the control of the target native backlight brightness and the target display content are effective at the same time, because the hardware for driving the screen is needed to adjust the display brightness of the screen, so the process is completed in the kernel space.
Then, after the user space requests for frame refreshing, the target native backlight brightness obtained from the user space and the data corresponding to the target display content corresponding to the target native backlight brightness are stored in the data packet corresponding to the same frame. And then, the data packet corresponding to the same frame is sent to the kernel space.
Step 264, obtaining the effective moment of the target original backlight brightness;
since the effective time of the electronic device after receiving the adjustment instruction of the target native backlight brightness is different from the effective time after receiving the data of the target display content, the electronic device generally takes effect immediately after receiving the data of the target display content, and the effective time of the electronic device after receiving the adjustment instruction of the target native backlight brightness is related to the backlight brightness adjustment mechanism of the electronic device, and may take effect in the next frame, and may take effect in the next few frames. Therefore, the effective time of the target native backlight luminance needs to be determined. Specifically, whether the preset thread triggers the operation of adjusting the current backlight brightness of the screen based on the target native backlight brightness can be monitored. And if the preset thread is monitored to trigger the operation, determining the triggering moment as the effective moment of the target native backlight brightness.
The target display content and the corresponding target native backlight brightness are controlled to take effect in the same frame, and the display brightness of the screen can be adjusted to be proper. A more refined adjustment of the backlight brightness is achieved in the end.
And 266, triggering the synchronous effect of the target native backlight brightness and the target display content at the effective moment, and adjusting the display brightness of the screen.
And when the preset thread is monitored to trigger the operation of adjusting the current backlight brightness of the screen based on the target native backlight brightness, simultaneously triggering the target display content to take effect synchronously, namely controlling the screen to start to draw the target display content. Therefore, at the same time, the hardware in the electronic equipment can be triggered to adjust the current backlight brightness to the target native backlight brightness, and the target display content is controlled to be drawn on the screen. Thus, the display brightness of the screen is adjusted based on the target native backlight brightness and the target display content.
In the embodiment of the application, when the target native backlight brightness and the target display content are controlled to take effect simultaneously and the display brightness of the screen is adjusted, the target native backlight brightness and the target display content acquired in the user space are firstly sent to the kernel space. Secondly, obtaining the effective moment of the target original backlight brightness; and at the effective moment, triggering the target native backlight brightness and the target display content to synchronously take effect, and adjusting the display brightness of the screen. Since the electronic device generally takes effect immediately after receiving the data of the target display content, and the electronic device does not take effect immediately after receiving the adjustment instruction of the target native backlight luminance, it is necessary to determine the effective time of the target native backlight luminance. And at the effective moment of the target native backlight brightness, the data of the target display content is controlled to be effective, so that the control of the target native backlight brightness and the target display content are effective simultaneously. Therefore, the display brightness of the screen can be adjusted together in the same frame based on the target native backlight brightness and the target display content, and the situation that the target native backlight brightness does not act on the frame picture corresponding to the target display content and the screen display brightness cannot be adjusted is avoided.
On the basis of the embodiment shown in fig. 3, in an embodiment, the detailed implementation steps of obtaining the effective time of the target native backlight brightness include:
determining an effective frame of the target native backlight brightness through the kernel space, and taking the frame refreshing time of the effective frame as the effective time; wherein the effective frame comprises the current frame or other frames positioned after the current frame.
Since the effective time of the electronic device after receiving the adjustment instruction of the target native backlight brightness is different from the effective time after receiving the data of the target display content, the electronic device generally takes effect immediately after receiving the data of the target display content, and the effective time of the electronic device after receiving the adjustment instruction of the target native backlight brightness is related to the backlight brightness adjustment mechanism of the electronic device, and may take effect in the next frame, and may take effect in the next few frames. Therefore, the effective time of the target native backlight luminance needs to be determined. Specifically, an effective frame of the target native backlight brightness is determined through the kernel space, and the frame refreshing time of the effective frame is used as the effective time. For example, if it is determined by the backlight brightness adjustment mechanism of the electronic device that the target native backlight brightness takes effect in the next frame after the target native backlight brightness and the data packet of the same frame corresponding to the target display content are issued to the kernel space, the effective frame of the target native backlight brightness is determined as the next frame, and the frame refreshing time of the next frame is taken as the effective time. Similarly, if the backlight brightness adjustment mechanism of the electronic device determines that the target native backlight brightness takes effect in the next two frames after the data packet of the same frame corresponding to the target native backlight brightness and the target display content is sent to the kernel space, the effective frame of the target native backlight brightness is determined as the next two frames, and the frame refreshing time of the next two frames is taken as the effective time. The valid frame includes the current frame or other frames located after the current frame, which is not limited in this application.
Fig. 4 is a waveform diagram illustrating a process of adjusting the display brightness of the screen by taking the OLED screen as an example. For example, the preset frame refreshing frequency on the electronic device may be set to 60Hz, that is, if 60 frames of pictures are refreshed and displayed in 1 second, one frame of pictures is refreshed on the screen every 16.67 ms. The first waveform diagram from top to bottom is a waveform diagram corresponding to the frame brushing frequency, and the period of each repeated waveform is 16.67 ms.
The second waveform is a waveform curve corresponding to the brightness signal, and 3 troughs appear in one frame, which is determined by the self-specification of the OLED screen.
The third waveform diagram is used for representing the process of sending the backlight adjusting instruction. It is assumed that the adjustment command of the target native backlight brightness is issued at the frame-brushing time of the 5 th frame in fig. 4, and it can be known that the adjustment command of the target native backlight brightness is not immediately effective at this time by combining the second waveform diagram. If the backlight brightness adjusting mechanism of the electronic device determines that the effective frame of the adjusting instruction of the target native backlight brightness is the next frame, the effective frame of the target native backlight brightness is determined to be the next frame (6 th frame) through the kernel space, the brightness signal of the 6 th frame is known to be reduced by combining the second oscillogram, and the frame refreshing time of the next frame (6 th frame) is taken as the effective time.
In the embodiment of the application, when the effective time of the target native backlight brightness is obtained, the effective frame of the target native backlight brightness can be determined through the kernel space, and the frame refreshing time of the effective frame is used as the effective time. The effective frame of the adjusting instruction of the target native backlight brightness determined by the backlight brightness adjusting mechanism of the electronic device can be the current frame or other frames positioned after the current frame. If the effective frame is determined to be the frame, the frame brushing time of the frame picture is taken as the effective time of the target native backlight brightness, so that the effective time can be accurately determined. Then, at the effective moment, the target native backlight brightness and the target display content are simultaneously triggered to synchronously take effect, and the display brightness of the screen is adjusted. The method avoids the condition that the target native backlight brightness does not act on the frame picture corresponding to the target display content, and the effect of adjusting the screen display brightness cannot be achieved.
In the previous embodiment, the kernel space includes a first thread for adjusting the current backlight brightness of the screen to the target native backlight brightness;
determining an effective frame of target native backlight brightness through kernel space, comprising:
monitoring whether a first thread triggers an operation of adjusting a current backlight brightness of a screen based on a target native backlight brightness;
and if so, determining the frame where the first thread is located as a valid frame.
The kernel space comprises a first thread, and the first thread is used for adjusting the current backlight brightness of the screen to the target native backlight brightness. Specifically, the effective frame of the target native backlight brightness can be determined through the kernel space, and the frame refreshing time of the effective frame is taken as the effective time. Although based on the backlight brightness adjustment mechanism of the electronic device, after the target native backlight brightness and the data packet of the same frame corresponding to the target display content are sent to the kernel space, it is known in which frame the target native backlight brightness is effective. In practice, it is also necessary to determine the actual effective frame of target native backlight brightness by monitoring whether the first thread triggers an operation to adjust the current backlight brightness of the screen based on the target native backlight brightness. And if the first thread is monitored to trigger the operation of adjusting the current backlight brightness of the screen based on the target native backlight brightness, determining the frame where the first thread is located as a valid frame.
Wherein the kernel space further comprises a second thread for displaying the target display content on the screen. At the effective moment, triggering the target native backlight brightness and the target display content to synchronously take effect, and adjusting the display brightness of the screen, wherein the method comprises the following steps: controlling a first thread to adjust the current backlight brightness of the screen to the target native backlight brightness in the frame refreshing period of the effective frame; and simultaneously awakening the second thread, and controlling the second thread to trigger the target display content to be displayed on the screen.
Specifically, after the frame where the first thread is located is determined as the effective frame, because each frame corresponds to a frame refreshing period (for example, 16.67ms), the first thread is controlled to adjust the current backlight brightness of the screen to the target native backlight brightness within the frame refreshing period (for example, 16.67ms) of the effective frame; and simultaneously awakening the second thread, and controlling the second thread to trigger the target display content to be displayed on the screen.
In an embodiment of the application, an actual effective frame of the target native backlight brightness is determined by monitoring whether the first thread triggers an operation of adjusting the current backlight brightness of the screen based on the target native backlight brightness. And if the first thread is monitored to trigger the operation of adjusting the current backlight brightness of the screen based on the target native backlight brightness, determining the frame where the first thread is located as a valid frame. By monitoring the first thread, the effective moment can be accurately determined. Then, controlling a first thread to adjust the current backlight brightness of the screen to the target native backlight brightness in the frame refreshing period of the effective frame; and simultaneously awakening the second thread, and controlling the second thread to trigger the target display content to be displayed on the screen. Therefore, the control of the target native backlight brightness and the target display content to be effective at the same time is realized by controlling the first thread and the second thread so as to adjust the display brightness of the screen. The method avoids the condition that the target native backlight brightness does not act on the frame picture corresponding to the target display content, and the effect of adjusting the screen display brightness cannot be achieved.
In one specific embodiment, a timing diagram of a display brightness adjustment process is provided, as shown in FIG. 5. The sequence diagram relates to information interaction among a Binder driver (based on a Binder mechanism), a surface flag (module responsible for screen Display), a MessageQueue, a composionine (screen composition engine), an Output module, a Display (screen Display abstraction module) and an EventThread.
The Surface flunger is an independent Service, and can receive the surfaces as input, calculate the position of each Surface in the final composite image according to the image parameters, then send the position to HWComposer or OpenGL to generate a final display Buffer, and then display the final display Buffer on a specific display device.
The steps 1 to 7 in the timing diagram are all threads corresponding to the application program end, namely threads running in the user space. In step 2, a Color control module (PCC) issues a Color matrix (colorMatrix) for adjusting the initial brightness of the content to be displayed. And steps 8-26 in the timing diagram are threads corresponding to the server, namely threads running in the kernel space. Wherein, in the 13 th step and the 14 th step, the exchange of currentstate and drawingstate is realized, and in the 19 th to 21 st steps, the setting process of the main thread to the color matrix (colorMatrix) is realized. Setting the backlight level (i.e., target native backlight brightness) by the first thread is accomplished at step 24.
Following the previous embodiment, a process is described for determining an actual effective frame of target native backlight brightness by monitoring whether a first thread triggers an operation to adjust the current backlight brightness of the screen based on the target native backlight brightness. In this embodiment, if the effective frame is the current frame, a specific implementation step of adjusting the initial brightness of the content to be displayed on the screen to generate the target display content is described in detail, and includes:
and adjusting the initial brightness of the content to be displayed of the current frame on the screen to generate target display content.
In the embodiment of the application, if the actual effective frame of the target native backlight brightness is determined to be the current frame by monitoring whether the first thread triggers the operation of adjusting the current backlight brightness of the screen based on the target native backlight brightness, the initial brightness of the content to be displayed of the screen is adjusted to generate the target display content, that is, the initial brightness of the content to be displayed of the current frame on the screen is adjusted in advance to generate the target display content, so that the actual effective frame of the target native backlight brightness and the target display content are ensured to be the same frame. And finally, controlling the target native backlight brightness and the target display content to take effect simultaneously so as to adjust the display brightness of the screen. The method avoids the condition that the target native backlight brightness does not act on the frame picture corresponding to the target display content, and the effect of adjusting the screen display brightness cannot be achieved.
Following the previous embodiment, a process is described for determining an actual effective frame of target native backlight brightness by monitoring whether a first thread triggers an operation to adjust the current backlight brightness of the screen based on the target native backlight brightness. In this embodiment, if the effective frame is another frame located after the current frame, a specific implementation step of adjusting the initial brightness of the content to be displayed on the screen to generate the target display content is described in detail, and includes:
and adjusting the initial brightness of the contents to be displayed of other frames on the screen to generate target display contents.
In the embodiment of the application, if the actual effective frame of the target native backlight brightness is determined to be other frames after the current frame by monitoring whether the first thread triggers the operation of adjusting the current backlight brightness of the screen based on the target native backlight brightness, the initial brightness of the content to be displayed of the screen is adjusted to generate the target display content, that is, the initial brightness of the content to be displayed of other frames after the current frame on the screen is adjusted in advance to generate the target display content, so that the actual effective frame of the target native backlight brightness and the target display content are ensured to be the same frame. And finally, controlling the target native backlight brightness and the target display content to take effect simultaneously so as to adjust the display brightness of the screen. The method avoids the condition that the target native backlight brightness does not act on the frame picture corresponding to the target display content, and the effect of adjusting the screen display brightness cannot be achieved.
In the foregoing embodiments, it is described that the target backlight luminance of the screen is acquired in response to the backlight luminance adjustment instruction for the screen; adjusting the initial brightness of the content to be displayed of the screen to generate target display content according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness; and controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen. It is further described herein that the target backlight luminance comprises a plurality of native backlight luminances and at least one virtual backlight luminance between two adjacent native backlight luminances.
Then, as shown in fig. 6, the detailed description of step 240 is a specific implementation step of adjusting the initial brightness of the content to be displayed on the screen according to the target backlight brightness and the target native backlight brightness corresponding to the target backlight brightness to generate the target display content, including:
step 242, if the target backlight brightness is the virtual backlight brightness, determining the target native backlight brightness as a native backlight brightness adjacent to the virtual backlight brightness;
here, the target backlight luminance includes a native backlight luminance and at least one virtual backlight luminance between two adjacent native backlight luminances. For example, the target backlight luminance includes any one of the backlight luminances 0nit to 200nit, and further includes at least one virtual backlight luminance between adjacent two of the backlight luminances 0nit, 1nit, 2nit, 3nit, and 4nit … … 200 nit. For the interval of 80nit to 81nit, virtual backlight luminances such as 80.25nit, 80.5nit and 80.75nit are included between 80nit and 81nit, or the division granularity is finer until the virtual backlight luminance of linear transformation, which is not limited in the present application.
Specifically, the target backlight brightness of the screen is acquired in response to a backlight brightness adjustment instruction for the screen. And if the target backlight brightness is the virtual backlight brightness, determining the target native backlight brightness as the native backlight brightness adjacent to the virtual backlight brightness. For example, if the target backlight luminance is 80.25nit, and the target backlight luminance is virtual backlight luminance, the determined target native backlight luminance corresponding to the target backlight luminance may be 80nit or 81nit directly adjacent to the target backlight luminance, or may be 79nit or 82nit indirectly adjacent to the target backlight luminance, which is not limited in the present application.
And 244, adjusting the initial brightness of the content to be displayed on the screen according to the target backlight brightness and the adjacent original backlight brightness to generate the target display content.
The content to be displayed here may be understood as an image frame, which may be an image frame in an RGBA color space, a YUV color space, or other color spaces, for example, an HSL color space, and an HSV color space, which are not limited in this application. In the RGBA color space, R is a red component, G is a green component, B is a blue component, and a is a transparency component. In the YUV color space, Y is the luminance component and U and V are the color components. The HSL is an abbreviation of three color attributes of Hue (Hue), Saturation (Saturation), and brightness (Lightness). The way of HSV expressing color images consists of three parts: hue, Saturation, color purity, Value. Specifically, the initial brightness of the content to be displayed on the screen can be adjusted by adjusting components corresponding to the RGBA color space and the YUV color space of the content to be displayed.
After the adjacent native backlight brightness is determined, the initial brightness of the content to be displayed on the screen may be adjusted based on the target backlight brightness (e.g., 80.25nit) and the adjacent native backlight brightness (80nit or 81nit) to generate the target display content. If the adjacent native backlight luminance is 80nit, since the adjacent native backlight luminance is smaller than the target backlight luminance, the initial luminance of the display content needs to be increased to supplement the shortage of the adjacent native backlight luminance, and finally the purpose of adjusting the display luminance of the screen seen by human eyes is achieved.
If the adjacent native backlight luminance is 81nit, since the adjacent native backlight luminance is greater than the target backlight luminance, the initial luminance of the display content needs to be adjusted down to offset the problem that the adjacent native backlight luminance is too bright, and finally the purpose of adjusting the display luminance of the screen seen by the human eye is achieved.
In the embodiment of the present application, if the target backlight luminance is the virtual backlight luminance, the target native backlight luminance is determined to be a native backlight luminance adjacent to the virtual backlight luminance. And adjusting the initial brightness of the content to be displayed of the screen to generate the target display content according to the target backlight brightness and the adjacent original backlight brightness. According to the method, the process that the display brightness of the screen gradually changes when the human eyes see is achieved by adjusting the initial brightness of the content to be displayed of the screen, which is equivalent to increasing a plurality of virtual backlight brightness. The adjustment process of the display brightness of the screen obtained based on the target native backlight brightness and the target display content is more refined. Therefore, the flickering effect on the screen during backlight brightness adjustment is improved, and the display effect of the screen is improved.
In the previous embodiment, as shown in fig. 7, in step 244, adjusting the initial brightness of the content to be displayed on the screen according to the target backlight brightness and the adjacent native backlight brightness to generate the target display content, which includes:
step 244a, calculating a brightness difference between the target backlight brightness and the adjacent native backlight brightness;
if the target backlight luminance is 80.25nit, the adjacent native backlight luminance may be 80nit or 81 nit. When the adjacent native backlight luminance is 80nit, the luminance difference between the target backlight luminance and the adjacent native backlight luminance is 0.25. When the adjacent native backlight luminance is 81nit, the luminance difference between the target backlight luminance and the adjacent native backlight luminance is-0.75.
And 244b, adjusting the initial brightness of the content to be displayed on the screen according to the brightness difference to generate the target display content.
It is known that there is a preset relationship between the brightness of an image and the pixel values of the image: y (brightness) ═ 0.299 × R +0.587 × G +0.114 × B, although the parameters here can also be fine-tuned. Therefore, adjusting the brightness of an image may be achieved by adjusting the RGB pixel values of the image. Specifically, according to the brightness difference, a preset color matrix (colorMatrix) is used for adjusting the pixel value of the image, so that the initial brightness of the content to be displayed is adjusted to the target brightness, and the target display content is generated. The RGB pixel values of the image can also be adjusted by a 3D-LUT (Look-Up Table), wherein the LUT (Look-Up-Table) is a RAM, and when a signal is input, it is equivalent to inputting an address to perform Table lookup, and finding out and outputting the content corresponding to the address from the Table, and the function of color space conversion can be performed for the screen.
And the difference value between the target brightness and the initial brightness is within a preset range of brightness difference. Namely, the initial brightness of the content to be displayed is adjusted to the sum of the initial brightness and the brightness difference, or the initial brightness of the content to be displayed is adjusted to the preset range of the sum of the initial brightness and the brightness difference.
Wherein, in the Android system, the color of the image can be operated by a color matrix ColorMatrix. Here, the color matrix may be a matrix of 5x4, a matrix of 4x4, or a matrix of 5x5, which is not limited in the present application. For a 5x4 matrix (a 4 row 5 column matrix), the first row represents the red channel, the second row represents the green channel, the third row represents the blue channel, and the fourth row represents the saturation channel, where the last bit of each row represents the offset of the channel.
For example, if the target backlight luminance is 80.25nit, the adjacent native backlight luminance may be 80nit or 81 nit. When the adjacent native backlight luminance is 80nit, the luminance difference between the target backlight luminance and the adjacent native backlight luminance is 0.25. The initial brightness of the content to be displayed is adjusted to the sum of the initial brightness and the brightness difference of 0.25, namely the initial brightness of the content to be displayed is increased by 0.25. Or adjusting the initial brightness of the content to be displayed to be within a preset range of the sum of the initial brightness and the brightness difference, namely, increasing the initial brightness of the content to be displayed by 0.25, for example, by 0.2-0.3.
For example, when the adjacent native backlight luminance is 81nit, the luminance difference between the target backlight luminance and the adjacent native backlight luminance is-0.75. The initial brightness of the content to be displayed is adjusted to the sum of the initial brightness and the brightness difference of-0.75, that is, the initial brightness of the content to be displayed is adjusted to be lower by 0.75. Or adjusting the initial brightness of the content to be displayed to be within the preset range of the sum of the initial brightness and the brightness difference, namely, adjusting the initial brightness of the content to be displayed to be within the preset range of 0.75 lower, for example, between 0.7 and 0.8 lower.
And finally, controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen. I.e., the control target native backlight brightness is in effect in the same frame as the target display content.
In the embodiment of the application, the brightness difference between the target backlight brightness and the adjacent original backlight brightness is calculated, and the pixel value of the image is adjusted by adopting a preset color matrix (colorMatrix) according to the brightness difference, so that the initial brightness of the content to be displayed is adjusted to the target brightness, and the target display content is generated. The adjustment is performed based on the brightness difference, so that the brightness of the content to be displayed can be accurately adjusted. And finally, controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen. The adjustment process of the display brightness of the obtained screen can be more refined by adjusting the brightness of the content to be displayed under the condition that the original backlight brightness in the electronic equipment cannot be adjusted to the target backlight brightness. Therefore, the flickering effect on the screen during backlight brightness adjustment is improved, and the display effect of the screen is improved.
Following the previous embodiment, the calculation of the luminance difference between the target backlight luminance and the adjacent native backlight luminance is described; and adjusting the initial brightness of the content to be displayed on the screen according to the brightness difference to generate target display content. In this embodiment, as shown in fig. 8, a detailed description is given of specific steps of adjusting an initial luminance of a content to be displayed to a target luminance by using a preset color matrix according to a luminance difference, and generating a target display content, where the specific steps include:
step 820, obtaining initial pixels of each pixel in the content to be displayed;
step 840, adjusting the initial pixel of the pixel by adopting a preset color matrix according to the brightness difference, and generating a target pixel of the pixel; the preset color matrix corresponds to the target backlight brightness and the brightness difference;
first, an initial pixel of each pixel in the content to be displayed is obtained. Secondly, adjusting the initial pixel of the pixel by adopting a preset color matrix according to the brightness difference between the target backlight brightness and the adjacent original backlight brightness to generate the target pixel of the pixel.
The preset color matrix is a color matrix used when the brightness of a white frame (i.e., a frame with RGB gray values of 255) is reduced by a brightness difference between a target backlight brightness (e.g., 80.25nit) and an adjacent native backlight brightness (81nit) in an experimental stage. Supposing that each pixel in the content to be displayed adopts an RGBA color channel, and a data matrix corresponding to an initial pixel of each pixel is as follows:
[R
G
B
A
1]。
wherein, if the color matrix is a matrix of 5 × 4 (a matrix of 4 rows and 5 columns), the color matrix is:
[a,b,c,d,e,
f,g,h,i,j,
k,l,m,n,o,
p,q,r,s,t]
at this time, the data matrix corresponding to the initial pixel of each pixel is multiplied by the color matrix to obtain the data matrix after the color matrix processing. The specific matrix multiplication process is as follows:
Figure BDA0003408381370000101
that is, the RGBA color channel value of the target pixel of each pixel obtained by matrix multiplication is:
R'=a*R+b*G+c*B+d*A+e;
G'=f*R+g*G+h*B+i*A+j;
B'=k*R+l*G+m*B+n*A+o;
A'=p*R+q*G+r*B+s*A+t;
and then the preset relation between the brightness of the image and the pixel value of the image is passed: y (luminance) ═ 0.299 × R +0.587 × G +0.114 × B, and the luminance of the image after the color matrix adjustment was calculated. And continuously adjusting the parameter values in the color matrix until the brightness of the image after adjustment reaches the target brightness, namely, the initial brightness of the image is reduced by 0.75 nit. Thus, a preset color matrix corresponding to the target backlight brightness and brightness difference is obtained.
And then, adjusting the initial pixel of the pixel by adopting a preset color matrix according to the brightness difference to generate a target pixel of the pixel.
In practical operation, all parameters except the diagonal direction in the color matrix can be set to 0, so that the color matrix is:
[r,0.0,0.0,0.0,0.0,
0.0,g,0.0,0.0,0.0
0.0,0.0,b,0.0,0.0
0.0,0.0,0.0,1.0,0.0]
then, the RGBA color channel value of the target pixel of each pixel obtained after matrix multiplication is:
R'=a*R;
G'=g*G;
B'=m*B;
A'=s*A;
step 860, generating target display content based on the target pixel of the pixel; and the target brightness of the target display content is the sum of the initial brightness and the brightness difference of the content to be displayed.
According to the brightness difference, the initial pixels of the pixels are adjusted by adopting the preset color matrix to generate target pixels of the pixels, and then target display content is generated based on RGBA color channel values of the target pixels of all the pixels in the content to be displayed. Therefore, the target luminance of the target display content is the sum of the initial luminance of the content to be displayed and the luminance difference. In this way, the adjustment process of the display brightness of the screen obtained based on the target native backlight brightness and the target display content is more refined. Therefore, the flickering effect on the screen during backlight brightness adjustment is improved, and the display effect of the screen is improved.
In the embodiment of the application, the initial pixel of each pixel in the content to be displayed is obtained, and the initial pixel of the pixel is adjusted by adopting the preset color matrix according to the brightness difference to generate the target pixel of the pixel. Generating target display content based on a target pixel of the pixel; here, the target luminance of the target display content is the sum of the initial luminance of the content to be displayed and the luminance difference. And adjusting the initial pixels of the pixels by adopting a preset color matrix, and finally realizing the adjustment of the brightness of the content to be displayed to generate the target display content. The adjustment process of the display brightness of the screen obtained based on the target native backlight brightness and the target display content is more refined. Therefore, the flickering effect on the screen during backlight brightness adjustment is improved, and the display effect of the screen is improved.
In one embodiment, if the target backlight brightness is less than the target native backlight brightness, adjusting the initial brightness of the content to be displayed to the target brightness by using a preset color matrix according to the brightness difference, and generating the target display content includes:
adjusting the initial brightness of the content to be displayed to be lower than the target brightness by adopting a preset color matrix according to the brightness difference, and generating target display content; the target brightness of the target display content is the first brightness.
Specifically, if the target backlight luminance is less than the target native backlight luminance, the calculated luminance difference between the target backlight luminance and the adjacent native backlight luminance is a negative value. After the brightness difference between the target backlight brightness and the adjacent original backlight brightness is calculated, the initial brightness of the content to be displayed needs to be reduced by adopting a preset color matrix according to the brightness difference, and the target display content is generated.
Assume that the backlight luminance setting in the electronic apparatus is set based on a white picture (i.e., a picture in which the gradation values of RGB are all 255), and the display content luminance of the white picture is 0 by default. For example, if the target backlight luminance is 80.25nit, if the native backlight luminance adjacent to the target backlight luminance is determined to be 81nit, then the target backlight luminance is less than the target native backlight luminance at this time. Therefore, the brightness difference between the target backlight brightness and the adjacent original backlight brightness is calculated to be-0.75 nit, the initial brightness of the content to be displayed of the screen is adjusted to be 0.75nit to the target brightness by adopting the preset color matrix, and the target display content is generated. At this time, the luminance is decreased by 0.75nit to the target luminance on the basis of the initial luminance a, that is, the target luminance is a-0.75nit, and the target luminance a-0.75nit of the target display content is taken as the first luminance. Of course, the brightness can be adjusted to be between 0.7 and 0.8 on the basis of the initial brightness A, and the obtained target brightness is between A-0.8nit and A-0.7 nit. At this time, the target luminance between A-0.8nit and A-0.7nit is taken as the first luminance.
Based on the formula of screen backlight luminance + display content luminance, 81nit-0.75nit is 80.25nit, and the display luminance of the screen viewed by the human eye is 80.25 nit. Therefore, when the display luminance of the screen viewed by the human eye is realized to be 80.25nit, it is also realized that the backlight luminance can be adjusted to the target backlight luminance of 80.25nit in practice. Therefore, when the display luminance of the screen viewed by the human eye is realized to be 80.25nit, it is also realized that the backlight luminance can be adjusted to the target backlight luminance of 80.25nit in practice.
In the embodiment of the present application, it is assumed that the backlight brightness setting in the electronic device is set based on a white picture (i.e., a picture with 255 gray-scale values of RGB), and the display content brightness of the default white picture is 0. After the original backlight brightness adjacent to the target backlight brightness is determined, if the target backlight brightness is smaller than the adjacent original backlight brightness, the initial brightness of the content to be displayed is adjusted to the target brightness by adopting a preset color matrix, and the target display content is generated. The backlight brightness is adjusted to the virtual backlight brightness in a mode of adjusting the initial brightness of the content to be displayed to be low. Therefore, the flickering effect on the screen during backlight brightness adjustment is improved, and the display effect of the screen is improved.
In one embodiment, if the target backlight luminance is greater than the target native backlight luminance, adjusting the initial luminance of the content to be displayed to the target luminance by using a preset color matrix pair according to the luminance difference, and generating the target display content includes:
according to the brightness difference, increasing the initial brightness of the content to be displayed to the target brightness by adopting a preset color matrix, and generating target display content; the target brightness of the target display content is a second brightness, and the second brightness is larger than the first brightness.
Specifically, if the target backlight luminance is greater than the target native backlight luminance, the calculated luminance difference between the target backlight luminance and the adjacent native backlight luminance is a positive value. After the brightness difference between the target backlight brightness and the adjacent original backlight brightness is calculated, the initial brightness of the content to be displayed needs to be increased by adopting a preset color matrix according to the brightness difference, and the target display content is generated.
It is assumed that the backlight luminance setting in the electronic device is set based on a black picture (i.e., a picture in which the gradation values of RGB are all 0), and the display content luminance of the black picture is 0 by default. For example, if the target backlight luminance is 80.25nit, if the native backlight luminance adjacent to the target backlight luminance is determined to be 80nit, then the target backlight luminance is greater than the target native backlight luminance at this time. Therefore, the brightness difference between the target backlight brightness and the adjacent original backlight brightness is calculated to be 0.25nit, the initial brightness of the content to be displayed of the screen is increased by 0.25nit to the target brightness by adopting the preset color matrix, and the target display content is generated. At this time, the luminance is increased by 0.25nit to the target luminance on the basis of the initial luminance a, that is, the target luminance is a +0.25nit, and the target luminance a +0.25nit of the target display content is taken as the second luminance. Of course, the initial brightness a can be increased by 0.2-0.3, and the target brightness is between a +0.2nit and a +0.3 nit. At this time, the target luminance between a +0.2nit and a +0.3nit is taken as the second luminance. The second brightness may be equal to or different from the first brightness, which is not limited in this application.
As can be seen from the formula of screen backlight luminance + display content luminance, 81ni +0.25nit is 80.25nit, and the display luminance of the screen viewed by the human eye is 80.25 nit. Therefore, when the display luminance of the screen viewed by the human eye is realized to be 80.25nit, it is also realized that the backlight luminance can be adjusted to the target backlight luminance of 80.25nit in practice. Therefore, when the display luminance of the screen viewed by the human eye is realized to be 80.25nit, it is also realized that the backlight luminance can be adjusted to the target backlight luminance of 80.25nit in practice.
In the embodiment of the present application, it is assumed that the backlight luminance setting in the electronic device is set based on a black picture (i.e., a picture in which the grayscale values of RGB are all 0), and the display content luminance of the black picture is 0 by default. After the original backlight brightness adjacent to the target backlight brightness is determined, if the target backlight brightness is larger than the adjacent original backlight brightness, the initial brightness of the content to be displayed is increased to the target brightness by adopting a preset color matrix, and the target display content is generated. The backlight brightness is adjusted to the virtual backlight brightness in a mode of adjusting the initial brightness of the content to be displayed to be high. Therefore, the flickering effect on the screen during backlight brightness adjustment is improved, and the display effect of the screen is improved.
In a specific embodiment, a method for adjusting display brightness is provided, which further includes:
generating a backlight brightness adjusting instruction aiming at a screen according to at least one of the ambient light intensity, the process type of an application program and the personal preference of a user for the backlight brightness; the target backlight brightness is carried in the backlight brightness adjusting instruction.
Specifically, when the backlight brightness adjustment instruction for the screen is generated, the backlight brightness adjustment instruction for the screen may be generated according to the ambient light intensity. And generating a backlight brightness adjusting instruction for the screen according to the progress type of the application program. And generating a backlight brightness adjusting instruction for the screen according to the personal preference of the user on the backlight brightness. Of course, the backlight brightness adjustment instruction for the screen may also be generated according to any two of the ambient light intensity, the progress type of the application program, and the personal preference of the user for the backlight brightness. Of course, the backlight brightness adjustment instruction for the screen may also be generated according to three factors, namely, the ambient light intensity, the progress type of the application program, and the personal preference of the user for the backlight brightness. This is not limited in this application.
At different shooting scenes or different moments, the ambient light intensities (light intensities) of the current shooting scenes are different, and the screen needs to provide different backlight brightness under different ambient light intensities so as to meet the visual requirements of human eyes. The intensity of light is also called illumination intensity, which is a physical term referring to the luminous flux of visible light received per unit area, and is called illuminance, unit Lux or lx for short. The illumination intensity is used to indicate the intensity of the illumination and the amount of illumination to which the surface area of the object is illuminated. The ambient light intensity of the current shooting scene can be detected through a light sensor on the electronic equipment. The following table shows the illumination intensity values for different weather and locations:
TABLE 1-1
Weather and location Illumination intensity value
Sunshine direct-irradiating ground in sunny day 100000lx
Indoor center of sunny day 200lx
Outside cloudy sky 50-500lx
In the cloudy sky 5-50lx
Moonlight (full moon) 2500lx
Clear moon night 0.2lx
Night 0.0011lx
As can be seen from table 1-1, the ambient light intensity (light intensity) of the current shooting scene is greatly different in the shooting scene or at different times. Therefore, the backlight brightness adjusting instruction for the screen is generated according to different ambient light intensities, and the target backlight brightness is carried in the backlight brightness adjusting instruction. Generally, the greater the ambient light intensity (light intensity), the greater the target backlight brightness provided by the electronic device accordingly. And adjusting the initial brightness of the content to be displayed of the screen according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness to generate target display content. And controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen.
When different processes of the application program are run on the electronic equipment, different backlight brightness needs to be provided for the screen under different process types so as to meet the visual requirements of human eyes. Therefore, a backlight brightness adjusting instruction for the screen is generated according to the progress type of the application program, and the target backlight brightness is carried in the backlight brightness adjusting instruction. And similarly, adjusting the initial brightness of the content to be displayed of the screen according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness to generate the target display content. And controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen. For example, in a video playing process in an application program, the backlight brightness required to be provided is high; in the text display process in the application program, the required backlight brightness is low; of course, this is not limited in this application.
The personal preference of the user for the backlight brightness refers to a backlight brightness adjusting option preset in the electronic equipment by the user. For example, if a user prefers a darker backlight brightness, after the electronic device responds to a backlight brightness adjustment instruction for the screen, the determined target backlight brightness of the screen is lower than the target backlight brightness determined by the electronic device based on the progress type of the application program according to the ambient light intensity. On the contrary, if a user prefers a brighter backlight brightness, after the electronic device responds to the backlight brightness adjustment instruction for the screen, the determined target backlight brightness of the screen is higher than the target backlight brightness determined by the electronic device based on the progress type of the application program according to the ambient light intensity. Of course, this is not limited in this application.
In the embodiment of the application, the backlight brightness adjusting instruction for the screen may be generated according to at least one of the ambient light intensity, the process type of the application program, and the personal preference of the user for the backlight brightness. The target backlight brightness is carried in the backlight brightness adjusting instruction. Therefore, the target backlight brightness is comprehensively generated according to various factors, and the accuracy of the determined target backlight brightness is improved. And the accuracy of the subsequent screen brightness adjustment based on the target backlight brightness is improved.
In a specific embodiment, as shown in fig. 9, there is provided a display brightness adjusting method, including:
step 902, generating a backlight brightness adjusting instruction for a screen according to at least one of ambient light intensity, a process type of an application program, and personal preference of a user for backlight brightness; the target backlight brightness is carried in the backlight brightness adjusting instruction;
step 904, responding to a backlight brightness adjusting instruction aiming at the screen, and acquiring target backlight brightness of the screen; the target backlight brightness comprises a plurality of original backlight brightness and at least one virtual backlight brightness between two adjacent original backlight brightness;
step 906, judging whether the target backlight brightness is the virtual backlight brightness;
step 908, if the target backlight brightness is the original backlight brightness, controlling the original backlight brightness to take effect, and adjusting the display brightness of the screen;
step 910, if the target backlight brightness is the virtual backlight brightness, determining the target native backlight brightness as a native backlight brightness adjacent to the virtual backlight brightness;
step 912, calculating a brightness difference between the target backlight brightness and the adjacent native backlight brightness;
step 914, obtaining initial pixels of each pixel in the content to be displayed;
step 916, adjusting the initial pixel of the pixel by adopting a preset color matrix according to the brightness difference to generate a target pixel of the pixel; the preset color matrix corresponds to the target backlight brightness and the brightness difference;
step 918, generating target display content based on the target pixel of the pixel; the target brightness of the target display content is the sum of the initial brightness and the brightness difference of the content to be displayed;
step 920, sending the target native backlight brightness and the target display content obtained in the user space to a kernel space;
step 922, obtaining the effective moment of the target native backlight brightness;
step 924, at the effective moment, triggering the target native backlight brightness and the target display content to take effect synchronously, and adjusting the display brightness of the screen.
In the embodiment of the application, the target backlight brightness of the screen is acquired in response to the backlight brightness adjusting instruction for the screen. And adjusting the initial brightness of the content to be displayed of the screen to generate target display content according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness. And controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen. When the electronic device adjusts the backlight brightness of the screen, the electronic device may determine a target native backlight brightness corresponding to the target backlight brightness based on the target backlight brightness that needs to be adjusted. Then, the initial brightness of the content to be displayed of the screen is adjusted to generate the target display content based on the target backlight brightness and the target native backlight brightness, so that the adjustment process of the display brightness of the screen obtained based on the target native backlight brightness and the target display content is more precise. Therefore, the flickering effect on the screen during backlight brightness adjustment is improved, and the display effect of the screen is improved.
In one embodiment, as shown in fig. 10, there is provided a display luminance adjusting apparatus 1000 including:
a target backlight brightness obtaining module 1020, configured to obtain a target backlight brightness of the screen in response to a backlight brightness adjustment instruction for the screen;
the to-be-displayed content brightness adjusting module 1040 is configured to adjust an initial brightness of to-be-displayed content of the screen according to the target backlight brightness and a target native backlight brightness corresponding to the target backlight brightness, so as to generate target display content;
the screen display brightness adjusting module 1060 is configured to control the target native backlight brightness and the target display content to take effect simultaneously, and adjust the display brightness of the screen.
In one embodiment, as shown in fig. 11, the screen display brightness adjustment module 1060 includes:
a sending unit 1062, configured to send the target native backlight brightness and the target display content acquired in the user space to the kernel space;
an effective time obtaining unit 1064, configured to obtain an effective time of the target native backlight brightness;
and the synchronous validation unit 1066 is configured to trigger the target native backlight brightness and the target display content to synchronously validate at the validation time, so as to adjust the display brightness of the screen.
In an embodiment, the effective time obtaining unit 1064 is further configured to determine an effective frame of the target native backlight brightness through the kernel space, and take a frame refreshing time of the effective frame as the effective time; wherein the effective frame comprises the current frame or other frames positioned after the current frame.
In one embodiment, the kernel space includes a first thread for adjusting a current backlight brightness of the screen to a target native backlight brightness; the effective moment obtaining unit 1064 is further configured to monitor whether the first thread triggers an operation of adjusting the current backlight brightness of the screen based on the target native backlight brightness; and if so, determining the frame where the first thread is located as a valid frame.
In one embodiment, the kernel space further comprises a second thread for displaying the target display content on the screen; the synchronous validation unit 1066 is further configured to control the first thread to adjust the current backlight brightness of the screen to the target native backlight brightness in the frame refreshing period of the validation frame; and simultaneously awakening the second thread, and controlling the second thread to trigger the target display content to be displayed on the screen.
In an embodiment, if the effective frame is the current frame, the to-be-displayed content brightness adjusting module 1040 is configured to adjust the initial brightness of the to-be-displayed content of the current frame on the screen to generate the target display content.
In an embodiment, if the effective frame is another frame located after the current frame, the to-be-displayed content brightness adjusting module 1040 is configured to adjust the initial brightness of the to-be-displayed content of another frame on the screen to generate the target display content.
In one embodiment, the target backlight brightness comprises a plurality of native backlight brightnesses and at least one virtual backlight brightness between two adjacent native backlight brightnesses; as shown in fig. 12, the to-be-displayed content brightness adjusting module 1040 includes:
a target native backlight luminance determining unit 1042 for determining the target native backlight luminance as a native backlight luminance adjacent to the virtual backlight luminance if the target backlight luminance is the virtual backlight luminance;
and the target display content generating unit 1044 is configured to adjust the initial brightness of the to-be-displayed content of the screen according to the target backlight brightness and the adjacent native backlight brightness to generate the target display content.
In one embodiment, the target display content generating unit 1044 is further configured to calculate a luminance difference between the target backlight luminance and the adjacent native backlight luminance; and adjusting the initial brightness of the content to be displayed on the screen according to the brightness difference to generate target display content.
In an embodiment, the target display content generating unit 1044 is further configured to adjust the initial brightness of the content to be displayed to the target brightness by using a preset color matrix according to the brightness difference, and generate the target display content; the difference between the target brightness and the initial brightness is within a preset range of brightness difference.
In an embodiment, the target display content generating unit 1044 is further configured to obtain an initial pixel of each pixel in the content to be displayed; adjusting the initial pixel of the pixel by adopting a preset color matrix according to the brightness difference to generate a target pixel of the pixel; the preset color matrix corresponds to the target backlight brightness and the brightness difference; generating target display content based on a target pixel of the pixel; and the target brightness of the target display content is the sum of the initial brightness and the brightness difference of the content to be displayed.
In an embodiment, the target display content generating unit 1044 is further configured to adjust the initial brightness of the content to be displayed to the target brightness by using a preset color matrix according to the brightness difference, and generate the target display content.
In an embodiment, the target display content generating unit 1044 is further configured to increase the initial brightness of the content to be displayed to the target brightness by using a preset color matrix according to the brightness difference, and generate the target display content.
In one embodiment, the display brightness adjusting apparatus further includes:
the backlight brightness adjusting instruction generating module is used for generating a backlight brightness adjusting instruction aiming at the screen according to at least one of the ambient light intensity, the process type of the application program and the personal preference of the user to the backlight brightness; the target backlight brightness is carried in the backlight brightness adjusting instruction.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
The division of each module in the display brightness adjusting apparatus is merely for illustration, and in other embodiments, the display brightness adjusting apparatus may be divided into different modules as needed to complete all or part of the functions of the display brightness adjusting apparatus.
For specific limitations of the display brightness adjusting device, reference may be made to the above limitations of the display brightness adjusting method, which are not described herein again. All or part of the modules in the display brightness adjusting device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 13 is a schematic diagram of an internal structure of an electronic device in one embodiment. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a PDA (Personal Digital Assistant), a POS (Point of sales), a vehicle-mounted computer, and a wearable device. The electronic device includes a processor and a memory connected by a system bus. The processor may include one or more processing units, among others. The processor may be a CPU (Central Processing Unit), a DSP (Digital Signal processor), or the like. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program.
The computer program can be executed by a processor to implement a display brightness adjustment method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium.
The implementation of each module in the display brightness adjusting apparatus provided in the embodiment of the present application may be in the form of a computer program.
The computer program may be run on a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the display brightness adjustment method.
Embodiments of the present application also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform a display brightness adjustment method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. The nonvolatile Memory may include a ROM (Read-Only Memory), a PROM (Programmable Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), or a flash Memory. Volatile Memory can include RAM (Random Access Memory), which acts as external cache Memory. By way of illustration and not limitation, RAM is available in many forms, such as SRAM (Static Random Access Memory), DRAM (Dynamic Random Access Memory), SDRAM (Synchronous Dynamic Random Access Memory), Double Data Rate DDR SDRAM (Double Data Rate Synchronous Random Access Memory), ESDRAM (Enhanced Synchronous Dynamic Random Access Memory), SLDRAM (Synchronous Link Dynamic Random Access Memory), RDRAM (Random Dynamic Random Access Memory), and DRmbr DRAM (Dynamic Random Access Memory).
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (18)

1. A display brightness adjustment method is characterized by comprising the following steps:
responding to a backlight brightness adjusting instruction aiming at the screen, and acquiring target backlight brightness of the screen;
adjusting the initial brightness of the content to be displayed of the screen to generate target display content according to the target backlight brightness and the target native backlight brightness corresponding to the target backlight brightness;
and controlling the target native backlight brightness and the target display content to take effect simultaneously, and adjusting the display brightness of the screen.
2. The method of claim 1, wherein the controlling the target native backlight brightness and the target display content to be simultaneously effective, adjusting the display brightness of the screen comprises:
sending the target native backlight brightness and the target display content acquired in a user space to a kernel space;
obtaining the effective moment of the target native backlight brightness;
and triggering the target native backlight brightness and the target display content to synchronously take effect at the effective moment, and adjusting the display brightness of the screen.
3. The method of claim 2, wherein obtaining the effective time of the target native backlight brightness comprises:
determining an effective frame of the target native backlight brightness through the kernel space, and taking the frame refreshing time of the effective frame as the effective time; wherein the effective frame comprises a current frame or other frames located after the current frame.
4. The method of claim 3, wherein the kernel space comprises a first thread for adjusting a current backlight brightness of the screen to the target native backlight brightness;
the determining, by the kernel space, an effective frame of the target native backlight luminance includes:
monitoring whether the first thread triggers an operation of adjusting a current backlight brightness of the screen based on the target native backlight brightness;
and if so, determining the frame where the first thread is located as the effective frame.
5. The method of claim 4, wherein the kernel space further comprises a second thread for displaying the target display content on the screen;
the triggering the target native backlight brightness and the target display content to synchronously take effect at the effective moment, and adjusting the display brightness of the screen comprises:
controlling the first thread to adjust the current backlight brightness of the screen to the target native backlight brightness within a frame brushing period of the effective frame; and simultaneously awakening the second thread, and controlling the second thread to trigger the target display content to be displayed on the screen.
6. The method according to claim 5, wherein if the effective frame is the current frame, the adjusting the initial brightness of the content to be displayed on the screen to generate the target display content comprises:
and adjusting the initial brightness of the content to be displayed of the current frame on the screen to generate target display content.
7. The method according to claim 5, wherein if the effective frame is another frame located after the current frame, the adjusting the initial brightness of the content to be displayed on the screen to generate the target display content comprises:
and adjusting the initial brightness of the contents to be displayed of the other frames on the screen to generate target display contents.
8. The method according to any of claims 1-7, wherein the target backlight brightness comprises a plurality of native backlight brightnesses and at least one virtual backlight brightness between two adjacent native backlight brightnesses;
the adjusting the initial brightness of the content to be displayed of the screen according to the target backlight brightness and the target native backlight brightness corresponding to the target backlight brightness to generate the target display content includes:
if the target backlight brightness is the virtual backlight brightness, determining the target native backlight brightness as a native backlight brightness adjacent to the virtual backlight brightness;
and adjusting the initial brightness of the content to be displayed of the screen according to the target backlight brightness and the adjacent original backlight brightness to generate target display content.
9. The method of claim 8, wherein the adjusting the initial brightness of the content to be displayed on the screen according to the target backlight brightness and the adjacent native backlight brightness to generate the target display content comprises:
calculating a luminance difference between the target backlight luminance and the adjacent native backlight luminance;
and adjusting the initial brightness of the content to be displayed on the screen according to the brightness difference to generate target display content.
10. The method of claim 9, wherein adjusting the initial brightness of the content to be displayed on the screen according to the brightness difference to generate a target display content comprises:
adjusting the initial brightness of the content to be displayed to target brightness by adopting a preset color matrix according to the brightness difference, and generating target display content; the difference value between the target brightness and the initial brightness is within a preset range of the brightness difference.
11. The method according to claim 10, wherein the adjusting the initial brightness of the content to be displayed to a target brightness by using a preset color matrix according to the brightness difference to generate a target display content comprises:
acquiring initial pixels of all pixels in the content to be displayed;
adjusting the initial pixel of the pixel by adopting a preset color matrix according to the brightness difference to generate a target pixel of the pixel; the preset color matrix corresponds to the target backlight brightness and the brightness difference;
generating target display content based on a target pixel of the pixels; and the target brightness of the target display content is the sum of the initial brightness of the content to be displayed and the brightness difference.
12. The method according to claim 10, wherein if the target backlight brightness is smaller than the target native backlight brightness, the adjusting the initial brightness of the content to be displayed to the target brightness by using a preset color matrix according to the brightness difference to generate the target display content comprises:
and adjusting the initial brightness of the content to be displayed to be the target brightness by adopting a preset color matrix according to the brightness difference, and generating target display content.
13. The method according to claim 12, wherein if the target backlight luminance is greater than the target native backlight luminance, the adjusting the initial luminance of the content to be displayed to the target luminance using a preset color matrix pair according to the luminance difference to generate the target display content comprises:
and increasing the initial brightness of the content to be displayed to a target brightness by adopting a preset color matrix according to the brightness difference, and generating target display content.
14. The method of claim 1, further comprising:
generating a backlight brightness adjusting instruction aiming at a screen according to at least one of the ambient light intensity, the process type of an application program and the personal preference of a user for the backlight brightness; the backlight brightness adjusting instruction carries target backlight brightness.
15. A display luminance adjustment apparatus, comprising:
the target backlight brightness obtaining module is used for responding to a backlight brightness adjusting instruction aiming at the screen and obtaining the target backlight brightness of the screen;
the to-be-displayed content brightness adjusting module is used for adjusting the initial brightness of the to-be-displayed content of the screen according to the target backlight brightness and the target original backlight brightness corresponding to the target backlight brightness to generate target display content;
and the screen display brightness adjusting module is used for controlling the target native backlight brightness and the target display content to take effect simultaneously and adjusting the display brightness of the screen.
16. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and wherein the computer program, when executed by the processor, causes the processor to perform the steps of the display brightness adjustment method according to any one of claims 1 to 14.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the display brightness adjustment method according to any one of claims 1 to 14.
18. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the display brightness adjustment method according to any one of claims 1 to 14 when executed by a processor.
CN202111520046.2A 2021-12-13 2021-12-13 Display brightness adjusting method and device, electronic equipment and computer readable storage medium Pending CN114170976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111520046.2A CN114170976A (en) 2021-12-13 2021-12-13 Display brightness adjusting method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111520046.2A CN114170976A (en) 2021-12-13 2021-12-13 Display brightness adjusting method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114170976A true CN114170976A (en) 2022-03-11

Family

ID=80486327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111520046.2A Pending CN114170976A (en) 2021-12-13 2021-12-13 Display brightness adjusting method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114170976A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114639356A (en) * 2022-03-14 2022-06-17 Oppo广东移动通信有限公司 Display brightness adjusting method and device, electronic equipment and computer readable storage medium
WO2024001502A1 (en) * 2022-06-29 2024-01-04 京东方科技集团股份有限公司 Screen display method, screen display apparatus, electronic device, program and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944336A (en) * 2009-07-03 2011-01-12 奇美电子股份有限公司 Display device and image adjusting method
CN107134272A (en) * 2017-06-26 2017-09-05 上海斐讯数据通信技术有限公司 A kind of control method of screen display, system and computer-processing equipment
CN108494974A (en) * 2018-05-10 2018-09-04 Oppo广东移动通信有限公司 Adjusting method, mobile terminal and the storage medium of display brightness
CN110021256A (en) * 2019-04-02 2019-07-16 Oppo广东移动通信有限公司 Display brightness method of adjustment and Related product
CN110070842A (en) * 2019-04-02 2019-07-30 Oppo广东移动通信有限公司 Display brightness method of adjustment and relevant device
CN113192464A (en) * 2020-01-14 2021-07-30 华为技术有限公司 Backlight adjusting method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944336A (en) * 2009-07-03 2011-01-12 奇美电子股份有限公司 Display device and image adjusting method
CN107134272A (en) * 2017-06-26 2017-09-05 上海斐讯数据通信技术有限公司 A kind of control method of screen display, system and computer-processing equipment
CN108494974A (en) * 2018-05-10 2018-09-04 Oppo广东移动通信有限公司 Adjusting method, mobile terminal and the storage medium of display brightness
CN110021256A (en) * 2019-04-02 2019-07-16 Oppo广东移动通信有限公司 Display brightness method of adjustment and Related product
CN110070842A (en) * 2019-04-02 2019-07-30 Oppo广东移动通信有限公司 Display brightness method of adjustment and relevant device
CN113192464A (en) * 2020-01-14 2021-07-30 华为技术有限公司 Backlight adjusting method and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114639356A (en) * 2022-03-14 2022-06-17 Oppo广东移动通信有限公司 Display brightness adjusting method and device, electronic equipment and computer readable storage medium
CN114639356B (en) * 2022-03-14 2024-02-06 Oppo广东移动通信有限公司 Display brightness adjusting method, device, electronic equipment and computer readable storage medium
WO2024001502A1 (en) * 2022-06-29 2024-01-04 京东方科技集团股份有限公司 Screen display method, screen display apparatus, electronic device, program and medium

Similar Documents

Publication Publication Date Title
KR102649063B1 (en) Display apparatus and driving method thereof
US11335277B2 (en) Method, apparatus, and device for adjusting backlight brightness based on human eye characteristics
TWI651700B (en) Method and module for processing high dynamic range image, and display device using the same
US9489725B2 (en) Method and device for expanding a dynamic range of display device
KR102644977B1 (en) display system, method of power control and method of generating non-static net power control gain level for the same
CN108962126B (en) Display panel driving method and system and display device comprising same
US9214112B2 (en) Display device and display method
US9142188B2 (en) Methods and apparatus for reducing flickering and motion blur in a display device
JP4897051B2 (en) Image display device
JP4979776B2 (en) Image display device and image display method
JP6407509B2 (en) Control device and display device
US10810950B2 (en) Light source control device, display device, and image processing device
WO2017143635A1 (en) Method and system for reducing power consumption of display panel
CN101170642B (en) A dynamically video image processing method
JP5734580B2 (en) Pixel data correction method and display device for performing the same
JP5575900B2 (en) Display control method, display control device, liquid crystal display device, display control program, and computer-readable recording medium
US11398195B2 (en) Backlight brightness processing method and system, backlight brightness adjustment method, storage medium
US9183797B2 (en) Display device and control method for display device
CN114170976A (en) Display brightness adjusting method and device, electronic equipment and computer readable storage medium
CN108364271B (en) Method and device for improving image contrast
WO2019061849A1 (en) Brightness adjustment method and brightness adjustment device for display panel
CN110728944B (en) Display device and display method
CN103430230A (en) Video display device
JP2018010060A (en) Display device
US11605356B2 (en) Driving display apparatus and method acquiring current duty to drive backlight unit based on excluding text area in input image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination