Backlight optimization method, backlight optimization device, electronic device and readable storage medium

CN117690385BActive Publication Date: 2026-09-08GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311841130.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2026-09-08
Estimated Expiration
2043-12-28

AI Technical Summary

Technical Problem

然而,电子设备在开启暗色模式时,存在界面显示效果不佳的情况

Benefits of technology

[0017] Sixthly, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to perform the steps of the backlight optimization method described in the first aspect above.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117690385B_ABST
    Figure CN117690385B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of display, and provides a backlight optimization method, a backlight optimization device, an electronic device and a readable storage medium. The backlight optimization method comprises the following steps: in the case that an application program is adapted to a dark mode, a current color gamut mode and a current backlight value of a screen are acquired, the screen displays an interface of the application program; a backlight area type in which the current backlight value is located is determined, the backlight area type comprises a low backlight area and a high backlight area; and the screen is subjected to backlight optimization based on the backlight area type in which the current backlight value is located, the current color gamut mode and the current backlight value. Through the application, the screen can be subjected to backlight optimization, and the interface display effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of display technology, and particularly relates to a backlight optimization method, a backlight optimization device, an electronic device, and a readable storage medium. Background Technology

[0002] Dark mode, also known as dark color mode, is an application mode where text is light and the background is dark. Dark mode ensures that electronic devices can display the interface normally while reducing screen brightness, saving power and thus improving battery life. However, when dark mode is enabled, the interface display quality may be poor. Summary of the Invention

[0003] This application provides a backlight optimization method, a backlight optimization device, an electronic device, and a readable storage medium to optimize the backlight of a screen and improve the interface display effect.

[0004] In a first aspect, embodiments of this application provide a backlight optimization method, the backlight optimization method comprising:

[0005] When the application is adapted to dark mode, the current color gamut mode and current backlight value of the screen are obtained, and the screen displays the interface of the application.

[0006] Determine the type of backlight region where the current backlight value is located, where the backlight region type includes low backlight region and high backlight region;

[0007] Based on the backlight region type where the current backlight value is located, the current color gamut mode, and the current backlight value, the screen backlight is optimized.

[0008] In this embodiment, when the application is adapted to dark mode, the current color gamut mode and current backlight value of the screen can be obtained, and the type of backlight area where the current backlight value is located can be determined. Since the interface display effect varies depending on the backlight area (for example, the clarity of the interface is poor when in a low backlight area, and the colors are more prominent when in a high backlight area, which can easily cause eye discomfort), and both the color gamut mode and backlight value affect the interface display effect, this application can optimize the screen backlight based on the type of backlight area where the current backlight value is located, the current color gamut mode, and the current backlight value, thereby improving the interface display effect in dark mode.

[0009] Secondly, embodiments of this application provide a backlight optimization device, the backlight optimization device comprising:

[0010] The information acquisition module is used to acquire the current color gamut mode and current backlight value of the screen when the application is adapted to dark mode, and the screen displays the interface of the application.

[0011] A type determination module is used to determine the type of backlight region where the current backlight value is located, wherein the backlight region type includes low backlight region and high backlight region;

[0012] The backlight optimization module is used to optimize the screen backlight based on the backlight area type where the current backlight value is located, the current color gamut mode, and the current backlight value.

[0013] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the backlight optimization method as described in the first aspect above.

[0014] Fourthly, embodiments of this application provide a chip including a processor, the processor being configured to read and execute a computer program stored in a memory to perform the steps of the backlight optimization method as described in the first aspect above.

[0015] Optionally, the memory is connected to the processor via a circuit or wire.

[0016] Fifthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the backlight optimization method described in the first aspect above.

[0017] Sixthly, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to perform the steps of the backlight optimization method described in the first aspect above.

[0018] Understandably, the second, third, fourth, fifth, and sixth aspects provided above are all used to perform the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a schematic flowchart of a backlight optimization method provided in an embodiment of this application;

[0021] Figure 2 This is a schematic flowchart of a backlight optimization method provided in another embodiment of this application;

[0022] Figure 3 This is a schematic diagram of the backlight optimization device provided in one embodiment of this application;

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

[0024] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0025] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0026] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0027] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0028] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0029] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0030] The backlight optimization method provided in this application can be applied to electronic devices such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). This application does not impose any restrictions on the specific type of electronic device.

[0031] It should be understood that the sequence number of each step in this embodiment does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of this application embodiment.

[0032] To illustrate the technical solution described in this application, specific embodiments are provided below.

[0033] See Figure 1 This is a schematic diagram illustrating the implementation flow of an information processing method provided in an embodiment of this application, which is applied to an electronic device. Figure 1 As shown, the information processing method may include the following steps:

[0034] Step 101: If the application is adapted to dark mode, obtain the current color gamut mode and current backlight value of the screen.

[0035] The screen displays the application interface. The backlight value is the screen backlight brightness value.

[0036] It should be noted that the application in step 101 can be any application on the electronic device that can adapt to dark mode, or it can be an application selected by the user from the applications on the electronic device that can adapt to dark mode. There is no limitation here.

[0037] Adapting to dark mode refers to adjusting the overall interface style of applications on electronic devices to match the dark mode when it is enabled.

[0038] In one application scenario, a user can enable dark mode in the settings of an electronic device. When an application is launched, if the application supports dark mode, the user can control the application to adapt to dark mode. Alternatively, the user can enable dark mode within the application after it has been launched, and then control the application to adapt to dark mode.

[0039] In one embodiment, when the application is adapted to dark mode, if the application supports backlight optimization, the current color gamut mode and the current backlight value are obtained, and subsequent steps 102 and 103 are executed. This allows for backlight optimization when the application's interface is displayed on the screen, improving the interface display effect in dark mode. If the application does not support backlight optimization, the backlight optimization scheme of this application is not executed.

[0040] Optionally, when users enable dark mode, they can provide an external interface by integrating a software development kit (SDK). When the application supports backlight optimization, it can perform backlight optimization according to the solution of this application, thereby optimizing the interface display effect of the application and achieving a better visual effect.

[0041] Color gamut is a method of color encoding, and also refers to the total number of colors a screen can produce; it can also be understood as a color space area. The higher the color gamut value, the more colors are available within the color space, resulting in a richer color palette.

[0042] Color gamut modes include, but are not limited to, the standard red-green-blue (sRGB) color gamut and wide color gamut. Wide color gamut is an advanced color backlight technology; the international standard defines it as having a color coverage rate of 92% as per the National Television Standards Committee (NTSC). Wide color gamut includes, but is not limited to, the Adobe RGB color gamut and the Digital Cinema Initiatives-Protocol 3 (DIC-P3) color gamut.

[0043] Compared to the sRGB color gamut, the wide color gamut has a higher color gamut value, which can display more colors, making the interface display effect more realistic and avoiding problems such as color distortion and color cast.

[0044] The screen's current backlight value is determined based on the screen refresh rate. The screen obtains the current backlight value every time it refreshes. Optionally, the electronic device can obtain the screen's current color gamut mode and current backlight value from the backlight module.

[0045] Since screen refresh rates are typically high, obtaining the current backlight value every time the screen refreshes minimizes the variation in backlight optimization, resulting in a smoother visual effect and preventing screen flickering when the backlight value changes drastically.

[0046] Step 102: Determine the type of backlight region where the current backlight value is located.

[0047] The backlight area types include low backlight area and high backlight area. The backlight area can be understood as the backlight range.

[0048] If the screen's current backlight value is in either the low or high backlight range, the interface display is poor. For example, in a low backlight range, the interface clarity is poor; in a high backlight range, the colors are too prominent, which can cause eye strain. Therefore, when the screen's current backlight value is in either the low or high backlight range, backlight optimization is needed to improve the interface display in dark mode, enhance the user's visual experience, and make the interface display more pleasing to the human eye. If the screen's current backlight value is neither in the low nor high backlight range, the interface display is good, and no backlight optimization is needed.

[0049] For any screen, its maximum and minimum backlight values ​​are fixed, determined by the screen's physical characteristics and cannot be changed. These values ​​are set by the manufacturer at the factory. Therefore, based on the screen's maximum and minimum backlight values ​​and the interface display effect at different backlight values, low-backlight and high-backlight areas can be defined. For example, if the screen's maximum backlight value is 100 nits and its minimum backlight value is 2 nits, and the interface display effect is poor when the screen's backlight value is less than or equal to 20 nits or greater than 80 nits (e.g., poor clarity when the backlight value is less than or equal to 20 nits, and glaring when the backlight value is greater than 80 nits), then the low-backlight area can be defined as greater than or equal to 2 nits and less than or equal to 20 nits, and the high-backlight area as greater than 80 nits and less than or equal to 100 nits.

[0050] Step 103: Optimize the screen backlight based on the backlight area type, color gamut mode, and backlight value of the current backlight value.

[0051] Since both color gamut mode and screen backlight value affect the interface display effect, and the interface display effect is different under different backlight area types, the screen backlight can be optimized based on the backlight area type, current color gamut mode and current backlight value, thereby improving the interface display effect on the screen in dark mode, improving the user visual experience and making the interface display more in line with human eye perception.

[0052] In this embodiment, when the application is adapted to dark mode, the current color gamut mode and current backlight value of the screen can be obtained, and the type of backlight area where the current backlight value is located can be determined. Since the interface display effect varies in different backlight areas, and both the color gamut mode and the backlight value affect the interface display effect, this application can optimize the screen backlight based on the type of backlight area where the current backlight value is located, the current color gamut mode, and the current backlight value, thereby improving the interface display effect in dark mode.

[0053] See Figure 2 This is a schematic diagram illustrating the implementation process of a backlight optimization method provided in another embodiment of this application, which is applied to electronic devices. Figure 2 As shown, the backlight optimization method may include the following steps:

[0054] Step 201: If the application is adapted to dark mode, obtain the current color gamut mode and current backlight value of the screen.

[0055] This step is the same as step 101. For details, please refer to the relevant description of step 101. It will not be repeated here.

[0056] Step 202: Determine the type of backlight region where the current backlight value is located.

[0057] This step is the same as step 102, and you can refer to the relevant description of step 102 for details, which will not be repeated here.

[0058] Step 203: Determine the target color gamut mode based on the current color gamut mode.

[0059] The target color gamut mode has a color gamut value greater than the current color gamut mode. In other words, the target color gamut mode is a color gamut mode with a color gamut value greater than the current color gamut mode. For example, if the current color gamut mode is sRGB, then the target color gamut mode can be a wide color gamut.

[0060] Step 204: Optimize the screen backlight based on the backlight region type, target color gamut mode, and current backlight value.

[0061] Since both color gamut mode and screen backlight value affect the interface display effect, and the interface display effect is different under different backlight area types and different color gamut modes, the screen backlight can be optimized based on the backlight area type, target color gamut mode and current backlight value, thereby improving the interface display effect on the screen in dark mode, improving the user visual experience and making the interface display more in line with human eye perception.

[0062] In one optional embodiment, backlight optimization of the screen is performed based on the backlight region type, target color gamut mode, and current backlight value, including:

[0063] Determine whether the application supports the target color gamut mode and obtain the determination result;

[0064] Based on the type of backlight area where the current backlight value is located, the judgment result, and the current backlight value, the screen backlight is optimized.

[0065] The above judgment results include whether the application supports the target color gamut mode or not.

[0066] Electronic devices can determine whether to optimize backlight by switching color gamut modes based on the judgment result. Different judgment results result in different interface display effects. Therefore, based on the backlight area type where the current backlight value is located, the judgment result, and the current backlight value, the screen can be optimized for backlight.

[0067] Whether an application supports the target color gamut mode can be pre-set. For example, if the application supports the target color gamut mode, its identifier can be pre-written into the application's attribute information. When implementing the solution of this application, if the identifier of the target color gamut mode is read from the application's attribute information, it is determined that the application supports the target color gamut mode; if the identifier of the target color gamut mode is not read from the application's attribute information, it is determined that the application does not support the target color gamut mode. The identifier of the target color gamut mode indicates the uniqueness of the target color gamut mode; different color gamut modes have different identifiers. For example, the identifier of the target color gamut mode can be the name of the target color gamut mode.

[0068] Of course, it is understandable that the screen can also be backlit optimized in other ways based on the type of backlight area where the current backlight value is located, the judgment result and the current backlight value, and this application does not limit this.

[0069] In one optional embodiment, backlight optimization of the screen is performed based on the backlight region type where the current backlight value is located, the judgment result, and the current backlight value, including:

[0070] If the determination result is that the application supports the target color gamut mode, then the current color gamut mode is switched to the target color gamut mode. In the target color gamut mode, based on the backlight area type where the current backlight value is located and the current backlight value, the first backlight value is determined and the current backlight value is adjusted to the first backlight value.

[0071] If the determination result is that the application does not support the target color gamut mode, then under the current color gamut mode, based on the backlight area type where the current backlight value is located and the current backlight value, a second backlight value is determined, and the current backlight value is adjusted to the second backlight value, which is different from the first backlight value.

[0072] The aforementioned first backlight value can refer to a backlight value that, compared to the current backlight value, can improve the interface display effect under the target color gamut mode. For example, under the target color gamut mode, when the current backlight value is in a low backlight area, the first backlight value is greater than the current backlight value; under the current color gamut mode, when the current backlight value is in a low backlight area, the second backlight value is greater than the current backlight value, and the second backlight value is greater than the first backlight value. Under the above two color gamut modes, by adjusting the screen's backlight value, the screen backlight brightness can be increased, thereby improving the interface display effect.

[0073] Because the target color gamut mode has a higher color gamut value, switching the screen's current color gamut mode to the target color gamut mode allows the screen to display more colors, enhancing the interface display and achieving a better visual effect, thereby optimizing the screen's backlight. Therefore, the adjustment scheme for the current backlight value should differ depending on whether the color gamut mode is switched or not. Furthermore, since different backlight areas have different effects on the interface display effect, adjusting the screen's backlight value based on the color gamut mode, backlight area type, and current backlight value can more accurately optimize the backlight and further improve the interface display effect in dark mode.

[0074] Of course, it is understandable that the screen can also be backlit optimized in other ways based on the type of backlight area where the current backlight value is located, the judgment result and the current backlight value, and this application does not limit this.

[0075] In an optional embodiment, under the target color gamut mode, determining a first backlight value based on the backlight region type where the current backlight value is located and the current backlight value includes:

[0076] In the target color gamut mode, the first adjustment coefficient is determined based on the type of backlight region where the current backlight value is located;

[0077] The first backlight value is determined based on the first adjustment coefficient and the current backlight value;

[0078] In the current color gamut mode, based on the backlight region type where the current backlight value is located and the current backlight value, a second backlight value is determined, including:

[0079] In the current color gamut mode, a second adjustment coefficient is determined based on the type of backlight region where the current backlight value is located. The second adjustment coefficient is different from the first adjustment coefficient.

[0080] The second backlight value is determined based on the second adjustment factor and the current backlight value.

[0081] The first and second adjustment coefficients are used to adjust the current backlight value. Multiplying the current backlight value by the first adjustment coefficient yields the first backlight value. Multiplying the current backlight value by the second adjustment coefficient yields the second backlight value. For either the first or second adjustment coefficient, if the adjustment coefficient is less than 1, the screen backlight brightness can be reduced; if the adjustment coefficient is greater than 1, the screen backlight brightness can be increased.

[0082] Because the interface display effect varies under different color gamut modes and also differs depending on the backlight area, the adjustment coefficients differ for each color gamut mode and backlight area type. Therefore, under different color gamut modes, the adjustment coefficient can be determined more accurately based on the backlight area type where the current backlight value is located, thereby adjusting the screen's backlight brightness more precisely and improving the interface display effect.

[0083] Of course, it is understood that the first backlight value and the second backlight value can also be determined in other ways based on the type of backlight area where the current backlight value is located and the current backlight value, and this application does not limit this.

[0084] In an optional embodiment, under the target color gamut mode, a first adjustment coefficient is determined based on the type of backlight region where the current backlight value is located, including:

[0085] In the target color gamut mode, if the backlight area where the current backlight value is located is a low backlight area, then the first adjustment coefficient is determined to be the third adjustment coefficient, and the third adjustment coefficient is greater than 1.

[0086] In the target color gamut mode, if the backlight area type where the current backlight value is located is a high backlight area, then the first adjustment coefficient is determined to be the fourth adjustment coefficient, and the fourth adjustment coefficient is greater than zero and less than 1.

[0087] In the current color gamut mode, based on the type of backlight region where the current backlight value is located, a second adjustment coefficient is determined, including:

[0088] In the current color gamut mode, if the backlight area where the current backlight value is located is a low backlight area, then the second adjustment coefficient is determined to be the fifth adjustment coefficient, and the fifth adjustment coefficient is greater than the third adjustment coefficient.

[0089] In the current color gamut mode, if the backlight area where the current backlight value is located is a high backlight area, then the second adjustment coefficient is determined to be the sixth adjustment coefficient, and the sixth adjustment coefficient is greater than the fourth adjustment coefficient.

[0090] In dark mode, the interface is less clear when the current backlight value is in a low backlight area. Therefore, you can increase the current backlight value to brighten the screen backlight and improve the clarity.

[0091] Since the target color gamut mode has a higher color gamut value and can display more colors, when the current backlight value is in the low backlight area, the target color gamut mode does not require much increase in screen backlight brightness to improve the interface display effect compared to the current color gamut mode. Therefore, the fifth adjustment coefficient can be set to be greater than the third adjustment coefficient.

[0092] In dark mode, when the current backlight value is in the high backlight area, the color contrast is large, which can easily cause glare. Therefore, you can reduce the current brightness value to reduce the glare caused by the color contrast.

[0093] When the current brightness value is in the high backlight area, after switching the current color gamut mode of the screen to the target color gamut mode, the screen can display more colors and the colors are more vivid. Therefore, in order to reduce the difference between the same color, compared with the current color gamut mode with a lower color gamut value, the reduction of screen backlight brightness can be increased, that is, the second adjustment coefficient is set to be greater than the first adjustment coefficient.

[0094] For example, the third adjustment factor is 1.2, the fifth adjustment factor is 1.5, the fourth adjustment factor is 0.7, and the sixth adjustment factor is 0.8. Optionally, the third, fifth, fourth, and sixth adjustment factors can be preset according to actual needs.

[0095] Of course, it is understandable that the adjustment coefficient can also be determined in other ways based on the type of backlight area where the current backlight value is located, and this application does not limit this.

[0096] Optionally, when the application supports the target color gamut mode, the processor in the electronic device can send a switching instruction carrying a target color gamut mode identifier to the backlight module. This switching instruction is used to support switching the current color gamut mode to the target color gamut mode. The backlight module sends the switching instruction to the screen driver. After receiving the switching instruction, the screen driver switches the current color gamut mode to the target color gamut mode.

[0097] After obtaining the first backlight value or the second backlight value, the processor in the electronic device can send the first backlight value or the second backlight value to the backlight module, the backlight module sends the first backlight value or the second backlight value to the screen driver, and the screen driver adjusts the screen backlight brightness based on the received first backlight value or second backlight value.

[0098] In this embodiment, when the application is adapted to dark mode, the current color gamut mode and current backlight value of the screen can be obtained, and the type of backlight area where the current backlight value is located can be determined. Based on the current color gamut mode, the target color gamut mode is determined. Since the interface display effect is different in different backlight areas, the interface display effect is also different in different color gamut modes. Therefore, this application can optimize the screen backlight based on the type of backlight area where the current backlight value is located, the target color gamut mode, and the current backlight value, thereby improving the interface display effect in dark mode.

[0099] See Figure 3 This is a schematic diagram of the backlight optimization device provided in an embodiment of this application. For ease of explanation, only the parts related to the embodiment of this application are shown.

[0100] The aforementioned backlight optimization device includes:

[0101] The information acquisition module 31 is used to acquire the current color gamut mode and current backlight value of the screen when the application is adapted to dark mode, and the screen displays the interface of the application.

[0102] The type determination module 32 is used to determine the type of the backlight area where the current backlight value is located. The backlight area type includes low backlight area and high backlight area.

[0103] The backlight optimization module 33 is used to optimize the screen backlight based on the backlight area type, the current color gamut mode, and the current backlight value.

[0104] Optionally, the backlight optimization module 33 mentioned above includes:

[0105] The determination submodule is used to determine the target color gamut mode based on the current color gamut mode. The color gamut value of the target color gamut mode is greater than the color gamut value of the current color gamut mode.

[0106] The optimization submodule is used to optimize the screen backlight based on the backlight area type, target color gamut mode, and current backlight value.

[0107] Optionally, the above optimization sub-modules include:

[0108] The judgment unit is used to determine whether the application supports the target color gamut mode and obtain the judgment result.

[0109] The optimization unit is used to optimize the screen backlight based on the type of backlight area where the current backlight value is located, the judgment result, and the current backlight value.

[0110] Optionally, the above optimization unit includes:

[0111] The first optimization subunit is used to switch the current color gamut mode to the target color gamut mode if the judgment result is that the application supports the target color gamut mode. In the target color gamut mode, the first backlight value is determined based on the backlight area type where the current backlight value is located and the current backlight value, and the current backlight value is adjusted to the first backlight value.

[0112] The second optimization subunit is used to determine a second backlight value based on the backlight area type and the current backlight value under the current color gamut mode if the judgment result is that the application does not support the target color gamut mode, and adjust the current backlight value to the second backlight value, which is different from the first backlight value.

[0113] Optionally, the first optimization subunit mentioned above is specifically used for:

[0114] In the target color gamut mode, the first adjustment coefficient is determined based on the type of backlight region where the current backlight value is located;

[0115] The first backlight value is determined based on the first adjustment coefficient and the current backlight value;

[0116] Optionally, the second optimization subunit mentioned above is specifically used for:

[0117] In the current color gamut mode, a second adjustment coefficient is determined based on the type of backlight region where the current backlight value is located. The second adjustment coefficient is different from the first adjustment coefficient.

[0118] The second backlight value is determined based on the second adjustment factor and the current backlight value.

[0119] Optionally, the first optimization subunit mentioned above is specifically used for:

[0120] In the target color gamut mode, if the backlight area where the current backlight value is located is a low backlight area, then the first adjustment coefficient is determined to be the third adjustment coefficient, and the third adjustment coefficient is greater than 1.

[0121] In the target color gamut mode, if the backlight area type where the current backlight value is located is a high backlight area, then the first adjustment coefficient is determined to be the fourth adjustment coefficient, and the fourth adjustment coefficient is greater than zero and less than 1.

[0122] Optionally, the second optimization subunit mentioned above is specifically used for:

[0123] In the current color gamut mode, if the backlight area where the current backlight value is located is a low backlight area, then the second adjustment coefficient is determined to be the fifth adjustment coefficient, and the fifth adjustment coefficient is greater than the third adjustment coefficient.

[0124] In the current color gamut mode, if the backlight area where the current backlight value is located is a high backlight area, then the second adjustment coefficient is determined to be the sixth adjustment coefficient, and the sixth adjustment coefficient is greater than the fourth adjustment coefficient.

[0125] The backlight optimization device provided in this application embodiment can be applied in the foregoing method embodiment. For details, please refer to the description of the above method embodiment, which will not be repeated here.

[0126] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. For example... Figure 4 As shown, the electronic device 4 of this embodiment includes: one or more processors 40 (only one is shown in the figure), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40. When the processor 40 executes the computer program 42, it implements the steps in the various backlight optimization method embodiments described above.

[0127] The electronic device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will understand that... Figure 4 This is merely an example of electronic device 4 and does not constitute a limitation on electronic device 4. It may include more or fewer components than shown, or combine certain components, or different components. For example, the electronic device may also include input / output devices, network access devices, buses, etc.

[0128] The processor 40 may be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0129] The memory 41 can be an internal storage unit of the electronic device 4, such as a hard disk or memory. The memory 41 can also be an external storage device of the electronic device 4, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 41 can include both internal and external storage units of the electronic device 4. The memory 41 is used to store the computer program and other programs and data required by the electronic device. The memory 41 can also be used to temporarily store data that has been output or will be output.

[0130] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments 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. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above device can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0131] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps described in the various method embodiments above.

[0132] This application also provides a computer program product that, when run on an electronic device, enables the electronic device to perform the steps described in the above-described method embodiments.

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

[0134] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0135] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units 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 displayed or discussed mutual couplings or direct couplings or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0136] The units described 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.

[0137] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0138] The above-described 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, and should all be included within the protection scope of this application.

Claims

1. A backlight optimization method, characterized in that, The backlight optimization method includes: When the application is adapted to dark mode, the current color gamut mode and current backlight value of the screen are obtained, and the screen displays the interface of the application. Determine the type of backlight region where the current backlight value is located, where the backlight region type includes low backlight region and high backlight region; Based on the current color gamut mode, a target color gamut mode is determined, wherein the color gamut value of the target color gamut mode is greater than the color gamut value of the current color gamut mode; Determine whether the application supports the target color gamut mode, and obtain the determination result; If the determination result is that the application supports the target color gamut mode, then the current color gamut mode is switched to the target color gamut mode. Under the target color gamut mode, a first backlight value is determined based on the backlight area type where the current backlight value is located and the current backlight value, and the current backlight value is adjusted to the first backlight value. If the determination result is that the application does not support the target color gamut mode, then under the current color gamut mode, based on the backlight area type where the current backlight value is located and the current backlight value, a second backlight value is determined, and the current backlight value is adjusted to the second backlight value, wherein the second backlight value is different from the first backlight value.

2. The backlight optimization method according to claim 1, characterized in that, In the target color gamut mode, determining a first backlight value based on the backlight region type where the current backlight value is located and the current backlight value includes: In the target color gamut mode, a first adjustment coefficient is determined based on the type of backlight region where the current backlight value is located; The first backlight value is determined based on the first adjustment coefficient and the current backlight value; In the current color gamut mode, determining the second backlight value based on the backlight region type where the current backlight value is located and the current backlight value includes: In the current color gamut mode, a second adjustment coefficient is determined based on the type of backlight region where the current backlight value is located. The second adjustment coefficient is different from the first adjustment coefficient. The second backlight value is determined based on the second adjustment coefficient and the current backlight value.

3. The backlight optimization method according to claim 2, characterized in that, In the target color gamut mode, a first adjustment coefficient is determined based on the backlight region type where the current backlight value is located, including: In the target color gamut mode, if the backlight region type where the current backlight value is located is the low backlight region, then the first adjustment coefficient is determined to be the third adjustment coefficient, and the third adjustment coefficient is greater than 1; In the target color gamut mode, if the backlight region type where the current backlight value is located is the high backlight region, then the first adjustment coefficient is determined to be the fourth adjustment coefficient, and the fourth adjustment coefficient is greater than zero and less than 1; In the current color gamut mode, determining the second adjustment coefficient based on the backlight region type where the current backlight value is located includes: In the current color gamut mode, if the backlight region type where the current backlight value is located is the low backlight region, then the second adjustment coefficient is determined to be the fifth adjustment coefficient, and the fifth adjustment coefficient is greater than the third adjustment coefficient; In the current color gamut mode, if the backlight region type where the current backlight value is located is the high backlight region, then the second adjustment coefficient is determined to be the sixth adjustment coefficient, and the sixth adjustment coefficient is greater than the fourth adjustment coefficient.

4. The backlight optimization method according to any one of claims 1 to 3, characterized in that, The step of obtaining the screen's current color gamut mode and current backlight value when the application is adapted to dark mode includes: If the application is adapted to the dark mode and supports backlight optimization, then the current color gamut mode and the current backlight value are obtained.

5. A backlight optimization device, characterized in that, The backlight optimization device includes: The information acquisition module is used to acquire the current color gamut mode and current backlight value of the screen when the application is adapted to dark mode, and the screen displays the interface of the application. A type determination module is used to determine the type of backlight region where the current backlight value is located, wherein the backlight region type includes low backlight region and high backlight region; A backlight optimization module is used to determine a target color gamut mode based on the current color gamut mode, wherein the color gamut value of the target color gamut mode is greater than that of the current color gamut mode; determine whether the application supports the target color gamut mode and obtain a determination result; if the determination result is that the application supports the target color gamut mode, then the current color gamut mode is switched to the target color gamut mode; under the target color gamut mode, a first backlight value is determined based on the backlight area type where the current backlight value is located and the current backlight value, and the current backlight value is adjusted to the first backlight value; if the determination result is that the application does not support the target color gamut mode, then under the current color gamut mode, a second backlight value is determined based on the backlight area type where the current backlight value is located and the current backlight value, and the current backlight value is adjusted to the second backlight value, wherein the second backlight value is different from the first backlight value.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the backlight optimization method as described in any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the backlight optimization method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Display brightness adjusting method and related product

    CN110021256A

  • Gray scale optimization method, display device and electronic equipment

    CN116486740A