Brightness adjustment methods, devices, electronic equipment and media

By acquiring target adjustment parameters and determining brightness adjustment rules in electronic devices, and calculating a brightness adjustment model based on the software layer, the problem of hardware performance differences in the brightness adjustment process of the display screen is solved, achieving stable and smooth brightness adjustment and improving the user experience.

CN119905075BActive Publication Date: 2025-10-31BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311403158.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2025-10-31
Estimated Expiration
2043-10-26

AI Technical Summary

Technical Problem

Different models of electronic devices have different hardware performance in the brightness adjustment process, which can easily cause flickering or jittering, resulting in a poor visual experience for users. In addition, the inconsistent brightness adjustment rate under different brightness adjustment scenarios can also cause flickering or jittering.

Method used

By acquiring the target adjustment parameters, determining the brightness adjustment rules and model, and calculating the brightness value of the target display frame during the brightness adjustment process based on the software layer, the adjustment rate can be controlled, hardware performance interference can be avoided, and the brightness adjustment process can be ensured to be stable.

Benefits of technology

It achieves stability and robustness in the brightness adjustment process under different brightness adjustment scenarios, avoids screen flicker and jitter, and improves the user's visual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119905075B_ABST
    Figure CN119905075B_ABST
Patent Text Reader

Abstract

This disclosure relates to a brightness adjustment method, apparatus, electronic device, and medium. The brightness adjustment method includes: acquiring target adjustment parameters; determining a brightness adjustment rule based on an initial brightness value and a target brightness value; determining a brightness adjustment model corresponding to the brightness adjustment rule based on the brightness adjustment rule; determining the brightness value of a target display frame during the adjustment period based on the brightness adjustment model; and adjusting the brightness of the display screen in the brightness adjustment scenario. This disclosure achieves brightness adjustment of the display screen by determining the brightness value of the target display frame at the software layer, ensuring that the brightness adjustment process is not affected by the hardware performance of the display screen, making the brightness adjustment process more stable, and avoiding display screen flickering and jitter problems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of electronic equipment technology, and in particular to a brightness adjustment method, device, electronic equipment, and medium. Background Technology

[0002] During the use of electronic devices, screen brightness is typically adjusted through a combination of software and hardware. However, due to differences in the hardware performance of screens in different electronic device models, some screens can smoothly adjust brightness, while others may flicker or jitter during the adjustment process, resulting in a poor user visual experience.

[0003] At the same time, since electronic devices may have various brightness adjustment scenarios during use, and the duration of the brightness adjustment process may vary in different scenarios, if the same brightness adjustment rate is used for all of them, flickering or jitter may easily occur during the brightness adjustment process. Summary of the Invention

[0004] To overcome the problems existing in the related technologies, this disclosure provides a brightness adjustment method, device, electronic device and medium.

[0005] According to a first aspect of the present disclosure, a brightness adjustment method is provided, comprising:

[0006] Obtain target adjustment parameters, which are determined based on the brightness adjustment scenario. The target adjustment parameters include a starting brightness value, a target brightness value, and an adjustment duration. The target brightness value is the expected brightness of the display screen under the brightness adjustment scenario. The adjustment duration is determined based on the brightness adjustment scenario and is the time required for the display screen's brightness to change from the starting brightness value to the target brightness value.

[0007] Based on the initial brightness value and the target brightness value, a brightness adjustment rule is determined, wherein the brightness adjustment rule is used to characterize the brightness of the display screen changing from dark to bright or from bright to dark during the brightness adjustment process;

[0008] Based on the brightness adjustment rule, determine the brightness adjustment model corresponding to the brightness adjustment rule;

[0009] Based on the brightness adjustment model, the brightness value of the target display frame during the adjustment period is determined, and the brightness of the display screen is adjusted in the brightness adjustment scenario.

[0010] In some embodiments, the brightness adjustment model includes a brightness adjustment function;

[0011] The brightness adjustment rule is used to characterize the brightness of the display screen changing from dark to bright during the brightness adjustment process, and the brightness adjustment function is the first function;

[0012] The brightness adjustment rule is used to characterize the change in brightness of the display screen from bright to dark during the brightness adjustment process, and the brightness adjustment function is the second function;

[0013] The first function and the second function are inverse functions of each other.

[0014] In some embodiments, determining the brightness adjustment model corresponding to the brightness adjustment rule based on the brightness adjustment rule includes:

[0015] The brightness adjustment rule characterizes the change in brightness of the display screen from dark to bright during the brightness adjustment process, and the brightness adjustment function is determined to be a logarithmic function;

[0016] The brightness adjustment rule describes the change in brightness of the display screen from bright to dark during the brightness adjustment process, and the brightness adjustment function is determined to be an exponential function.

[0017] In some embodiments, the brightness adjustment model includes an adjustment constant, the adjustment constant including a first constant and a second constant, and the brightness adjustment method further includes:

[0018] The second constant is determined based on the initial brightness value;

[0019] The first constant is determined based on the target brightness value, the second constant, and the adjustment duration.

[0020] In some embodiments, the independent variables of both the logarithmic function and the exponential function include the sum of a first product and a second constant, wherein the first product is the product of the first constant and the time of change, and the time of change is the time corresponding to the target display frame.

[0021] In some embodiments, the brightness adjustment method further includes:

[0022] Based on the first instruction, the brightness adjustment scenario is determined;

[0023] The brightness adjustment scenario is a first scenario. The target brightness value is determined based on the first instruction, and the adjustment duration corresponding to the brightness adjustment scenario is determined based on preset configuration information.

[0024] The brightness adjustment scenario is the second scenario, and the target brightness value and adjustment duration corresponding to the brightness adjustment scenario are determined based on the configuration information.

[0025] The first scenario is an active adjustment scenario, and the second scenario is an automatic adjustment scenario.

[0026] In some embodiments, the brightness adjustment scenario includes at least one of the following scenarios:

[0027] Scenes where the brightness of the display screen is actively adjusted;

[0028] The display screen switches between a screen-off state and a screen-on state.

[0029] High dynamic range rendering for displaying scenes;

[0030] The scenario of adjusting the brightness of the display screen based on ambient light.

[0031] In some embodiments, the brightness adjustment method further includes:

[0032] When the number of the brightness adjustment scenes identified is greater than or equal to 1, preset priority information is obtained, and the priority information is used to characterize the importance of the brightness adjustment scene.

[0033] The acquisition of the target adjustment parameters includes:

[0034] The target adjustment parameters are determined based on the highest priority brightness adjustment scenario.

[0035] According to a second aspect of the present disclosure, a brightness adjustment device is provided, comprising:

[0036] The acquisition module is used to acquire target adjustment parameters. The target adjustment parameters are determined based on the brightness adjustment scenario. The target adjustment parameters include an initial brightness value, a target brightness value, and an adjustment duration. The target brightness value is the expected brightness of the display screen under the brightness adjustment scenario. The adjustment duration is determined based on the brightness adjustment scenario and is the time required for the display brightness of the display screen to change from the initial brightness value to the target brightness value.

[0037] The first determining module is used to determine a brightness adjustment rule based on the initial brightness value and the target brightness value, wherein the brightness adjustment rule is used to characterize the brightness of the display screen changing from dark to bright or from bright to dark during the brightness adjustment process;

[0038] The second determining module is used to determine the brightness adjustment model corresponding to the brightness adjustment rule based on the brightness adjustment rule.

[0039] The third determining module is used to determine the brightness value of the target display frame during the adjustment period based on the brightness adjustment model, and to adjust the brightness of the display screen in the brightness adjustment scenario.

[0040] In some embodiments, the brightness adjustment model includes a brightness adjustment function;

[0041] The brightness adjustment rule is used to characterize the brightness of the display screen changing from dark to bright during the brightness adjustment process, and the brightness adjustment function is the first function;

[0042] The brightness adjustment rule is used to characterize the change in brightness of the display screen from bright to dark during the brightness adjustment process, and the brightness adjustment function is the second function;

[0043] The first function and the second function are inverse functions of each other.

[0044] In some embodiments, the second determining module is configured to:

[0045] The brightness adjustment rule characterizes the change in brightness of the display screen from dark to bright during the brightness adjustment process, and the brightness adjustment function is determined to be a logarithmic function;

[0046] The brightness adjustment rule describes the change in brightness of the display screen from bright to dark during the brightness adjustment process, and the brightness adjustment function is determined to be an exponential function.

[0047] In some embodiments, the brightness adjustment model includes an adjustment constant, the adjustment constant including a first constant and a second constant, and the brightness adjustment device further includes:

[0048] The fourth determining module is used to determine the second constant based on the initial brightness value;

[0049] The fifth determining module is used to determine the first constant based on the target brightness value, the second constant, and the adjustment duration.

[0050] In some embodiments, the independent variables of both the logarithmic function and the exponential function include the sum of a first product and a second constant, wherein the first product is the product of the first constant and the time of change, and the time of change is the time corresponding to the target display frame.

[0051] In some embodiments, the brightness adjustment device further includes:

[0052] The sixth determining module is used to determine the brightness adjustment scenario based on the first instruction;

[0053] The seventh determining module is used when the brightness adjustment scenario is the first scenario, to determine the target brightness value based on the first instruction, and to determine the adjustment duration corresponding to the brightness adjustment scenario based on preset configuration information;

[0054] The eighth determining module is used when the brightness adjustment scenario is the second scenario, and determines the target brightness value and the adjustment duration corresponding to the brightness adjustment scenario based on the configuration information;

[0055] The first scenario is an active adjustment scenario, and the second scenario is an automatic adjustment scenario.

[0056] In some embodiments, the brightness adjustment scenario includes at least one of the following scenarios:

[0057] Scenes where the brightness of the display screen is actively adjusted;

[0058] The display screen switches between a screen-off state and a screen-on state.

[0059] High dynamic range rendering for displaying scenes;

[0060] The scenario of adjusting the brightness of the display screen based on ambient light.

[0061] In some embodiments, the brightness adjustment device further includes:

[0062] The second acquisition module is used to acquire preset priority information when the number of the identified brightness adjustment scenes is greater than or equal to 1. The priority information is used to characterize the importance of the brightness adjustment scene.

[0063] The acquisition module is specifically used for:

[0064] The target adjustment parameters are determined based on the highest priority brightness adjustment scenario.

[0065] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0066] processor;

[0067] Memory used to store processor-executable instructions;

[0068] The processor is configured to perform the brightness adjustment method as described in the first aspect of this disclosure.

[0069] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the brightness adjustment method as described in the first aspect of the present disclosure.

[0070] The method described in this disclosure has the following advantages: The brightness adjustment method in this disclosure determines the corresponding brightness adjustment model based on the brightness adjustment scenario, and determines the brightness value of the target display frame during the adjustment time based on the brightness adjustment model. According to different brightness adjustment scenarios, the brightness value of the target display frame during the brightness adjustment process can be determined through the software layer, thereby realizing the control of the adjustment rate and thus realizing the adjustment of the display screen brightness. This ensures that the brightness adjustment process is not affected by the hardware performance of the display screen, making the brightness adjustment process more stable and avoiding display screen flickering and jittering problems.

[0071] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0072] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0073] Figure 1 This is a flowchart illustrating a brightness adjustment method according to an exemplary embodiment.

[0074] Figure 2 This is a flowchart illustrating a brightness adjustment method according to an exemplary embodiment.

[0075] Figure 3 This is a flowchart illustrating a brightness adjustment method according to an exemplary embodiment.

[0076] Figure 4 This is a flowchart illustrating a brightness adjustment method according to an exemplary embodiment.

[0077] Figure 5 This is a block diagram illustrating a brightness adjustment device according to an exemplary embodiment.

[0078] Figure 6 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation

[0079] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0080] During the use of electronic devices, there are various processes that require adjusting the brightness of the display screen. In related technologies, the brightness adjustment process is generally completed jointly by the software and hardware layers of the display. The software layer sends the brightness difference value to the hardware layer. After receiving the brightness difference value from the software layer, the hardware layer divides the brightness difference value according to preset calibration parameters and writes the divided brightness change values ​​to the corresponding brightness nodes for brightness adjustment. In this process, the software and hardware layers cooperate to achieve a smooth transition in the display screen brightness adjustment process.

[0081] However, the hardware performance of displays in different electronic devices varies. For example, displays with strong hardware performance have more perfect brightness adjustment and a more stable transition during the brightness adjustment process; on the other hand, displays with poor hardware performance have poor brightness adjustment, and problems such as flickering and jittering may occur during the brightness adjustment process, and the transition during the brightness adjustment process is also poor.

[0082] To address the aforementioned issues, this disclosure provides a brightness adjustment method applicable to electronic devices with displays. The method proposes determining a corresponding brightness adjustment model based on the brightness adjustment scenario. Based on this model, the brightness value of the target display frame during the adjustment period is determined. Depending on different brightness adjustment scenarios, the brightness value of the target display frame during the brightness adjustment process can be determined through a software layer, thereby controlling the adjustment rate and ultimately adjusting the display screen brightness. This ensures that the brightness adjustment process is not affected by the display screen's hardware performance, making the brightness adjustment process more stable, avoiding display screen flicker and jitter, and improving the user's visual experience, robustness, and reliability during brightness adjustment.

[0083] Furthermore, since this disclosure can achieve brightness adjustment of the display screen through software-level algorithms alone, it does not place excessive demands on the hardware performance of the display screen of electronic devices. Therefore, the brightness adjustment method in this disclosure can be applied to various types of electronic devices, and has the advantages of wide application range and many application scenarios.

[0084] This disclosure provides an exemplary embodiment of a brightness adjustment method that can be applied to electronic devices with displays. Specifically, the electronic device can be a mobile phone, tablet computer, laptop, smart robot, smart wearable device, smart vehicle system, or other smart device with a display screen, or it can be directly applied to the display screen. In addition, the electronic device also includes various hardware and software resources, as well as energy storage devices that provide power for the operation of these hardware resources.

[0085] like Figure 1 As shown, the brightness adjustment method disclosed herein includes:

[0086] S101. Obtain the target adjustment parameters.

[0087] S102. Determine the brightness adjustment rule based on the initial brightness value and the target brightness value.

[0088] S103. Based on the brightness adjustment law, determine the brightness adjustment model corresponding to the brightness adjustment law.

[0089] S104. Based on the brightness adjustment model, determine the brightness value of the target display frame during the adjustment period, and adjust the brightness of the display screen in the brightness adjustment scenario.

[0090] In step S101, the target adjustment parameters include the initial brightness value, the target brightness value, and the adjustment duration. The brightness value can be described using brightness levels, such as 1024 or 4096 levels; it can also be described as a percentage, such as 60% or 70%; or it can be a defined value, such as 100 nits, 200 nits, etc., where nits are a common unit of brightness.

[0091] The initial brightness value refers to the initial brightness of the display screen in a brightness adjustment scenario. For ease of subsequent calculation, the moment when the electronic device begins the brightness adjustment process in a brightness adjustment scenario can be defined as moment 0. Therefore, the initial brightness value can also refer to the brightness of the display screen at moment 0. Adjustment duration refers to the time required for the display brightness of the electronic device to change from the initial brightness value to the target brightness value. For example, if it takes 1 second for the display brightness to change from 60 nits to 70 nits, the adjustment duration is 1 second. The target brightness value refers to the expected brightness of the display screen in a brightness adjustment scenario. Generally, this expectation can refer to the user's expectation, such as a certain brightness value that the user hopes to achieve, or it can refer to the electronic device's system expectation, such as a certain brightness value that the system hopes to achieve.

[0092] In some embodiments, the initial brightness value and the target brightness value can be monitored by monitoring hardware or software in the electronic device. For example, the initial brightness value and the target brightness value during the brightness adjustment process can be monitored by a brightness detector. Alternatively, the initial brightness value and the target brightness value can be read directly. For example, the control chip of the electronic device communicates with the display chip to directly obtain the initial brightness value of the display screen. Depending on the brightness adjustment scenario, the target brightness value can be the brightness of the display screen set by the user, or it can be the brightness value of the display screen automatically corresponding to the brightness adjustment scenario. For example, the brightness of the display screen is adjusted according to the ambient light of the environment in which the electronic device is located.

[0093] There are several ways to determine the adjustment duration. In one example, the adjustment duration can also be determined based on the brightness adjustment scenario. For instance, the adjustment duration for the display to change from a bright screen state to a dark screen state is pre-stored in the electronic device. When the electronic device encounters a brightness adjustment scenario where the display changes from a bright screen state to a dark screen state, it will automatically retrieve the information pre-stored in the electronic device to obtain the adjustment duration.

[0094] In another example, the adjustment duration can be determined based on the user's operation instructions. For instance, the user manually operates the brightness bar, thus clearly knowing the initial and target brightness values. Based on the difference between the initial and target brightness values ​​and the user's operation instructions, pre-stored parameter information is used to determine the adjustment duration corresponding to the brightness difference caused by the user's brightness adjustment, thereby achieving a smoother brightness adjustment process.

[0095] This disclosure does not limit the specific type of brightness adjustment scenario. The brightness adjustment scenario can be selected according to the actual needs of the user or electronic device. Several examples of brightness adjustment scenarios are given below:

[0096] In one example, the brightness adjustment scenario could be a scenario where the user actively adjusts the display brightness. It's important to note that "active adjustment" here refers to a user-initiated adjustment process, such as the user sliding a brightness bar to adjust the brightness, or the user using voice commands to adjust the brightness. Another example is a user adjusting the brightness of a video application while watching a video.

[0097] In another example, a brightness adjustment scenario could also be a scenario where the system of an electronic device automatically adjusts the brightness of the display screen, for example, by sensing changes in ambient light and adjusting the brightness of the display screen accordingly.

[0098] The target adjustment parameters are determined based on the brightness adjustment scenario. Since different brightness adjustment scenarios may have different target adjustment parameters, to ensure a smoother and more stable brightness adjustment process, the target adjustment parameters need to be determined each time a brightness adjustment scenario occurs. For example, in one brightness adjustment scenario, the user slides the brightness bar, changing the display brightness from 40 nits to 80 nits. The electronic device predicts that the adjustment process will be smoother if it takes 2 seconds. Therefore, the initial brightness value in this scenario is 40 nits, the target brightness value is 80 nits, and the adjustment duration is 2 seconds. Another example is where the system automatically adjusts the display brightness based on ambient light, changing it from 75 nits to 30 nits. The system pre-stores an adjustment duration of 0.05 seconds for this brightness difference. Therefore, the initial brightness value in this scenario is 75 nits, the target brightness value is 30 nits, and the adjustment duration is 0.05 seconds. Therefore, the target adjustment parameters may differ in different brightness adjustment scenarios. Furthermore, it should be noted that the target adjustment parameters may also differ even within the same brightness adjustment scenario. For example, when a user drags the brightness bar to adjust the display brightness, the initial brightness value and the target brightness value will differ each time the user drags, resulting in different brightness differences. To ensure the smoothness of brightness changes during the adjustment process, different adjustment durations can be used. Therefore, this disclosure requires determining the target adjustment parameters based on the actual brightness adjustment scenario to maximize the accuracy of the target adjustment parameters.

[0099] In step S102, the brightness adjustment rule can refer to the brightness change trend of the display screen during the brightness adjustment process, such as gradually brightening or gradually darkening. It can also be used to characterize the brightness of the electronic device's display screen changing from dark to bright or from bright to dark during the brightness adjustment process.

[0100] As illustrated in step S101, the relationship between the initial brightness value and the target brightness value can be either that the initial brightness value is greater than the target brightness value, or that the initial brightness value is less than the target brightness value. Therefore, the brightness adjustment rule corresponding to the case where the initial brightness value is greater than the target brightness value represents the change in brightness of the electronic device's display screen from bright to dark during the brightness adjustment process. Conversely, the brightness adjustment rule corresponding to the case where the initial brightness value is less than the target brightness value represents the change in brightness of the electronic device's display screen from dark to bright during the brightness adjustment process.

[0101] Since the brightness of a display screen changes from bright to dark or from dark to bright in different ways, in order to improve the brightness display effect during the brightness adjustment process, different brightness adjustment models can be used in subsequent steps according to the brightness change pattern to adjust the brightness of the display screen from bright to dark or from dark to bright.

[0102] In step S103, the control chip of the electronic device stores the correspondence between the brightness adjustment rules and the brightness adjustment models. Once the brightness adjustment rules are determined, the brightness adjustment model to be used for calculating the brightness value of the target display frame in the following text can be determined based on the brightness adjustment rules.

[0103] In one example, the brightness adjustment model can be a function. For instance, the brightness adjustment model can be a computational model in which the independent and dependent variables are parameters related to the brightness adjustment method disclosed herein, and this computational model can be used to perform brightness adjustment.

[0104] In another example, the brightness adjustment model can be a specific adjustment rule, such as a brightness adjustment rule that changes from dark to bright. The brightness adjustment model can be that, starting from the moment the adjustment begins, the brightness is increased by 5 nits in the first frame, 10 nits in the second frame, 5 nits in the third frame, and so on, increasing the brightness value of the display frame by frame as the display frames are refreshed.

[0105] In step S104, the number of target display frames during the adjustment period is not specifically limited in this disclosure. Since the adjustment period may be different for each brightness adjustment scenario, the adjustment rate can be determined according to the brightness adjustment scenario, and then the brightness value of the display frames on the screen during the adjustment period can be calculated according to the adjustment rate. The target display frame is the display frame whose brightness value changes. When not every display frame on the screen during the adjustment period is a target display frame, the brightness value of each display frame between two adjacent display frames remains the same as the brightness value of the previous target display frame.

[0106] For example, the adjustment period might involve 24 display frames. Depending on the adjustment rate corresponding to the brightness adjustment scenario, each display frame can be set as a target display frame, and the brightness value of each target display frame can be calculated accordingly. Alternatively, 12 of the 24 display frames can be set as target display frames, while the brightness values ​​of the remaining 12 display frames remain consistent with the brightness value of the previous frame. As mentioned above, when all 24 display frames are target display frames, it means that every display frame involved in the adjustment period is a target display frame, and the brightness of the display changes 24 times. When 12 of the 24 display frames are target display frames, the brightness of the display changes 12 times. Assuming that the brightness difference to be adjusted within the adjustment period is the same, when using the 24 target display frame scheme, the number of adjustments is greater, and the brightness value changes between adjacent target display frames are relatively smaller. Therefore, the brightness adjustment process is more stable and can effectively avoid flickering or jittering problems during the brightness adjustment process. If the solution of changing the brightness of the display screen 12 times is adopted, the number of target display frames with brightness changes is small, but it is still necessary to ensure that the same brightness difference as the solution with 24 target display frames is achieved. Therefore, the changes in brightness each time are more obvious, and the display effect is affected to some extent. However, since the number of target display frames that need to calculate the brightness value is small, the consumption of computing resources can be reduced to a certain extent.

[0107] The brightness adjustment method disclosed herein determines a corresponding brightness adjustment model based on the current brightness adjustment scenario through the software layer of the electronic device. Based on the brightness adjustment model and the desired adjustment rate, it calculates the brightness value of the target display frame that has undergone a brightness change compared to adjacent display frames during the adjustment period, thereby adjusting the brightness of the display screen. Since the method in this disclosure calculates the brightness value of the target display frame in the software, the brightness adjustment of the display screen does not need to consider the hardware performance of the display screen, thus having a wider range of applications.

[0108] In addition, the brightness adjustment method in this disclosure can determine the brightness value of the target display frame during the brightness adjustment process through the software layer according to different brightness adjustment scenarios, thereby controlling the adjustment rate and adjusting the brightness of the display screen. This ensures that the brightness adjustment process is not affected by the hardware performance of the display screen, making the brightness adjustment process more stable and avoiding display screen flickering and jittering problems.

[0109] According to an exemplary embodiment, this embodiment defines the brightness adjustment model in step S103 above:

[0110] The brightness adjustment model includes a brightness adjustment function. Since there are two brightness adjustment rules in this disclosure, there are also two corresponding brightness adjustment models and brightness adjustment functions.

[0111] In one example, when the brightness adjustment rule is used to characterize the brightness of the electronic device's display screen changing from dark to bright during the brightness adjustment process, that is, when the display screen brightness changes from bright to dark, the brightness adjustment function can be determined as the first function. The first function can include any one or any combination of addition, subtraction, multiplication, and division operations, and can also include logarithmic operations, exponential operations, etc.

[0112] In another example, when the brightness adjustment rule is used to characterize the change in brightness of an electronic device's display screen from bright to dark during the brightness adjustment process, i.e., when the display screen's brightness changes from dark to bright, the brightness adjustment function can be determined as the second function. The second function can include any one or any combination of addition, subtraction, multiplication, and division operations, as well as logarithmic operations, exponential operations, etc.

[0113] Since the brightness adjustment rules corresponding to the first function and the second function are opposite, the first function and the second function should be inverse functions of each other. For example, the first function is a logarithmic function and the second function is an exponential function.

[0114] Of course, it is understandable that, in addition to including the brightness adjustment function, in some other embodiments, the brightness adjustment model can also be a data table stored in the electronic device. When it is necessary to adjust the brightness of the display screen, the brightness adjustment parameters can be determined by querying the data table, and then the brightness can be adjusted. The data table can be set in two ways according to the brightness adjustment rules, so as to correspond to different brightness adjustment rules respectively.

[0115] The brightness adjustment model disclosed herein can include two functions that are inverse functions of each other, depending on the different brightness adjustment rules. This allows the selection of a brightness adjustment function that matches the brightness adjustment rules during the brightness adjustment process, resulting in better robustness of the adjustment process and a better visual experience for the user.

[0116] According to an exemplary embodiment, this embodiment provides a brightness adjustment method. The brightness adjustment method in this embodiment is a limitation of step S103 above. Step S103 includes the following steps:

[0117] S1031, the brightness adjustment law characterizes the brightness adjustment function as a logarithmic function when the brightness of the display screen changes from dark to bright during the brightness adjustment process.

[0118] S1032, the brightness adjustment law characterizes the brightness of the display screen changing from bright to dark during the brightness adjustment process, and determines that the brightness adjustment function is an exponential function.

[0119] In step S1031, a logarithmic function is a function that takes the argument (i.e., the power) as the independent variable, the exponent as the dependent variable, and the base as a constant.

[0120] For example, the logarithmic function y = log a In the equation x, x represents the argument, i.e., x is the independent variable; y represents the exponent, i.e., y is the dependent variable; and a represents the base, i.e., a is a constant. The constant a takes values ​​greater than 0 and not equal to 1. For example, a can take the value e or the value 10. When a takes the value e, the logarithmic function y = lnx is obtained.

[0121] In step S1032, generally speaking, an exponential function is a function with a constant base and an independent exponent, and its domain is R. For example, the exponential function y = a x In the exponential function, x represents the exponent, x is the independent variable, a represents the base, a is a constant, and y is the dependent variable. Since the domain of the exponential function is R, the range of values ​​for the constant a in the exponential function is a > 0 and a ≠ 1. For example, a can take the value e or the value 2. When a takes the value e, y = e^(-1 / 2). x It can also be expressed as y = exp(x).

[0122] According to an exemplary embodiment, such as Figure 2 As shown, this embodiment provides a brightness adjustment method, including:

[0123] S201. Obtain the target adjustment parameters.

[0124] S202. Determine the brightness adjustment rule based on the initial brightness value and the target brightness value.

[0125] S203. Based on the brightness adjustment law, determine the brightness adjustment model corresponding to the brightness adjustment law.

[0126] S204. Determine the second constant based on the initial brightness value.

[0127] S205. Determine the first constant based on the target brightness value, the second constant, and the adjustment duration.

[0128] S206. Based on the brightness adjustment model, determine the brightness value of the target display frame during the adjustment period, and adjust the brightness of the display screen in the brightness adjustment scenario.

[0129] Steps S201-S203 and S206 are the same as steps S101-S103 and S104 in the above embodiments, and will not be described again here.

[0130] The brightness adjustment model includes logarithmic and exponential functions. The expressions for both functions include adjustment constants, specifically a first constant and a second constant. These constants can be arbitrary, such as 1 for the first constant and 2 for the second constant. Furthermore, the independent variables of both the logarithmic and exponential functions include the sum of a first product and a second constant. The first product is the product of the first constant and the time of change, where the time of change corresponds to the target display frame. Referring to the above explanation of logarithmic and exponential functions, the constant 'a' in both the logarithmic and exponential functions of the brightness adjustment model in this embodiment is 'e'. The method in this embodiment will be described below using logarithmic and exponential functions with a constant 'e'.

[0131] In step S204, to facilitate subsequent calculations, the initial moment when the electronic device begins the brightness adjustment process in the brightness adjustment scenario can be defined as moment 0. Therefore, the time of change can be calculated from moment 0.

[0132] In one example, when the screen brightness changes from dark to bright in a brightness adjustment scenario, the expression for the brightness adjustment function corresponding to this brightness adjustment rule is as follows:

[0133] Y = ln(m*t + n)(1)

[0134] Where Y represents the brightness value of the target display frame at the time of change, t represents the time of change, m represents the first constant, n represents the second constant, and m*t represents the first product.

[0135] In one example, the initial brightness value corresponds to the brightness value of the target display frame on the screen at time 0. Referring to expression (1), when the change time t = 0, the brightness value of the target display frame is the initial brightness value. Furthermore, the initial brightness value can be obtained during the brightness adjustment process, for example, by directly reading the initial brightness value from the display chip of the electronic device. To make it easier to understand, substituting the change time t = 0 into expression (1), we can obtain that when the change time t = 0, the value of the first product m*t is also 0, and at this change time, when the brightness of the screen changes from dark to bright, the expression of the brightness adjustment function corresponding to this brightness adjustment rule is as follows:

[0136] Y1=ln(n)(2)

[0137] At this point, Y1 represents the initial brightness value. In the above discussion, the initial brightness value Y1 is a known number. Therefore, the second constant n can be obtained by combining the value of the initial brightness value Y1. For example, if the initial brightness value Y1 is 1, substituting Y1 = 1 into expression (2) will yield the value of the second constant n as a constant e.

[0138] In another example, similar to the brightness adjustment rule of a display screen changing from dark to bright, when the brightness of the display screen changes from bright to dark in a brightness adjustment scenario, the expression of the brightness adjustment function corresponding to this brightness adjustment rule is as follows:

[0139] Y = exp(m*t + n)(3)

[0140] In one example, Y represents the brightness value of the target display frame at the time of change, t represents the time of change, m represents the first constant, n represents the second constant, and m*t represents the first product.

[0141] By observing expressions (3) and (1), we can see that they are inverse functions of each other, and their independent variables are the same. Therefore, referring to the method for finding the second constant in the previous example, we can use the same method to find the second constant in expression (3). For example, substituting the time of change t=0 into expression (3), we can obtain the following expression:

[0142] Y2=exp(n)(4)

[0143] Where Y2 represents the initial brightness value, and then the second constant n is obtained from the known initial brightness value Y2. For example, if the initial brightness value Y2 is 1, substituting Y2 = e into expression (4) will yield the value of the second constant n as 1.

[0144] In step S205, assuming the adjustment duration is T and the change time corresponding to the initial brightness value is 0, the change time corresponding to the target brightness value is T. It should be noted that when the electronic device leaves the factory, different adjustment durations T are stored in the control chip for different brightness adjustment scenarios. The adjustment duration T can be determined based on customer experience and past design experience to be the most visually comfortable duration for the user. Similar to the method for obtaining the second constant in step S204, the method for obtaining the first constant can be:

[0145] In one example, when the brightness of the display screen changes from dark to bright in a brightness adjustment scenario, the target brightness value and the corresponding time T are substituted into expression (1) to obtain the following expression:

[0146] Y3=ln(m*T+n)(5)

[0147] Here, Y3 represents the target brightness value. In one example, the target brightness value can be directly read by the display chip of the electronic device, or it can be obtained through monitoring by the electronic device; the adjustment time can be obtained through configuration information pre-stored in the electronic device, and the second constant can be obtained through step S204. Therefore, the target brightness value Y3, the adjustment time T, and the second constant n are all known values. Thus, the value of the first constant m can be determined using all the known data. For example, when the target brightness value Y3 = 1 and the value of T is... And the value of the second constant n When this is the case, the value of the first constant m is 1. Furthermore, it should be noted that due to the involvement of logarithmic and exponential operations, there may be situations where the value of the first constant m cannot be directly obtained. In such cases, to facilitate subsequent calculations, the expression for the first constant m can be determined first and applied to the subsequent calculations.

[0148] In another example, when the brightness of the display changes from bright to dark in a brightness adjustment scenario, the target brightness value and the corresponding time T are substituted into expression (3) to obtain the following expression:

[0149] Y4=exp(m*T+n)(6)

[0150] Here, Y4 represents the target brightness value. In this scenario, the target brightness value Y4, the adjustment time T, and the second constant n are all known values. Therefore, the value of the first constant m can be determined using all the known data.

[0151] Additionally, it should be noted that the initial brightness value, target brightness value, and adjustment duration in steps S204 and S205 are all specific to the brightness adjustment scenario. In summary, step S204 determines the second constant of the brightness adjustment function, and step S205 determines the first constant. Once the first and second constants are determined, the specific functional expression of the brightness adjustment function can be obtained. Then, during the brightness adjustment process, only the moment corresponding to the target display frame (i.e., the change moment) needs to be determined to determine the brightness value corresponding to the target display frame, thus enabling the brightness value to be sent to the target display frame and achieving a smooth transition of brightness values.

[0152] Furthermore, since the initial brightness value, target brightness value, and adjustment duration are different for different brightness adjustment scenarios, the values ​​of the first and second constants in the brightness adjustment function may differ for different scenarios. Therefore, the brightness adjustment method of this disclosure can calculate the brightness adjustment function corresponding to each brightness adjustment scenario, ensuring a one-to-one correspondence between the brightness adjustment function and the brightness adjustment scenario. Based on the brightness adjustment function, the brightness value of the target display frame is determined, thereby achieving brightness adjustment of the display screen. Moreover, due to the one-to-one correspondence between the brightness adjustment function and the brightness adjustment scenario, the brightness adjustment function will better meet the brightness adjustment requirements of the current brightness adjustment scenario, thus avoiding display screen flickering and jitter problems.

[0153] In some embodiments, expressions (1) and (3) are functions with the change time as the independent variable and brightness as the dependent variable. Therefore, by differentiating expressions (1) and (3), the adjustment rate under two brightness adjustment rules can be obtained. Combining the relationship between the number of target display frames and the adjustment rate mentioned above, the adjustment rate can be calculated by differentiating expressions (1) and (3), and then the number of target display frames can be set according to the adjustment rate. Here, it should be noted that there is a corresponding relationship between the adjustment rate and the number of target display frames. If a faster adjustment rate is desired, the number of target display frames should be increased as much as possible per unit time, for example, each display frame can be used as a target display frame. The adjustment rate is related to the first constant and the second constant. Before the electronic device leaves the factory, the corresponding adjustment time can be determined according to the brightness adjustment scenario. Then, in subsequent use, the first constant and the second constant can be calculated to determine the adjustment rate for each brightness adjustment scenario.

[0154] According to an exemplary embodiment, such as Figure 3 As shown, this embodiment provides a brightness adjustment method, including:

[0155] S301. Based on the first instruction, determine the brightness adjustment scenario.

[0156] S302, The brightness adjustment scenario is the first scenario. The target brightness value is determined based on the first instruction, and the adjustment duration corresponding to the brightness adjustment scenario is determined based on the preset configuration information.

[0157] S303, the brightness adjustment scenario is the second scenario, and the target brightness value and adjustment duration corresponding to the brightness adjustment scenario are determined based on the configuration information.

[0158] S304. Obtain the target adjustment parameters.

[0159] S305. Determine the brightness adjustment rule based on the initial brightness value and the target brightness value.

[0160] S306. Based on the brightness adjustment law, determine the brightness adjustment model corresponding to the brightness adjustment law;

[0161] S307. Based on the brightness adjustment model, determine the brightness value of the target display frame during the adjustment period, and adjust the brightness of the display screen in the brightness adjustment scenario.

[0162] Steps S304-S307 are the same as steps S101-S104 in the above embodiments, and will not be described again here.

[0163] In step S301, the first instruction can be an instruction generated based on user-involved operations such as clicks, swipes, or voice commands. For example, an instruction to increase the brightness of the display screen can be generated based on the user's action of swiping the brightness bar upwards; or an instruction to decrease the brightness of the display screen can be generated based on the user's voice input of "dim the phone brightness".

[0164] The first instruction can be triggered by a signal detected by the electronic device. For example, the ambient light sensor of the electronic device detects a signal that the brightness of the ambient light has increased, triggering an instruction to increase the brightness of the display screen; or the electronic device detects a signal that the display screen has timed out due to inactivity and requests to switch from the on-screen state to the off-screen state, triggering an instruction to decrease the brightness of the display screen; or the electronic device detects a signal that a high dynamic range rendered video is playing, triggering an instruction to increase / decrease the brightness of the display screen.

[0165] Brightness adjustment scenarios include:

[0166] The first scenario involves actively adjusting the screen brightness. For example, a user can drag the brightness bar on the screen to actively adjust the brightness; another example is when an application is playing a video, the user can manually slide up or down on the left or right side of the playback interface to adjust the screen brightness; yet another example is when a user says "turn up the screen brightness," the screen brightness increases; and yet another example is when a user clicks the power saving mode control, the screen brightness decreases.

[0167] The second scenario involves the switching between a screen-off state and a screen-on state, such as the screen transitioning from a screen-off state to a screen-on state, or vice versa. The specific process for transitioning from a screen-on state to a screen-off state is as follows: the electronic device records the time of the user's last operation on the device and starts a timer. When the timer exceeds a preset duration, a request signal is sent to transition from a screen-on state to a screen-off state. Based on this request signal, the electronic device triggers a first instruction. Upon detecting the first instruction, the device enters a screen-off state. It should be noted that when a user is watching a video, there will inevitably be instances where the user does not operate the electronic device for an extended period. To avoid a poor user experience, the screen-off state / screen-on state switching scenario in this disclosure excludes video playback scenarios. In other words, in the scenario where a video is playing, even if the user does not operate the electronic device for an extended period, a request signal to transition from a screen-on state to a screen-off state will not be sent, the first instruction will not be triggered, and the screen will not enter the screen-off state / screen-on state switching scenario. However, even when the user pauses video playback and does not perform any other operations, the timer will still start following the process of the display screen transitioning from a lit state to a screen-off state until it enters the screen-off state.

[0168] The third type is High Dynamic Range (HDR) rendering display scenarios. The core of HDR (High Dynamic Range Imaging) scenarios is to use HDR technology to provide more color and brightness details to the image, displaying more detail and depth in both dark and bright areas. HDR scenarios can include playing HDR videos and HDR images. Taking HDR videos as an example, HDR videos have a wider color gamut and a higher brightness range to show more detail and realism. Because the brightness range of a display screen is limited, when playing HDR videos, in order to maintain the dynamic range of the video, electronic devices automatically adjust the screen brightness, making bright areas brighter and dark areas darker to present a richer picture effect. Similarly, when exiting an HDR video, electronic devices automatically adjust the screen brightness, for example, adjusting from a state where bright areas are brighter and dark areas are darker to a normal brightness state to meet daily use.

[0169] The fourth scenario involves adjusting screen brightness based on ambient light. In real life, it's common for mobile phones and other electronic devices to have low screen brightness in bright sunlight outdoors or strong indoor lighting, making it difficult for users to see the content. Conversely, in low ambient light conditions, such as at night, the screen brightness can be too high, stimulating the user's vision. To address these issues, the feature of adjusting screen brightness based on ambient light was developed. When enabled, the device uses an ambient light sensor to determine the current ambient light level and automatically adjusts the screen brightness accordingly. For example, it increases brightness in high ambient light and decreases brightness in low ambient light. This improves user comfort when using electronic devices and better protects their vision.

[0170] Fifth, other possible brightness adjustment scenarios. For example, in scenarios where electronic devices restart or automatically shut down due to low power, the screen brightness may change from black to default brightness, or from bright to black. In order to improve the user's visual experience, this can be treated as a brightness adjustment scenario, thereby optimizing the brightness change process of the screen to make the brightness change more stable and smooth, and avoiding sudden changes in screen brightness that would cause user discomfort.

[0171] The following examples illustrate the process of determining the brightness adjustment scene based on the first instruction:

[0172] In one example, simply put, the brightness condition scenario can be identified as an actively adjusted screen brightness scenario by determining whether the first instruction is generated based on a user's operation on the display. When the first instruction is generated based on a user's operation on the display, such as a user's click operation, the brightness condition scenario can be determined as an actively adjusted screen brightness scenario. Furthermore, to distinguish this from instructions generated by a user waking up the display from a screen-off state, actively adjusting screen brightness can be considered as a brightness adjustment scenario corresponding to a user's active operation on the display while the screen is on, resulting in an instruction to adjust the screen brightness according to the user's subjective wishes. The target brightness value during the brightness adjustment process is set by the user according to their personal preferences.

[0173] In another example, for instance, a preset time after which the display will enter a screen-off state is set. When the user remains inactive for the preset time, the electronic device will detect a request signal to enter the screen-off state, and this request signal will trigger an instruction to decrease the display brightness. In this case, the brightness adjustment scenario can be determined as a switching scenario between the screen-off state and the screen-on state. As another example, after the electronic device's display enters the screen-off state, if the user taps the display, the electronic device will detect a request signal to enter the screen-on state, and this request signal will trigger an instruction to increase the display brightness. In this case, the brightness adjustment scenario can also be determined as a switching scenario between the screen-off state and the screen-on state.

[0174] In another example, for instance, if an electronic device detects a signal indicating the entry of HDR video and a corresponding instruction to increase / decrease the display brightness, this indicates the brightness adjustment scenario is a high dynamic range (HDR) rendering display scenario. Similarly, if an electronic device detects a signal indicating the exit of HDR video and a corresponding instruction to increase / decrease the display brightness, this also indicates the brightness adjustment scenario is a HDR rendering display scenario.

[0175] In another example, the ambient light sensor of the electronic device detects a signal that the brightness of the external ambient light has decreased, and the signal triggers a command to reduce the brightness of the display screen. In this case, the brightness adjustment scenario can be determined as an ambient light-based display brightness adjustment scenario.

[0176] In step S302, in one example, the type of brightness adjustment scenario can be determined directly based on the operational nature of the first instruction. For example, if the first instruction is an instruction generated based on user operation, the brightness adjustment scenario can be directly determined as the first scenario, where the first scenario refers to an active adjustment scenario, that is, a brightness adjustment scenario actively participated in by the user. Or, for example, if the first instruction is an instruction triggered by a signal detected by the electronic device, the brightness adjustment scenario can be determined as the second scenario, where the second scenario refers to an automatic adjustment scenario, that is, a brightness adjustment scenario in which the electronic device participates.

[0177] In another example, the type of brightness adjustment scenario can be determined based on the specific content of the brightness adjustment scenario. For example, the scenario of actively adjusting the brightness of the display screen is obviously the first scenario. The scenarios of switching between the screen-off state and the screen-on state, the high dynamic range rendering display scenario, and the scenario of adjusting the brightness of the display screen based on ambient light are all automatically adjusted by the electronic device, which is obviously the second scenario.

[0178] When the brightness adjustment scenario is the first scenario, it means that the user actively adjusted the brightness. Based on the user operation corresponding to the first instruction, the target brightness value of the brightness adjustment scenario can be determined. For example, if the user operation corresponding to the first instruction is that the user slides the brightness bar, the user operation corresponding to the first instruction is completed when the user's finger leaves the operation interface. The brightness of the display screen when the user's finger leaves the operation interface can be determined as the target brightness value. Or, if the user operation corresponding to the first instruction is that the user clicks the brightness bar, the target brightness value can be determined based on the position of the user's click on the brightness bar. For example, if the brightness bar has five brightness values: 20%, 40%, 60%, 80%, and 100%, the target brightness value is 80% when the user clicks the 80% brightness value on the brightness bar.

[0179] In one example, the adjustment duration can be determined based on the user operation corresponding to the first instruction. For instance, if the user manually adjusts the brightness bar from 40 nits to 60 nits, they can clearly know the initial brightness value of 40 nits and the target brightness value of 60 nits. Based on the difference between the initial and target brightness values, which is 20 nits, they can schedule some pre-stored parameter information in the electronic device, such as the adjustment rate information and the corresponding adjustment duration when the difference is 20 nits. This allows them to determine the target adjustment parameter corresponding to the brightness difference caused by the user's brightness adjustment, and thus adjust the brightness of the display screen. The adjustment process has been explained above and will not be repeated here.

[0180] In step S303, if the brightness adjustment scenario is determined to be an automatic adjustment scenario, it means that the current brightness adjustment scenario involves the electronic device automatically adjusting the brightness according to a predetermined adjustment rate. Therefore, the target brightness value corresponding to the brightness adjustment scenario can be determined based on the configuration information. For example, the adjustment duration for the display to change from a screen-on state to a screen-off state is pre-stored in the electronic device. When the electronic device encounters a brightness adjustment scenario where the display changes from a screen-on state to a screen-off state, it will automatically retrieve the information pre-stored in the electronic device to obtain the adjustment duration. Similarly, the adjustment duration for the display to enter an HDR video is also pre-stored in the electronic device. When the electronic device enters an HDR video scenario, it will automatically retrieve the information pre-stored in the electronic device to obtain the adjustment duration.

[0181] It should be noted that, in order to avoid confusion in the adjustment logic during the brightness adjustment process, steps S302 and S303 are mutually exclusive, that is, either the scene is actively adjusted or the scene is automatically adjusted.

[0182] In this embodiment, the brightness adjustment scenario can be determined by the first instruction, and the type of brightness adjustment scenario can be judged. By determining the type of brightness adjustment scenario, a more accurate target brightness value and adjustment duration can be obtained, thereby obtaining more accurate target adjustment parameters, thus determining a more accurate brightness adjustment model, making the brightness adjustment process more stable, and improving the user's visual experience.

[0183] According to an exemplary embodiment, such as Figure 4 As shown, this embodiment provides a brightness adjustment method, including:

[0184] S401. Based on the first instruction, determine the brightness adjustment scene.

[0185] S402. When the number of brightness adjustment scenes identified is greater than or equal to 1, obtain the preset priority information.

[0186] S403. Determine the target adjustment parameters based on the highest priority brightness adjustment scenario.

[0187] S404. The brightness adjustment scenario is the first scenario. The target brightness value is determined based on the first instruction, and the adjustment duration corresponding to the brightness adjustment scenario is determined based on the preset configuration information.

[0188] S405, The brightness adjustment scenario is the second scenario. Based on the configuration information, the target brightness value and adjustment duration corresponding to the brightness adjustment scenario are determined.

[0189] S406. Determine the brightness adjustment rule based on the initial brightness value and the target brightness value.

[0190] S407. Based on the brightness adjustment law, determine the brightness adjustment model corresponding to the brightness adjustment law.

[0191] S408. Based on the brightness adjustment model, determine the brightness value of the target display frame during the adjustment period, and adjust the brightness of the display screen in the brightness adjustment scenario.

[0192] Steps S401, S404, S405, and S406-S408 are the same as steps S301, S302, S303, and S102-S104 in the above embodiments, and will not be repeated here. It should also be noted that steps S404 and S405 are mutually exclusive; that is, the brightness adjustment scene with the highest priority is either the first scene or the second scene.

[0193] In step S402, there may be cases where the number of identified brightness adjustment scenarios is greater than or equal to one. For example, the user operation corresponding to the first instruction is that the user drags the brightness bar on the display screen, and the user's dragging operation is temporarily set at a certain brightness. In this case, it can be determined that the brightness adjustment scenario is an active brightness adjustment scenario. However, if the total duration of the user dragging the brightness bar exceeds a preset duration, where the preset duration refers to the threshold duration for the display screen to transition from a screen-on state to a screen-off state, then the display screen transitions from a screen-on state to a screen-off state. In this case, it can be determined that the brightness adjustment scenario is a scenario where the display screen switches between a screen-off state and a screen-on state. Suppose that the effect of the user dragging the brightness bar on the display screen is to increase the brightness of the display screen; however, the display screen transitioning from a screen-on state to a screen-off state will cause the brightness of the display screen to decrease. At this time, a brightness adjustment conflict will occur: should the brightness of the display screen be increased or decreased?

[0194] To address the aforementioned issues, this disclosure sets priority information for each brightness adjustment scenario. The priority information is used to characterize the importance of the brightness adjustment scenario; that is, the higher the priority, the greater the importance. Therefore, when adjusting the brightness of the display screen, the brightness adjustment scenario with the higher priority is adjusted first.

[0195] In step S403, when the number of identified brightness adjustment scenarios is greater than or equal to 1, it indicates that there are multiple brightness adjustment scenarios. To avoid brightness adjustment confusion, the target adjustment parameter should be determined based on the brightness adjustment scenario with the highest priority. That is, when the number of identified brightness adjustment scenarios is greater than or equal to 1, the target adjustment parameter corresponding to the brightness adjustment scenario with the highest priority should be obtained.

[0196] This disclosure does not limit the priority order of various brightness adjustment scenarios. This priority order is a pre-existing arrangement in the electronic device, and can prioritize user-initiated adjustments or scenarios with more frequent user usage. For example, the four brightness adjustment scenarios in this disclosure, ranked from highest to lowest priority, could be: actively adjusting the display screen's brightness, switching between screen-off and screen-on states, high dynamic range rendering, and adjusting the display screen's brightness based on ambient light. It is evident that the actively adjusting display screen's brightness has the highest priority. Referring to the example in step S402 above, assuming that both the actively adjusting display screen's brightness and the switching between screen-off and screen-on states exist simultaneously, this disclosure should prioritize brightness adjustment according to the actively adjusting display screen's brightness scenario, i.e., obtaining the target adjustment parameters corresponding to the actively adjusting display screen's brightness scenario and performing subsequent brightness adjustments.

[0197] In this disclosure, prioritizing each brightness adjustment scenario solves the problem of not being able to determine which brightness adjustment scenario's target adjustment parameter to use when multiple brightness adjustment scenarios exist simultaneously. This avoids conflicts and coupling among multiple brightness adjustment scenarios, making the brightness adjustment method proposed in this disclosure more reasonable and more in line with practical applications.

[0198] Exemplary embodiments of this disclosure provide a brightness adjustment device, such as... Figure 5 The present disclosure presents a block diagram of a brightness adjustment device.

[0199] The block diagram includes an acquisition module 51, a first determination module 52, a second determination module 53, and a third determination module 54. The acquisition module 51 acquires target adjustment parameters, which are determined based on the brightness adjustment scenario. These parameters include an initial brightness value, a target brightness value, and an adjustment duration. The target brightness value is the expected brightness of the display screen in the brightness adjustment scenario, and the adjustment duration is the time required for the display screen's brightness to change from the initial brightness to the target brightness. The first determination module 52 determines a brightness adjustment rule based on the initial brightness value and the target brightness value. This rule characterizes the change in brightness of the display screen from dark to bright or from bright to dark during the brightness adjustment process. The second determination module 53 determines a brightness adjustment model corresponding to the brightness adjustment rule. The third determination module 54 determines the brightness value of the target display frame within the adjustment duration based on the brightness adjustment model, and adjusts the brightness of the display screen in the brightness adjustment scenario.

[0200] In some embodiments, the brightness adjustment model includes a brightness adjustment function;

[0201] The brightness adjustment rule is used to characterize the brightness of the display screen when it changes from dark to bright during the brightness adjustment process. The brightness adjustment function is the first function.

[0202] The brightness adjustment rule is used to characterize the brightness of the display screen as it changes from bright to dark during the brightness adjustment process. The brightness adjustment function is the second function.

[0203] The first function and the second function are inverse functions of each other.

[0204] In some embodiments, the second determining module 52 is configured to:

[0205] The brightness adjustment law characterizes the process of the display screen changing from dark to bright during the brightness adjustment process, and determines that the brightness adjustment function is a logarithmic function;

[0206] The brightness adjustment law characterizes the process of the display screen changing from bright to dark during brightness adjustment, and determines that the brightness adjustment function is an exponential function.

[0207] In some embodiments, the brightness adjustment model includes an adjustment constant, which includes a first constant and a second constant, and the brightness adjustment device further includes:

[0208] The fourth determining module is used to determine the second constant based on the initial brightness value;

[0209] The fifth determining module is used to determine the first constant based on the target brightness value, the second constant, and the adjustment duration.

[0210] In some embodiments, the independent variables of both the logarithmic function and the exponential function include the sum of a first product and a second constant, wherein the first product is the product of the first constant and the time of change, and the time of change is the time corresponding to the target display frame.

[0211] In some embodiments, the brightness adjustment device further includes:

[0212] The sixth determining module is used to determine the brightness adjustment scenario based on the first instruction;

[0213] The seventh determination module is used to determine the target brightness value based on the first instruction when the brightness adjustment scenario is the first scenario, and to determine the adjustment duration corresponding to the brightness adjustment scenario based on the preset configuration information.

[0214] The eighth determination module is used when the brightness adjustment scenario is the second scenario, and determines the target brightness value and adjustment duration corresponding to the brightness adjustment scenario based on the configuration information;

[0215] The first scenario is a proactive adjustment scenario, and the second scenario is an automatic adjustment scenario.

[0216] In some embodiments, the brightness adjustment scenario includes at least one of the following scenarios:

[0217] Scenes where the screen brightness is actively adjusted;

[0218] The display screen switches between its off state and its on state.

[0219] High dynamic range rendering for displaying scenes;

[0220] Based on the scenario of adjusting the display brightness according to ambient light.

[0221] In some embodiments, the brightness adjustment device further includes:

[0222] The second acquisition module is used to acquire preset priority information when the number of identified brightness adjustment scenes is greater than or equal to 1. The priority information is used to characterize the importance of the brightness adjustment scene.

[0223] Module 51 is used specifically for:

[0224] The target adjustment parameters are determined based on the highest priority brightness adjustment scenario.

[0225] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0226] Figure 6 This is a block diagram illustrating an electronic device 600 according to an exemplary embodiment. For example, electronic device 600 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0227] Reference Figure 6 The electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power supply component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.

[0228] Processing component 602 typically controls the overall operation of electronic device 600, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 602 may include one or more modules to facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.

[0229] Memory 604 is configured to store various types of data to support the operation of electronic device 600. Examples of this data include instructions for any application or method operating on electronic device 600, contact data, phonebook data, messages, pictures, videos, etc. Memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0230] Power supply component 606 provides power to various components of electronic device 600. Power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 600.

[0231] Multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 608 includes a front-facing camera and / or a rear-facing camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0232] Audio component 610 is configured to output and / or input audio signals. For example, audio component 610 includes a microphone (MIC) configured to receive external audio signals when electronic device 600 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting audio signals.

[0233] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0234] Sensor assembly 614 includes one or more sensors for providing state assessments of various aspects of electronic device 600. For example, sensor assembly 614 can detect the on / off state of electronic device 600, the relative positioning of components such as the display and keypad of electronic device 600, changes in position of electronic device 600 or a component of electronic device 600, the presence or absence of user contact with electronic device 600, orientation or acceleration / deceleration of electronic device 600, and temperature changes of electronic device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 614 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0235] Communication component 616 is configured to facilitate wired or wireless communication between electronic device 600 and other devices. Electronic device 600 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 616 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0236] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0237] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by a processor 620 of an electronic device 600 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0238] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a brightness adjustment method provided in an exemplary embodiment of this disclosure.

[0239] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0240] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A brightness adjustment method, characterized in that, include: Obtain target adjustment parameters, which are determined based on the brightness adjustment scenario. The target adjustment parameters include a starting brightness value, a target brightness value, and an adjustment duration. The target brightness value is the expected brightness of the display screen under the brightness adjustment scenario. The adjustment duration is determined based on the brightness adjustment scenario and is the time required for the display screen's brightness to change from the starting brightness value to the target brightness value. Based on the initial brightness value and the target brightness value, a brightness adjustment rule is determined, wherein the brightness adjustment rule is used to characterize the brightness of the display screen changing from dark to bright or from bright to dark during the brightness adjustment process; Based on the brightness adjustment rule, determine the brightness adjustment model corresponding to the brightness adjustment rule; Based on the brightness adjustment model, the brightness value of the target display frame during the adjustment period is determined, and the brightness of the display screen is adjusted in the brightness adjustment scenario. The brightness adjustment model includes a brightness adjustment function. The brightness adjustment rule is used to characterize the change in brightness of the display screen from dark to bright during the brightness adjustment process. The brightness adjustment function is a first function. The brightness adjustment rule is used to characterize the change in brightness of the display screen from bright to dark during the brightness adjustment process. The brightness adjustment function is a second function. The first function and the second function are inverse functions of each other.

2. The brightness adjustment method according to claim 1, characterized in that, The step of determining the brightness adjustment model corresponding to the brightness adjustment rule based on the brightness adjustment rule includes: The brightness adjustment rule characterizes the change in brightness of the display screen from dark to bright during the brightness adjustment process, and the brightness adjustment function is determined to be a logarithmic function; The brightness adjustment rule describes the change in brightness of the display screen from bright to dark during the brightness adjustment process, and the brightness adjustment function is determined to be an exponential function.

3. The brightness adjustment method according to claim 2, characterized in that, The brightness adjustment model includes adjustment constants, which include a first constant and a second constant. The brightness adjustment method further includes: The second constant is determined based on the initial brightness value; The first constant is determined based on the target brightness value, the second constant, and the adjustment duration.

4. The brightness adjustment method according to claim 3, characterized in that, The independent variables of both the logarithmic function and the exponential function include the sum of a first product and a second constant. The first product is the product of the first constant and the time of change, wherein the time of change is the time corresponding to the target display frame.

5. The brightness adjustment method according to any one of claims 1 to 4, characterized in that, The brightness adjustment method further includes: Based on the first instruction, the brightness adjustment scenario is determined; The brightness adjustment scenario is a first scenario. The target brightness value is determined based on the first instruction, and the adjustment duration corresponding to the brightness adjustment scenario is determined based on preset configuration information. The brightness adjustment scenario is the second scenario, and the target brightness value and adjustment duration corresponding to the brightness adjustment scenario are determined based on the configuration information. The first scenario is an active adjustment scenario, and the second scenario is an automatic adjustment scenario.

6. The brightness adjustment method according to claim 5, characterized in that, The brightness adjustment scenario includes at least one of the following scenarios: Scenes where the brightness of the display screen is actively adjusted; The display screen switches between a screen-off state and a screen-on state. High dynamic range rendering for displaying scenes; The scenario of adjusting the brightness of the display screen based on ambient light.

7. The brightness adjustment method according to claim 5, characterized in that, The brightness adjustment method further includes: When the number of the brightness adjustment scenes identified is greater than or equal to 1, preset priority information is obtained, and the priority information is used to characterize the importance of the brightness adjustment scene. The acquisition of the target adjustment parameters includes: The target adjustment parameters are determined based on the highest priority brightness adjustment scenario.

8. A brightness adjustment device, characterized in that, include: The acquisition module is used to acquire target adjustment parameters. The target adjustment parameters are determined based on the brightness adjustment scenario. The target adjustment parameters include an initial brightness value, a target brightness value, and an adjustment duration. The target brightness value is the expected brightness of the display screen under the brightness adjustment scenario. The adjustment duration is determined based on the brightness adjustment scenario and is the time required for the display brightness of the display screen to change from the initial brightness value to the target brightness value. The first determining module is used to determine a brightness adjustment rule based on the initial brightness value and the target brightness value, wherein the brightness adjustment rule is used to characterize the brightness of the display screen changing from dark to bright or from bright to dark during the brightness adjustment process; The second determining module is used to determine the brightness adjustment model corresponding to the brightness adjustment rule based on the brightness adjustment rule. The third determining module is used to determine the brightness value of the target display frame during the adjustment period based on the brightness adjustment model, and to adjust the brightness of the display screen in the brightness adjustment scenario. The brightness adjustment model includes a brightness adjustment function. The brightness adjustment rule is used to characterize the change in brightness of the display screen from dark to bright during the brightness adjustment process. The brightness adjustment function is a first function. The brightness adjustment rule is used to characterize the change in brightness of the display screen from bright to dark during the brightness adjustment process. The brightness adjustment function is a second function. The first function and the second function are inverse functions of each other.

9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the brightness adjustment method as described in any one of claims 1-7.

10. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the brightness adjustment method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Brightness adjusting method and device of display screen and display screen

    CN110164367A

  • Brightness adjusting method and device and storage medium

    CN114078459A