Method, device, electronic equipment and readable storage medium for adjusting display brightness

By rationally determining the first maximum brightness of pixels based on the ratio of the display area to the total display area when displaying dynamic images, and adjusting the display brightness of dynamic images, the problem of low screen security is solved, and the security and power consumption of the device are optimized.

CN116805475BActive Publication Date: 2026-04-24纳欣科技有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
纳欣科技有限公司
Filing Date
2023-07-07
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

When a mobile phone screen switches from displaying a static image to a dynamic image, directly increasing the brightness of all pixels on the screen to the peak brightness range may result in lower screen security.

Method used

By receiving the display instructions for the dynamic image, the display area of ​​the dynamic image is determined, and based on the ratio of the display area to the total display area, the highest first brightness of the pixels in the display area of ​​the dynamic image is reasonably determined, and the display brightness of the dynamic image is adjusted.

Benefits of technology

It effectively ensures the screen security of the device, avoids unnecessary increases in the brightness of all pixels on the screen, reduces the increase in brightness of non-dynamic areas of the total display area, and lowers the power consumption of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116805475B_ABST
    Figure CN116805475B_ABST
Patent Text Reader

Abstract

The application provides a display brightness adjustment method and device, electronic equipment and a readable storage medium, and the method comprises the following steps: receiving a display instruction of a dynamic picture; in response to the display instruction, determining a display area of the dynamic picture; according to the proportion of the display area of the dynamic picture and the total display area, determining the first maximum brightness of the pixels in the display area of the dynamic picture when the dynamic picture is displayed; and based on the first maximum brightness, adjusting the display brightness of the dynamic picture. By adopting the embodiments of the application, the screen safety of the equipment can be effectively ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and readable storage medium for adjusting display brightness. Background Technology

[0002] Currently, mobile phones equipped with active-matrix organic light-emitting diode (AMOLED) screens can display images or pictures according to the brightness range corresponding to the high brightness level or the peak brightness level. For example, non-moving images are displayed according to the brightness range corresponding to the high brightness level, while moving images are displayed according to the brightness range corresponding to the peak brightness level. When the phone screen switches from displaying all non-moving images to displaying moving images, the brightness of all pixels on the screen is linearly adjusted from the brightness range corresponding to the high brightness level to the brightness range corresponding to the peak brightness level. For example, if the high brightness level is 500 nits, and the brightness range corresponding to the high brightness level is 0 to 500 nits, and the peak brightness level is 1000 nits, and the brightness range corresponding to the peak brightness level is 0 to 1000 nits, then when displaying moving images, the phone will double the brightness of all pixels on the screen, such as increasing the brightness of a single pixel from 400 nits to 800 nits.

[0003] However, due to the high peak brightness, increasing the brightness of all pixels on the screen to the peak brightness range may compromise screen security. Therefore, ensuring screen security when adjusting brightness is a pressing issue that needs to be addressed. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, and readable storage medium for adjusting display brightness, which can effectively ensure the screen safety of the device when adjusting the brightness.

[0005] In a first aspect, embodiments of this application provide a method for adjusting display brightness, the method comprising:

[0006] Receive commands to display dynamic images;

[0007] In response to display commands, determine the display area for dynamic images;

[0008] Based on the ratio of the display area of ​​the dynamic image to the total display area, determine the highest brightness of the pixels in the display area of ​​the dynamic image when displaying the dynamic image;

[0009] Adjust the display brightness of dynamic images based on the highest brightness level.

[0010] As can be seen, compared to directly amplifying the brightness of all pixels on the screen to the brightness range corresponding to the peak brightness, this application adjusts the brightness of each pixel in the display area of ​​the dynamic image, thus eliminating the need to boost the display area of ​​the non-dynamic image within the total display area. Furthermore, this application does not always boost the dynamic image to the brightness range corresponding to the peak brightness; instead, it rationally determines the first maximum brightness based on the ratio of the dynamic image's display area to the total display area, thereby boosting the display brightness of the dynamic image to the brightness range corresponding to the first maximum brightness. Therefore, this application can effectively ensure the screen security of the device.

[0011] In one possible implementation, determining the first highest brightness of pixels in the display area of ​​the dynamic image when displaying the dynamic image, based on the ratio of the display area of ​​the dynamic image to the total display area, includes:

[0012] If the ratio of the display area of ​​the dynamic image to the total display area is less than or equal to a preset threshold, then when displaying the dynamic image, the first highest brightness of the pixel in the display area of ​​the dynamic image is determined to be the peak brightness.

[0013] Alternatively, if the ratio of the display area of ​​the dynamic image to the total display area is greater than a preset threshold, a reference coefficient is determined; the first highest brightness of the pixels in the display area of ​​the dynamic image is determined based on the peak brightness and the reference coefficient.

[0014] As can be seen, the first maximum brightness can be reasonably determined based on the preset threshold.

[0015] In one possible implementation, the reference coefficient includes one or more of the following: the ratio of the display area of ​​the dynamic image to the total display area, a preset threshold, a preset value, and a second maximum brightness corresponding to the preset value.

[0016] Among them, the second highest brightness is the highest brightness of the pixels in the screen when the screen is working safely and the average image level of the screen is at a preset value; the preset threshold is the maximum value of the average image level of the screen when the screen is working safely and the brightness of the lit pixels in the screen is all at peak brightness.

[0017] As can be seen, a reference coefficient can be determined based on the second maximum brightness when the screen is working safely, the preset value corresponding to the second maximum brightness, the peak brightness, and the preset threshold corresponding to the peak brightness. This method ensures that the first maximum brightness determined based on the reference coefficient and the peak brightness is the highest brightness at which the screen can work safely, thereby effectively guaranteeing screen safety.

[0018] In one possible implementation, determining the first highest brightness of a pixel in the display area of ​​the dynamic image based on the peak brightness and a reference coefficient includes:

[0019] Determine the first difference between the peak brightness and the second highest brightness;

[0020] Determine the ratio of the display area of ​​the dynamic image to the total display area, and the second difference between this ratio and a preset threshold;

[0021] Determine the third difference between the preset value and the preset threshold;

[0022] Determine the first product of the first difference and the second difference, and determine the first ratio of the first product to the third difference;

[0023] The difference between the peak brightness and the first ratio is determined as the first highest brightness of the pixel in the display area of ​​the dynamic image.

[0024] In one possible implementation, adjusting the display brightness of the dynamic image based on a first maximum brightness includes:

[0025] The brightness adjustment coefficient is determined based on the highest brightness level.

[0026] The display brightness of each pixel in the display area of ​​the dynamic image is determined by multiplying the initial brightness of each pixel by the brightness adjustment coefficient.

[0027] As can be seen, the brightness adjustment coefficient can be determined based on the first maximum brightness, and the initial brightness of each pixel in the display area of ​​the dynamic image can be linearly amplified through the brightness adjustment coefficient, so that the display brightness of each pixel in the display area of ​​the amplified dynamic image is in the brightness range of 0 to the first maximum brightness.

[0028] In one possible implementation, the total display area further includes a display area for a second display screen; the method further includes:

[0029] Determine the first grayscale of each pixel in the display area of ​​the second display screen;

[0030] Compress the first gray level of each pixel to obtain the second gray level of each pixel;

[0031] Perform a uniform color transition process on the second gray level of each pixel to obtain the third gray level of each pixel.

[0032] Based on the third grayscale and the first maximum brightness of each pixel, adjust the display brightness of the display area of ​​the second display screen.

[0033] As can be seen, when processing the second display screen, the grayscale of the second display screen can be compressed and the color transition can be made uniform. Then, based on the third grayscale and the first maximum brightness of each pixel in the display area of ​​the second display screen, the display brightness of the display area of ​​the second display screen can be obtained.

[0034] In one possible implementation, the first gray level of each pixel is compressed to obtain the second gray level of each pixel, including:

[0035] Determine the ratio of the first maximum brightness to the third maximum brightness; the third maximum brightness is the highest brightness that the pixels in the display area of ​​the second display screen are adjusted to before brightness adjustment.

[0036] Determine the reference index in the correspondence between grayscale and brightness;

[0037] The grayscale compression coefficient is obtained by exponentiation of the ratio of the first highest brightness to the third highest brightness, with the negative reciprocal of the reference index as the power of the exponent.

[0038] The ratio of the first gray level of each pixel to the compression coefficient is used to determine the second gray level of each pixel.

[0039] It can be seen that the first gray level can be compressed based on the first highest brightness, the third highest brightness, and the reference index in the correspondence between gray level and brightness.

[0040] In one possible implementation, the method further includes:

[0041] Detect the content displayed on the screen;

[0042] If the screen displays content from a dynamic image to a static image, the brightness of the static image will be reduced.

[0043] As can be seen, when switching from a dynamic screen to a static screen, such as pausing or loading the dynamic screen, the brightness of the static screen can be reduced, thereby effectively reducing the device's power consumption.

[0044] In one possible implementation, the dynamic image is the image corresponding to an HDR video, and the display area of ​​the second display image displays an SDR image.

[0045] In one possible implementation, the method further includes:

[0046] The display area of ​​the second display screen is darkened to reduce the display brightness of the second display screen area.

[0047] As can be seen, when the second display screen is displayed, the display area of ​​the second display screen can be darkened separately, thereby reducing the power consumption of the device.

[0048] Secondly, embodiments of this application provide a brightness adjustment device, which includes:

[0049] The receiving unit is used to receive display instructions for dynamic images;

[0050] The processing unit is used to determine the display area of ​​the dynamic image in response to the display command;

[0051] The processing unit is also used to determine the first highest brightness of a pixel in the display area of ​​the dynamic image when displaying the dynamic image, based on the ratio of the display area of ​​the dynamic image to the total display area.

[0052] The processing unit is also used to adjust the display brightness of the dynamic image based on the first maximum brightness.

[0053] Thirdly, embodiments of this application provide an electronic device, which includes: a memory, a communication interface, and a processor, wherein the memory, the communication interface, and the processor are interconnected; the memory stores a computer program, and the processor calls the computer program stored in the memory, causing the electronic device to execute as described in the first aspect and any of its possible implementations.

[0054] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by an electronic device, causes the electronic device to perform the first aspect and any of its possible implementations. Attached Figure Description

[0055] Figure 1 This is a schematic diagram of a brightness range provided in an embodiment of this application;

[0056] Figure 2 This is a flowchart illustrating a method for adjusting display brightness provided in an embodiment of this application;

[0057] Figure 3A This is a schematic diagram of a full-screen playback mode provided in an embodiment of this application;

[0058] Figure 3B This is a schematic diagram of a small window playback mode provided in an embodiment of this application;

[0059] Figure 4 This is a schematic diagram of a preset correspondence provided in an embodiment of this application;

[0060] Figure 5 This is a schematic diagram of another brightness range provided in an embodiment of this application;

[0061] Figure 6 This is a schematic flowchart of another method for adjusting display brightness provided in an embodiment of this application;

[0062] Figure 7 This is a schematic diagram of the structure of a display brightness adjustment device provided in an embodiment of this application;

[0063] Figure 8This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0064] The embodiments of this application will now be described with reference to the accompanying drawings.

[0065] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0066] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0067] To facilitate understanding of the solutions provided in the embodiments of this application, some technical terms involved in this application will be introduced below:

[0068] I. High brightness and peak brightness

[0069] High brightness refers to the maximum brightness that the corresponding pixels in SDR content can achieve when a user views SDR content on an electronic device, through manual adjustment or ambient light adjustment. Peak brightness refers to the maximum brightness that the corresponding pixels in HDR content can achieve when a user views HDR content. Peak brightness is usually much greater than high brightness, therefore HDR content has a more vivid contrast than SDR content, providing users with a better visual experience.

[0070] Figure 1 This is a schematic diagram of a brightness range provided in an embodiment of this application, such as... Figure 1As shown, the SDR brightness range refers to the range of brightness of each pixel corresponding to SDR content when displaying SDR content. The minimum value of the SDR brightness range is 0 nits, and the maximum value is the high brightness. The HDR brightness range refers to the range of brightness of each pixel corresponding to HDR content when displaying HDR content. The HDR brightness range includes the HDR brightness range, and the minimum value of the HDR brightness range is 0 nits, and the maximum value is the peak brightness. When the screen of an electronic device switches from displaying SDR content to displaying HDR content, the brightness of each pixel on the screen can be linearly amplified from the SDR brightness range to the HDR brightness range. For example, when the peak brightness is N times the high brightness, and the HDR brightness range is also N times the SDR brightness range, the brightness of each pixel on the screen can also be linearly amplified by N times.

[0071] II. Average Picture Level (APL)

[0072] APL (Average Brightness Per Pixel) refers to the average brightness of all pixels on a screen. For black and white images, the pixels on the screen are either white or black; white pixels have the highest brightness, while black pixels have zero brightness. Therefore, for black and white images, APL can be considered the proportion of lit pixels to the total number of pixels on the screen, where lit pixels are white pixels. For example, when the screen displays pure black, the number of lit pixels is 0, so the APL is 0%; when the screen displays pure white, the number of lit pixels equals the total number of pixels, so the APL is 100%.

[0073] However, if the image contains more than just black and white pixels, the brightness of pixels of other colors falls between the brightness of white pixels and the brightness of black pixels; APL is the average brightness of pixels of various colors on the screen. For example, each pixel on the screen consists of three sub-pixels: RGB. For a red pixel, the R sub-pixel has the highest brightness, while the GB sub-pixels have zero brightness. Therefore, the brightness of the red pixel is 1 / 3 of the brightness of the white pixel; when the screen displays pure red, the APL value is 33%.

[0074] III. Gray Scale

[0075] Grayscale refers to the color levels of a pixel, and there is a corresponding relationship between the grayscale of a pixel and its brightness. For example, the higher the grayscale of a pixel, the lighter its color and the higher its brightness; for example, white pixels typically have the highest brightness. Conversely, the lower the grayscale of a pixel, the darker its color and the lower its brightness; for example, black pixels typically have the lowest brightness. For instance, the relationship between the grayscale x and brightness y of a pixel follows a Gamma2.2 curve, which can be expressed as the following formula:

[0076] y = x 2.2 (Formula 1)

[0077] Typically, the brightness of an image's pixels can be changed by adjusting their grayscale levels; for example, adjusting the grayscale level (x) of a pixel changes its brightness (y). The contrast of an image can be altered by adjusting the brightness of its pixels, such as linearly scaling the brightness of each pixel from the SDR brightness range to the HDR brightness range.

[0078] To effectively ensure screen security when adjusting brightness, this application proposes a method for adjusting display brightness. This method can be applied to electronic devices and generally includes: receiving a display command for a dynamic image; determining the display area of ​​the dynamic image in response to the display command; determining a first maximum brightness of pixels in the display area of ​​the dynamic image when displaying the dynamic image, based on the ratio of the display area of ​​the dynamic image to the total display area; and adjusting the display brightness of the dynamic image based on the first maximum brightness. Based on the method proposed in this application, the first maximum brightness can be reasonably determined based on the ratio of the display area of ​​the dynamic image to the total display area, thereby adjusting the brightness of each pixel in the display area of ​​the dynamic image based on the first maximum brightness. Compared to directly amplifying the brightness of all pixels on the screen to the brightness range corresponding to the peak brightness, this method effectively ensures the screen security of the device.

[0079] The electronic devices described above can be terminal devices, such as mobile phones, tablets, computers with wireless transceiver capabilities, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminal devices in industrial control, wireless terminal devices in autonomous driving, wireless terminal devices in remote medical care, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, or wireless terminal devices in smart homes, etc. This application does not limit the type of electronic device.

[0080] The brightness adjustment method provided in the embodiments of this application is further described in detail below:

[0081] Please see Figure 2 , Figure 2 This is a schematic flowchart of a display brightness adjustment method provided in an embodiment of this application. Figure 2 The subject of the method shown can be an electronic device, or the subject can be a chip in the electronic device. Figure 2 The method will be explained using an electronic device as the executing subject. The executing subjects of the image processing methods shown in other figures of this application are similar and will not be repeated hereafter. Figure 2 The method for adjusting display brightness shown includes steps 201 to 204. Wherein:

[0082] 201. Electronic devices receive instructions to display dynamic images.

[0083] Optionally, the animated image can be a frame corresponding to a high dynamic range (HDR) video, an HDR animated image, or a non-HDR format animated image. When the animated image is a frame corresponding to an HDR video, its display area is the area within the preset playback frame of the HDR video. When the animated image is a frame corresponding to an HDR animated image, its display area is the area within the preset playback frame of the HDR animated image.

[0084] Optionally, the display area of ​​the dynamic image can be a valid area excluding the invalid areas around the dynamic image. For example, the invalid area can be a black border area; typically, HDR videos have an aspect ratio of 16:9, while the aspect ratio of the screen is usually 20:9. Therefore, when playing an HDR video in full screen, a portion of the left and right sides of the HDR video is displayed as a black background, which is the black border area.

[0085] Optionally, the HDR video or HDR animation can be stored locally. For example, a user can first download or record an HDR video or HDR animation on an electronic device and store it in local storage space, and then select the HDR video or HDR animation to be played from the locally stored HDR video or HDR animation so that the player in the electronic device can play the selected HDR video or HDR animation.

[0086] Optionally, the HDR video or HDR animation can be sent to the electronic device from another device. For example, a user can select an HDR video to watch online on a video website, and then the video website's server sends the selected HDR video to the electronic device so that the electronic device can play the selected HDR video online. Alternatively, the current user can receive an HDR animation sent by another user through another device, and then the electronic device can play the received HDR animation.

[0087] 202. The electronic device responds to the display command and determines the display area of ​​the dynamic image.

[0088] The following example uses the dynamic scene corresponding to HDR video to illustrate the display area of ​​dynamic scenes:

[0089] Optionally, the electronic device can determine the display area of ​​the HDR video (i.e., the display area of ​​the dynamic picture) based on the area of ​​the preset playback frame of the HDR video in different playback modes.

[0090] The playback mode includes, but is not limited to, one of the following: full-screen playback mode, windowed playback mode, etc. This playback mode can be user-defined or a default setting. For example, if a user selects to play an HDR video and sets it to full-screen playback, the electronic device will play the HDR video in full-screen mode. Similarly, if the default playback mode for HDR videos is windowed playback mode, the electronic device will play the HDR video in windowed playback mode after the user selects it.

[0091] by Figure 3A For example, Figure 3A This is a schematic diagram illustrating a full-screen playback mode provided in an embodiment of this application. Typically, the aspect ratio of a video is 16:9, while the aspect ratio of a screen is typically 20:9. Therefore, in full-screen playback... Figure 3A When displaying an HDR video, region 302 is used as the preset playback frame for the HDR video. Region 302 has an aspect ratio of 16:9. Regions 301 and 302 are display areas for non-dynamic scenes, which are invalid in this case. To ensure a smooth viewing experience during full-screen playback, the invalid area can be displayed as black. In this situation, the electronic device can determine that the display area for the HDR video is also region 302.

[0092] by Figure 3B For example, Figure 3B This is a schematic diagram of a small window playback mode provided in an embodiment of this application. For example... Figure 3B As shown, when an electronic device plays an HDR video online in a small window mode, it can use area 304 as the preset playback frame for the HDR video. Furthermore, while playing the HDR video, the electronic device can also display user interface (UI) content in area 305. This UI content may include the video's progress bar, playback count, actor introductions, and episode selections. In this case, the electronic device can determine that the display area for the HDR video is also area 304.

[0093] It should be noted that when electronic devices use full-screen playback mode or window-to-window playback mode to play dynamic images, the display area of ​​the dynamic images is variable.

[0094] 203. The electronic device determines the highest brightness of the pixels in the display area of ​​the dynamic image when displaying the dynamic image, based on the ratio of the display area of ​​the dynamic image to the total display area.

[0095] The total display area can refer to the entire screen area of ​​an electronic device. The ratio of the display area of ​​the dynamic image to the total display area refers to the ratio of the area of ​​the dynamic image's display area to the area of ​​the total display area.

[0096] For example, in Figure 3A In this context, the entire screen display area includes areas 301, 302, and 303. Furthermore, the ratio of the dynamic image display area to the total display area is: area of ​​area 302 / (area of ​​area 301 + area of ​​area 302 + area of ​​area 303). Figure 3B In this context, the entire screen display area includes area 304 and area 305. Furthermore, the ratio of the display area of ​​the dynamic image to the total display area is the area of ​​area 304 divided by (the area of ​​area 304 + the area of ​​area 305).

[0097] In one possible implementation, the electronic device determines the first highest brightness of pixels in the display area of ​​the dynamic image when displaying the dynamic image, based on the ratio of the display area of ​​the dynamic image to the total display area. Specifically, this includes: if the ratio of the display area of ​​the dynamic image to the total display area is less than or equal to a preset threshold, then determining the first highest brightness of pixels in the display area of ​​the dynamic image as the peak brightness when displaying the dynamic image; or, if the ratio of the display area of ​​the dynamic image to the total display area is greater than the preset threshold, then determining a reference coefficient; and determining the first highest brightness of pixels in the display area of ​​the dynamic image based on the peak brightness and the reference coefficient.

[0098] Optionally, the reference coefficient may include one or more of the following: the ratio of the display area of ​​the dynamic image to the total display area, a preset threshold, a preset value, and the second maximum brightness corresponding to the preset value.

[0099] The electronic device stores the aforementioned reference coefficients. The average image level is the APL described above, and the second maximum brightness is the highest brightness of the pixels on the screen when the screen is operating safely and the average image level of the screen is at a preset value; the preset threshold is the maximum value of the average image level of the screen when the screen is operating safely and the brightness of all lit pixels on the screen is at its peak brightness.

[0100] Specifically, screen security operation refers to the screen's security meeting preset security conditions. For example, screen security meeting preset security conditions could mean that the screen's burn-in risk is less than a first threshold, and the screen's lifespan is greater than a second threshold.

[0101] For example, provided that the screen burn-in risk is less than a first threshold and the screen's lifespan is greater than a second threshold, the highest brightness the screen can achieve when the average image level is at a preset threshold is the peak brightness, and the highest brightness the screen can achieve when the average image level is at a preset value is the second highest brightness. For example, this preset value can be 1.

[0102] The first maximum brightness determined based on peak brightness and reference coefficient is equivalent to the highest brightness that the screen can achieve when the screen burn-in risk is less than the first threshold and the screen lifespan is greater than the second threshold, and the average image level is the ratio of the display area of ​​the dynamic image to the total display area.

[0103] Specifically, according to the above description, when the average image level of the screen is less than or equal to a preset threshold, increasing the screen's maximum brightness to the peak brightness ensures safe screen operation. Therefore, when the ratio of the display area of ​​the dynamic image to the total display area is less than or equal to the preset threshold, the first maximum brightness is the peak brightness. When the average image level of the screen is greater than the preset threshold, increasing the screen's maximum brightness to the peak brightness cannot ensure safe screen operation. In this case, to ensure safe screen operation, the higher the average image level of the screen, the lower the maximum brightness should be. Therefore, when the ratio of the display area of ​​the dynamic image to the total display area is greater than the preset threshold, the first maximum brightness can be determined based on the peak brightness and a reference coefficient, and the first maximum brightness determined based on the peak brightness and the reference coefficient is less than the peak brightness. It can be seen that this application directly compares the ratio of the display area of ​​the dynamic image to the total display area with a preset threshold (the preset threshold is an average image level) to obtain the first maximum brightness. Compared to the traditional method of determining the average image level of the dynamic image through its grayscale, this application eliminates the need to calculate the grayscale of the dynamic image, effectively reducing the processing load of the device and minimizing the impact on the performance of electronic devices. Furthermore, the first maximum brightness determined based on the above description can effectively ensure the safe operation of the screen and improve screen safety.

[0104] In one possible implementation, the electronic device determines the first maximum brightness of a pixel in the display area of ​​a dynamic image based on a peak brightness and a reference coefficient, including: determining a first difference between the peak brightness and a second maximum brightness; determining a second difference between the ratio of the display area of ​​the dynamic image to the total display area and a preset threshold; determining a third difference between a preset value and a preset threshold; determining a first product of the first difference and the second difference; determining a ratio of the first product to the third difference; and determining the difference between the peak brightness and the ratio of the first product to the third difference as the first maximum brightness of the pixel in the display area of ​​the dynamic image.

[0105] The following example illustrates the method for determining the first maximum brightness based on a preset threshold, as described above:

[0106] For example, when the ratio of the display area of ​​the dynamic image to the total display area is less than or equal to a preset threshold, the first maximum brightness V can be determined according to the following formula:

[0107] V = V peak (Formula 2)

[0108] Among them, V peak The peak brightness is defined by Formula 2, which states that when the ratio of the display area of ​​the dynamic image to the total display area is less than or equal to a preset threshold, there is no safety hazard in increasing the display brightness of the dynamic image to the peak brightness. Therefore, the first highest brightness is the peak brightness.

[0109] When the ratio of the display area of ​​the dynamic image to the total display area is greater than a preset threshold, the first maximum brightness V can be determined according to the following formula:

[0110] V = V peak -(V peak -V max )*(A now -A save ) / (1-A save (Formula 3)

[0111] Among them, V peak For peak brightness, A now A represents the ratio of the display area of ​​the dynamic image to the total display area. save V is a preset threshold, 1 is a preset value. max The second highest brightness, V peak Greater than V max For example, Figure 5 This is a schematic diagram illustrating another brightness range provided in an embodiment of this application. Considering screen safety, when the average image level (APL) is 1, the highest brightness the screen can achieve is V. max In this case, the screen brightness range is 0 nits-V. max When the average image level APL is A save At that time, the highest brightness the screen can achieve is V. peak In this case, the screen brightness range is 0 nits-V. peak .

[0112] V peak -V max As the first difference, A now -A save The second difference, 1-A save The third difference, (V) peak -V max )*(A now -A save The result of ) is the first product result.

[0113] Formula 3 is a linear representation calculated from the average image level and maximum brightness of two sets of corresponding data, taking screen safety into account. The average image level and maximum brightness of these two sets are respectively (A... save V peak ) and (1, V max Therefore, based on Formula 3, we can obtain the result when the average image level is A. now At that time, the corresponding first highest brightness V. As can be seen from Formula 3, the first product result is a positive number, and the third difference is a positive number. Therefore, the first highest brightness is a value less than the peak brightness.

[0114] It should be noted that Formula 3 above is merely an example. When there are more than two sets of corresponding average image levels and maximum brightness, a non-linear representation of the average image level and maximum brightness can be obtained based on these multiple sets of average image levels and maximum brightness, and the first maximum brightness can be obtained based on this non-linear representation. In other words, when the ratio of the display area of ​​the dynamic image to the total display area is greater than a preset threshold, the first maximum brightness can also be determined according to Formula 3 above, or other formulas different from Formula 3. Furthermore, since the maximum brightness is negatively correlated with the average image level when the average image level is greater than the preset threshold, the first maximum brightness determined based on different formulas is always a value less than the peak brightness.

[0115] It is understandable that the method described above for determining the first maximum brightness based on a preset threshold can also be described as... Figure 4 The method for determining the highest brightness level is based on a correspondence. For example... Figure 4 As shown, the electronic device first uses the ratio of the display area of ​​the dynamic image to the total display area as the average image level value. When the average image level value is less than or equal to a preset threshold, the first maximum brightness V is determined based on the above formula 2, which is equivalent to determining the first maximum brightness V based on the correspondence relationship 401. When the average image level value is greater than the preset threshold, the first maximum brightness V is determined based on the above formula 3, which is equivalent to determining the first maximum brightness V based on the correspondence relationship 402.

[0116] Alternatively, in another possible implementation, the electronic device stores Figure 4 The correspondence shown includes the average image level and maximum brightness of each group. The electronic device can first find the target average image level that has the same ratio between the display area of ​​the dynamic image and the total display area, and then match the maximum brightness corresponding to the target average image level according to the stored correspondence, and take the matched maximum brightness as the first maximum brightness.

[0117] 204. Electronic devices adjust the display brightness of dynamic images based on the highest brightness level.

[0118] In one possible implementation, the electronic device adjusts the display brightness of the dynamic image based on a first maximum brightness, specifically including: determining a brightness adjustment coefficient based on the first maximum brightness; and determining the display brightness of each pixel in the display area of ​​the dynamic image as the product of the initial brightness of each pixel and the brightness adjustment coefficient.

[0119] For example, the electronic device can determine the brightness adjustment parameters based on the first highest brightness using the following formula four:

[0120] a = V / V 高亮 (Formula 4)

[0121] Where V refers to the highest brightness; V 高亮 This refers to the highest adjustable brightness of pixels on the screen before brightness adjustment, also known as high brightness; electronic devices can display V... 高亮 The screen specifications are stored locally; 'a' represents the brightness adjustment parameter.

[0122] Furthermore, the electronic device determines the display brightness of each pixel in the display area of ​​the dynamic image as the product of the initial brightness of each pixel and the brightness adjustment coefficient. For example, if the initial brightness of a pixel in the dynamic image is 300 nits and the brightness adjustment parameter is 1.8, then the brightness of that pixel can be linearly amplified to 300 * 1.8 = 540 nits. This method ensures that, after adjustment, the display brightness of each pixel in the display area of ​​the dynamic image falls within the brightness range corresponding to the first maximum brightness (e.g., from 0 nits to the first maximum brightness).

[0123] Furthermore, in one possible implementation, the electronic device can also detect the content displayed on the screen while displaying a dynamic image; if the content displayed on the screen switches from a dynamic image to a static image, the brightness of the static image is reduced.

[0124] The static image is a single frame within the dynamic image. Therefore, the display area of ​​the static image and the display area of ​​the dynamic image are the same. Optionally, reducing the display brightness of the static image means reducing the display brightness of each pixel in the display area of ​​the static image to the brightness range corresponding to the high brightness level.

[0125] Optionally, the electronic device may switch the displayed content on the screen from a dynamic image to a static image after receiving a user's operation command; or, the electronic device may switch the displayed content on the screen from a dynamic image to a static image after a delay in loading the next frame of the dynamic image. Wherein, if the dynamic image is the image corresponding to an HDR video, the user's operation command can be a play / pause command for the HDR video.

[0126] Optionally, the electronic device can determine the duration of displaying the static image after switching from a dynamic image to a static image; when the duration exceeds a preset time threshold, it triggers a reduction in the display brightness of the static image.

[0127] Optionally, if the electronic device detects that the display area of ​​the dynamic image needs to be adjusted during the playback of the dynamic image, it can repeat steps 202 to 204 based on the adjusted display area of ​​the dynamic image to adjust the display brightness of the dynamic image again. For example, the electronic device can trigger an adjustment of the display area of ​​the HDR video and then adjust the display brightness of the HDR video again by receiving a playback mode switching request for the HDR video. For instance, if the playback mode switching request received by the electronic device indicates a switch from full-screen mode to window mode, the electronic device determines the ratio of the display area of ​​the HDR video to the total display area after switching to window mode; determines a first maximum brightness based on the newly determined ratio of the display area of ​​the HDR video to the total display area; and adjusts the display brightness of each pixel corresponding to the HDR video based on the newly determined first maximum brightness. Alternatively, the electronic device can detect a user's zoom-in or zoom-out operation on the HDR video, triggering an adjustment of the display area of ​​the HDR video and then adjusting the display brightness of the HDR video again. For example, if an electronic device detects a user's zoom-in operation on an HDR video, the electronic device determines the ratio of the HDR video's display area to the total display area after zooming in; determines a first maximum brightness based on the redefined ratio of the HDR video's display area to the total display area; and adjusts the display brightness of each pixel corresponding to the HDR video based on the redefined first maximum brightness.

[0128] Implementation Figure 2 The described embodiments, compared to directly amplifying the brightness of all pixels on the screen to the brightness range corresponding to the peak brightness, have two advantages. First, this application adjusts the brightness of each pixel in the display area of ​​the dynamic image, thus eliminating the need to boost the display area of ​​the non-dynamic image within the total display area. Second, this application does not always boost the dynamic image to the brightness range corresponding to the peak brightness; instead, it reasonably determines the first maximum brightness based on the ratio of the display area of ​​the dynamic image to the total display area, thereby boosting the display brightness of the dynamic image to the brightness range corresponding to the first maximum brightness. Therefore, this application can effectively ensure the screen security of the device.

[0129] The above embodiments describe methods for adjusting the display brightness of dynamic images; however, when an electronic device displays a second display image while displaying a dynamic image, it can be done according to the following... Figure 6 The corresponding embodiment adjusts the display brightness of the second display screen.

[0130] Please see Figure 6 , Figure 6 This is a flowchart illustrating another method for adjusting display brightness provided in an embodiment of this application. Figure 6 The method for adjusting display brightness shown includes steps 601 to 608. Wherein:

[0131] 601. Electronic devices receive instructions to display dynamic images.

[0132] This display instruction requests the display of a dynamic image, and while displaying the dynamic image, displays a second display image, which is different from the dynamic image. For example, the second display image is a standard dynamic range (SDR) image, such as when playing HDR video in windowed mode. Figure 3B If the content in area 305 (including the video progress bar, video playback count, actor introduction, and episode selection) is an SDR image, then the content in area 305 is the second display screen.

[0133] 602. The electronic device responds to the display command and determines the display area of ​​the dynamic image.

[0134] 603. The electronic device determines the highest brightness of the pixels in the display area of ​​the dynamic image when displaying the dynamic image, based on the ratio of the display area of ​​the dynamic image to the total display area.

[0135] 604. Electronic devices adjust the display brightness of dynamic images based on the highest brightness level.

[0136] The specific implementation methods of steps 601 to 604 can refer to the specific implementation methods of steps 201 to 204 above, and will not be repeated here.

[0137] 605. The electronic device determines the first gray level of each pixel in the display area of ​​the second display screen.

[0138] In this context, the first grayscale of each pixel in the display area of ​​the second display screen refers to the original grayscale of each pixel in the display area of ​​the second display screen before brightness adjustment. For example, the first grayscale of each pixel includes the original grayscale of its three sub-pixels.

[0139] 606. The electronic device compresses the first gray level of each pixel to obtain the second gray level of each pixel.

[0140] In one possible implementation, the electronic device compresses the first gray level of each pixel to obtain the second gray level of each pixel. Specifically, this includes: determining the ratio of a first maximum brightness to a third maximum brightness; the third maximum brightness is the highest brightness that a pixel in the display area of ​​the second display screen can be adjusted to before brightness adjustment; determining a reference index in the correspondence between gray levels and brightness; exponentiating the ratio of the first maximum brightness to the third maximum brightness using the negative reciprocal of the reference index as the power of the exponent to obtain a gray level compression coefficient; and determining the ratio of the first gray level of each pixel to the compression coefficient as the second gray level of each pixel.

[0141] The third maximum brightness refers to the highest adjustable brightness of pixels in the display area of ​​the second display screen before brightness adjustment. This third maximum brightness can also be called high brightness. The ratio of the first maximum brightness to the third maximum brightness is... Figure 2 The brightness adjustment parameters described in the embodiments; the correspondence between grayscale and brightness can be referred to Formula 1 above, with the reference index being 2.2 in Formula 1. For example, taking a pixel in the display area of ​​the second display screen as an example, the second grayscale of this pixel can be obtained by referring to Formula 5 below:

[0142]

[0143] Where x1 is the first gray level of the pixel, x2 is the second gray level of the pixel; a is the ratio of the first highest brightness to the third highest brightness; in this formula is the grayscale compression coefficient.

[0144] Optionally, each pixel in the display area of ​​the second display screen includes three sub-pixels: RGB. Therefore, when compressing the first grayscale of each pixel to obtain the second grayscale, the grayscale of all three RGB sub-pixels can be compressed. The second grayscale of each pixel includes the compressed grayscale of its three RGB sub-pixels. The compression process for the sub-pixel grayscale can be similar to that described in Formula 5. For example, for the sub-pixel R, the grayscale compression can be performed using Formula 6 as follows:

[0145]

[0146] Where, x R1 Let x be the first gray level of the sub-pixel R. R2 This represents the second gray level of the sub-pixel R.

[0147] 607. The electronic device performs a uniform color transition process on the second gray level of each pixel to obtain the third gray level of each pixel.

[0148] In some cases, compressing the first grayscale of each pixel in the display area of ​​the second display screen to obtain the second grayscale can cause the second display screen to lose some color transition details during display. For example, gradient colors may not be fully displayed. Therefore, electronic devices can perform color transition processing on the second grayscale of each pixel to ensure a uniform color transition after processing.

[0149] Optionally, the color uniformity transition processing can be triggered by receiving a color uniformity transition request, which can be generated by the electronic device when it receives a display instruction. For example, when the electronic device receives a display instruction, it can display a prompt message indicating whether the second display screen needs a color uniformity transition; the electronic device generates a color uniformity transition request based on the user's feedback to this prompt message.

[0150] Optionally, electronic devices have the color transition uniformity function enabled by default. When an electronic device determines that it needs to display a dynamic image and a second display image simultaneously, it can automatically generate a color transition uniformity request for the second display image, thereby triggering the color transition uniformity processing.

[0151] Specifically, noise can be added to the second grayscale of each pixel to obtain the third grayscale of each pixel. Before and after noise processing, the error in grayscale is less than a preset error threshold. For example, this noise addition processing includes, but is not limited to, using a dithering algorithm, such as rounding up and down the second grayscale of adjacent pixels respectively.

[0152] 608. The electronic device adjusts the display brightness of the display area of ​​the second display screen based on the third gray level and the first maximum brightness of each pixel.

[0153] Specifically, the electronic device can first obtain the brightness corresponding to the third gray level of each pixel based on the third gray level and reference index of each pixel in the display area of ​​the second display screen; then, it can amplify the brightness corresponding to the third gray level of each pixel based on the first maximum brightness to obtain the adjusted display brightness of each pixel. The adjusted display brightness of each pixel is still within the brightness range corresponding to the third maximum brightness (high brightness).

[0154] For example, taking a pixel in the display area of ​​the second display screen as an example, the electronic device can obtain the brightness of the pixel after grayscale compression, color uniform transition processing, and brightness adjustment based on the following formula seven:

[0155]

[0156] As shown in Formula 7, after grayscale compression, uniform color transition processing, and brightness adjustment for a single pixel, the brightness of that pixel will... Before grayscale compression and brightness adjustment, the original brightness of a pixel (i.e., the brightness corresponding to the first grayscale level) satisfies Formula 1, that is... Therefore, after grayscale compression and brightness adjustment, this pixel falls within the brightness range corresponding to the third highest brightness (high brightness). In other words, the display brightness of the dynamic image is increased to the brightness range corresponding to the first highest brightness, but the display brightness of the second image is not increased. This avoids the glare problem caused by the second image's brightness also increasing to the brightness range corresponding to the first highest brightness.

[0157] In one possible implementation, the electronic device may also darken the display area of ​​the second display screen to reduce the display brightness of the display area of ​​the second display screen.

[0158] For example, increasing the display brightness of a dynamic image to the brightness range corresponding to the first maximum brightness will increase the device's power consumption. Therefore, in order to reduce the device's power consumption, the electronic device can also darken the display area of ​​the second display image separately on the basis of the above processing, thereby reducing the device's power consumption.

[0159] Optionally, if the electronic device detects that the display area of ​​the dynamic image needs to be adjusted during playback, it can repeat steps 602 to 604 based on the adjusted display area to further adjust the brightness of the dynamic image. For example, the electronic device can trigger an adjustment to the display area of ​​the HDR video and then adjust its brightness upon receiving a request to switch the playback mode of the HDR video. Alternatively, the electronic device can detect a user's zoom-in or zoom-out operation on the HDR video, triggering an adjustment to the display area and then adjusting its brightness.

[0160] Optionally, if it is determined that the second display screen still needs to be displayed after adjusting the display area of ​​the dynamic image, the electronic device needs to redetermine the ratio of the first maximum brightness to the third maximum brightness according to the re-executed step 604, and execute steps 606 to 608 again according to the redetermined ratio, so that the display brightness of each pixel in the display area of ​​the second display screen is still within the brightness range corresponding to the third maximum brightness (high brightness) after adjustment.

[0161] It should be noted that if it is determined that after adjusting the display area of ​​the dynamic image, there is no need to display a second display screen, the electronic device does not need to execute steps 605 to 608 again. For example, if the electronic device receives a playback mode switching request instruction: HDR video playback switches from window mode to full-screen mode, then there is no need to display an SDR type image.

[0162] It should be noted that step 607 above is an optional step. The electronic device may also choose not to perform uniform color transition processing on the second grayscale, that is, adjust the display brightness of the display area of ​​the second display screen based on the second grayscale of each pixel and the first maximum brightness.

[0163] based on Figure 6 In the described embodiment, when the electronic device simultaneously displays a dynamic image and a second display image, the display brightness of the dynamic image can be amplified to the brightness range corresponding to the first highest brightness; at the same time, the display brightness of the second display image is maintained within the brightness range corresponding to high brightness. This method can effectively reduce device power consumption and avoid the glare problem caused by increasing the display brightness of the second display image to the brightness range corresponding to the first highest brightness.

[0164] The brightness adjustment method proposed in this application is illustrated below with examples:

[0165] For example, after a user selects an HDR video to play from the HDR videos stored locally on their electronic device, they can use the device's built-in video player to play the selected HDR video. When the video player defaults to window-to-window playback mode, the electronic device can first determine the area ratio of the HDR video's display area to the total screen display area in window-to-window mode. Then, the electronic device determines the screen's first maximum brightness based on this area ratio and a preset threshold, and determines brightness adjustment parameters based on the first maximum brightness. Next, the electronic device determines the first grayscale of each pixel in the SDR image's display area in window-to-window mode, and obtains the second grayscale of each pixel based on the correspondence between grayscale and brightness, the first grayscale of each pixel, and the brightness adjustment parameters. Then, when the electronic device displays both the HDR video and the SDR image on the screen simultaneously, it can amplify the brightness of each pixel in the HDR video's display area to the brightness range corresponding to the first maximum brightness, based on the brightness adjustment parameters. Based on the correspondence between grayscale and brightness (such as a reference index) and the brightness adjustment parameters, it processes the second grayscale of each pixel in the SDR image's display area, maintaining the brightness of each pixel in the SDR image's display area within the brightness range corresponding to high brightness.

[0166] When the video player defaults to full-screen playback mode to play the selected HDR video, the electronic device can first determine the area ratio of the HDR video display area to the total display area of ​​the screen in full-screen playback mode. Then, the electronic device determines the first maximum brightness of the screen based on the area ratio and a preset threshold, and determines the brightness adjustment parameters based on the first maximum brightness. Since the screen displays dynamic images and black border areas in full-screen playback mode, the screen does not need to display SDR images. Therefore, the electronic device can increase the brightness of each pixel in the display area of ​​the HDR video to the brightness range corresponding to the first maximum brightness based on the brightness adjustment parameters.

[0167] Similarly, when a user accesses a video website to watch HDR videos via an electronic device, if the video website uses a windowed mode to play the selected HDR video, the brightness adjustment can be performed using the same method as described above for windowed playback. If the video website uses a full-screen mode to play the selected HDR video, the brightness adjustment can be performed using the same method as described above for full-screen playback.

[0168] Please see Figure 7 , Figure 7 This is a schematic diagram of a display brightness adjustment device provided in an embodiment of this application. The display brightness adjustment device includes a receiving unit 701 and a processing unit 702, wherein:

[0169] The receiving unit 701 is used to receive display instructions for dynamic images;

[0170] The processing unit 702 is used to determine the display area of ​​the dynamic image in response to the display command;

[0171] The processing unit 702 is also configured to determine the first highest brightness of a pixel in the display area of ​​the dynamic image when displaying the dynamic image, based on the ratio of the display area of ​​the dynamic image to the total display area.

[0172] The processing unit 702 is also used to adjust the display brightness of the dynamic image based on the first maximum brightness.

[0173] In one possible implementation, when the processing unit 702 determines the first highest brightness of a pixel in the display area of ​​the dynamic image based on the ratio of the display area of ​​the dynamic image to the total display area, it specifically performs the following:

[0174] If the ratio of the display area of ​​the dynamic image to the total display area is less than or equal to a preset threshold, then when displaying the dynamic image, the first highest brightness of the pixel in the display area of ​​the dynamic image is determined to be the peak brightness.

[0175] Alternatively, if the ratio of the display area of ​​the dynamic image to the total display area is greater than a preset threshold, a reference coefficient is determined; the first highest brightness of the pixels in the display area of ​​the dynamic image is determined based on the peak brightness and the reference coefficient.

[0176] In one possible implementation, the reference coefficient includes one or more of the following: the ratio of the display area of ​​the dynamic image to the total display area, a preset threshold, a preset value, and a second maximum brightness corresponding to the preset value.

[0177] Among them, the second highest brightness is the highest brightness of the pixels in the screen when the screen is working safely and the average image level of the screen is at a preset value; the preset threshold is the maximum value of the average image level of the screen when the screen is working safely and the brightness of the lit pixels in the screen is all at the peak brightness.

[0178] In one possible implementation, when the processing unit 702 determines the first highest brightness of a pixel in the display area of ​​the dynamic image based on the peak brightness and a reference coefficient, it specifically performs the following:

[0179] Determine the first difference between the peak brightness and the second highest brightness;

[0180] Determine the ratio of the display area of ​​the dynamic image to the total display area, and the second difference between this ratio and a preset threshold;

[0181] Determine the third difference between the preset value and the preset threshold;

[0182] Determine the first product of the first difference and the second difference, and determine the first ratio of the first product to the third difference;

[0183] The difference between the peak brightness and the first ratio is determined as the first highest brightness of the pixel in the display area of ​​the dynamic image.

[0184] In one possible implementation, when adjusting the display brightness of the dynamic image based on a first maximum brightness, the processing unit 702 is specifically used for:

[0185] The brightness adjustment coefficient is determined based on the highest brightness level.

[0186] The display brightness of each pixel in the display area of ​​the dynamic image is determined by multiplying the initial brightness of each pixel by the brightness adjustment coefficient.

[0187] In one possible implementation, the total display area further includes a display area for the second display screen; the processing unit 702 is also configured to:

[0188] Determine the first grayscale of each pixel in the display area of ​​the second display screen;

[0189] Compress the first gray level of each pixel to obtain the second gray level of each pixel;

[0190] Perform a uniform color transition process on the second gray level of each pixel to obtain the third gray level of each pixel.

[0191] Based on the third grayscale and the first maximum brightness of each pixel, adjust the display brightness of the display area of ​​the second display screen.

[0192] In one possible implementation, when processing unit 702 compresses the first grayscale of each pixel to obtain the second grayscale of each pixel, it specifically performs the following:

[0193] Determine the ratio of the first maximum brightness to the third maximum brightness; the third maximum brightness is the highest brightness that the pixels in the display area of ​​the second display screen are adjusted to before brightness adjustment.

[0194] Determine the reference index in the correspondence between grayscale and brightness;

[0195] The grayscale compression coefficient is obtained by exponentiation of the ratio of the first highest brightness to the third highest brightness, with the negative reciprocal of the reference index as the power of the exponent.

[0196] The ratio of the first gray level of each pixel to the compression coefficient is used to determine the second gray level of each pixel.

[0197] In one possible implementation, the processing unit 702 is further configured to:

[0198] Detect the content displayed on the screen;

[0199] If the screen displays content from a dynamic image to a static image, the brightness of the static image will be reduced.

[0200] In one possible implementation, the dynamic image is the image corresponding to a high dynamic range (HDR) video, and the display area of ​​the second display image displays a standard dynamic range (SDR) image.

[0201] In one possible implementation, the processing unit 702 is further configured to:

[0202] The display area of ​​the second display screen is darkened to reduce the display brightness of the second display screen area.

[0203] Specifically, Figure 7 The operations performed by each unit of the display brightness adjustment device shown can be referred to the relevant content concerning electronic devices in the above method embodiments, and will not be detailed here. Each of the above units can be implemented in hardware, software, or a combination of both.

[0204] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device includes a processor 801, a memory 802, and a communication interface 803. The processor 801, the memory 802, and the communication interface 803 establish communication connections with each other and can exchange data.

[0205] Specifically, the communication interface 803 is used to send and receive data according to the control of the processor 801. Optionally, the communication interface 803 may include standard wired interfaces, wireless interfaces, etc. (such as Wi-Fi, mobile communication interfaces, etc.).

[0206] The aforementioned memory 802 is used to store executable program code (or computer programs). Optionally, memory 802 may include volatile memory, such as random-access memory (RAM); memory 802 may also include non-volatile memory, such as flash memory, solid-state drive (SSD), etc.; memory 802 may also include combinations of the above types of memory.

[0207] The processor 801 mentioned above can be a central processing unit (CPU). The processor 801 can call the executable program code stored in the memory 802 and perform the following operations:

[0208] Receive commands to display dynamic images;

[0209] In response to display commands, determine the display area for dynamic images;

[0210] Based on the ratio of the display area of ​​the dynamic image to the total display area, determine the highest brightness of the pixels in the display area of ​​the dynamic image when displaying the dynamic image;

[0211] Adjust the display brightness of dynamic images based on the highest brightness level.

[0212] In one possible implementation, when the processor 801 determines the first highest brightness of a pixel in the display area of ​​the dynamic image based on the ratio of the display area of ​​the dynamic image to the total display area, it specifically performs the following operations:

[0213] If the ratio of the display area of ​​the dynamic image to the total display area is less than or equal to a preset threshold, then when displaying the dynamic image, the first highest brightness of the pixel in the display area of ​​the dynamic image is determined to be the peak brightness.

[0214] Alternatively, if the ratio of the display area of ​​the dynamic image to the total display area is greater than a preset threshold, a reference coefficient is determined; the first highest brightness of the pixels in the display area of ​​the dynamic image is determined based on the peak brightness and the reference coefficient.

[0215] In one possible implementation, the reference coefficient includes one or more of the following: the ratio of the display area of ​​the dynamic image to the total display area, a preset threshold, a preset value, and a second maximum brightness corresponding to the preset value.

[0216] Among them, the second highest brightness is the highest brightness of the pixels in the screen when the screen is working safely and the average image level of the screen is at a preset value; the preset threshold is the maximum value of the average image level of the screen when the screen is working safely and the brightness of the lit pixels in the screen is all at the peak brightness.

[0217] In one possible implementation, when the processor 801 determines the first highest brightness of a pixel in the display area of ​​the dynamic image based on the peak brightness and a reference coefficient, it specifically performs the following operations:

[0218] Determine the first difference between the peak brightness and the second highest brightness;

[0219] Determine the ratio of the display area of ​​the dynamic image to the total display area, and the second difference between this ratio and a preset threshold;

[0220] Determine the third difference between the preset value and the preset threshold;

[0221] Determine the first product of the first difference and the second difference, and determine the first ratio of the first product to the third difference;

[0222] The difference between the peak brightness and the first ratio is determined as the first highest brightness of the pixel in the display area of ​​the dynamic image.

[0223] In one possible implementation, when adjusting the display brightness of the dynamic image based on the first maximum brightness, the processor 801 specifically performs the following operations:

[0224] The brightness adjustment coefficient is determined based on the highest brightness level.

[0225] The display brightness of each pixel in the display area of ​​the dynamic image is determined by multiplying the initial brightness of each pixel by the brightness adjustment coefficient.

[0226] In one possible implementation, the total display area further includes a display area for a second display screen; the processor 801 is also configured to perform the following operations:

[0227] Determine the first grayscale of each pixel in the display area of ​​the second display screen;

[0228] Compress the first gray level of each pixel to obtain the second gray level of each pixel;

[0229] Perform a uniform color transition process on the second gray level of each pixel to obtain the third gray level of each pixel.

[0230] Based on the third grayscale and the first maximum brightness of each pixel, adjust the display brightness of the display area of ​​the second display screen.

[0231] In one possible implementation, when the processor 801 compresses the first gray level of each pixel to obtain the second gray level of each pixel, it specifically performs the following operations:

[0232] Determine the ratio of the first maximum brightness to the third maximum brightness; the third maximum brightness is the highest brightness that the pixels in the display area of ​​the second display screen are adjusted to before brightness adjustment.

[0233] Determine the reference index in the correspondence between grayscale and brightness;

[0234] The grayscale compression coefficient is obtained by exponentiation of the ratio of the first highest brightness to the third highest brightness, with the negative reciprocal of the reference index as the power of the exponent.

[0235] The ratio of the first gray level of each pixel to the compression coefficient is used to determine the second gray level of each pixel.

[0236] In one possible implementation, the processor 801 is also configured to perform the following operations:

[0237] Detect the content displayed on the screen;

[0238] If the screen displays content from a dynamic image to a static image, the brightness of the static image will be reduced.

[0239] In one possible implementation, the dynamic image is the image corresponding to a high dynamic range (HDR) video, and the display area of ​​the second display image displays a standard dynamic range (SDR) image.

[0240] In one possible implementation, the processor 801 is also configured to perform the following operations:

[0241] The display area of ​​the second display screen is darkened to reduce the display brightness of the second display screen area.

[0242] In specific implementation, the processor 801 described in this application embodiment can execute the implementation method executed by the electronic device in the display brightness adjustment method provided in this application embodiment, or it can execute the implementation method executed by the electronic device in the display brightness adjustment device provided in this application embodiment, which will not be elaborated here.

[0243] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0244] As used in this specification, the terms "component," "module," "system," etc., are used to refer to computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or a computer. As illustrated, applications running on computing devices and computing devices can both be components. One or more components may reside in a process and / or an execution thread, and components may be located on a single computer and / or distributed among two or more computers. Furthermore, these components can be executed from various computer-readable media on which various data structures are stored. Components can communicate, for example, via local and / or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, and / or a network, such as the Internet interacting with other systems via signals).

[0245] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0246] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0247] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0248] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0249] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0250] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium may include various media capable of storing program code, such as a USB flash drive, portable hard drive, magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM).

[0251] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for adjusting display brightness, characterized in that, The method includes: Receive commands to display dynamic images; In response to the display command, the display area of ​​the dynamic image is determined; If the ratio of the display area of ​​the dynamic image to the total display area is less than or equal to a preset threshold, then when displaying the dynamic image, the first highest brightness of the pixels in the display area of ​​the dynamic image is determined to be the peak brightness. If the ratio of the display area of ​​the dynamic image to the total display area is greater than the preset threshold, a reference coefficient is determined; based on the peak brightness and the reference coefficient, the first highest brightness of the pixels in the display area of ​​the dynamic image is determined, and the first highest brightness is less than the peak brightness; The reference coefficient includes one or more of the following: the ratio of the display area of ​​the dynamic image to the total display area, the preset threshold, the preset value, and the second maximum brightness corresponding to the preset value; the second maximum brightness is the highest brightness of the pixels in the screen when the screen is working safely and the average image level of the screen is the preset value; the preset threshold is the maximum value of the average image level of the screen when the screen is working safely and the brightness of the lit pixels in the screen is all at peak brightness. Based on the first maximum brightness, the display brightness of the dynamic image is adjusted so that the display brightness of any pixel in the display area of ​​the adjusted dynamic image is less than or equal to the first maximum brightness.

2. The method according to claim 1, characterized in that, The step of determining the first highest brightness of pixels in the display area of ​​the dynamic image based on the peak brightness and the reference coefficient includes: Determine the first difference between the peak brightness and the second highest brightness; Determine the ratio of the display area of ​​the dynamic image to the total display area, and the second difference between this ratio and the preset threshold; Determine a third difference between the preset value and the preset threshold; Determine the first product of the first difference and the second difference, and determine the first ratio of the first product to the third difference; The difference between the peak brightness and the first ratio is determined as the first highest brightness of the pixel in the display area of ​​the dynamic image.

3. The method according to claim 1 or 2, characterized in that, Adjusting the display brightness of the dynamic image based on the first maximum brightness includes: The brightness adjustment coefficient is determined based on the first highest brightness. The product of the initial brightness of each pixel in the display area of ​​the dynamic image and the brightness adjustment coefficient is determined as the display brightness of each pixel in the display area of ​​the dynamic image.

4. The method according to claim 1, characterized in that, The total display area also includes the display area of ​​the second display screen; the method further includes: Determine the first grayscale of each pixel in the display area of ​​the second display screen; The first gray level of each pixel is compressed to obtain the second gray level of each pixel; A uniform color transition process is performed on the second gray level of each pixel to obtain the third gray level of each pixel. Based on the third grayscale of each pixel and the first maximum brightness, the display brightness of the display area of ​​the second display screen is adjusted.

5. The method according to claim 4, characterized in that, The step of compressing the first gray level of each pixel to obtain the second gray level of each pixel includes: Determine the ratio of the first maximum brightness to the third maximum brightness; the third maximum brightness is the highest brightness that the pixels in the display area of ​​the second display screen are adjusted to before brightness adjustment. Determine the reference index in the correspondence between grayscale and brightness; The ratio of the first highest brightness to the third highest brightness is exponentially raised to the power of the negative reciprocal of the reference index to obtain the grayscale compression coefficient. The ratio of the first gray level of each pixel to the compression coefficient is determined as the second gray level of each pixel.

6. The method according to claim 1, characterized in that, The method further includes: Detect the content displayed on the screen; If the content displayed on the screen switches from the dynamic image to the static image, the display brightness of the static image is reduced.

7. The method according to claim 4 or 5, characterized in that, The dynamic image is the image corresponding to a high dynamic range (HDR) video, and the display area of ​​the second display image displays a standard dynamic range (SDR) image.

8. The method according to claim 7, characterized in that, The method further includes: The display area of ​​the second display screen is darkened to reduce the display brightness of the display area of ​​the second display screen.

9. A device for adjusting display brightness, characterized in that, The device includes: The receiving unit is used to receive display instructions for dynamic images; A processing unit is configured to determine the display area of ​​the dynamic image in response to the display command; The processing unit is further configured to: if the ratio of the display area of ​​the dynamic image to the total display area is less than or equal to a preset threshold, determine that when displaying the dynamic image, the first highest brightness of the pixels in the display area of ​​the dynamic image is the peak brightness; if the ratio of the display area of ​​the dynamic image to the total display area is greater than the preset threshold, determine a reference coefficient; and determine the first highest brightness of the pixels in the display area of ​​the dynamic image based on the peak brightness and the reference coefficient, wherein the first highest brightness is less than the peak brightness. The reference coefficient includes one or more of the following: the ratio of the display area of ​​the dynamic image to the total display area, the preset threshold, the preset value, and the second maximum brightness corresponding to the preset value; the second maximum brightness is the highest brightness of the pixels in the screen when the screen is working safely and the average image level of the screen is the preset value; the preset threshold is the maximum value of the average image level of the screen when the screen is working safely and the brightness of the lit pixels in the screen is all at peak brightness. The processing unit is further configured to adjust the display brightness of the dynamic image based on the first maximum brightness, so that the display brightness of any pixel in the display area of ​​the adjusted dynamic image is less than or equal to the first maximum brightness.

10. An electronic device, characterized in that, The electronic device includes: a memory, a communication interface, and a processor, wherein the memory, the communication interface, and the processor are interconnected; the memory stores a computer program, and the processor calls the computer program stored in the memory to cause the electronic device to perform the method as described in any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when the computer program is run on the electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Display device brightness adjusting device and method

    CN111199707A