Brightness adjustment method and electronic device

By switching display modes in electronic devices and dynamically adjusting brightness based on gamma parameters and grayscale range, the problem of poor visual display effect is solved, and better brightness display effect and extended device life are achieved.

WO2025201111A1PCT designated stage Publication Date: 2025-10-02HUAWEI TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/083108
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-29
Filing Date
2025-03-18
Publication Date
2025-10-02

AI Technical Summary

Technical Problem

Existing electronic devices have the problem of poor visual display effects during the brightness adjustment process.

Method used

By switching display modes in different scenarios and dynamically adjusting the brightness to match the needs of the current scene based on multiple gamma parameters and grayscale ranges, including selecting the target grayscale range and gamma parameters, and gradually adjusting the brightness to reduce power consumption and heat, avoiding life loss caused by high grayscale range.

Benefits of technology

It improves the brightness display effect and visual experience of electronic devices in different scenarios, reduces power consumption and heat, and extends the life of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025083108_02102025_PF_FP_ABST
    Figure CN2025083108_02102025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a brightness adjustment method and an electronic device. The method is applied to an electronic device, and the method comprises: when the current scenario meets a first condition and / or a first operation is received, switching to a first display mode; and executing at least one dimming process, wherein the dimming process comprises: determining a target gray level of a first pixel on a display screen; obtaining a first gamma parameter among a plurality of gamma parameters that corresponds to the first display mode and a gray level range to which the target gray level belongs, wherein different gamma parameters among the plurality of gamma parameters correspond to different display modes and / or gray level ranges, and any gamma parameter is used for determining the correspondence between a gray level and brightness; determining, on the basis of the first gamma parameter, target brightness corresponding to the target gray level; and adjusting the brightness of the first pixel from first brightness to the target brightness. The method can improve the visual display effect of dynamic dimming on the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Brightness adjustment method and electronic device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on March 29, 2024, with application number 202410382117.4 and application name "A Brightness Adjustment Method and Electronic Device", the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the technical field of electronic equipment, and in particular to a brightness adjustment method and electronic equipment. Background Art

[0004] Grayscale refers to the degree of brightness. Grayscale can be used to divide the brightness variation between the darkest and brightest levels into several parts, with different grayscales representing different brightness levels between the darkest and brightest. Electronic devices (such as mobile phones, tablets, and wearable devices) can control the light-emitting units corresponding to pixels on the display based on the grayscale, so that the pixel displays the brightness corresponding to the grayscale.

[0005] The corresponding relationship between grayscale and brightness can be expressed as a power exponential relationship based on the gamma parameter, that is, y=x Gamma , where x represents grayscale, y represents brightness, and Gamma is the gamma parameter, which is generally set to 2.2. Electronic devices need to refer to this correspondence to adjust the brightness of pixels on the display.

[0006] In current practical applications, the brightness adjustment process based on the above method has the problem of poor visual display effect. Summary of the Invention

[0007] The present application provides a brightness adjustment method and an electronic device, which are used to improve the visual display effect of the electronic device performing dynamic dimming.

[0008] In a first aspect, an embodiment of the present application provides a brightness adjustment method, which is applied to an electronic device, and the method includes: when the current scene meets a first condition and / or receives a first operation, switching to a first display mode; executing at least one dimming process; wherein the dimming process includes: determining a target grayscale of a first pixel on the display screen; obtaining a first gamma parameter corresponding to a grayscale range to which the first display mode and the target grayscale belong from a plurality of gamma parameters; wherein different gamma parameters among the plurality of gamma parameters correspond to different display modes and / or grayscale ranges, and any gamma parameter is used to determine the correspondence between grayscale and brightness; determining a target brightness corresponding to the target grayscale according to the first gamma parameter; and adjusting the brightness of the first pixel from a first brightness to the target brightness.

[0009] In this method, different gamma parameters correspond to different display modes and / or grayscale ranges. After the electronic device switches to the first display mode, during the dimming process, it can determine the target brightness corresponding to the target grayscale that is more suitable for the current scene based on the first gamma parameter corresponding to the grayscale range to which the target grayscale of the first pixel belongs, and then adjust the brightness of the first pixel to the target brightness to achieve a more suitable brightness display effect in the current scene. Based on the above method, in different scenes, i.e., different display modes and / or different grayscale ranges, the electronic device can determine the target brightness corresponding to the target grayscale in different scenes based on the gamma parameters corresponding to different scenes, thereby improving the effect of dimming according to the target brightness in different scenes. In summary, the above method can improve the brightness display effect of the electronic device performing dynamic dimming.

[0010] Optionally, the first display mode corresponds to at least one gamma parameter among the multiple gamma parameters, different gamma parameters among the at least one gamma parameter correspond to different grayscale ranges; the first gamma parameter is the gamma parameter among the at least one gamma parameter that corresponds to the first grayscale range. Optionally, the grayscale range corresponding to the first display mode includes the grayscale range corresponding to each gamma parameter among the at least one gamma parameter. The target grayscale falls within the grayscale range corresponding to the first display mode.

[0011] In this method, a display mode can correspond to at least one gamma parameter. If a display mode can correspond to multiple gamma parameters, different grayscale ranges further divided within the grayscale range corresponding to the display mode can correspond to different gamma parameters. When dimming is performed in this display mode, the electronic device can further differentiate and optimize the dimming effects within the different grayscale ranges in this display mode based on the gamma parameters corresponding to the different grayscale ranges in this display mode, thereby achieving a better brightness display effect.

[0012] In one possible design, the first display mode corresponds to multiple grayscale ranges; determining the target grayscale of the first pixel on the display screen includes: when the current reference data of the electronic device meets the second condition, selecting a target grayscale range from the multiple grayscale ranges; wherein the reference data includes the current operating parameters of the electronic device and one of the statistical parameters used to characterize the current brightness distribution characteristics of the display screen; determining the target grayscale based on the target grayscale range, and the target grayscale is within the target grayscale range.

[0013] In this method, the electronic device can determine a target grayscale range each time it determines that the electronic device's current reference data meets a corresponding condition, and then determine the target grayscale based on the determined target grayscale range. This method allows the electronic device to switch the target grayscale range used during dimming based on the actual scene, thereby adjusting the target grayscale size during dimming based on the actual scene. Therefore, this method facilitates control of the target grayscale size and helps provide a richer dimming effect.

[0014] Optionally, the target grayscale may be an upper limit value of the target grayscale range.

[0015] In one possible design, the upper limit values ​​of the multiple grayscale ranges are different; selecting the target grayscale range from the multiple grayscale ranges includes: determining the grayscale range with the largest upper limit value among the grayscale ranges that have not been currently selected in the multiple grayscale ranges as the target grayscale range.

[0016] Based on this method, electronic devices can gradually lower the upper limit of the grayscale range used, thereby gradually lowering the upper limit of the target grayscale size, and then gradually reducing the power consumption and heat of the display process, avoiding the loss of life of the electronic device caused by power consumption and heat caused by continuously maintaining a high grayscale range.

[0017] In one possible design, selecting a target grayscale range from the multiple grayscale ranges includes: determining, based on current reference data of the electronic device, a grayscale range among the multiple grayscale ranges that corresponds to the reference data as the target grayscale range.

[0018] Based on this method, electronic devices can select and apply a target grayscale range suitable for the actual scene, thereby improving processing effects. In this method, electronic devices can also switch the target grayscale range used based on changes in the actual scene, i.e., changes in reference data, further improving the flexibility and practicality of the dimming process.

[0019] In a possible design, the upper limit value of the target grayscale range is negatively correlated with current reference data of the electronic device.

[0020] In the above method, an increase in the reference data indicates an increase in the power consumption and heat of the electronic device, thereby increasing the lifespan of the electronic device. Therefore, the upper limit of the target grayscale range is negatively correlated with the current reference data of the electronic device. By using a target grayscale range with a smaller upper limit, the power consumption and heat of the display screen can be reduced, thereby reducing the lifespan of the electronic device.

[0021] In one possible design, determining the target grayscale of the first pixel on the display screen includes: when the current reference data of the electronic device meets the second condition, lowering the upper limit value of the target grayscale range to obtain an updated target grayscale range; wherein the reference data includes the current operating parameters of the electronic device and one of the statistical parameters used to characterize the current brightness distribution characteristics of the display screen; determining the target grayscale based on the updated target grayscale range, and the target grayscale is within the updated target grayscale range.

[0022] In this method, the electronic device can lower the upper limit of the target grayscale range each time it determines that the current reference data of the electronic device meets a corresponding condition, and determine the target grayscale based on the adjusted target grayscale range. Through this method, the electronic device can achieve the effect of gradually lowering the upper limit of the target grayscale range used according to the actual scene during the dimming process, and then achieve the effect of gradually lowering the upper limit of the target grayscale size according to the actual scene during the dimming process. On the one hand, it is convenient to control the size of the target grayscale, and at the same time helps to provide a richer dimming effect. On the other hand, by gradually lowering the upper limit of the target grayscale size, the power consumption heat of the display process can be gradually reduced, avoiding the loss of life of the electronic device caused by power consumption heat caused by continuously maintaining a high grayscale range.

[0023] In one possible design, lowering the upper limit value of the target grayscale range includes: lowering the upper limit value of the target grayscale range by a target value; wherein the target value is a first set value; or, the target value corresponds to a current reference value of the electronic device; or, the target value is greater than the value to which the upper limit value of the target grayscale range was lowered last time; or, the target value is positively correlated with the current reference data of the electronic device.

[0024] In the above method, the electronic device can lower the upper limit of the target grayscale range in a variety of different ways, which is highly flexible and practical.

[0025] In one possible design, the reference data includes the duration of the first display mode, and the current reference data of the electronic device satisfies the second condition including: the duration of the first display mode reaches a set duration threshold; or, the reference data includes the effective usage time of the target grayscale range determined last time, and the current reference data of the electronic device satisfies the second condition including: the effective usage time of the target grayscale range determined last time reaches a set effective usage threshold; wherein, the effective usage time is the time the target grayscale is within the target grayscale range determined last time, or the time the target grayscale is within a set sub-range of the target grayscale range determined last time; or, the reference data includes the temperature of the electronic device, and the current reference data of the electronic device satisfies the second condition including : The temperature of the electronic device reaches a set temperature threshold; or, the reference data includes the temperature of the display screen, and the current reference data of the electronic device satisfies the second condition including: the temperature of the display screen reaches the set temperature threshold; or, the reference data includes the number of pixels on the display screen whose grayscale values ​​meet the third condition, and the current reference data of the electronic device satisfies the second condition including: the number of pixels on the display screen whose grayscale values ​​meet the third condition reaches the set number threshold; or, the reference data includes the ratio of the number of pixels on the display screen whose grayscale values ​​meet the third condition to the number of all pixels on the display screen, and the current reference data of the electronic device satisfies the second condition including: the ratio of the number of pixels on the display screen whose grayscale values ​​meet the third condition to the number of all pixels on the display screen reaches the set ratio threshold.

[0026] Optionally, the upper limit of the set sub-range is the same as the upper limit of the target grayscale range determined last time. Optionally, the third condition includes: the grayscale value is not zero, or the grayscale value is greater than or equal to a second set value.

[0027] In the above method, an increase in the reference data indicates an increase in the power consumption and heat of the electronic device, which in turn increases the lifespan of the electronic device. Therefore, by determining the target grayscale range each time the parameter data reaches the corresponding set threshold, the target grayscale range can be gradually adjusted in response to scene changes, thereby improving the dimming effect achieved based on the target grayscale range.

[0028] In one possible design, determining the target grayscale of the first pixel on the display screen includes: obtaining the current ambient light illumination, determining the grayscale corresponding to the current ambient light illumination based on the correspondence between the ambient light illumination and the grayscale, and using the grayscale corresponding to the current ambient light illumination as the target grayscale.

[0029] In this method, the electronic device determines the target grayscale according to the ambient light illumination, and can achieve a brightness display effect that better matches the ambient light when dimming, thereby improving the visual experience.

[0030] In one possible design, the method also includes: prohibiting switching to the first display mode when the current scene satisfies the first condition and / or receives the first operation, and does not meet the fourth condition; wherein the fourth condition includes: the duration between the last time the first display mode was exited is greater than or equal to the set duration; and / or the current reference data of the electronic device is less than or equal to a third set value.

[0031] In this method, the electronic device can be prohibited from entering the first display mode in certain scenarios, thereby avoiding possible damage to the electronic device caused by entering the first display mode. For example, when the first display mode is the high-brightness mode, based on the above method, the electronic device can avoid frequently entering the high-brightness mode in a short period of time, or can avoid entering the high-brightness mode in scenarios that are likely to cause life loss, such as excessive temperatures, thereby avoiding damage to the electronic device's life.

[0032] In one possible design, the first condition includes at least one of the following: the brightness of some or all pixels on the display screen meets the first brightness condition; the detected ambient light illuminance meets the first illuminance condition; multiple ambient light illuminances detected continuously for multiple times within a set time period meet the second illuminance condition.

[0033] In this method, the triggering condition for the electronic device to automatically switch to the first display mode is related to the brightness of the pixels on the display screen or the ambient light illumination, which facilitates switching of the display mode according to the actual display scene and has high practicality.

[0034] In one possible design, the first brightness condition is: greater than or equal to the first brightness; the first illuminance condition is: greater than or equal to the first illuminance; the second illuminance condition includes at least one of the following: the multiple ambient light illuminances are all greater than or equal to the second illuminance; the maximum value of the multiple ambient light illuminances is greater than or equal to the third illuminance; the minimum value of the multiple ambient light illuminances is greater than or equal to the fourth illuminance; the average value of the multiple ambient light illuminances is greater than or equal to the fifth illuminance.

[0035] Based on the above method, the electronic device can switch to the first display mode when the overall brightness of the display screen is high. Taking the first display mode as the highlight mode as an example, this method can achieve a brightness display effect that is more in line with the brightness change trend of the display screen, further improving the visual experience. Alternatively, the electronic device can switch to the first display mode when the ambient light illumination is high. Taking the first display mode as the highlight mode as an example, this method can achieve a brightness display effect that is more adaptable to the ambient light, further improving the visual experience.

[0036] In one possible design, after switching to the first display mode, the method further includes: switching to the second display mode when the current scene satisfies the fifth condition and / or receives the second operation; wherein the fifth condition includes at least one of the following: the detected ambient light illumination does not satisfy the first illumination condition; multiple ambient light illuminations detected consecutively for multiple times within a set time period do not satisfy the second illumination condition; the current reference data of the electronic device satisfies the sixth condition; wherein the reference data includes any one of the following: the duration of the first display mode, the effective usage time of the target grayscale range determined last time, the temperature of the electronic device, the temperature of the display screen, the number of pixels on the display screen whose grayscale values ​​satisfy the third condition, and the ratio of the number of pixels on the display screen whose grayscale values ​​satisfy the third condition to the number of all pixels on the display screen.

[0037] Based on the above method, the electronic device can switch between different display modes according to specific scenarios, which is highly flexible and practical.

[0038] In one possible design, when the reference data includes the duration of the first display mode or the effective usage time of the target grayscale range determined last time, the current reference data of the electronic device satisfies the sixth condition including: the duration of the first display mode reaches a set limit threshold; or, when the reference data includes the temperature of the electronic device, the current reference data of the electronic device satisfies the sixth condition including: the temperature of the electronic device reaches a set limit temperature; or, when the reference data includes the temperature of the display screen, the current reference data of the electronic device satisfies the sixth condition including: the temperature of the display screen reaches a set limit temperature; or, when the reference data includes the number of pixels on the display screen whose grayscale values ​​meet the third condition, the current reference data of the electronic device satisfies the sixth condition including: the number of pixels on the display screen whose grayscale values ​​meet the third condition is greater than or equal to the set number; or, when the reference data includes the ratio of the number of pixels on the display screen whose grayscale values ​​meet the third condition to the number of all pixels on the display screen, the current reference data of the electronic device satisfies the sixth condition including: the ratio of the number of pixels on the display screen whose grayscale values ​​meet the third condition to the number of all pixels on the display screen is greater than or equal to the set ratio.

[0039] In the above method, an increase in the reference data indicates an increase in the electronic device's power consumption and heat, which in turn increases the lifespan of the electronic device. Therefore, by switching modes once the reference data reaches a corresponding set threshold, the problem of prolonged use in a single display mode, which could potentially cause loss of lifespan for the electronic device, can be avoided.

[0040] In one possible design, the first display mode is a highlight mode.

[0041] In one possible design, adjusting the brightness of the first pixel from a first brightness to the target brightness includes: determining multiple brightnesses whose values ​​are between the first brightness and the target brightness; and adjusting the brightness of the first pixel from the first brightness to each brightness of the multiple brightnesses and the target brightness in sequence according to the order of the values ​​of the multiple brightnesses and the target brightness.

[0042] Optionally, when the target brightness is greater than the first brightness, the order of the values ​​of the multiple brightnesses and the target brightness is from small to large; when the target brightness is less than the first brightness, the order of the values ​​of the multiple brightnesses and the target brightness is from large to small.

[0043] Through the above method, the electronic device can gradually adjust from the first brightness to the target brightness according to the gradient, which can reduce the brightness change difference during the dimming process, thereby improving the brightness display effect, reducing the visual perception difference, and improving the visual experience.

[0044] In one possible design, determining multiple brightnesses having values ​​between the first brightness and the target brightness includes: determining multiple grayscales having values ​​between a second grayscale and the target grayscale; wherein the second grayscale is the grayscale of the first pixel having the first brightness; performing a first processing on a third grayscale; wherein the third grayscale is each grayscale among the multiple grayscales, and the first processing includes: obtaining a second gamma parameter from the multiple gamma parameters corresponding to the grayscale range to which the first display mode and the third grayscale belong; determining the brightness corresponding to the third grayscale based on the second gamma parameter, and using the brightness corresponding to the third grayscale as one of the multiple brightnesses.

[0045] In the above method, for each grayscale, the electronic device can determine the brightness corresponding to the grayscale based on the display mode and the gamma parameters corresponding to the grayscale range to which the grayscale belongs, thereby obtaining a more appropriate brightness for the corresponding scene and improving the display effect based on the brightness dimming.

[0046] In one possible design, when the second grayscale and the target grayscale are both greater than or equal to a fourth setting value, the number of the multiple grayscales is greater than or equal to a fifth setting value; or, when the second grayscale and the first target grayscale are both less than the fourth setting, the number of the multiple grayscales is less than the fifth setting value.

[0047] Based on this method, when the starting value of the dimming, i.e., the second grayscale, and the target value, i.e., the target grayscale, are both small, the corresponding brightness is relatively low. Given that the human eye is highly sensitive to low-brightness changes, by setting more intermediate transition grayscales, i.e., multiple grayscales, a more gradual effect can be achieved during the dimming process, thereby improving the visual viewing experience. When the starting value and the target value of the dimming are both large, the corresponding brightness is relatively high. Given that the human eye is less sensitive to high-brightness changes, by setting fewer intermediate transition grayscales, the target brightness can be reached more quickly during the dimming process while ensuring a certain visual viewing experience.

[0048] In a possible design, the number of the plurality of grayscales is positively correlated with the grayscale value difference between the second grayscale and the target grayscale.

[0049] Based on this method, when the grayscale change value is large, more transition grayscales can be set, and when the grayscale change value is small, fewer transition grayscales can be set. This can improve processing efficiency while ensuring a gradual brightness change effect.

[0050] In one possible design, after switching to the second display mode, the method further includes: executing the following process at least once: determining the target grayscale of the second pixel on the display screen; obtaining a third gamma parameter from the multiple gamma parameters corresponding to the grayscale range to which the second display mode and the target grayscale of the second pixel belong; determining the brightness corresponding to the target grayscale of the second pixel based on the third gamma parameter; and adjusting the brightness of the second pixel from a fourth brightness to the brightness corresponding to the target grayscale of the second pixel.

[0051] Optionally, the first display mode is a highlight mode, and the second display mode is an AOD mode or a normal mode.

[0052] Based on the above method, the electronic device can achieve better brightness display effect during the dimming process in different modes.

[0053] In a second aspect, the present application provides an electronic device, comprising a memory and one or more processors; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the one or more processors, the electronic device executes the method described in the above-mentioned first aspect or any possible design of the first aspect.

[0054] In a third aspect, the present application provides a computer-readable storage medium storing a computer program. When the computer program runs on an electronic device, the electronic device executes the method described in the first aspect or any possible design of the first aspect.

[0055] In a fourth aspect, the present application provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are run on an electronic device, the electronic device executes the method described in the first aspect or any possible design of the first aspect.

[0056] In a fifth aspect, the present application provides a chip system comprising a processor and a memory, wherein the memory stores instructions; when the instructions are executed by the processor, the method described in the first aspect or any possible design of the first aspect is implemented. The chip system may be composed of a chip alone, or may include a chip and other discrete components.

[0057] The beneficial effects of the second to fifth aspects mentioned above can be referred to the beneficial effects of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] FIG1 is a schematic diagram of the hardware architecture of an electronic device provided in an embodiment of the present application;

[0059] FIG2 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;

[0060] FIG3a is a schematic diagram of a gamma curve provided in an embodiment of the present application;

[0061] FIG3 b is a schematic diagram of a gamma curve provided in an embodiment of the present application;

[0062] FIG3 c is a schematic diagram of a gamma curve provided in an embodiment of the present application;

[0063] FIG4 is a schematic diagram of a multi-level dimming method provided in an embodiment of the present application;

[0064] FIG5 is a schematic diagram of a curve showing a mapping relationship between ambient light illumination and grayscale provided by an embodiment of the present application;

[0065] FIG6 is a flow chart of a method for entering and exiting a highlight mode according to an embodiment of the present application;

[0066] FIG7 is a schematic flow chart of a method for dynamically adjusting a dimming range according to an embodiment of the present application;

[0067] FIG8 is a schematic diagram of a switching scenario in a highlight phase provided by an embodiment of the present application;

[0068] FIG9 is a flow chart of a method for dynamically adjusting a dimming range according to an embodiment of the present application;

[0069] FIG10 is a schematic flow chart of a method for dynamically adjusting a dimming range according to an embodiment of the present application;

[0070] FIG11 is a flow chart of a method for dynamically adjusting a dimming range according to an embodiment of the present application;

[0071] FIG12 is a flow chart of a method for dynamically adjusting a dimming range according to an embodiment of the present application;

[0072] FIG13 is a flow chart of a method for dynamically adjusting a dimming range according to an embodiment of the present application;

[0073] FIG14 is a flow chart of a method for dynamically adjusting a dimming range according to an embodiment of the present application;

[0074] FIG15 is a schematic diagram of a pixel distribution provided in an embodiment of the present application;

[0075] FIG16 is a flow chart of a method for dynamically adjusting a dimming range according to an embodiment of the present application;

[0076] FIG17 is a schematic diagram of a brightness adjustment method provided in an embodiment of the present application;

[0077] FIG18 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0078] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0079] In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, features specified as "first" or "second" may explicitly or implicitly include one or more of the features.

[0080] To facilitate understanding, exemplary descriptions of concepts related to this application are provided for reference.

[0081] The electronic device may be a device with a display screen.

[0082] In some embodiments of the present application, the electronic device may be a terminal device, such as a portable terminal device (for example, a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, etc.), a wearable device (for example, a watch, etc.), a vehicle-mounted terminal device, an augmented reality (AR) / virtual reality (VR) device, a personal digital assistant (PDA), a smart home device (for example, a smart TV, etc.), an intelligent robot, workshop equipment, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, a flight device (for example, an intelligent robot, a drone, an airplane), etc.

[0083] Among them, exemplary embodiments of portable terminal devices include but are not limited to Or a portable terminal device with other operating systems. The portable terminal device may also be other portable terminal devices, such as a laptop computer with a touch-sensitive surface (eg, a touch panel).

[0084] A wearable device is a portable device that can be worn directly on the user's body or integrated into the user's clothing or accessories. Wearable devices can also be called wearable devices.

[0085] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.

[0086] To improve the visual display effect of dynamic dimming in electronic devices, embodiments of the present application provide a brightness adjustment method and electronic device. In this method, the electronic device can distinguish display modes and perform dynamic dimming in each display mode using a method corresponding to that display mode. This helps the electronic device present a brightness change effect that is more suitable for each display mode, thereby improving the visual display effect of brightness adjustment (i.e., dynamic dimming).

[0087] The technical solutions provided in the embodiments of this application can be executed by any computing device with processing and computing capabilities, such as an electronic device. For an introduction to the performance of the electronic device, please refer to the description in the above conceptual description. The following description uses the application of the technical solutions of this application in an electronic device as an example. The implementation process for application in other computing devices is similar and will not be repeated here.

[0088] 1 , the structure of an electronic device to which the method provided in an embodiment of the present application is applicable is introduced.

[0089] As shown in Figure 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc.

[0090] The sensor module 180 may include a gyroscope sensor, an acceleration sensor, a proximity light sensor, a fingerprint sensor, a touch sensor, a temperature sensor, a pressure sensor, a distance sensor, a magnetic sensor, an ambient light sensor, an air pressure sensor, a bone conduction sensor, and the like.

[0091] It should be understood that the electronic device 100 shown in FIG1 is merely an example and does not limit the electronic device, and the electronic device may have more or fewer components than shown in the figure, may combine two or more components, or may have a different component configuration. The various components shown in FIG1 may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.

[0092] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate an operation control signal based on the instruction opcode and the timing signal to complete the control of instruction fetching and execution.

[0093] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0094] The execution of the brightness adjustment method provided in the embodiment of the present application can be controlled by the processor 110 or completed by calling other components, such as calling the processing program of the embodiment of the present application stored in the internal memory 121, or calling the processing program of the embodiment of the present application stored in a third-party device through the external memory interface 120, to control the wireless communication module 160 to communicate data with other devices, thereby improving the intelligence and convenience of the electronic device 100 and enhancing the user experience. The processor 110 can include different devices. For example, when a CPU and a GPU are integrated, the CPU and the GPU can cooperate to execute the brightness adjustment method provided in the embodiment of the present application. For example, part of the algorithm in the brightness adjustment method is executed by the CPU, and the other part of the algorithm is executed by the GPU to obtain faster processing efficiency.

[0095] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1. The display screen 194 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, the display screen 194 can display photos, videos, web pages, or files.

[0096] In the embodiment of the present application, the display screen 194 can be an integrated flexible display screen, or a spliced ​​display screen consisting of two rigid screens and a flexible screen located between the two rigid screens.

[0097] Camera 193 (either a front-facing camera or a rear-facing camera, or one camera serving as both) is used to capture still images or videos. Typically, camera 193 includes a photosensitive element, such as a lens assembly and an image sensor. The lens assembly includes multiple lenses (convex or concave) that capture light signals reflected from the object to be photographed and transmit the captured light signals to the image sensor. The image sensor generates an original image of the object to be photographed based on the light signals.

[0098] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store the code of the operating system, application program (such as the function corresponding to the solution of the present application, etc.). The data storage area can store data created during the use of the electronic device 100, etc.

[0099] The internal memory 121 may also store one or more computer programs corresponding to the algorithms of the present application. The one or more computer programs are stored in the internal memory 121 and configured to be executed by the one or more processors 110. The one or more computer programs include instructions that can be used to perform the various steps in the following embodiments.

[0100] In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0101] Of course, the code of the algorithm of the embodiment of the present application can also be stored in an external memory. In this case, the processor 110 can run the code of the algorithm of the embodiment of the present application stored in the external memory through the external memory interface 120.

[0102] A touch sensor, also known as a "touch panel," can be provided on the display screen 194. The touch sensor and the display screen 194 form a touch display screen, also known as a "touch screen." The touch sensor is used to detect touch operations applied to or near the touch sensor. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor can also be provided on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0103] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0104] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0105] The mobile communication module 150 can provide wireless communication solutions for the electronic device 100, including solutions for the second generation (2G), third generation (3G), fourth generation (4G), fifth generation (5G), and sixth generation (6G). The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be provided in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be provided in the same device as at least some of the modules of the processor 110. In the embodiment of the present application, the mobile communication module 150 can also be used to exchange information with other devices.

[0106] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0107] The wireless communication module 160 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In the embodiment of the present application, the wireless communication module 160 can be used to establish a connection with other electronic devices and exchange data. Or the wireless communication module 160 can be used to access an access point device, send control instructions to other electronic devices, or receive data sent from other electronic devices.

[0108] In addition, the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor. For example, music playback, recording, etc. The electronic device 100 can receive input from the key 190 and generate key signal input related to the user settings and function control of the electronic device 100. The electronic device 100 can use the motor 191 to generate a vibration prompt (such as an incoming call vibration prompt). The indicator 192 in the electronic device 100 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 in the electronic device 100 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.

[0109] It should be understood that in actual applications, the electronic device 100 may include more or fewer components than those shown in FIG1 , and the embodiments of the present application are not limited thereto. The illustrated electronic device 100 is merely an example, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0110] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. For example, as shown in Figure 2, the software architecture can be divided into four layers, from top to bottom: the application layer, the application framework layer (framework, FWK), the runtime and system library, and the (Linux) kernel layer.

[0111] The application layer is the top layer of the operating system, including native applications of the operating system, such as camera, gallery, calendar, Bluetooth, music, video, information, etc., and may also include third-party applications. The application involved in the embodiment of the present application is referred to as application (APP), which is a software program that can realize one or more specific functions. Typically, multiple applications can be installed in an electronic device, such as a camera application, a mailbox application, etc. The applications mentioned below can be system applications that are installed on the electronic device when it leaves the factory, or they can be third-party applications that the user downloads from the Internet or obtains from other electronic devices while using the electronic device.

[0112] Of course, developers can write applications and install them into this layer. In one possible implementation, applications can be developed using the Java language by calling the application programming interface (API) provided by the application framework layer. Developers can use the application framework to interact with the underlying layer of the operating system (such as the kernel layer) and develop their own applications.

[0113] The application framework layer provides the application API and programming framework. It includes predefined functions and can include a window manager, content provider, view system, telephony manager, resource manager, and notification manager.

[0114] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the display (or screen), capture the display, etc.

[0115] Content providers are used to store and retrieve data and make it accessible to applications. The data may include files (such as documents, videos, images, audio), text, and other information.

[0116] The view system includes visual controls, such as those that display text, images, and documents. The view system is used to build applications. The interface within a display window can be composed of one or more views. For example, the interface for a text notification icon might include a view that displays text and a view that displays an image.

[0117] The phone manager provides communication functionality for electronic devices. The notification manager enables applications to display notifications in the status bar, which can be used to convey informational messages and automatically disappear after a short period of time without user interaction.

[0118] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the system.

[0119] The system's core library consists of two parts: one containing the Java language's callable functions and the other the system's core library. The application layer and application framework layer run within a virtual machine. For example, in Java, the virtual machine executes Java files from the application and framework layers as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0120] The system library can include multiple functional modules. For example: surface manager, media library, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), image processing library, etc. The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.564, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0121] The kernel layer provides the operating system's core system services, such as security, memory management, process management, the network protocol stack, and the driver model. These services are all implemented at the kernel layer. The kernel layer also serves as an abstraction layer between the hardware and software stacks. This layer contains many drivers related to electronic devices, including the display driver, the keyboard driver for input devices, the Flash driver for memory-based devices, the camera driver, the audio driver, the Bluetooth driver, and the Wi-Fi driver.

[0122] It should be understood that the functional services described above are only examples. In actual applications, electronic devices can also be divided into more or fewer functional services according to other factors, or the functions of each service can be divided in other ways, or the functional services can be not divided but work as a whole.

[0123] In conjunction with the hardware architecture of the electronic device shown in FIG1 and the software architecture of the electronic device shown in FIG2 , the solution provided by the present application is described in detail below in conjunction with specific embodiments. In the following embodiments, the solution provided by the present application is described using the scenario of an electronic device displaying content on a self-luminous display (e.g., an OLED display) as an example. The specific implementation methods for other similar scenarios can be found in the following description and will not be described in detail in the embodiments of the present application.

[0124] Example 1

[0125] In some embodiments of the present application, the display mode of the display screen of the electronic device may include at least one of the following: always on display (AOD) mode, normal mode, and high brightness mode. Each mode is described in detail below.

[0126] AOD mode is a mode in which an electronic device displays useful information in the screen-off state. In AOD mode, the electronic device can control the display screen to light up partially and display content without lighting up the entire display screen. Compared with the mode in which the entire display screen is lit and displays content (i.e., the bright screen mode), this mode can save power consumption. In AOD mode, some information (such as clock, calendar, notifications, etc.) can be displayed in a minimized manner, so that the user can view this information anytime, anywhere in the most convenient way when the electronic device has low power consumption. That is to say, in AOD mode, the display screen of the electronic device can display specific information such as time and notifications in a limited manner. AOD mode can also be called screen-off display mode or screen-off mode. In the embodiment of the present application, the screen-off can also be understood as or referred to as the screen-off.

[0127] Normal mode is a mode in which an electronic device controls its display screen to display content at normal brightness. Normal mode is the mode in which a user normally uses the electronic device. Normal brightness can be a brightness that is less than or equal to a set first brightness value. In normal mode, the brightness of the electronic device's display screen is less than or equal to the first brightness value.

[0128] Highlight mode is a mode in which an electronic device controls the display screen to display content at high brightness. The high brightness is a brightness greater than or equal to a first brightness value. The first brightness value is the critical value between normal mode and highlight mode, and the first brightness value can belong to both highlight mode and normal mode. Optionally, the high brightness can also be a brightness less than or equal to a set second brightness value. The second brightness value is greater than the first brightness value. In highlight mode, the brightness of the electronic device display screen is greater than or equal to the first brightness value. Optionally, in highlight mode, the brightness of the electronic device display screen is less than or equal to the second brightness value.

[0129] In the solution provided in this embodiment, different display modes can correspond to different brightness adjustment methods. The electronic device can control the brightness of the display screen in each display mode according to the brightness adjustment method corresponding to that display mode, thereby minimizing the visual perception effect of display screen brightness changes. This solution is described in detail below.

[0130] The following first describes the concepts and basic methods involved in the solution provided by this embodiment.

[0131] Gamma values ​​are parameters used to represent the exponential relationship between input and output values. When used in display scenarios, gamma values ​​represent the relationship between the grayscale values ​​input to a display (or monitor) and the luminance of the light emitted. This visually compensates for the human eye's nonlinear perception of natural brightness. Gray levels are the process of dividing the brightness range between darkest and brightest into several levels, facilitating display brightness control. Each image (or digital image) displayed on an electronic device's display is composed of many points, called pixels. Typically, each pixel can display different colors and is composed of three sub-pixels: red (R), green (G), and blue (B). The light source behind each sub-pixel (i.e., the corresponding light-emitting unit) can exhibit different brightness levels, and grayscale represents the different brightness levels between darkest and brightest. The greater the number of brightness levels, the more detailed the display can produce. For example, an 8-bit display panel can display 256 (2 to the power of 8) brightness levels, corresponding to 256 grayscale shades. Each pixel on the display is composed of R, G, and B sub-pixels of varying brightness levels, ultimately forming a distinct color point. In other words, the color variation of each pixel on the display is actually caused by the grayscale variations of the R, G, and B sub-pixels that comprise that pixel.

[0132] The Gamma curve is a curve used to represent the exponential relationship between grayscale values ​​and brightness values. The Gamma curve is a special tone curve. The Gamma curve can be expressed as y=x Gamma , where x represents the grayscale value and y represents the brightness value. In traditional schemes, the value of Gamma is generally 2.2, and the display screens of electronic devices generally refer to y=x 2.2 Gamma curves are used for dimming (i.e., controlling or adjusting the brightness of the display). With reference to the gamma curve, electronic devices can control the brightness of the light through grayscale values. During the dimming process, electronic devices can adjust the brightness by adjusting the grayscale values.

[0133] In practical applications, if electronic devices strictly dim according to the relationship between grayscale and brightness indicated by the Gamma curve, there will be problems such as high implementation difficulty and cost, and low implementation efficiency. Therefore, in practical applications, electronic devices generally do not strictly dim according to the relationship between grayscale and brightness indicated by the Gamma curve. Instead, they can determine binding points and non-binding points based on the Gamma curve, and finally dim based on the grayscale and brightness of the binding points and non-binding points. The grayscale and brightness of the binding points conform to the Gamma curve, while the grayscale and brightness of the non-binding points may not conform to the Gamma curve. However, the overall grayscale and brightness relationship of the binding points and non-binding points conforms to the changing trend of the Gamma curve. The number of binding points and the grayscale of each binding point can be selected by the electronic device itself or can be indicated by the user, and are not specifically limited in the embodiments of this application. The brightness of the binding points can be calculated by the electronic device based on the grayscale of the binding points and the Gamma curve. The electronic device can determine the grayscale and brightness of the non-binding points by linear or non-linear interpolation between the binding points, fitting based on the Gamma curve, etc., and this is not specifically limited in the embodiments of this application.

[0134] The specific solution provided in this embodiment is described in detail below.

[0135] In the solution provided by this embodiment, the electronic device can control the brightness of the display screen with reference to different Gamma curves in different display modes, thereby achieving adaptive dynamic dimming in multiple modes, minimizing the visual perception effect of brightness changes during the dimming process, and improving the user's visual experience. In each display mode, the electronic device can refer to at least one Gamma curve for dimming. In each display mode, when the electronic device has multiple Gamma curves for reference, the grayscale ranges / brightness ranges corresponding to the multiple Gamma curves can be different, and the electronic device can refer to the Gamma curve corresponding to the grayscale range / brightness range for dimming in each grayscale range / brightness range. In the solution provided by this embodiment, the grayscale range of each display mode can be a preconfigured range, and the brightness range of each display mode can be determined based on the grayscale range of the display mode and the corresponding Gamma curve. Alternatively, the brightness range of each display mode can be a preconfigured range, and the grayscale range of each display mode can be determined based on the brightness range of the display mode and the corresponding Gamma curve.

[0136] Based on the above method, when entering any display mode, the electronic device can select the grayscale of a binding point within the grayscale range of that display mode and determine the brightness of the binding point based on the grayscale of the binding point and the gamma curve corresponding to the grayscale range. After determining the binding point and the brightness of the grayscale, the electronic device can determine the grayscale and brightness of non-binding points based on the grayscale and brightness of the binding point, and then implement dimming based on the grayscale and brightness of the binding point and non-binding points.

[0137] In one possible solution, the electronic device can refer to the first Gamma curve for dimming in AOD mode, refer to the second Gamma curve and the third Gamma curve for dimming in normal mode, and refer to the fourth Gamma curve for dimming in high-brightness mode. The Gamma values ​​corresponding to different Gamma curves may be different. In normal mode, the electronic device can refer to the second Gamma curve for dimming in the first grayscale range, and refer to the third Gamma curve for dimming in the second grayscale range. The upper limit value of the first grayscale range may be the same as the lower limit value of the second grayscale range. The first grayscale range may correspond to the first brightness range, and the second grayscale range may correspond to the second brightness range. Optionally, the upper limit value of the first brightness range may be the same as the lower limit value of the second brightness range.

[0138] Optionally, the electronic device may include a dimming control module and a dimming execution module. Among them, the dimming control module can be used to control the display mode switching, configure the Gamma curve, grayscale range, brightness range, etc. corresponding to different display modes, and can indicate the relevant configuration information to the dimming execution module. The dimming execution module can perform the dimming process according to the above method. As an optional implementation, the dimming control module can pre-indicate the Gamma curve corresponding to different display modes to the dimming execution module. When instructing the dimming control module to switch the display mode, the dimming control module can indicate the grayscale range corresponding to the switched display mode to the dimming control module. After receiving the indication of switching the display mode and the corresponding grayscale range, the dimming control module can obtain the corresponding Gamma curve, and perform dimming according to the above method based on the grayscale range and the Gamma curve.

[0139] In one example, the dimming control module may be a CPU of an electronic device, and the dimming execution module may be a device or structure such as a microprocessor or an integrated circuit (IC) of a display screen of the electronic device.

[0140] Based on the above method, the solution provided in this embodiment is exemplarily described below in combination with the following Examples 1 to 4.

[0141] Example 1: In an example scenario, the display screen of the electronic device may adopt an 8-bit panel, and the display screen of the electronic device may support 256 grayscales, and the grayscale values ​​of the 256 grayscales may be 0 to 255 respectively, so the grayscale range of the electronic device may be 0 to 255.

[0142] For example, the brightness range of the electronic device in the AOD mode can be 0 to Y1 nits. For example, the value of Y1 can be 600, etc., which is not specifically limited in this embodiment. The gamma curve corresponding to the electronic device in the AOD mode, that is, the first gamma curve, can be recorded as y=x Gamma1 , where x is the grayscale value, y is the brightness value, and Gamma1 is the gamma value corresponding to the AOD mode. For example, the first gamma curve may be curve 1 shown in FIG3a . In the AOD mode, a grayscale value of 0 corresponds to a minimum brightness value of 0 nit, and a grayscale value of 255 corresponds to a maximum brightness value of Y1 nit.

[0143] Exemplarily, the brightness range of the electronic device in normal mode can be 0~Y2 nits (nit), wherein Y2nit is the maximum brightness value of the electronic device in normal mode (i.e., the set first brightness value). For example, the value of Y2 can be 600, etc., which is not specifically limited in this embodiment. The brightness range of the electronic device in normal mode can be divided into two ranges of 0~Y3nit and Y3~Y2nit, and the grayscale range of the electronic device in normal mode can be divided into two ranges of 0~X1 and X1~255. Among them, the brightness range 0~Y3nit corresponds to the grayscale range 0~X1, and the brightness range Y3~Y2nit corresponds to the grayscale range X1~255. The corresponding gamma curves of the electronic device in normal mode, i.e., the second gamma curve and the third gamma curve, can be respectively recorded as y=x Gamma2 and y = x Gamma3 , where the grayscale range corresponding to the second gamma curve, i.e., the first grayscale range, is 0 to X1, and the brightness range corresponding to the second gamma curve, i.e., the first brightness range, is 0 to Y3nit; the grayscale range corresponding to the third gamma curve, i.e., the second grayscale range, is X1 to 255, and the brightness range corresponding to the third gamma curve, i.e., the second brightness range, is Y3 to Y2nit; x is the grayscale value, y is the brightness value, Gamma2 is the gamma value corresponding to the first grayscale range and the first brightness range; Gamma3 is the gamma value corresponding to the second grayscale range and the second brightness range. For example, the second gamma curve can be curve 2 shown in Figure 3b, and the third gamma curve can be curve 3 shown in Figure 3b. In normal mode, a grayscale value of 0 corresponds to a minimum brightness value of 0nit, a grayscale value of X1 corresponds to a brightness value of Y3nit, and a grayscale value of 255 corresponds to a maximum brightness value of Y2nit.

[0144] Exemplarily, the brightness range of the electronic device in the highlight mode can be Y4 to Y5nit. Among them, Y4nit is the minimum brightness value in the highlight mode. Optionally, Y4nit can be the maximum brightness value in the normal mode, that is, Y4 can be equal to Y1. Y5nit is the maximum brightness value in the highlight mode (that is, the set second brightness value). For example, the value of Y5 can be 1500, etc., and there is no specific limitation in this embodiment. The Gamma curve corresponding to the electronic device in the highlight mode, that is, the fourth Gamma curve, can be recorded as y=x Gamma4 , where x is the grayscale value, y is the brightness value, and Gamma4 is the gamma value corresponding to the highlight mode. For example, the fourth gamma curve may be curve 4 shown in FIG3c . In the fourth gamma curve corresponding to the highlight mode, a grayscale value of 0 corresponds to a minimum brightness value of 0 nit, and a grayscale value of 255 corresponds to a maximum brightness value of Y5 nit.

[0145] Example 2. In one example, in the scenario described in Example 1 above, when the electronic device determines that it needs to enter the AOD mode (for example, when the electronic device receives a screen-off or screen-lock operation acting on the power button, or receives a voice operation indicating entering the AOD mode, or when the electronic device needs to enter the AOD mode due to detecting that it is in a set scene), the dimming control module in the electronic device can send an instruction to enter or switch to the AOD mode to the dimming execution module, and indicate the target grayscale to be adjusted or the target grayscale range for dimming to the dimming execution module, and the target grayscale range can be X C ~X T , X C is the current grayscale, X T is the target grayscale. X C 、X TThe value belongs to the grayscale range corresponding to the AOD mode. Among them, the dimming control module can indicate the first Gamma curve to the dimming execution module in advance, or can indicate the first Gamma curve to the dimming execution module when it is determined to enter the AOD mode. After the dimming execution module receives the indication to enter or switch to the AOD mode, it can select the grayscale value of the binding point between the current grayscale and the target grayscale or within the grayscale range issued by the dimming control module, and determine the brightness value of the binding point based on the first Gamma curve, thereby obtaining multiple binding points. After obtaining multiple binding points, the dimming execution module can determine other non-binding points based on the multiple binding points, and then perform dimming based on the multiple binding points and other non-binding points. For example, the dimming execution module can select four binding points, and the grayscale values ​​of these four binding points can be the grayscale values ​​0, 100, 150 and 255 shown in Figure 3a, respectively. Based on the first Gamma curve, the brightness values ​​of these four binding points can be determined to be the brightness values ​​0, y1, y2 and Y1 shown in Figure 3a, respectively. The dimming execution module can determine the grayscale and brightness values ​​of multiple non-binding points by interpolating between the binding points. Based on this, during the display process, the dimming execution module can adjust the brightness of the display screen based on the relevant data (i.e., grayscale and brightness values) of the binding and non-binding points.

[0146] Example 3. In one example, in the scenario described in Example 1 above, when the electronic device determines that it needs to enter the normal mode (for example, when the electronic device receives an unlocking operation for lighting up the full screen or a voice operation instructing to enter the normal mode in the AOD state, or when the electronic device needs to enter the normal mode due to detecting that it is in a set scene), the dimming control module in the electronic device can send an instruction to enter or switch to the normal mode to the dimming execution module, and indicate the target grayscale to be adjusted or the target grayscale range for dimming to the dimming execution module, and the target grayscale range can be X C ~X T , X C is the current grayscale, X T is the target grayscale. X C 、X TThe value belongs to the grayscale range corresponding to the normal mode. Among them, the dimming control module can pre-indicate the second Gamma curve corresponding to the first grayscale range and the first brightness range, and the third Gamma curve corresponding to the second grayscale range and the second brightness range to the dimming execution module, or can indicate the second Gamma curve corresponding to the first grayscale range and the first brightness range, and the third Gamma curve corresponding to the second grayscale range and the second brightness range to the dimming execution module when determining to enter the normal mode. After the dimming execution module receives the instruction to enter or switch to the normal mode, it can select the grayscale of the binding point between the current grayscale and the target grayscale or within the grayscale range issued by the dimming control module. When the grayscale value of the selected binding point belongs to the first grayscale range, the dimming execution module can determine the brightness value of the binding point based on the second Gamma curve. When the grayscale value of the selected binding point belongs to the second grayscale range, the dimming execution module can determine the brightness value of the binding point based on the third Gamma curve. The dimming execution module can obtain multiple binding points based on the above method, and can determine other non-binding points based on the multiple binding points, and then perform dimming based on the multiple binding points and other non-binding points. For example, the dimming execution module can select five binding points, and the grayscale values ​​of these five binding points can be grayscale values ​​0, X1, 100, 150 and 255 as shown in Figure 3b, respectively. Based on the second Gamma curve, the brightness value of the binding point with a grayscale value of 0 can be determined to be 0, based on the second Gamma curve or the third Gamma curve, the brightness value of the binding point with a grayscale value of X1 can be determined to be Y3 as shown in Figure 3b, and based on the third Gamma curve, the brightness values ​​of the binding points with grayscale values ​​of 150, 200 and 255 can be determined to be y3, y4 and Y2 as shown in Figure 3b. The dimming execution module can determine the grayscale values ​​and brightness values ​​of multiple non-binding points by interpolating between the binding points. Based on this, during the display process, the dimming execution module can adjust the brightness of the display screen according to the relevant data of the binding points and non-binding points (i.e., grayscale values ​​and brightness values).

[0147] Example 4. In one example, in the scenario described in Example 1 above, when the electronic device determines that it needs to enter the highlight mode (for example, when the electronic device receives an operation such as a gesture operation or voice operation for instructing to enter the highlight mode, or when the electronic device needs to switch from the normal mode to the highlight mode due to detecting that it is in a set scene), the dimming control module in the electronic device can send an instruction to enter or switch to the highlight mode to the dimming execution module, and indicate the target grayscale to be adjusted or the target grayscale range for dimming to the dimming execution module, and the target grayscale range can be X C ~X T , X C is the current grayscale, X T is the target grayscale. X C 、X TThe value of belongs to the grayscale range corresponding to the highlight mode. C It can be the grayscale value corresponding to the highest brightness value in normal mode, that is, X C =X2. In this scenario, the dimming control module can determine X2 based on the highest brightness value Y1 in normal mode and the gamma curve corresponding to normal mode. The dimming control module can indicate the fourth gamma curve to the dimming execution module in advance, or can indicate the fourth gamma curve to the dimming execution module when it is determined to enter the high brightness mode. After receiving the instruction to enter or switch to the high brightness mode, the dimming execution module can select the grayscale value of the binding point between the current grayscale and the target grayscale or within the grayscale range issued by the dimming control module, and determine the brightness value of the binding point based on the fourth gamma curve, thereby obtaining multiple binding points. After obtaining multiple binding points, the dimming execution module can determine other non-binding points based on the multiple binding points, and then perform dimming based on the multiple binding points and other non-binding points. The dimming execution module can select four binding points. The grayscale values ​​of these four binding points can be the grayscale values ​​X2, 180, 210, and 255 shown in Figure 3c, respectively. Based on the fourth gamma curve, the brightness values ​​of these four binding points can be determined to be the brightness values ​​Y4, y5, y6, and Y5 shown in Figure 3c, respectively.

[0148] In the above examples 2 to 4, the dimming control module indicates the grayscale range corresponding to the mode to be entered to the dimming execution module, so that the dimming execution module performs dimming according to the received grayscale range. As another feasible solution, in the scenarios of the above examples 2 to 4, the dimming control module may also indicate the brightness range corresponding to the mode to be entered to the dimming execution module instead of the grayscale range corresponding to the mode to be entered to the dimming execution module. The dimming execution module can select the brightness value of the binding point within the received brightness range, and then determine the grayscale value of the binding point based on the brightness value of the binding point and the Gamma curve to be called, thereby obtaining multiple binding points and executing subsequent steps.

[0149] It should be noted that the specific values ​​of grayscale value, brightness value, number of binding points, etc. described in Examples 1 to 4 above are for illustrative purposes only and do not limit the scenarios to which this application scheme is applicable. The specific data in the scenarios to which this application scheme is applicable can be flexibly set and are not limited to the values ​​mentioned above.

[0150] Example 2

[0151] In some embodiments of the present application, when the electronic device performs dimming in each display mode, it can adjust the brightness from the current brightness to the required target brightness step by step through the step-by-step dimming method, thereby minimizing or reducing the sudden brightness changes during the dimming process and reducing the visual perception difference.

[0152] Among them, the current brightness corresponds to the current grayscale, and the target brightness corresponds to the target grayscale. The step-by-step adjustment from the current brightness to the target brightness described in the embodiment of the present application can also be understood as step-by-step adjustment from the current grayscale to the target grayscale. Therefore, the current brightness described in this embodiment can also be replaced by the current grayscale, the target brightness can also be replaced by the target grayscale, and the multiple brightness levels can also be replaced by multiple grayscales. By adjusting from the current grayscale to the target grayscale step by step according to the multiple grayscales, the effect of adjusting from the current brightness to the target brightness step by step can be achieved.

[0153] 4 , the graded dimming scheme provided in this embodiment includes graded dimming in AOD mode, graded dimming in normal mode, and graded dimming in highlight mode. When entering or switching to each display mode, the electronic device can first determine the current brightness and the target brightness, and then determine multiple brightness levels that gradually change from the current brightness to the target brightness based on the current brightness and the target brightness, and then adjust the brightness from the current brightness to the target brightness step by step according to the multiple brightness levels. Among them, the number of grades of multiple brightness levels in different display modes can be the same or different. For example, as shown in FIG4 , the number of grades of multiple brightness levels in AOD mode can be M grades, the number of grades of multiple brightness levels in normal mode can be N grades, and the number of grades of multiple brightness levels in highlight mode can be P grades. Among them, M, N, and P are all positive integers.

[0154] The method for determining the target brightness described in the above solution is described in detail below.

[0155] In the above scheme, the target brightness in any display mode is the brightness that needs to be adjusted in that display mode. The target brightness in different display modes can be different. The target brightness in any display mode can be determined by any of the following methods:

[0156] 1) Get the target brightness set for the display mode.

[0157] In this manner, the target brightness in any display mode may be a preset brightness, which may be configured by the electronic device system or set by the user, and is not specifically limited in the embodiments of the present application.

[0158] 2) Determine the target brightness based on the reference information.

[0159] Among them, the reference information may include the current ambient light illumination, the current scene, user instruction information, etc., and no specific restrictions are made in the embodiments of the present application.

[0160] Some methods for determining target brightness based on reference information that can be used in embodiments of the present application are exemplified below.

[0161] In a first possible solution, the electronic device can determine the brightness corresponding to the current ambient light level based on a preset mapping relationship between different ambient light levels and different brightness levels, and use this brightness as the target brightness. This mapping relationship can be represented in a format such as a table, function, or graph, and is not specifically limited in the present embodiment.

[0162] In a second possible solution, the electronic device can determine the grayscale corresponding to the current ambient light illumination based on a preset mapping relationship between different ambient light illuminations and different grayscales, and use the grayscale as the target grayscale, and the brightness corresponding to the target grayscale as the target brightness. The mapping relationship can be represented in a format such as a table, a function, or a curve graph, and is not specifically limited in the embodiments of the present application. Optionally, the target brightness corresponding to any target grayscale can be determined according to the grayscale curve provided in the aforementioned embodiment 1.

[0163] In some embodiments, there may be one or more mapping relationships described in the first possible solution or the second possible solution. When there are multiple mapping relationships, different mapping relationships among the multiple mapping relationships may be used in different scenarios.

[0164] As an optional implementation, different mapping relationships may correspond to different display modes, and the electronic device may select a corresponding mapping relationship for use in each display mode.

[0165] As another optional implementation, the electronic device may determine the mapping relationship to be used based on user instructions. For example, different mapping relationships may correspond to different brightness levels, and different brightness levels may correspond to different brightness value ranges. The electronic device may display the brightness level corresponding to each mapping relationship in the function interface for brightness control. Based on this, the user may indicate the mapping relationship to be used by selecting a brightness level, and the electronic device may use the mapping relationship corresponding to the brightness level selected by the user as the mapping relationship to be used. For another example, different mapping relationships may correspond to different brightness value ranges. The electronic device may determine the brightness adjusted by the user based on the user's operation on the brightness bar for controlling the brightness, and use the mapping relationship corresponding to the brightness value range to which the brightness belongs as the mapping relationship to be used.

[0166] The method provided in the above embodiment is exemplified below by taking the above mapping relationship as the mapping relationship between ambient light illumination and grayscale, and the mapping relationship is expressed in the format of a curve graph as an example, combined with the following Example 5.

[0167] Example 5. In one example, there is a mapping relationship between ambient light illuminance and grayscale, which can be represented by curve 3 shown in Figure 5. The electronic device can determine the target grayscale corresponding to the current ambient light illuminance based on the detected current ambient light illuminance and curve 3, and use the brightness corresponding to the target grayscale as the target brightness.

[0168] In another example, there may be multiple mapping relationships between ambient light illumination and grayscale, and the multiple mapping relationships may be represented by curves 0 to 5 shown in FIG5 . Among them, curves 0 to 5 correspond to brightness levels 0 to 5, respectively, and brightness levels 0 to 5 correspond to five brightness ranges that increase in sequence. When the user selects to use curve 0 through an operation, the electronic device may determine the target grayscale corresponding to the current ambient light illumination based on the detected current ambient light illumination and the curve 0, and determine the target brightness based on the target grayscale. When the user selects to use curve 1 through an operation, the electronic device may determine the target grayscale corresponding to the current ambient light illumination based on the detected current ambient light illumination and the curve 1, and determine the target brightness based on the target grayscale. Similarly, the electronic device may determine the target grayscale or target brightness using the curve indicated by the user.

[0169] For example, in the above method, the ambient light illumination range corresponding to different environmental scenes can refer to the following Table 1.

[0170] Table 1 Correspondence between environmental scenes and ambient light intensity

[0171] The ambient light illuminance in common scenarios shown in Table 1 above can be covered in the above curve for representing the mapping relationship between ambient light illuminance and grayscale.

[0172] Based on the above method, the electronic device can determine the target grayscale and target brightness corresponding to the ambient light illumination. For example, the target grayscale and target brightness corresponding to some ambient light illuminations can be referred to in Table 2 below.

[0173] Table 2 Correspondence between ambient light intensity, target grayscale, and target brightness

[0174] Among them, Xmax represents the maximum value of ambient light illumination, and Zmax represents the maximum value of target brightness.

[0175] As shown in Table 2, under different ambient light intensities, the electronic device can obtain different target grayscales and target brightness.

[0176] Optionally, the relationship between the target grayscale value and the target brightness value shown in Table 2 conforms to the gamma curve in the high-brightness mode.

[0177] The following is a detailed description of the method for determining the number of levels and the multiple brightness levels described in the above solution.

[0178] In some embodiments of the present application, the electronic device may determine the number of multiple brightness levels in each display mode according to any one of the following methods 1 to 4.

[0179] Method 1: Use set value, or set randomly.

[0180] Method 2: When the current brightness and target brightness fall within the set low brightness range, a level greater than or equal to the set first level value is used; when the current brightness and target brightness fall within the set high brightness range, a level less than the set first level value is used. Alternatively, in AOD mode or normal mode, a level greater than or equal to the set first level value is used; in high brightness mode, a level less than the set first level value is used.

[0181] Example 6. In one example, based on the scenarios described in Examples 1 to 4 above, the low brightness range can be set to 0 to 600 nits, and the high brightness range can be set to 600 to 1500 nits. The first level value can be set to 8. In this scenario, according to the method described in Method 2, when the current brightness is 100 nits and the target brightness is 200 nits, the electronic device can set the level to 10. When the current brightness is 1000 nits and the target brightness is 1100 nits, the electronic device can set the level to 5.

[0182] In the above method, since the human eye has a stronger perception of brightness changes in the low brightness range, therefore, when the current brightness and the target brightness fall within the set low brightness range, by setting a larger number of gears, the brightness value of each gear change can be reduced, thereby achieving a more gradual brightness change effect, while reducing the visual perception difference of each brightness change, increasing the degree of imperceptibility of brightness adjustment, and thus improving the visual experience. Since the human eye has a weaker perception of brightness changes in the high brightness range, therefore, when the current brightness and the target brightness fall within the set high brightness range, by setting a smaller number of gears, it is possible to increase the brightness value of each gear change while ensuring a small visual perception difference of brightness changes, thereby adjusting to the target brightness more quickly.

[0183] Method 3: Set the number of levels based on the positive correlation between the number of levels and the brightness change value.

[0184] The brightness change value is the difference between the target brightness and the current brightness. A larger brightness change value results in a larger number of steps; a smaller brightness change value results in a smaller number of steps. This method helps achieve more gradual brightness changes.

[0185] In some embodiments of the present application, after the electronic device determines the number of multiple brightness levels according to the above method, it can refer to the number of levels and adjust the light to the target brightness step by step in at least one of equidistant or non-equidistant, linear or non-linear manners.

[0186] As an optional implementation, the electronic device can divide the brightness change value by the number of gears to obtain a value as the gear spacing (i.e., the brightness value difference between two adjacent gears) to achieve equidistant dimming. As another optional implementation, the electronic device can round the value obtained by dividing the brightness change value by the number of gears, and use the rounded value as the gear spacing, so as to use integer-level brightness values ​​for dimming, thereby reducing the difficulty of dimming. The brightness value of each gear determined by the electronic device can be used as the brightness value of the binding point or as the brightness value of the non-binding point.

[0187] For example, in the scenario described in Example 6 above, when the current brightness is 100 nits, the target brightness is 200 nits, and the number of levels is 10, the electronic device can use an equidistant dimming method. The multiple brightness levels between the current brightness and the target brightness can be determined to be 110 nits, 120 nits, 130 nits, 140 nits, 150 nits, 160 nits, 170 nits, 180 nits, 190 nits, and 200 nits, respectively. The electronic device can adjust the brightness from 100 nits to 200 nits step by step according to the multiple brightness levels.

[0188] For another example, in the scenario described in Example 6 above, when the current brightness is 1000 nit, the target brightness is 1100 nit, and the number of levels is 5, the electronic device can use a non-equidistant dimming method. In one possible scenario, the electronic device can determine that the multiple brightness levels between the current brightness and the target brightness are 1010 nit, 1020 nit, 1040 nit, 1060 nit, and 1100 nit, respectively. The electronic device can adjust the brightness from 1000 nit to 1100 nit step by step according to the multiple brightness levels.

[0189] It should be noted that the specific values ​​of ambient light illumination, brightness range, gear value, brightness value, etc. described in the above examples are only for illustrative purposes and do not limit the present application. The specific data in the application scenario of the present application can be flexibly set and is not limited to the above-mentioned values.

[0190] Example 3

[0191] For highlight mode, the brightness change value when the electronic device enters and exits highlight mode is usually large, and it is more likely to visually show obvious brightness changes, thus more likely to cause a poor visual experience. In view of this, in some embodiments of the present application, the electronic device can enter highlight mode when it determines that the conditions for entering highlight mode are met. Similarly, the electronic device can exit highlight mode when it determines that the conditions for exiting highlight mode are met. This solution is described in detail below.

[0192] 6 , a method for processing entering and exiting a highlight mode provided in this embodiment may include:

[0193] S601: The electronic device determines the current brightness and the current ambient light illumination.

[0194] S602: When the electronic device determines that the current brightness satisfies the first brightness condition and the current ambient light illuminance satisfies the first illuminance condition, the electronic device collects at least one ambient light illuminance data.

[0195] The first brightness condition may be: the current brightness is equal to a set first brightness value, or the brightness difference between the current brightness and the set first brightness value is less than or equal to a set first threshold. The first illuminance condition may be: the current ambient light illuminance is greater than or equal to the set first illuminance.

[0196] Optionally, in step S602, the electronic device may collect at least one piece of ambient light illumination data by continuously collecting at least one piece of ambient light illumination data within a set first time period, thereby obtaining at least one piece of ambient light illumination data. For example, the first time period may be 2 seconds (s), and the electronic device may continuously collect the ambient light illumination data four times within 2 seconds, thereby obtaining four pieces of ambient light illumination data.

[0197] Optionally, the electronic device may collect at least one piece of ambient light data through an ambient light sensor (ALS).

[0198] S603: The electronic device determines whether at least one piece of ambient light illumination data meets a set second illumination condition. If so, step S604 is executed; otherwise, step S601 is executed.

[0199] The second illumination condition can be any one of the following: all are greater than or equal to the set second illumination; the average value is greater than or equal to the set second illumination; the maximum value is greater than or equal to the set second illumination; and contains at least one data greater than or equal to the set second illumination.

[0200] Optionally, the above steps S601 to S603 may be executed by a dimming control module in the electronic device. Based on this, in step S603, when the dimming control module determines that at least one ambient light illumination data meets the set second illumination condition, it may instruct the dimming execution module to enter the high brightness mode.

[0201] S604: The electronic device enters the highlight mode and executes steps S605 and S607.

[0202] Optionally, step S604 may be executed by a dimming execution module in the electronic device.

[0203] S605: The electronic device determines the target brightness and executes step S606.

[0204] Optionally, step S605 may be performed by a dimming control module or a dimming execution module in the electronic device. When step S605 is performed by the dimming control module, the dimming control module may further indicate the determined target brightness to the dimming execution module.

[0205] S606: The electronic device adjusts the current brightness to the target brightness.

[0206] The specific implementation method of the electronic device determining the target brightness and adjusting the current brightness to the target brightness can refer to the relevant description of the aforementioned embodiment 2, which will not be repeated here.

[0207] Optionally, step S606 may be executed by a dimming execution module in the electronic device.

[0208] S607: The electronic device collects at least one piece of ambient light illumination data.

[0209] Optionally, in step S607, the electronic device may collect at least one piece of ambient light illumination data by continuously collecting at least one piece of ambient light illumination data within a set second time period, thereby obtaining at least one piece of ambient light illumination data. The second time period may be equal to or different from the first time period. For example, the second time period may be 2 seconds (s), and the electronic device may continuously collect four pieces of ambient light illumination data within 2 seconds, thereby obtaining four pieces of ambient light illumination data.

[0210] S608: The electronic device determines whether at least one piece of ambient light illumination data meets the set third illumination condition. If so, the electronic device proceeds to step S609; otherwise, the electronic device proceeds to step S607.

[0211] The third illumination condition can be any one of the following: all are greater than or equal to the set third illumination; the average value is greater than or equal to the set third illumination; the maximum value is greater than or equal to the set third illumination; and contains at least one data greater than or equal to the set third illumination.

[0212] The third illuminance may be equal to or different from the second illuminance.

[0213] S609: The electronic device collects at least one piece of ambient light illumination data.

[0214] Optionally, in step S609, the electronic device may collect at least one piece of ambient light illumination data by continuously collecting at least one piece of ambient light illumination data within a set third time period, thereby obtaining at least one piece of ambient light illumination data. The third time period may be equal to or different from the first time period / the second time period. For example, the third time period may be 4 seconds (s), and the electronic device may continuously collect the ambient light illumination data 6 times within 4 seconds, thereby obtaining 6 pieces of ambient light illumination data.

[0215] S610: The electronic device determines whether at least one piece of ambient light illumination data meets the set fourth illumination condition. If so, execute step S611; otherwise, execute step 607.

[0216] The fourth illumination condition may be any one of the following: all are less than the set fourth illumination; the average value is less than the set fourth illumination; the maximum value is less than the set fourth illumination; or at least one data is included that is less than the set fourth illumination.

[0217] The fourth illuminance may be equal to or different from the second illuminance / the third illuminance.

[0218] S611: The electronic device exits the highlight mode

[0219] Optionally, after exiting the highlight mode, the electronic device may stop executing steps S605 to S606.

[0220] Optionally, the above steps S607 to S611 may be executed by a dimming control module in the electronic device. When the dimming control module determines to exit the highlight mode, it may instruct the dimming execution module to exit the highlight mode.

[0221] Optionally, after step S611 , the electronic device may continue to execute step S601 to determine whether to enter the highlight mode next time.

[0222] Through the above method, the electronic device can enter or exit the high-brightness mode when certain conditions are met, which helps to reduce the difference between the brightness and the ambient brightness, avoid frequent entry into the high-brightness mode and false dimming alarms, and thus improve the dimming accuracy and visual experience.

[0223] It should be noted that the implementation process provided in the above embodiments is only an example of the method process applicable to the embodiments of the present application, wherein the execution order of each step in each embodiment can be adjusted accordingly according to actual needs, and other steps can be added or some steps can be reduced. For example, the above steps S605 to S606 and the above steps S607 to S610 can be executed synchronously. For another example, the method described in the above steps S601 to S606 can be executed separately (that is, the method described in the above steps S607 to S611 can be reduced), or the method described in the above steps S607 to S611 can be executed separately after entering the highlight mode (that is, the method described in the above steps S601 to S606 can be reduced).

[0224] In some embodiments of the present application, after an electronic device enters high-brightness mode, to protect the display and entire device components from excessive power consumption and heat that could impact lifespan, this embodiment provides a solution for dynamically adjusting the dimming range and establishing a high-brightness protection mechanism. The dimming range is the target grayscale value range, and the target grayscale is the grayscale value corresponding to the target brightness. This solution is described in detail below.

[0225] In a first possible solution, the electronic device may pre-set multiple dimming value ranges for use in high-brightness mode. After entering high-brightness mode, the electronic device may select a dimming value range to use from the multiple dimming value ranges. As the scene changes, the electronic device may switch the dimming value range to use from the multiple dimming value ranges, thereby achieving dynamic adjustment of the dimming value range.

[0226] Each dimming value range in the above-mentioned multiple dimming value ranges defines a value range of the target grayscale. In one possible case, different dimming value ranges in the multiple dimming value ranges may not overlap with each other. For example, the multiple dimming value ranges may include three value ranges of (224, 255], (186, 224], and (148, 186]. In another possible case, different dimming value ranges in the multiple dimming value ranges may partially overlap. Optionally, in this case, the lower limit values ​​of the multiple dimming value ranges may be the same, and the upper limit values ​​of the multiple dimming value ranges may be different. For example, the multiple dimming value ranges may include the three dimming value ranges shown in Table 3 below.

[0227] Table 3 Multiple dimming value ranges

[0228] The three dimming value ranges shown in Table 3 have the same lower limit value (all 148) and different upper limits.

[0229] It should be noted that [a, b] described in the embodiments of the present application represents a value range greater than or equal to a and less than or equal to b, and (a, b] described in the embodiments of the present application represents a value range greater than a and less than or equal to b.

[0230] Optionally, in the above method, the electronic device may switch between multiple dimming value ranges in a set order. For example, the electronic device may switch the dimming value ranges in order from the upper limit value of the dimming value range to the lower limit value, or the electronic device may switch the dimming value ranges in order from the upper limit value of the dimming value range to the upper limit value.

[0231] In a second possible solution, after the electronic device enters the high-brightness mode, the upper limit and / or lower limit of the dimming value range can be dynamically adjusted as the scene changes, thereby achieving dynamic adjustment of the dimming value range.

[0232] Optionally, the electronic device may dynamically adjust the upper limit and / or lower limit of the dimming value range according to a set trend. For example, the electronic device may gradually adjust the upper limit of the dimming value range according to the trend from large to small upper limit of the dimming value range. For another example, the electronic device may gradually adjust the lower limit of the dimming value range according to the trend from small to large lower limit of the dimming value range.

[0233] In the two possible solutions described above, when the electronic device uses any dimming value range, the target grayscale determined by the electronic device cannot exceed the range limited by the dimming value range, that is, the target grayscale determined by the electronic device must be included in the dimming value range. In this application, the electronic device using the dimming value range can be understood as: the electronic device determines the target grayscale with reference to the dimming value range, or the target grayscale determined by the electronic device is included in the dimming value range.

[0234] For electronic devices, the higher the required display brightness, the higher the power consumption and heat generated, and the greater the loss of life of the display screen and related components. In the above method, the target grayscale corresponds to the target brightness, that is, the required display brightness. Therefore, by setting the dimming value range, the effect of limiting the maximum display brightness of the display screen can be achieved. By dynamically adjusting the dimming value range according to the specific scene, the effect of dynamically adjusting the maximum display brightness of the display screen can be achieved, reducing or avoiding the situation where the electronic device always maintains high brightness in high-brightness mode, thereby reducing or avoiding the problem of excessive power consumption and heat, and improving life.

[0235] The specific implementation method of the above-mentioned first possible solution or the second possible solution can refer to the method described in at least one of the following embodiments 4 to 7.

[0236] Example 4

[0237] In the solution provided in this embodiment, after the electronic device enters the high-brightness mode, the dimming value range can be dynamically adjusted and used with reference to the duration factor, that is, the scene change described in the first possible solution or the second possible solution can be a change in duration.

[0238] Specifically, the electronic device can be set in the highlight mode to trigger the adjustment of multiple duration thresholds of the dimming value range, and adjust the dimming value range once when it is determined that each time the requirement of a duration threshold is met. As an optional implementation, after entering the highlight mode, the electronic device can perform timing based on the set timing rules, and adjust the dimming value range once each time it is determined that the timing duration meets the requirement of a duration threshold. Optionally, when the electronic device determines that the timing duration meets the requirement of a certain duration threshold but there is no unused dimming value range, the electronic device can exit the highlight mode.

[0239] Among them, the set timing rule can be: continuous cumulative timing for the effective use time of the dimming value range used multiple times, or timing for the effective use time of the dimming value range used each time. When the electronic device adopts different timing rules, the number and specific values ​​of the multiple time thresholds set by the electronic device can be different. The effective use time of each dimming value range can also be understood as the effective time of the electronic device using the dimming value range. The effective use time of each dimming value range can be: the time the electronic device uses the dimming value range, or the time the electronic device uses the set sub-value range of the dimming value range. Among them, the time the electronic device uses the dimming value range can be understood as: after the electronic device enters the high-brightness mode, the target grayscale determined in the process of dimming based on the method provided in the above embodiment is included in the dimming value range; the time the electronic device uses the set sub-value range of the dimming value range can be understood as: after the electronic device enters the high-brightness mode, the target grayscale determined in the process of dimming based on the method provided in the above embodiment is included in the set sub-value range.

[0240] The following first describes in detail the change of the reference duration of the electronic device and the method for adjusting the dimming value range in combination with the first possible solution described above.

[0241] In this method, the electronic device can set a corresponding maximum duration for each dimming value range in the multiple dimming value ranges. The maximum duration corresponding to each dimming value range is used to indicate the maximum effective usage time of the dimming value range. Based on this method, the electronic device can set the above-mentioned multiple duration thresholds based on the maximum duration corresponding to each dimming value range in the multiple dimming value ranges. For details, please refer to the following content.

[0242] After entering the highlight mode, the electronic device can select the dimming value range to be used from multiple dimming value ranges and perform timing according to the timing rules set above. When the electronic device determines, based on the timing duration and the duration threshold, that the effective usage duration of the dimming value range reaches the maximum duration corresponding to the dimming value range, the electronic device can switch the dimming value range to another unused dimming value range or a dimming value range whose effective usage duration has not reached the corresponding maximum duration. Optionally, the electronic device can exit the highlight mode when the effective usage duration of each dimming value range in multiple dimming value ranges reaches the corresponding maximum duration, or when the total duration of maintaining the highlight mode reaches the set duration.

[0243] The following uses the scenario where an electronic device performs two dimming value range adjustments in high-brightness mode as an example, and combines the following methods 1 and 2 to describe the method provided in this embodiment in detail. Methods for scenarios where the electronic device performs more or fewer adjustments can be implemented with reference to the following methods 1 or 2, and will not be listed or described one by one in the embodiments of this application.

[0244] Method 1

[0245] When the aforementioned timing rule adopts the rule of "continuously accumulating timing for the effective usage time of the dimming value range used multiple times", the timing performed by the electronic device during the dynamic switching of the dimming value range is cumulative, that is, after each switching of the dimming value range, the electronic device continues to count based on the time that has been counted before the switching of the dimming value range.

[0246] In this scenario, referring to FIG. 7 , a method for dynamically adjusting the dimming range provided by this embodiment may include:

[0247] S701: After the electronic device enters the high-brightness mode, it determines a first dimming value range and starts timing.

[0248] The first dimming value range may be one of multiple dimming value ranges set by the electronic device. For example, the first dimming value range may be a dimming value range with the largest upper limit among the multiple dimming value ranges.

[0249] In step S701 , the electronic device starts timing, specifically timing the effective usage time of the first dimming value range.

[0250] Optionally, before step S701 , the electronic device may execute steps S601 to S604 described in the above embodiment.

[0251] Example 7: In one example, the three dimming value ranges used by the electronic device may include the three dimming value ranges shown in Table 3 above, and the first grayscale value may be 148. In this scenario, the order in which the electronic device switches the dimming value ranges can be arbitrary. For ease of description, the following example uses the electronic device switching in descending order of the upper limit values ​​of the dimming value range as an example.

[0252] In this scenario, when the dimming value range used by the electronic device is different, the electronic device is in a different high brightness stage. For details, please refer to the following Table 4.

[0253] Table 4 Parameter correspondence

[0254] As shown in Table 4 above, the dimming value range [148, 255] corresponds to stage 1, the dimming value range [148, 224] corresponds to stage 2, and the dimming value range [148, 186] corresponds to stage 3. When the electronic device uses the dimming value range [148, 255], it is in stage 1, when the electronic device uses the dimming value range [148, 224], it is in stage 2, and when the electronic device uses the dimming value range [148, 186], it is in stage 3. The maximum duration corresponding to the dimming value range [148, 255] can be Q1, the maximum duration corresponding to the dimming value range [148, 224] can be Q2, and the maximum duration corresponding to the dimming value range [148, 186] can be Q3.

[0255] In a scenario where the electronic device switches in order from large to small according to the upper limit value of the dimming value range, as shown in FIG8 , after the electronic device enters the high-brightness mode, it is first in stage 1, and can subsequently switch from stage 1 to stage 2, and from stage 2 to stage 3. The area of ​​the ellipse shown in FIG8 is used to represent the duration of the corresponding stage. In this scenario, the setting sub-range corresponding to the dimming value range [148, 255] can be (224, 255] as shown in Table 4, wherein the lower limit value of the sub-range is greater than the upper limit value of the dimming value range corresponding to the next stage (i.e., stage 2). The setting sub-range corresponding to the dimming value range [148, 224] can be (186, 224] as shown in Table 4, wherein the lower limit value of the sub-range is greater than the upper limit value of the dimming value range corresponding to the next stage (i.e., stage 3). The setting sub-range corresponding to the dimming value range [148, 186] can be (148, 186].

[0256] In one possible scenario, the effective duration of the dimming value range [148,255] is the duration during which the electronic device uses the dimming value range [148,255], the effective duration of the dimming value range [148,224] is the duration during which the electronic device uses the dimming value range [148,224], and the effective duration of the dimming value range [148,186] is the duration during which the electronic device uses the dimming value range [148,186]. In another possible scenario, the effective duration of the dimming value range [148,255] is the duration during which the electronic device uses the setting sub-range (224,255] of the dimming value range [148,255], the effective duration of the dimming value range [148,224] is the duration during which the electronic device uses the setting sub-range (186,224] of the dimming value range [148,224], and the effective duration of the dimming value range [148,186] is the duration during which the electronic device uses the setting sub-range (148,186] of the dimming value range [148,186].

[0257] When the solution provided in this embodiment is applied to the scenario of Example 7, the first dimming value range described in step S701 can be [148, 255], and the duration of timing performed by the electronic device described in step S701 is the effective duration of the electronic device using the first dimming value range.

[0258] S702: When the electronic device determines that the timing duration reaches a set first duration threshold, it switches the first dimming value range to a second dimming value range and continues timing.

[0259] Optionally, the upper limit of the second dimming value range is smaller than the upper limit of the first dimming value range.

[0260] The first duration threshold may be the maximum duration corresponding to the first dimming value range. For example, when the solution provided in this embodiment is applied to the scenario of Example 7, the first duration threshold may be Q1, that is, the timing duration corresponding to stage 1 shown in Table 4.

[0261] The timing duration described in this application reaches a certain threshold, which can be understood as the timing duration being equal to the threshold.

[0262] S703: When the electronic device determines that the timing duration reaches the set second duration threshold, it switches the second dimming value range to the third dimming value range and continues timing.

[0263] Optionally, the upper limit of the third dimming value range is smaller than the upper limit of the second dimming value range.

[0264] The second duration threshold may be the sum of the first duration threshold and the maximum duration corresponding to the second dimming value range. For example, when the solution provided in this embodiment is applied to the scenario of Example 7, the second duration threshold may be Q1+Q2, i.e., the timing duration corresponding to stage 2 shown in Table 4.

[0265] S704: When the electronic device determines that the timing duration reaches the set third duration threshold, it exits the highlight mode.

[0266] The third duration threshold may be the sum of the second duration threshold and the maximum duration corresponding to the third dimming value range. For example, when the solution provided in this embodiment is applied to the scenario of Example 7, the third duration threshold may be Q1+Q2+Q3, i.e., the timing duration corresponding to stage 3 shown in Table 4.

[0267] It should be noted that the implementation process provided in the above embodiment is only an example of the method process applicable to the embodiment of the present application. The execution order of each step can be adjusted accordingly according to actual needs, and other steps can be added or some steps can be reduced.

[0268] Method 2

[0269] When the aforementioned timing rule adopts the rule of "timing the effective usage time of each dimming value range used separately", the electronic device will time each dimming value range separately during the process of dynamically switching the dimming value range, that is, after each switching of the dimming value range, the electronic device will restart the timing.

[0270] In this scenario, referring to FIG. 9 , a method for dynamically adjusting the dimming range provided by this embodiment may include:

[0271] S901: After the electronic device enters the high-brightness mode, it determines a first dimming value range and starts timing.

[0272] S902: When the electronic device determines that the timing duration reaches a set first duration threshold, it switches the first dimming value range to a second dimming value range and restarts the timing.

[0273] In this method, the first duration threshold may be the maximum duration corresponding to the first dimming value range.

[0274] S903: When the electronic device determines that the timing duration reaches a set second duration threshold, it switches the second dimming value range to a third dimming value range and restarts the timing.

[0275] In this method, the second duration threshold may be the maximum duration corresponding to the second dimming value range.

[0276] S904: When the electronic device determines that the timing duration reaches the set third duration threshold, it exits the highlight mode.

[0277] In this method, the third duration threshold may be a maximum duration corresponding to the third dimming value range.

[0278] In the method shown in FIG9 , except that the timing method and the meanings of the multiple duration thresholds are different from those of the method shown in FIG7 , other specific implementations can be implemented with reference to the method shown in FIG7 and will not be described in detail here.

[0279] It should be noted that the implementation process provided in the above embodiment is only an example of the method process applicable to the embodiment of the present application. The execution order of each step can be adjusted accordingly according to actual needs, and other steps can be added or some steps can be reduced.

[0280] The following describes in detail a method for adjusting the dimming value range by combining the change of the reference duration of the electronic device with the aforementioned second possible solution.

[0281] In this method, after the electronic device enters the highlight mode, it can perform timing according to the timing rules set above. Each time the electronic device determines that the effective usage time of the dimming value range used meets the requirement of a time threshold based on the timing time, it can adjust the upper limit and / or lower limit of the dimming value range used once. Similarly, the electronic device can adjust the dimming value range multiple times at multiple time nodes. Until the total time that the electronic device maintains the highlight mode reaches the set time, the electronic device can exit the highlight mode.

[0282] The following uses the scenario where an electronic device performs two dimming value range adjustments in high-brightness mode as an example, and combines the following methods 3 and 4 to describe the method provided in this embodiment in detail. Methods for scenarios where the electronic device performs more or fewer adjustments can be implemented with reference to the following methods 3 or 4, and will not be listed or described in detail in the embodiments of this application.

[0283] Method 3

[0284] 10 , taking the above-set timing rule of continuously accumulating the effective usage time of the dimming value range used multiple times as an example, a method for dynamically adjusting the dimming value range provided in this embodiment may include:

[0285] S1001: After the electronic device enters the high-brightness mode, it determines a first dimming value range and starts timing.

[0286] The first dimming value range may be a set default value range. Optionally, the default value range may be the grayscale range corresponding to the highlight mode described in the above embodiment, or may be other set value ranges, which are not specifically limited in this embodiment.

[0287] For example, when the grayscale range corresponding to the highlight mode is [148, 255], the first dimming value range may be [148, 255].

[0288] Optionally, before step S1001 , the electronic device may execute steps S601 to S604 described in the aforementioned embodiment.

[0289] S1002: When the electronic device determines that the timing duration reaches a set first duration threshold, it obtains a second dimming value range by adjusting the upper limit and / or lower limit of the first dimming value range and continues timing.

[0290] The second dimming value range obtained by adjusting the upper limit and / or lower limit of the first dimming value range may also be considered as the updated first dimming value range, and other similar descriptions are the same.

[0291] Optionally, in step S1002, the electronic device may adjust the upper limit and / or lower limit of the first dimming value range by lowering the upper limit of the first dimming value range. The value by which the electronic device lowers the upper limit of the first dimming value range may be pre-set, randomly determined, or determined based on a first duration threshold (for example, the lowered value may be positively correlated with the first duration threshold), and is not specifically limited in the embodiments of the present application.

[0292] For example, when the first dimming value range is [148, 255], the electronic device may obtain the second dimming value range [148, 224] by reducing the upper limit of the first dimming value range from 255 to 224.

[0293] In this method, the first duration threshold is equivalent to the maximum duration corresponding to the first dimming value range.

[0294] S1003: When the electronic device determines that the timing duration reaches the set second duration threshold, it obtains a third dimming value range by adjusting the upper limit and / or lower limit of the second dimming value range and continues timing.

[0295] The second duration threshold is greater than the first duration threshold. For example, the first duration threshold may be Q1, and the second duration threshold may be Q1+Q2.

[0296] Optionally, in step S1003, the electronic device may adjust the upper limit and / or lower limit of the second dimming value range by lowering the upper limit of the second dimming value range. The value by which the electronic device lowers the upper limit of the second dimming value range may be pre-set, randomly determined, or determined based on the difference between the second duration threshold and the first duration threshold (for example, the lowered value may be positively correlated with the difference), and is not specifically limited in the embodiments of the present application.

[0297] For example, when the second dimming value range is [148, 224], the electronic device may reduce the upper limit of the second dimming value range from 224 to 186 to obtain the second dimming value range [148, 186].

[0298] In this method, the difference between the second duration threshold and the first duration threshold is equivalent to the maximum duration corresponding to the second dimming value range.

[0299] S1004: When the electronic device determines that the timing duration reaches a set third duration threshold, it exits the highlight mode.

[0300] The third duration threshold is greater than the second duration threshold. For example, when the second duration threshold is Q1+Q2, the third duration threshold may be Q1+Q2+Q3.

[0301] In this method, the difference between the third duration threshold and the second duration threshold is equivalent to the maximum duration corresponding to the third dimming value range.

[0302] Method 4

[0303] 11 , taking the above-set timing rule of timing the effective usage time of each dimming value range as an example, a method for dynamically adjusting the dimming value range provided in this embodiment may include:

[0304] S1101: After the electronic device enters the high-brightness mode, it determines a first dimming value range and starts timing.

[0305] S1102: When the electronic device determines that the timing duration reaches a set first duration threshold, it obtains a second dimming value range by adjusting the upper limit and / or lower limit of the first dimming value range and restarts the timing.

[0306] In this method, the first duration threshold is equivalent to the maximum duration corresponding to the first dimming value range.

[0307] S1103: When the electronic device determines that the timing duration reaches the set second duration threshold, it adjusts the upper limit and / or lower limit of the second dimming value range to obtain a third dimming value range and restarts the timing.

[0308] In this method, the second duration threshold is equivalent to the maximum duration corresponding to the second dimming value range.

[0309] S1104: When the electronic device determines that the timing duration reaches a set third duration threshold, it exits the highlight mode.

[0310] In this method, the third duration threshold is equivalent to the maximum duration corresponding to the third dimming value range.

[0311] In this method, the first duration threshold, the second duration threshold, and the third duration threshold may be equal or unequal, and there is no specific limitation in this embodiment.

[0312] In the method shown in FIG11 , except that the timing method and the meanings of the multiple duration thresholds are different from those of the method shown in FIG10 , other specific implementations can be implemented with reference to the method shown in FIG10 and will not be described in detail here.

[0313] Based on the above-mentioned methods one to four, during the dimming process after the electronic device enters the high-brightness mode, before and after adjusting the dimming value range, the target grayscale determined by the electronic device must be included in the dimming value range used by the electronic device. As an optional implementation, each time the electronic device adjusts the dimming value range (for example: switching or adjusting the first dimming value range to the second dimming value range, or switching or adjusting the second dimming value range to the third dimming value range), if the current target grayscale is included in the adjusted dimming value range, the electronic device can continue to execute the process of adjusting from the current brightness to the target brightness corresponding to the target grayscale, as well as the subsequent process of determining and adjusting the dimming value range. If the current target grayscale is not included in the adjusted dimming value range, the electronic device can redetermine the target grayscale belonging to the adjusted dimming value range, and start executing the process of adjusting from the current brightness to the target brightness corresponding to the redetermined target grayscale, as well as the subsequent process of determining and adjusting the dimming value range.

[0314] In the above methods 1 to 4, the timing for the electronic device to adjust the dimming value range is when the timing duration meets the corresponding conditions (for example, the timing duration reaches the set first duration threshold / second duration threshold / third duration threshold). This timing is a forced adjustment timing, but the timing for the electronic device to adjust the dimming value range is not limited to this. The electronic device can also adjust the dimming value range under other timing conditions before the forced adjustment timing, and no specific restrictions are made in the embodiments of the present application. For example, before the timing duration reaches the duration required for forced adjustment, adjustment of the dimming value range caused by the target grayscale change is also feasible.

[0315] In scenarios where an electronic device adjusts its dimming threshold before the timed duration reaches the required mandatory adjustment duration, the effective usage duration of the dimming value range before adjustment does not reach the maximum duration corresponding to the dimming value range. Therefore, there is a remaining duration in the dimming value range, which is the difference between the maximum duration corresponding to the dimming value range and the effective usage duration. This remaining duration can also be used by the electronic device during the use of the adjusted dimming value range. In other words, this remaining duration can be used as additional effective usage duration of the dimming value range after adjustment, thereby fully utilizing the available duration.

[0316] In one example, based on this method, step S702 described in the above method 1 can also be replaced by the following steps: the electronic device switches the first dimming value range to the second dimming value range and continues timing. The timing duration when the electronic device switches the first dimming value range to the second dimming value range does not reach the first duration threshold, that is, the timing duration is less than the first duration threshold. Optionally, the electronic device can switch the first dimming value range to the second dimming value range when the target grayscale switches from a value within the first dimming value range to a value within the second dimming value range.

[0317] For example, when this method is applied to the scenario of Example 7, the first dimming value range is [148, 255], and the first duration threshold is Q1. The second dimming value range is [148, 224], and the second duration threshold is Q1+Q2. If the electronic device switches the first dimming value range to the second dimming value range before the first duration threshold, for example, when the timing duration is Q4 (where Q4 is less than Q1), the effective usage time of the first dimming value range is 4s, and the remaining duration is Q1-Q4. The remaining duration can be used as the additional effective usage time of the second dimming value range. Based on this, the electronic device can switch the second dimming value range to the third dimming value range when the timing duration reaches the second duration threshold, i.e., Q1+Q2. In this method, the actual effective usage time of the second dimming value range is Q1-Q4+Q2. Although this exceeds the maximum duration Q2 corresponding to the second dimming value range, it can ensure that the total effective usage time of multiple dimming value ranges does not exceed the required total duration of multiple dimming value ranges (i.e., the sum of the maximum durations corresponding to multiple dimming value ranges). Therefore, it is possible to more fully and efficiently utilize the available time of the high-brightness mode while ensuring that the total duration requirement of multiple dimming value ranges is met.

[0318] In some embodiments, based on the above method, as an optional implementation, the electronic device may further limit the total duration of being in highlight mode, thereby further reducing the life loss caused by the electronic device being in highlight mode for a long time. For example, after executing step S701 / step S901 / step S1001 / step S1101, the electronic device may also synchronously execute steps S607 to S611 described in the aforementioned embodiment, and / or synchronously execute the following steps: when the electronic device determines that the duration of maintaining the highlight mode reaches the set total duration, it exits the highlight mode. That is, after executing step S701 / step S901 / step S1001 / step S1101, the electronic device may exit the highlight mode when it determines that any of the following conditions are met:

[0319] 1) After adjusting to the third dimming value range, the timing duration reaches the set third duration threshold.

[0320] 2) The duration of the highlight mode reaches the set total duration.

[0321] 3) At least one piece of collected ambient light illumination data satisfies a set fourth illumination condition.

[0322] In some embodiments, based on the above method, after the electronic device exits the highlight mode, it can also prohibit the electronic device from entering the highlight mode within a set lockout period, and then allow the electronic device to enter the highlight mode again after the set lockout period has expired, thereby reducing the loss of life caused by frequent and continuous entry into the highlight mode. Based on this, after the electronic device exits the highlight mode, it can continue to perform the following steps: the electronic device prohibits the electronic device from entering the highlight mode within the set lockout period, and after the set lockout period, lifts the prohibition on entering the highlight mode.

[0323] Example 5

[0324] In the solution provided in this embodiment, after the electronic device enters the high-brightness mode, the dimming value range can be dynamically adjusted and used with reference to the temperature factor, that is, the scene change described in the first possible solution or the second possible solution can be a temperature change.

[0325] Specifically, the electronic device may be configured with multiple temperature thresholds for triggering adjustment of the dimming range in highlight mode, and the dimming range may be adjusted each time the detected temperature satisfies a temperature threshold. The temperature detected by the electronic device may be the display screen temperature or the entire device temperature. Optionally, when the electronic device determines that the detected temperature satisfies a temperature threshold but no unused dimming range exists, the electronic device may exit highlight mode.

[0326] The following first describes in detail the change in the reference temperature of the electronic device and the method for adjusting the dimming value range in combination with the first possible solution described above.

[0327] In this method, the electronic device can set multiple temperature thresholds and respectively correspond the multiple temperature thresholds to each dimming value range in the multiple dimming value ranges. Each dimming value range in the multiple dimming value ranges corresponds to one of the multiple temperature thresholds, and different dimming value ranges correspond to different temperature thresholds. The temperature threshold corresponding to each dimming value range is used to indicate the temperature that triggers switching of the dimming value range.

[0328] After entering the high brightness mode, the electronic device can select a dimming value range to use from multiple dimming value ranges. When the temperature detected by the electronic device reaches a temperature threshold corresponding to the dimming value range used, the electronic device can switch the dimming value range used to another unused dimming value range.

[0329] Optionally, the temperature threshold and the upper limit of the dimming range may be in a negative correlation, that is, the larger the temperature threshold, the smaller the upper limit of the corresponding dimming range; and the smaller the temperature threshold, the larger the upper limit of the corresponding dimming range.

[0330] For example, in a scenario where multiple dimming value ranges include the three dimming thresholds shown in Table 3, the electronic device may set three temperature thresholds. The correspondence between the three dimming value ranges and the three temperature thresholds may refer to Table 5 below.

[0331] Table 5 Correspondence between dimming value range and temperature threshold

[0332] As shown in Table 5, the temperature threshold corresponding to the dimming value range [148, 255] is W1, the temperature threshold corresponding to the dimming value range [148, 224] is W2, and the temperature threshold corresponding to the dimming value range [148, 186] is W3. Wherein, W1<W2<W3.

[0333] Based on the above method, as the temperature rises, the electronic device can gradually lower the upper limit of the target grayscale, that is, gradually lower the upper limit of the target brightness that can be adjusted, thereby gradually reducing power consumption and heat, avoiding life loss caused by excessive temperature of the display screen or the entire device.

[0334] The following uses the scenario where the electronic device performs two dimming value range adjustments in high-brightness mode as an example, and combines the following method 5 to describe the method provided in this embodiment in detail. The method for scenarios where the electronic device performs more or fewer adjustments can be implemented with reference to the following method 5, and will not be listed one by one in the embodiments of this application.

[0335] Method 5

[0336] 12 , a method for dynamically adjusting a dimming range provided by this embodiment may include:

[0337] S1201: After the electronic device enters the high-brightness mode, a first dimming value range is determined.

[0338] The method for the electronic device to determine the first dimming value range may refer to the description in the aforementioned step S701 and will not be repeated here.

[0339] Optionally, before step S1201 , the electronic device may execute steps S601 to S604 described in the above embodiment.

[0340] Optionally, after step S1201 , the electronic device may execute steps S607 to S611 described in the foregoing embodiment.

[0341] S1202: When the electronic device determines that the detected temperature reaches a set first temperature threshold, the electronic device switches the first dimming value range to a second dimming value range.

[0342] Optionally, the upper limit of the second dimming value range is smaller than the upper limit of the first dimming value range.

[0343] The temperature reaching a certain temperature threshold mentioned in this application may be understood as the temperature rising to be equal to the temperature threshold.

[0344] In an example, the first temperature threshold may be W1 shown in Table 5, the first dimming value range may be the dimming value range [148, 255] shown in Table 5, and the second dimming value range may be the dimming value range [148, 224] shown in Table 5.

[0345] S1203: When the electronic device determines that the detected temperature reaches a set second temperature threshold, the electronic device switches the second dimming value range to a third dimming value range.

[0346] The second temperature threshold is greater than the first temperature threshold.

[0347] Optionally, the upper limit of the third dimming value range is smaller than the upper limit of the second dimming value range.

[0348] In an example, the second temperature threshold may be W2 shown in Table 5, the second dimming value range may be the dimming value range [148, 224] shown in Table 5, and the third dimming value range may be the dimming value range [148, 186] shown in Table 5.

[0349] S1204: When the electronic device determines that the detected temperature reaches a set third temperature threshold, it exits the highlight mode.

[0350] Wherein, the third temperature threshold is greater than the second temperature threshold. When the electronic device determines that the detected temperature reaches the third temperature threshold, the electronic device can exit the high-brightness mode because there is no unused dimming value range.

[0351] Optionally, the upper limit of the third dimming value range is smaller than the upper limit of the second dimming value range.

[0352] Regarding the various dimming value ranges described in the above method, please refer to the relevant description in Method 1 and will not be described in detail here.

[0353] The following describes in detail a method for adjusting the dimming range by combining the change in the reference temperature of the electronic device with the aforementioned second possible solution.

[0354] In this method, the electronic device can set multiple temperature thresholds, each of which corresponds to an operation to adjust the dimming value range. After entering the high-brightness mode, the electronic device can adjust the dimming value range each time it determines that the detected temperature reaches a temperature threshold. The adjustment made by the electronic device to the dimming value range each time can be to adjust the upper limit and / or lower limit of the dimming value range (for example, lowering the upper limit of the dimming value range, etc.).

[0355] Optionally, the temperature threshold and the upper limit of the dimming value range can be negatively correlated. That is, the larger the temperature threshold, the smaller the upper limit of the corresponding dimming value range; the smaller the temperature threshold, the larger the upper limit of the corresponding dimming value range. Based on this method, as the temperature detected by the electronic device increases, the electronic device can gradually lower the upper limit of the dimming value range, and then gradually lower the upper limit of the target grayscale, that is, gradually lower the upper limit of the target brightness that can be adjusted, and then gradually reduce power consumption and heat, thereby avoiding life loss caused by excessive temperature of the display screen or the entire device.

[0356] The following uses the scenario where the electronic device performs two dimming value range adjustments in high-brightness mode as an example, and combines the following method 6 to describe the method provided in this embodiment in detail. The method for scenarios where the electronic device performs more or fewer adjustments can be implemented with reference to the following method 6, and will not be listed one by one in the embodiments of this application.

[0357] Method 6

[0358] 13 , a method for dynamically adjusting a dimming range provided by this embodiment may include:

[0359] S1301: After the electronic device enters the high-brightness mode, it determines a first dimming value range.

[0360] The specific execution process of step S1301 can refer to the aforementioned step S1201 and will not be repeated here.

[0361] S1302: When the electronic device determines that the detected temperature reaches a set first temperature threshold, the electronic device obtains a second dimming value range by adjusting the upper limit and / or lower limit of the first dimming value range.

[0362] Optionally, in step S1302, the electronic device may adjust the upper limit and / or lower limit of the first dimming value range by lowering the upper limit of the first dimming value range. The value by which the electronic device lowers the upper limit of the first dimming value range may be pre-set, randomly determined, or determined based on a first temperature threshold (for example, the lowered value may be positively correlated with the first temperature threshold), and is not specifically limited in the embodiments of the present application.

[0363] S1303: When the electronic device determines that the detected temperature reaches a set second temperature threshold, the electronic device obtains a third dimming value range by adjusting the upper limit and / or lower limit of the second dimming value range.

[0364] The second temperature threshold is greater than the first temperature threshold.

[0365] Optionally, in step S1303, the electronic device may adjust the upper limit and / or lower limit of the second dimming value range by lowering the upper limit of the second dimming value range. The value by which the electronic device lowers the upper limit of the second dimming value range may be pre-set, randomly determined, or determined based on the difference between the second temperature threshold and the first temperature threshold (for example, the lowered value may be positively correlated with the difference), and is not specifically limited in the embodiments of the present application.

[0366] S1304: When the electronic device determines that the detected temperature reaches a set third temperature threshold, it exits the highlight mode.

[0367] Wherein, the third temperature threshold is greater than the second temperature threshold. When the electronic device determines that the detected temperature reaches the third temperature threshold, the electronic device can exit the high-brightness mode because there is no unused dimming value range.

[0368] For the various dimming value ranges described in this method, please refer to the relevant description in Method 1 and will not be described in detail here.

[0369] Based on the above method, during the dimming process after the electronic device enters the high-brightness mode, the target grayscale determined by the electronic device before and after adjusting the dimming value range must be included in the dimming value range used by the electronic device. For details, please refer to the description in the previous embodiment and will not be repeated here.

[0370] In some embodiments, based on the above method, after entering the high-brightness mode, the electronic device may further exit the high-brightness mode upon determining that the detected temperature has reached a set limit temperature, thereby further preventing loss of life of the display screen or the entire device due to excessively high temperatures. For example, after executing step S1201 / step S1301, the electronic device may further execute the following steps: upon determining that the detected temperature has reached a set limit temperature, the electronic device exits the high-brightness mode.

[0371] Based on the above description, after executing step S1201 / step S1301, the electronic device may exit the highlight mode when determining that any of the following conditions is met:

[0372] 1) The detected temperature reaches a set third temperature threshold.

[0373] 2) The detected temperature reaches the set limit temperature.

[0374] 3) At least one piece of collected ambient light illumination data satisfies a set fourth illumination condition.

[0375] In some embodiments, based on the above method, after exiting highlight mode, the electronic device can temporarily lock entry into highlight mode and then unlock highlight mode when the detected temperature is determined to be less than or equal to the set unlocking temperature. This can reduce the life loss caused by frequent and continuous entry into highlight mode.

[0376] Example 6

[0377] In the solution provided in this embodiment, after the electronic device enters the high-brightness mode, the dimming value range can be dynamically adjusted and used with reference to the display area of ​​the display screen, that is, the scene change described in the first possible solution or the second possible solution can be a change in the display area of ​​the display screen.

[0378] The display area of ​​the display screen is used to indicate the area occupied by the illuminated pixels on the display screen. In this embodiment, when the grayscale value of a pixel is not zero, it can be determined that the pixel is illuminated. Optionally, the grayscale value of the pixel being not zero can specifically include: the grayscale value of at least one of the R, G, and B sub-pixels of the pixel is not zero.

[0379] In this solution, the electronic device can refer to the display area of ​​the display screen and adjust the dimming value range in combination with the first possible solution mentioned above.

[0380] Specifically, the electronic device can set multiple area intervals (or area ranges), and each area interval in the multiple area intervals can be used to indicate a value range of area data. The area data is determined by the electronic device based on the display area of ​​the display screen. In this embodiment, as an optional implementation, the electronic device can directly use the display area of ​​the display screen as the area data. As another optional implementation, the electronic device can use the ratio of the display area of ​​the display screen to the display area of ​​the display screen (that is, the proportion of the display area of ​​the display screen on the display screen) as the area data. In this way, the electronic device can use the ratio of the number of pixels with non-zero grayscale values ​​to the resolution of the display screen as the area data.

[0381] One of the multiple area intervals set by the electronic device can correspond to an operation of exiting the highlight mode or a state of prohibiting entry into the highlight mode, and the other area intervals in the multiple area intervals except the one area interval can respectively correspond to each dimming value range in the multiple dimming value ranges. The lower limit value of the one area interval is greater than the upper limit value of the other area intervals. Each dimming value range in the multiple dimming value ranges corresponds to an area interval in the other area intervals, and different dimming value ranges correspond to different area intervals.

[0382] After entering the highlight mode, the electronic device can select a dimming value range to use from multiple dimming value ranges. Subsequently, when the area data determined based on the display area of ​​the display screen belongs to a certain area interval, the dimming value range corresponding to the area interval can be used, or the operation of exiting the highlight mode corresponding to the area interval can be executed. Optionally, before entering the highlight mode, the electronic device can first determine that the area data is not within an area interval corresponding to the operation of exiting the highlight mode or corresponding to the state of prohibiting entry into the highlight mode.

[0383] Optionally, the upper limit of the area interval and the upper limit of the dimming range may be negatively correlated. That is, the larger the upper limit of the area interval, the smaller the upper limit of the corresponding dimming range; and the smaller the upper limit of the area interval, the larger the upper limit of the corresponding dimming range.

[0384] For example, in a scenario where multiple dimming value ranges include the three dimming thresholds shown in Table 3, the electronic device can set four area intervals. Among them, three area intervals of the four area intervals can correspond one-to-one with the three dimming value ranges, and the other area interval can correspond to the operation of exiting the high-brightness mode or the state of prohibiting entry into the high-brightness mode. For details, please refer to the following Table 6.

[0385] Table 6 Correspondence between dimming value range or operation and area range

[0386] As shown in Table 6, the dimming range [148, 255] corresponds to an area interval of [S1, S2), the dimming range [148, 224] corresponds to an area interval of [S2, S3), the dimming range [148, 186] corresponds to an area interval of [S3, S4), and the area interval corresponding to the operation of exiting the highlight mode is [S4, ∞). Among them, S1 < S2 < S3 < S4.

[0387] After entering the highlight mode, the electronic device can determine the display area of ​​the display screen. When the display area belongs to the area interval [S1, S2) (that is, the display area is greater than or equal to S1 and less than S2), the electronic device can use the dimming value range [148, 255]; when the display area belongs to the area interval [S2, S3), the electronic device can use the dimming value range [148, 224]; when the display area belongs to the area interval [S3, S4), the electronic device can use the dimming value range [148, 186]; when the display area belongs to the area interval [S4, ∞) (that is, when the display area is greater than or equal to S4), the electronic device can exit the highlight mode.

[0388] Based on the above method, when the display screen's display area is small, the electronic device's power consumption and heat generation are low. Therefore, in scenarios with a small display area, the upper limit of the dimming range can be left unrestricted or slightly restricted. When the display screen's display area is large, the electronic device's power consumption and heat generation are higher. Therefore, by limiting the upper limit of the dimming range to a smaller value in scenarios with a large display area, the target brightness that the electronic device can adjust can be reduced, thereby avoiding excessive power consumption and heat generation and reducing lifespan loss.

[0389] The following uses the scenario where the electronic device performs a single dimming value adjustment in high-brightness mode as an example, and combines the following method 7 to describe the method provided in this embodiment in detail. The method for scenarios where the electronic device performs more or fewer adjustments can be implemented with reference to the following method 7, and will not be listed one by one in the embodiments of this application.

[0390] Method 7

[0391] Based on the above method, referring to FIG. 14 , the process of a method for dynamically adjusting the dimming value range provided in this embodiment may include:

[0392] S1401: After the electronic device enters the high-brightness mode, a first dimming value range is determined.

[0393] After step S1401 , the electronic device may execute the following steps S1402 to S1403 or the following step S1403 .

[0394] The first dimming value range may be one of a plurality of dimming value ranges set by the electronic device.

[0395] In an example, the first dimming value range may be a dimming value range with the largest upper limit value among the multiple dimming value ranges.

[0396] In another example, the first dimming value range may be a dimming value range corresponding to a first area interval to which the area data currently determined by the electronic device belongs. For example, if the first area interval to which the area data currently determined by the electronic device belongs may be [S1, S2) as shown in Table 6, then the first dimming value range may be the dimming value range [148, 255] as shown in Table 6.

[0397] In some embodiments, the electronic device may determine the area data once every time a set number of frame images are displayed (i.e., the area data is determined every set number of frame images), or may determine the area data once every set time period (i.e., the area data is determined every set time period). After each determination of the area data, the electronic device may determine the dimming value range to be used or determine whether to exit the highlight mode based on the area data. Based on this method, after executing step S1401, the electronic device may, after displaying a set number of frame images or after a set time period, execute the following steps S1402 to S1403 or execute the following step S1403.

[0398] Optionally, before step S1401 , the electronic device may execute steps S601 to S604 described in the above embodiment.

[0399] Optionally, after step S1401 , the electronic device may execute steps S607 to S611 described in the foregoing embodiment.

[0400] S1402: When the electronic device determines that the area data is within a set second area range, the electronic device switches the first dimming value range to the second dimming value range.

[0401] The second dimming value range can be any dimming value range other than the first dimming value range among the multiple dimming value ranges set by the electronic device. The second dimming value range corresponds to the second area interval. For example, when the first dimming value range is the dimming value range [148, 255] shown in Table 6, the second area interval can be [S2, S3) shown in Table 6, and the second dimming value range can be the dimming value range [148, 224] shown in Table 6. For another example, when the first dimming value range is the dimming value range [148, 255] shown in Table 6, the second area interval can also be [S3, S4) shown in Table 6, and the second dimming value range can be the dimming value range [148, 186] shown in Table 6.

[0402] S1403: When the electronic device determines that the area data is within the set third area range, it exits the highlight mode.

[0403] The third area interval is an area interval corresponding to the operation of exiting the highlight mode among a plurality of area intervals set by the electronic device. For example, the third area interval may be [S4,∞) as shown in Table 6.

[0404] Example 7

[0405] In the solution provided in this embodiment, after the electronic device enters the high-brightness mode, the dimming value range can be dynamically adjusted and used with reference to the grayscale distribution of the display, that is, the scene change described in the first possible solution or the second possible solution can be a change in the grayscale distribution.

[0406] In this solution, the electronic device can refer to the grayscale distribution displayed by the display screen and adjust the dimming value range in combination with the first possible solution mentioned above.

[0407] Specifically, the electronic device may be configured with multiple grayscale ratio intervals, each of which may be used to indicate a range of grayscale ratio values. In this embodiment, the grayscale ratio is the ratio of pixels in a high grayscale range to all pixels on the display screen, or may be the ratio of sub-pixels in a high grayscale range to all sub-pixels on the display screen. The high grayscale range is a range in which grayscale values ​​are greater than or equal to a set second grayscale value.

[0408] For example, taking the second grayscale value as 200 and the display screen being able to display 2×2 pixels, i.e., 4 pixels, as shown in FIG15 , as an example, the 4 pixels can be recorded as pixels 1 to 4. If the grayscales of pixels 1 to 4 are 180, 210, 220, and 230, respectively, it can be determined that the grayscale proportion in this scene is 75%, that is, the proportion of pixels 1 to 4 belonging to the high grayscale range (i.e., the range with grayscale values ​​greater than or equal to 200) in the 4 pixels is 75%. Optionally, the grayscale of each pixel can be: the average grayscale value of the R, G, and B sub-pixels of the pixel, or the maximum / minimum value of the grayscale values ​​of the R, G, and B sub-pixels of the pixel.

[0409] For another example, taking the second grayscale value as 200 and the display screen being able to display 2×2 pixels, i.e., 4 pixels, as shown in FIG15 , as an example, the 4 pixels can be recorded as pixels 1 to 4. If the grayscale values ​​of the R, G, and B sub-pixels of pixel 1 are 180, 180, and 180, respectively, the grayscale values ​​of the R, G, and B sub-pixels of pixel 2 are 210, 215, and 205, respectively, the grayscale values ​​of the R, G, and B sub-pixels of pixel 3 are 220, 220, and 225, respectively, and the grayscale values ​​of the R, G, and B sub-pixels of pixel 4 are 225, 240, and 230, respectively, then it can be determined that the grayscale proportion in this scene is 75%.

[0410] One of the multiple grayscale ratio intervals set by the electronic device can correspond to the operation of exiting the highlight mode or the state of prohibiting entry into the highlight mode, and the other grayscale ratio intervals except the one grayscale ratio interval in the multiple grayscale ratio intervals can respectively correspond to each dimming value range in the multiple dimming value ranges. The lower limit value of the one grayscale ratio interval is greater than the upper limit value of the other grayscale ratio intervals. Each dimming value range in the multiple dimming value ranges corresponds to a grayscale ratio interval in the other grayscale ratio intervals, and different dimming value ranges correspond to different grayscale ratio intervals.

[0411] After entering the highlight mode, the electronic device can select a dimming value range to be used from multiple dimming value ranges. When it is subsequently determined that the grayscale ratio of the display screen belongs to a certain grayscale ratio interval, the dimming value range corresponding to the grayscale ratio interval can be used, or the operation of exiting the highlight mode corresponding to the grayscale ratio interval can be executed. Optionally, before entering the highlight mode, the electronic device can first determine that the grayscale ratio of the display screen is not in a grayscale ratio interval corresponding to the operation of exiting the highlight mode or corresponding to the state of prohibiting entry into the highlight mode.

[0412] Optionally, the upper limit of the grayscale ratio interval and the upper limit of the dimming range may be negatively correlated. That is, the larger the upper limit of the grayscale ratio interval, the smaller the upper limit of the corresponding dimming range; and the smaller the upper limit of the grayscale ratio interval, the larger the upper limit of the corresponding dimming range.

[0413] For example, in a scenario where multiple dimming value ranges include the three dimming thresholds shown in Table 3, the electronic device can set four grayscale ratio intervals. Among them, three grayscale ratio intervals of the four grayscale ratio intervals can correspond one-to-one to the three dimming value ranges, and the other grayscale ratio interval can correspond to the operation of exiting the high-brightness mode or the state of prohibiting entry into the high-brightness mode. For details, please refer to the following Table 7.

[0414] Table 7 Correspondence between dimming value range or operation and grayscale ratio range

[0415] As shown in Table 7, the grayscale ratio interval corresponding to the dimming value range [148, 255] is [R1, R2), the grayscale ratio interval corresponding to the dimming value range [148, 224] is [R2, R3), the grayscale ratio interval corresponding to the dimming value range [148, 186] is [R3, R4), and the grayscale ratio interval corresponding to the operation of exiting the high-brightness mode is [R4, ∞). Among them, R1<R2<R3<R4.

[0416] After entering the high-brightness mode, the electronic device can determine the grayscale ratio of the display screen. When the grayscale ratio belongs to the grayscale ratio interval [R1, R2) (that is, when the grayscale ratio is greater than or equal to R1 and less than R2), the electronic device can use the dimming value range [148, 255]; when the grayscale ratio belongs to the grayscale ratio interval [R2, R3), the electronic device can use the dimming value range [148, 224]; when the grayscale ratio belongs to the grayscale ratio interval [R3, R4), the electronic device can use the dimming value range [148, 186]; when the grayscale ratio belongs to the grayscale ratio interval [R4, ∞) (that is, when the grayscale ratio is greater than or equal to R4), the electronic device can exit the high-brightness mode.

[0417] Based on the above method, when the grayscale ratio of the display screen is small, there are fewer pixels at higher brightness on the display screen, so the power consumption and heat of the electronic device are low. Therefore, in scenes with a small grayscale ratio, the upper limit of the dimming value range can be unrestricted or slightly restricted. When the grayscale ratio of the display screen is large, there are more pixels at higher brightness on the display screen, resulting in higher power consumption and heat of the electronic device. Therefore, by limiting the upper limit of the dimming value range to a smaller value in scenes with a large grayscale ratio, the target brightness that the electronic device can adjust can be reduced, thereby avoiding excessive power consumption and heat, and reducing life loss.

[0418] The following uses the scenario where the electronic device performs a single dimming value adjustment in high-brightness mode as an example, and combines the following method 8 to describe the method provided in this embodiment in detail. Methods for scenarios where the electronic device performs more or fewer adjustments can be implemented with reference to the following method 8, and are not listed one by one in the embodiments of this application.

[0419] Method 8

[0420] Based on the above method, referring to FIG. 16 , the process of a method for dynamically adjusting the dimming value range provided in this embodiment may include:

[0421] S1601: After the electronic device enters the high-brightness mode, it determines a first dimming value range.

[0422] After step S1601 , the electronic device may execute the following steps S1602 to S1603 or the following step S1603 .

[0423] The first dimming value range may be one of a plurality of dimming value ranges set by the electronic device.

[0424] In an example, the first dimming value range may be a dimming value range with the largest upper limit value among the multiple dimming value ranges.

[0425] In another example, the first dimming value range may be a dimming value range corresponding to a first grayscale ratio interval to which the grayscale ratio currently determined by the electronic device belongs. For example, if the first grayscale ratio interval to which the grayscale ratio currently determined by the electronic device belongs may be [R1, R2) as shown in Table 7, then the first dimming value range may be the dimming value range [148, 255] as shown in Table 7.

[0426] In some embodiments, the electronic device may determine the grayscale ratio once every time a set number of frame images are displayed (i.e., the grayscale ratio is determined once every set number of frame images), or may determine the grayscale ratio once every set time period (i.e., the grayscale ratio is determined once every set time period). After each determination of the grayscale ratio, the electronic device may determine the dimming value range to be used or determine whether to exit the highlight mode based on the grayscale ratio. Based on this method, after executing step S1601, the electronic device may, after displaying a set number of frame images or after a set time period, execute the following steps S1602 to S1603 or execute the following step S1603.

[0427] Optionally, before step S1601 , the electronic device may execute steps S601 to S604 described in the above embodiment.

[0428] Optionally, after step S1601 , the electronic device may execute steps S607 to S611 described in the foregoing embodiment.

[0429] S1602: When the electronic device determines that the grayscale ratio is in a set second grayscale ratio interval, the electronic device switches the first dimming value range to the second dimming value range.

[0430] Among them, the second dimming value range can be any dimming value range other than the first dimming value range among the multiple dimming value ranges set by the electronic device. The second dimming value range corresponds to the second grayscale ratio interval. For example, when the first dimming value range is the dimming value range [148,255] shown in Table 7, the second grayscale ratio interval can be [R2,R3) shown in Table 7, and the second dimming value range can be the dimming value range [148,224] shown in Table 7. For another example, when the first dimming value range is the dimming value range [148,255] shown in Table 7, the second grayscale ratio interval can also be [R3,R4) shown in Table 7, and the second dimming value range can be the dimming value range [148,186] shown in Table 7.

[0431] S1603: When the electronic device determines that the grayscale ratio is within the set third grayscale ratio range, it exits the highlight mode.

[0432] The third grayscale ratio interval is a grayscale ratio interval corresponding to the operation of exiting the highlight mode among the multiple grayscale ratio intervals set by the electronic device. For example, the third grayscale ratio interval may be [R4,∞) as shown in Table 7.

[0433] It should be noted that the implementation processes provided in the above embodiments are only examples of the method processes applicable to the embodiments of the present application. The execution order of each step in each embodiment can be adjusted accordingly according to actual needs, and other steps can be added or some steps can be reduced.

[0434] Based on the above embodiments and the same technical concept, the present application also provides a brightness adjustment method, which can be applied to electronic devices. As shown in FIG17 , the method may include:

[0435] S1701: When the current scene meets the first condition and / or receives the first operation, the electronic device switches to the first display mode.

[0436] Regarding the first condition, the first operation, and the method for switching the display mode of the electronic device, etc., reference may be made to the description of the aforementioned method for mode switching, and no further details will be given here.

[0437] S1702: The electronic device performs at least one dimming process; wherein the dimming process includes: determining a target grayscale of a first pixel on a display screen; obtaining a first gamma parameter from a plurality of gamma parameters corresponding to a grayscale range to which the first display mode and the target grayscale belong; wherein different gamma parameters from the plurality of gamma parameters correspond to different display modes and / or grayscale ranges, and any gamma parameter is used to determine a correspondence between grayscale and brightness; determining a target brightness corresponding to the target grayscale according to the first gamma parameter; and adjusting the brightness of the first pixel from a first brightness to the target brightness.

[0438] Optionally, the first pixel may be a part or all of the pixels on the display screen, or may be each pixel among a part or all of the pixels on the display screen.

[0439] Among them, regarding the specific implementation process of the dimming process, please refer to the method description related to the aforementioned dimming process, which will not be repeated here.

[0440] In the above method, the specific steps executed by the electronic device can refer to the execution method in the above embodiment and will not be described in detail here.

[0441] Based on the above embodiments and the same technical concept, an embodiment of the present application further provides an electronic device, which is used to implement the brightness adjustment method applied to an electronic device provided in an embodiment of the present application. As shown in Figure 18, the electronic device 1800 may include: a memory 1801, one or more processors 1802, and one or more computer programs (not shown in the figure). The above-mentioned devices can be coupled via one or more communication buses 1803. Optionally, the electronic device 1800 may further include a display screen 1804.

[0442] Among them, one or more computer programs (codes) are stored in the memory 1801, and one or more computer programs include computer instructions; one or more processors 1802 call the computer instructions stored in the memory 1801, so that the electronic device 1800 executes the brightness adjustment method applied to the electronic device provided in the above-mentioned embodiment of the present application.

[0443] In a specific implementation, the memory 1801 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. The memory 1801 can store an operating system (hereinafter referred to as system), such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX. The memory 1801 can be used to store the implementation program of the embodiment of the present application. The memory 1801 can also store a network communication program, which can be used to communicate with one or more additional devices, one or more user devices, and one or more network devices.

[0444] The one or more processors 1802 can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0445] Display screen 1804 is used to display application interfaces and other related user interfaces.

[0446] It should be noted that Figure 18 is only one implementation of the electronic device 1800 provided in an embodiment of the present application. In actual applications, the electronic device 1800 may also include more or fewer components. For details, please refer to the specific structure and description shown in Figure 1, and no limitation is made here.

[0447] Based on the above embodiments and the same technical concept, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the computer executes the method applied to an electronic device provided in the above embodiments.

[0448] Based on the above embodiments and the same technical concept, an embodiment of the present application also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer executes the method applied to an electronic device provided in the above embodiments.

[0449] The methods provided in the embodiments of the present application may be implemented in whole or in part through software, hardware, firmware, or any combination thereof. When implemented using software, they may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device. Computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. Available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs (DVDs), or semiconductor media (e.g., SSDs), etc.

[0450] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.

Claims

1. A brightness adjustment method, applied to electronic equipment, characterized in that: The method comprises: When the current scene satisfies a first condition and / or receives a first operation, switching to a first display mode; Perform at least one dimming process; wherein the dimming process includes: determining a target grayscale for a first pixel on the display screen; Obtaining a first gamma parameter from a plurality of gamma parameters corresponding to a grayscale range to which the first display mode and the target grayscale belong; wherein different gamma parameters from the plurality of gamma parameters correspond to different display modes and / or grayscale ranges, and any gamma parameter is used to determine a correspondence between grayscale and brightness; determining a target brightness corresponding to the target grayscale according to the first gamma parameter; The brightness of the first pixel is adjusted from a first brightness to the target brightness.

2. The method according to claim 1, wherein The first display mode corresponds to multiple grayscale ranges; Determining a target grayscale of a first pixel on the display screen includes: When the current reference data of the electronic device satisfies a second condition, selecting a target grayscale range from the multiple grayscale ranges; wherein the reference data includes one of a current operating parameter of the electronic device and a statistical parameter used to characterize a current brightness distribution characteristic of the display screen; The target grayscale is determined according to the target grayscale range, and the target grayscale is within the target grayscale range.

3. The method according to claim 2, wherein The upper limits of the plurality of grayscale ranges are different; The selecting a target grayscale range from the plurality of grayscale ranges includes: A grayscale range with the largest upper limit value among the grayscale ranges that have not been currently selected in the plurality of grayscale ranges is determined as the target grayscale range.

4. The method according to claim 2, wherein The selecting a target grayscale range from the plurality of grayscale ranges includes: According to current reference data of the electronic device, a grayscale range corresponding to the reference data among the multiple grayscale ranges is determined as the target grayscale range.

5. The method according to claim 4, wherein The upper limit value of the target grayscale range is negatively correlated with current reference data of the electronic device.

6. The method according to claim 1, wherein Determining a target grayscale of a first pixel on the display screen includes: When the current reference data of the electronic device satisfies the second condition, lowering the upper limit of the target grayscale range to obtain an updated target grayscale range; wherein the reference data includes one of the current operating parameters of the electronic device and a statistical parameter used to characterize the current brightness distribution characteristics of the display screen; The target grayscale is determined according to the updated target grayscale range, and the target grayscale is within the updated target grayscale range.

7. The method according to claim 6, wherein The step of lowering the upper limit of the target grayscale range includes: The upper limit value of the target grayscale range is adjusted lower by a target value; wherein, The target value is a first set value; or The target value corresponds to a current reference value of the electronic device; or The target value is greater than the value by which the upper limit value of the target grayscale range was last adjusted downward; or The target value is positively correlated with current reference data of the electronic device.

8. The method according to any one of claims 2, 4 to 7, wherein: The reference data includes the duration of the first display mode, and the current reference data of the electronic device meets the second condition including: the duration of the first display mode reaches a set duration threshold; or The reference data includes the effective usage time of the target grayscale range determined last time, and the current reference data of the electronic device meets the second condition including: the effective usage time of the target grayscale range determined last time reaches a set effective usage time threshold; wherein, the effective usage time is the time during which the target grayscale is within the target grayscale range determined last time, or the time during which the target grayscale is within a set sub-range of the target grayscale range determined last time; or The reference data includes the temperature of the electronic device, and the current reference data of the electronic device meeting the second condition includes: the temperature of the electronic device reaches a set temperature threshold; or The reference data includes the temperature of the display screen, and the current reference data of the electronic device meeting the second condition includes: the temperature of the display screen reaches a set temperature threshold; or The reference data includes the number of pixels on the display screen whose grayscale values ​​meet the third condition, and the current reference data of the electronic device meets the second condition including: the number of pixels on the display screen whose grayscale values ​​meet the third condition reaches a set number threshold; or The reference data includes the ratio of the number of pixels on the display screen whose grayscale values ​​meet the third condition to the number of all pixels on the display screen. The current reference data of the electronic device meets the second condition including: the ratio of the number of pixels on the display screen whose grayscale values ​​meet the third condition to the number of all pixels on the display screen reaches a set ratio threshold.

9. The method according to claim 8, wherein The third condition includes: the grayscale value is not zero, or the grayscale value is greater than or equal to a second set value.

10. The method according to claim 1, wherein Determining a target grayscale of a first pixel on the display screen includes: The current ambient light illumination is obtained, and the grayscale corresponding to the current ambient light illumination is determined according to the corresponding relationship between the ambient light illumination and the grayscale, and the grayscale corresponding to the current ambient light illumination is used as the target grayscale.

11. The method according to any one of claims 1 to 10, wherein: The method further comprises: When the current scene satisfies the first condition and / or receives the first operation, and does not satisfy the fourth condition, prohibiting switching to the first display mode; The fourth condition includes: The duration between the last time the first display mode was exited and the time when the first display mode was last exited is greater than or equal to the set duration; and / or The current reference data of the electronic device is less than or equal to a third set value.

12. The method according to any one of claims 1 to 11, wherein: The first condition includes at least one of the following: The brightness of some or all pixels on the display screen meets a first brightness condition; The detected ambient light intensity satisfies a first light intensity condition; The multiple ambient light illuminances detected multiple times continuously within the set time period meet the second illuminance condition.

13. The method according to claim 12, wherein: The first brightness condition is: greater than or equal to the first brightness; The first illumination condition is: greater than or equal to the first illumination; The second illumination condition includes at least one of the following: The multiple ambient light illuminances are all greater than or equal to the second illuminance; The maximum value of the multiple ambient light illuminances is greater than or equal to the third illuminance; The minimum value of the multiple ambient light illuminances is greater than or equal to a fourth illuminance; An average value of the multiple ambient light illuminances is greater than or equal to a fifth illuminance.

14. The method according to claim 12 or 13, wherein: After switching to the first display mode, the method further includes: When the current scene satisfies the fifth condition and / or receives the second operation, switching to the second display mode; The fifth condition includes at least one of the following: The detected ambient light intensity does not satisfy the first light intensity condition; The multiple ambient light illuminances detected multiple times continuously within a set time period do not meet the second illuminance condition; The current reference data of the electronic device meets the sixth condition; wherein, the reference data includes any one of the following items: the duration of the first display mode, the effective usage time of the target grayscale range determined last time, the temperature of the electronic device, the temperature of the display screen, the number of pixels on the display screen whose grayscale values ​​meet the third condition, and the ratio of the number of pixels on the display screen whose grayscale values ​​meet the third condition to the number of all pixels on the display screen.

15. The method according to claim 14, wherein When the reference data includes the duration of the first display mode or the effective usage time of the target grayscale range determined last time, the current reference data of the electronic device satisfies the sixth condition including: the duration of the first display mode reaches a set limit threshold; or When the reference data includes the temperature of the electronic device, the current reference data of the electronic device meeting the sixth condition includes: the temperature of the electronic device reaches a set limit temperature; or When the reference data includes the temperature of the display screen, the current reference data of the electronic device meeting the sixth condition includes: the temperature of the display screen reaches a set limit temperature; or When the reference data includes the number of pixels on the display screen whose grayscale values ​​satisfy the third condition, the current reference data of the electronic device satisfies the sixth condition including: the number of pixels on the display screen whose grayscale values ​​satisfy the third condition is greater than or equal to a set number; or When the reference data includes the ratio of the number of pixels on the display screen whose grayscale values ​​meet the third condition to the number of all pixels on the display screen, the current reference data of the electronic device satisfies the sixth condition including: the ratio of the number of pixels on the display screen whose grayscale values ​​meet the third condition to the number of all pixels on the display screen is greater than or equal to the set ratio.

16. The method according to any one of claims 1 to 15, wherein: The first display mode is a highlight mode.

17. The method according to any one of claims 1 to 16, wherein: The adjusting the brightness of the first pixel from the first brightness to the target brightness includes: determining a plurality of brightnesses having values ​​between the first brightness and the target brightness; According to the order of the values ​​of the multiple brightnesses and the target brightness, the brightness of the first pixel is adjusted from the first brightness to each brightness of the multiple brightnesses and the target brightness in sequence.

18. The method according to claim 17, wherein Determining a plurality of brightnesses having values ​​between the first brightness and the target brightness includes: Determining a plurality of grayscales having values ​​between a second grayscale and the target grayscale; wherein the second grayscale is the grayscale of the first pixel having the first brightness; Performing a first process on a third grayscale; wherein the third grayscale is each grayscale of the plurality of grayscales, the first process comprising: acquiring a second gamma parameter from the plurality of gamma parameters corresponding to a grayscale range to which the first display mode and the third grayscale belong; The brightness corresponding to the third grayscale is determined according to the second gamma parameter, and the brightness corresponding to the third grayscale is used as one of the multiple brightnesses.

19. The method according to claim 18, wherein When the second grayscale and the target grayscale are both greater than or equal to a fourth set value, the number of the plurality of grayscales is greater than or equal to a fifth set value; or When the second grayscale and the first target grayscale are both smaller than a fourth setting, the number of the plurality of grayscales is smaller than a fifth setting value.

20. The method according to claim 18 or 19, wherein The number of the plurality of gray levels is positively correlated with the gray level difference between the second gray level and the target gray level.

21. The method of claim 14, wherein: After switching to the second display mode, the method further includes: Perform the following process at least once: determining a target grayscale for a second pixel on the display screen; Acquire a third gamma parameter from the plurality of gamma parameters corresponding to the second display mode and the grayscale range to which the target grayscale of the second pixel belongs; determining a brightness corresponding to a target grayscale of the second pixel according to the third gamma parameter; The brightness of the second pixel is adjusted from the fourth brightness to the brightness corresponding to the target grayscale of the second pixel.

22. An electronic device, characterized in that: The electronic device includes a memory and one or more processors; The memory is used to store computer program code, which includes computer instructions; when the computer instructions are executed by the one or more processors, the electronic device executes the method according to any one of claims 1 to 21.

23. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is run on an electronic device, the electronic device executes the method according to any one of claims 1 to 21.

24. A computer program product, characterized in that The computer program product includes a computer program or instructions, and when the computer program or instructions are run on an electronic device, the electronic device is enabled to perform the method according to any one of claims 1 to 21.

Citation Information

Patent Citations

  • Display panel driving method and driving chip, and display device

    CN109064966A

  • Display mode conversion method applied to display driving circuit

    CN109961756A

  • Driving method and driving device of display panel and display device

    CN110634434A

  • Gamma debugging method, gamma debugging device and display device

    CN115206236A

  • Display panel control method and control device, storage medium and electronic equipment

    CN116129806A