Brightness adjusting method and device, electronic equipment and medium
By obtaining target adjustment parameters and determining the brightness adjustment rules and models, the problem of flickering and jittering of electronic devices during the brightness adjustment process is solved, and stable brightness adjustment and improved user experience is achieved.
Patent Information
- Application Number
- CN202311403158.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2043-10-26
AI Technical Summary
Existing electronic devices are prone to flickering or jittering during brightness adjustment, and the adjustment durations of different brightness adjustment scenarios are different, resulting in inconsistent adjustment rates.
By obtaining the target adjustment parameters, including the starting brightness value, the target brightness value and the adjustment duration, determine the brightness adjustment rules and the corresponding brightness adjustment model, and then adjust the brightness value of the display frame to achieve stable brightness adjustment.
It realizes stable control of the brightness adjustment process, avoids flickering and jitter problems, and improves the user's visual experience and the robustness and reliability of brightness adjustment.
Smart Images

Figure CN119905075A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a brightness adjustment method, device, electronic equipment and medium. Background Art
[0002] When using electronic devices, the brightness of the display screen is usually adjusted through the cooperation of software and hardware. However, due to the different hardware performance of the display screens of different models of electronic devices, some display screens can smoothly adjust the brightness, while some display screens will flicker or jitter during the brightness adjustment process, resulting in a poor visual experience for users.
[0003] At the same time, since electronic devices may encounter a variety of brightness adjustment scenarios during use, different brightness adjustment scenarios may require the brightness adjustment process to last for different lengths of time. If the same brightness adjustment rate is used, flickering or jitter problems may easily occur during the brightness adjustment process. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a brightness adjustment method, device, electronic device and medium.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a brightness adjustment method, comprising:
[0006] Obtaining a target adjustment parameter, wherein the target adjustment parameter is determined based on a brightness adjustment scenario, and the target adjustment parameter includes a starting brightness value, a target brightness value, and an adjustment duration, wherein the target brightness value is the brightness of the display screen expected under the brightness adjustment scenario, and the adjustment duration is determined based on the brightness adjustment scenario, and the adjustment duration is the duration required for the display brightness of the display screen to change from the starting brightness value to the target brightness value;
[0007] Based on the starting brightness value and the target brightness value, determining a brightness adjustment rule, wherein the brightness adjustment rule is used to characterize whether the brightness of the display screen changes from dark to bright or from bright to dark during the brightness adjustment process;
[0008] Based on the brightness adjustment law, determining a brightness adjustment model corresponding to the brightness adjustment law;
[0009] Based on the brightness adjustment model, a brightness value of a target display frame in the adjustment duration is determined, and the brightness of the display screen in the brightness adjustment scenario is adjusted.
[0010] In some embodiments, the brightness adjustment model includes a brightness adjustment function;
[0011] The brightness adjustment rule is used to characterize that when the brightness of the display screen changes from dark to bright during the brightness adjustment process, the brightness adjustment function is a first function;
[0012] The brightness adjustment rule is used to characterize that when the brightness of the display screen changes from bright to dark during the brightness adjustment process, the brightness adjustment function is a second function;
[0013] The first function and the second function are inverse functions of each other.
[0014] In some embodiments, the determining, based on the brightness adjustment law, a brightness adjustment model corresponding to the brightness adjustment law includes:
[0015] When the brightness adjustment rule represents that the brightness of the display screen changes from dark to bright during the brightness adjustment process, the brightness adjustment function is determined to be a logarithmic function;
[0016] The brightness adjustment rule represents that when the brightness of the display screen changes from bright to dark during the brightness adjustment process, 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 includes a first constant and a second constant, and the brightness adjustment method further includes:
[0018] Based on the initial brightness value, determining the second constant;
[0019] The first constant is determined based on the target brightness value, the second constant and the adjustment time.
[0020] In some embodiments, the independent variables of the logarithmic function and the exponential function both include the sum of a first product and the second constant, the first product being the product of the first constant and a change moment, wherein the change moment is a moment corresponding to the target display frame.
[0021] In some embodiments, the brightness adjustment method further includes:
[0022] Based on the first instruction, determining the brightness adjustment scene;
[0023] The brightness adjustment scene is a first scene, the target brightness value is determined based on the first instruction, and the adjustment duration corresponding to the brightness adjustment scene is determined based on preset configuration information;
[0024] The brightness adjustment scene is a second scene, and the target brightness value and the adjustment duration corresponding to the brightness adjustment scene are determined based on the configuration information;
[0025] Among them, the first scene is an active adjustment scene, and the second scene is an automatic adjustment scene.
[0026] In some embodiments, the brightness adjustment scenario includes at least one of the following scenarios:
[0027] Actively adjust the brightness scene of the display screen;
[0028] The display screen switches between the off screen state and the on screen state;
[0029] High dynamic range rendering to display the scene;
[0030] The display screen brightness scene is adjusted based on ambient light.
[0031] In some embodiments, the brightness adjustment method further includes:
[0032] When the number of the identified brightness adjustment scenes is greater than or equal to 1, obtaining preset priority information, where the priority information is used to characterize the importance of the brightness adjustment scenes;
[0033] The obtaining of the target adjustment parameter comprises:
[0034] The target adjustment parameter is determined based on the brightness adjustment scene with the highest priority.
[0035] According to a second aspect of an embodiment of the present disclosure, there is provided a brightness adjustment device, comprising:
[0036] An acquisition module, used to acquire a target adjustment parameter, wherein the target adjustment parameter is determined based on a brightness adjustment scenario, and the target adjustment parameter includes a starting brightness value, a target brightness value, and an adjustment duration, wherein the target brightness value is the brightness of the display screen expected under the brightness adjustment scenario, and the adjustment duration is determined based on the brightness adjustment scenario, and the adjustment duration is the duration required for the display brightness of the display screen to change from the starting brightness value to the target brightness value;
[0037] A first determination module is used to determine a brightness adjustment rule based on the starting brightness value and the target brightness value, wherein the brightness adjustment rule is used to characterize that the brightness of the display screen changes from dark to bright or from bright to dark during the brightness adjustment process;
[0038] A second determining module, configured to determine a brightness adjustment model corresponding to the brightness adjustment law based on the brightness adjustment law;
[0039] The third determination module is used to determine the brightness value of the target display frame in the adjustment duration based on the brightness adjustment model, and 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 that when the brightness of the display screen changes from dark to bright during the brightness adjustment process, the brightness adjustment function is a first function;
[0042] The brightness adjustment rule is used to characterize that when the brightness of the display screen changes from bright to dark during the brightness adjustment process, the brightness adjustment function is a 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 used to:
[0045] When the brightness adjustment rule represents that the brightness of the display screen changes from dark to bright during the brightness adjustment process, the brightness adjustment function is determined to be a logarithmic function;
[0046] The brightness adjustment rule represents that when the brightness of the display screen changes from bright to dark during the brightness adjustment process, 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 includes a first constant and a second constant, and the brightness adjustment device further includes:
[0048] a fourth determining module, configured to determine the second constant based on the initial brightness value;
[0049] A fifth determination module is used to determine the first constant based on the target brightness value, the second constant and the adjustment time.
[0050] In some embodiments, the independent variables of the logarithmic function and the exponential function both include the sum of a first product and the second constant, the first product being the product of the first constant and a change moment, wherein the change moment is a moment corresponding to the target display frame.
[0051] In some embodiments, the brightness adjustment device further includes:
[0052] A sixth determining module, configured to determine the brightness adjustment scene based on the first instruction;
[0053] a seventh determination module, for determining the target brightness value based on the first instruction when the brightness adjustment scene is a first scene, and determining the adjustment duration corresponding to the brightness adjustment scene based on preset configuration information;
[0054] An eighth determination module, used for determining, when the brightness adjustment scene is the second scene, the target brightness value and the adjustment duration corresponding to the brightness adjustment scene based on the configuration information;
[0055] Among them, the first scene is an active adjustment scene, and the second scene is an automatic adjustment scene.
[0056] In some embodiments, the brightness adjustment scenario includes at least one of the following scenarios:
[0057] Actively adjust the brightness scene of the display screen;
[0058] The display screen switches between the off screen state and the on screen state;
[0059] High dynamic range rendering to display the scene;
[0060] The display screen brightness scene is adjusted based on ambient light.
[0061] In some embodiments, the brightness adjustment device further includes:
[0062] A second acquisition module, configured to acquire preset priority information when the number of the identified brightness adjustment scenes is greater than or equal to 1, wherein the priority information is used to characterize the importance of the brightness adjustment scenes;
[0063] The acquisition module is specifically used for:
[0064] The target adjustment parameter is determined based on the brightness adjustment scene with the highest priority.
[0065] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0066] processor;
[0067] a memory for storing processor-executable instructions;
[0068] Wherein, the processor is configured to execute the brightness adjustment method as described in the first aspect of the present disclosure.
[0069] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the brightness adjustment method as described in the first aspect of the present disclosure.
[0070] The above method of the present invention has the following beneficial effects: the brightness adjustment method of the present invention determines the corresponding brightness adjustment model based on the brightness adjustment scene, and determines the brightness value of the target display frame in the adjustment time based on the brightness adjustment model. According to different brightness adjustment scenes, the brightness value of the target display frame in the brightness adjustment process can be determined through the software layer, thereby realizing the control of the adjustment rate, and then realizing the adjustment of the brightness of the display screen, 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 the problems of flickering and jittering of the display screen.
[0071] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0073] Figure 1 is a flow chart showing a brightness adjustment method according to an exemplary embodiment.
[0074] Figure 2 is a flow chart showing a brightness adjustment method according to an exemplary embodiment.
[0075] Figure 3 is a flow chart showing a brightness adjustment method according to an exemplary embodiment.
[0076] Figure 4 is a flow chart showing a brightness adjustment method according to an exemplary embodiment.
[0077] Figure 5 is a block diagram of a brightness adjustment device according to an exemplary embodiment.
[0078] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0079] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0080] When electronic devices are in use, there are many processes that require the brightness of the display screen to be adjusted. In related technologies, the display screen brightness adjustment process is generally completed by the software layer and the hardware layer of the display screen. The software layer sends the brightness difference value that needs to be adjusted during the brightness adjustment process to the hardware layer. After receiving the brightness difference value sent by the software layer, the hardware layer divides the brightness difference value according to the preset adjustment parameters, and writes the divided multiple brightness change values to the corresponding brightness nodes for brightness adjustment. In this process, the software layer and the hardware layer cooperate with each other to complete the smooth transition of the display screen brightness adjustment process.
[0081] However, the hardware performance of display screens of different electronic devices is different. For example, a display screen with stronger hardware performance has a more perfect brightness adjustment effect, and a more stable transition effect during the brightness adjustment process. For another example, a display screen with weaker hardware performance has a poorer brightness adjustment effect, and problems such as flickering and jitter may occur during the brightness adjustment process, and the transition effect during the brightness adjustment process is also poor.
[0082] In order to solve the above problems, the present disclosure provides a brightness adjustment method, which can be applied to an electronic device with a display screen. The brightness adjustment method in the present disclosure proposes to determine a corresponding brightness adjustment model based on a brightness adjustment scenario, and based on the brightness adjustment model, determine the brightness value of a target display frame in the adjustment duration. According to different brightness adjustment scenarios, the brightness value of a target display frame in the brightness adjustment process can be determined through a software layer, thereby achieving control of the adjustment rate, and then achieving adjustment of the brightness of the display screen, ensuring that the brightness adjustment process is not affected by the hardware performance of the display screen, making the brightness adjustment process more stable, avoiding display screen flickering and jitter problems, and improving the user's visual experience during the brightness adjustment process as well as the robustness and reliability of the brightness adjustment process.
[0083] In addition, since the present disclosure can adjust the brightness of the display screen only through the algorithm of the software layer, there are not too many requirements on the hardware performance of the display screen of the electronic device. Therefore, the brightness adjustment method in the present disclosure can be applied to various types of electronic devices, and has the advantages of a wide range of applications and multiple application scenarios.
[0084] The exemplary embodiments of the present disclosure provide a brightness adjustment method, which can be applied to electronic devices with display screens, and the electronic devices can be specifically smart devices with display screens such as mobile phones, tablet computers, notebooks, smart robots, smart wearable devices, and smart car machines, and can also be directly applied to the display screens. In addition, the electronic devices are also provided with various hardware resources and software resources, as well as energy storage devices that provide power for the operation of various hardware resources.
[0085] like Figure 1 As shown, the brightness adjustment method shown in the present disclosure includes:
[0086] S101: Obtain target adjustment parameters.
[0087] S102: Determine a brightness adjustment rule based on the initial brightness value and the target brightness value.
[0088] S103: Based on the brightness adjustment rule, determine a brightness adjustment model corresponding to the brightness adjustment rule.
[0089] S104: Determine the brightness value of the target display frame in the adjustment duration based on the brightness adjustment model, and adjust the brightness of the display screen in the brightness adjustment scenario.
[0090] In step S101, the target adjustment parameters include a starting brightness value, a target brightness value, and an adjustment duration. The brightness value can be described by a brightness level, for example, a brightness value of 1024 or 4096; it can also be described by a percentage value, for example, a brightness value of 60% or 70%; it can also be a defined value, such as 100 nits, 200 nits, etc., where nits is a common unit of brightness value.
[0091] The starting brightness value refers to the brightness of the display screen at the very beginning of the brightness adjustment scenario. In order to facilitate subsequent calculations, the initial moment when the electronic device starts the brightness adjustment process in the brightness adjustment scenario can be defined as time 0. Therefore, the starting brightness value can also refer to the brightness of the display screen at time 0. The adjustment duration refers to the time required for the display brightness of the display screen of the electronic device to change from the starting brightness value to the target brightness value. For example, the time taken for the display brightness of the display screen to change from 60 nits to 70 nits is 1 second, and the adjustment duration is 1 second. The target brightness value refers to the expected brightness of the display screen in the brightness adjustment scenario. Generally speaking, the expectation here can refer to the user expectation, such as a certain brightness value that the user expects to achieve, or it can refer to the system expectation of the electronic device, such as a certain brightness value that the system expects to achieve.
[0092] In some embodiments, the starting brightness value and the target brightness value can be monitored by monitoring hardware or software in the electronic device, for example, by monitoring the starting brightness value and the target brightness value during the brightness adjustment process through a brightness detector; the starting brightness value and the target brightness value can also be directly read, for example, the control chip of the electronic device communicates with the display chip to directly obtain the starting brightness value of the display screen. Depending on the brightness adjustment scene, 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 scene, 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 many methods for determining the adjustment duration. In one example, the adjustment duration can also be determined according to the brightness adjustment scenario. For example, the adjustment duration for the display screen to change from the on screen state to the off screen state is pre-stored in the electronic device. When the electronic device is in use and a brightness adjustment scenario for the display screen to change from the on screen state to the off screen state occurs, the information pre-stored in the electronic device is automatically retrieved to obtain the adjustment duration.
[0094] In another example, the adjustment duration can be determined according to the user's operation instruction. For example, the user operates the brightness bar by himself, so that the starting brightness value and the target brightness value can be clearly known, and then some pre-stored parameter information can be scheduled according to the difference between the starting brightness value and the target brightness value based on the instruction generated by the user operation, so as to know the adjustment duration corresponding to the brightness difference generated by the user adjusting the brightness, so as to obtain a smoother brightness adjustment process.
[0095] The present disclosure does not limit the specific type of brightness adjustment scene. The brightness adjustment scene can be selected according to the actual needs of the user or the electronic device. Several examples of brightness adjustment scenes are given below:
[0096] In one example, the brightness adjustment scenario may be an active adjustment of the brightness of the display screen. It should be noted that the active adjustment here refers to the adjustment process in which the user participates, such as the user sliding the brightness bar to adjust the brightness, or the user performing voice operation to adjust the brightness. For another example, the user adjusts the brightness of the video application while watching a video.
[0097] In another example, the brightness adjustment scenario may also be a scenario in which the system of the electronic device automatically adjusts the brightness of the display screen. For example, when a change in ambient light is sensed, the system reduces or increases the brightness of the display screen according to the ambient light.
[0098] Among them, the target adjustment parameter is determined according to the brightness adjustment scene. Since different brightness adjustment scenes may have different target adjustment parameters, in order to ensure that the brightness adjustment process of the display screen can be smoother and more stable in the brightness adjustment scene, each time the brightness adjustment scene occurs, it is necessary to determine the target adjustment parameter based on the brightness adjustment scene. For example, a brightness adjustment scene is that the user slides the brightness bar. This brightness adjustment changes the brightness of the display screen from 40 nits to 80 nits. When the electronic device predicts that the entire brightness adjustment process takes 2 seconds, the adjustment process will be smoother. Then the starting brightness value in this scene is 40 nits, the target brightness value is 80 nits, and the adjustment time is 2 seconds. For another example, another brightness adjustment scene is that the system automatically adjusts the brightness of the display screen according to the brightness of the ambient light. This brightness adjustment changes the brightness of the display screen from 75 nits to 30 nits. The system pre-stores the adjustment time corresponding to the above brightness difference in this scene as 0.05 seconds. Therefore, the starting brightness value in this scene is 75 nits, the target brightness value is 30 nits, and the adjustment time is 0.05 seconds. It can be seen that the target adjustment parameters in different brightness adjustment scenarios may be different. In addition, it should be noted that the target adjustment parameters in the same brightness adjustment scenario may also be different. For example, when a user drags the brightness bar to adjust the brightness of the display screen, the starting brightness value and the target brightness value are different each time the user drags, which will cause different brightness differences. In order to ensure the smoothness of the brightness change during the brightness adjustment process, different adjustment durations can be used. Therefore, the present disclosure needs to determine the target adjustment parameters according to the actual brightness adjustment scenario to maximize the accuracy of the target adjustment parameters.
[0099] In step S102, the brightness adjustment rule may refer to the brightness change trend of the display screen during the brightness adjustment process, such as gradually becoming brighter or gradually becoming darker, and may also be used to characterize that the brightness of the display screen of the electronic device changes from dark to bright or from bright to dark during the brightness adjustment process.
[0100] As can be seen from the example in step S101, the relationship between the initial brightness value and the target brightness value can be 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 situation where the initial brightness value is greater than the target brightness value is used to characterize that the brightness of the display screen of the electronic device changes from bright to dark during the brightness adjustment process. On the contrary, the brightness adjustment rule corresponding to the situation where the initial brightness value is less than the target brightness value is used to characterize that the brightness of the display screen of the electronic device changes from dark to bright during the brightness adjustment process.
[0101] Since the process of the brightness of the display changing from bright to dark or from dark to bright is a different process, in order to improve the brightness display effect of the display during the brightness adjustment process, different brightness adjustment models can be used in subsequent steps according to the brightness change law to adjust the brightness of the display 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 rule and the brightness adjustment model. When the brightness adjustment rule is determined, it can be determined which brightness adjustment model to use to calculate the brightness value of the target display frame described below.
[0103] In one example, the brightness adjustment model may be a function, for example, the brightness adjustment model may be a certain calculation model, the independent variables and dependent variables of the calculation model are parameters related to the brightness adjustment method shown in the present disclosure, and the calculation model may be used to perform brightness adjustment.
[0104] In another example, the brightness adjustment model may be a certain specific adjustment rule. For example, the brightness adjustment rule is from dark to bright. The brightness adjustment model may be that from the beginning of adjustment, the brightness of the first frame is increased by 5 nits, the brightness of the second frame is increased by 10 nits, the brightness of the third frame is increased by 5 nits, and so on. As the display frame is refreshed, the brightness value of the display screen is increased frame by frame.
[0105] In step S104, in the present disclosure, the number of target display frames in the adjustment duration is not specifically limited. Since the adjustment duration of each brightness adjustment scene may be different, the adjustment rate can be determined according to the brightness adjustment scene, and then the brightness value of the display frame of the display screen within the adjustment duration is calculated according to the adjustment rate, wherein the target display frame is a display frame whose brightness value changes. When not every display frame of the display screen in the adjustment duration 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 duration involves 24 display frames. According to the different adjustment rates corresponding to the brightness adjustment scene, each display frame can be set as a target display frame, and the brightness value of each target display frame can be calculated accordingly; 12 of the 24 display frames can also be set as target display frames, and the brightness values of the remaining 12 display frames are consistent with the brightness values of the previous frames. As mentioned above, when all 24 display frames are target display frames, it means that each display frame involved in the adjustment duration is a target display frame, and the brightness of the display screen changes 24 times; when 12 of the 24 display frames are target display frames, the brightness of the display screen changes 12 times. Assuming that the brightness difference that needs to be adjusted within the adjustment duration is the same, when the 24-frame target display frame solution is adopted, the number of adjustments is greater, and the brightness value changes in adjacent target display frames are relatively small, so the brightness adjustment process is smoother, which can effectively avoid flickering or jitter problems in the brightness adjustment process. If the solution of changing the brightness of the display screen 12 times is adopted, since the number of target display frames with brightness changes is small, but it is also necessary to ensure that the same brightness difference as the solution of 24 target display frames is achieved, the change in brightness each time it changes is 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 in the present invention determines the corresponding brightness adjustment model based on the currently ongoing brightness adjustment scene through the software layer of the electronic device, and calculates the brightness value of the target display frame whose brightness value changes compared with the adjacent display frames during the adjustment duration based on the brightness adjustment model and the expected adjustment rate, thereby adjusting the brightness of the display screen. Since the method disclosed in the present invention has already calculated the brightness value of the target display frame of the display screen in the software, the adjustment of the brightness value of the display screen does not need to consider the hardware performance of the display screen, and thus has a wider range of applications.
[0108] In addition, the brightness adjustment method in the present invention 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 realizing the control of the adjustment rate, and then realizing the adjustment of the brightness of the display screen, 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 the problems of flickering and jittering of the display screen.
[0109] According to an exemplary embodiment, this embodiment is a limitation of 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 the present 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 that the brightness of the display screen of the electronic device changes from dark to bright during the brightness adjustment process, that is, when the brightness of the display screen changes from bright to dark, the brightness adjustment function can be determined to be a first function. The first function may include any one or any combination of addition, subtraction, multiplication and division operations, and may also include logarithmic operations, exponential operations, etc.
[0112] In another example, when the brightness adjustment rule is used to characterize that the brightness of the display screen of the electronic device changes from bright to dark during the brightness adjustment process, that is, when the brightness of the display screen changes from dark to bright, the brightness adjustment function can be determined to be the second function. The second function may include any one or any combination of addition, subtraction, multiplication and division operations, and may also include logarithmic operations, exponential operations, etc.
[0113] Among them, 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 the brightness adjustment function, in some other embodiments, the brightness adjustment model can also be a data table stored in the electronic device. When the brightness of the display screen needs to be adjusted, the brightness adjustment parameters can be determined by querying the data table, and then the brightness adjustment can be performed. Among them, the data table can be set into two types according to the brightness adjustment rules, so as to correspond to different brightness adjustment rules respectively.
[0115] The brightness adjustment model in the present disclosure may include two functions that are inverse functions of each other according to different brightness adjustment rules, so that during the brightness adjustment process, a brightness adjustment function that matches the brightness adjustment rule is selected to perform brightness adjustment, the adjustment process is more robust, and the user's visual experience is better.
[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, when the brightness adjustment rule indicates that the brightness of the display screen changes from dark to bright during the brightness adjustment process, determining that the brightness adjustment function is a logarithmic function.
[0118] S1032: When the brightness adjustment rule indicates that the brightness of the display screen changes from bright to dark during the brightness adjustment process, the brightness adjustment function is determined to be an exponential function.
[0119] In step S1031, the logarithmic function refers to a function with a real number (ie, power) as an independent variable, an exponent as a dependent variable, and a base as a constant.
[0120] For example, the logarithmic function y = log a In x, x represents a real number, that is, x is the independent variable; y represents the exponent, that is, y is the dependent variable; a represents the base, that is, a is a constant. The value range of constant a is a>0 and a is not equal to 1. For example, a can be e or 10. When a is e, the logarithmic function y=lnx.
[0121] In step S1032, generally, an exponential function refers to a function with a base as a constant and an exponent as an independent variable, and the domain of the function is R. For example, the exponential function y=a x , where x represents the exponent, x is the independent variable, a represents the base, a is the constant, and y is the dependent variable. Since the domain of the exponential function is R, the value range of the constant a in the exponential function is a>0 and a is not equal to 1. For example, a can be e or 2. When a is e, y=e x , which can also be expressed as y=exp(x).
[0122] According to an exemplary embodiment, Figure 2 As shown, this embodiment provides a brightness adjustment method, including:
[0123] S201. Obtain target adjustment parameters.
[0124] S202: Determine a brightness adjustment rule based on the initial brightness value and the target brightness value.
[0125] S203: Based on the brightness adjustment rule, determine a brightness adjustment model corresponding to the brightness adjustment rule.
[0126] S204: Determine a 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 time.
[0128] S206: Determine the brightness value of the target display frame in the adjustment duration based on the brightness adjustment model, and adjust the brightness of the display screen in the brightness adjustment scenario.
[0129] Among them, steps S201-S203 and S206 are the same as steps S101-S103 and S104 in the above embodiment, and are not repeated here.
[0130] Among them, the brightness adjustment model includes a logarithmic function and an exponential function, and the expressions of the logarithmic function and the exponential function include adjustment constants, and the adjustment constants include a first constant and a second constant. The first constant and the second constant can be arbitrary constants, such as the first constant is 1 and the second constant is 2. In addition, the independent variables of the logarithmic function and the exponential function both include the sum of the first product and the second constant, and the first product is the product of the first constant and the change time, wherein the change time is the time corresponding to the target display frame. In addition, referring to the above description of the logarithmic function and the exponential function, the constant a of the logarithmic function and the exponential function included in the brightness adjustment model in this embodiment is both e, and the method in this embodiment will be described below using the logarithmic function and the exponential function with the constant e.
[0131] In step S204, in order to facilitate subsequent calculations, the first moment when the electronic device starts the brightness adjustment process in the brightness adjustment scenario can be defined as time 0, so the change time can be calculated starting from time 0.
[0132] In an example, when the brightness of the display changes from dark to bright in a brightness adjustment scenario, the expression of the brightness adjustment function corresponding to the brightness adjustment rule is as follows:
[0133] Y=ln(m*t+n)(1)
[0134] Wherein, Y represents the brightness value of the target display frame at the changing moment, t represents the changing moment, m represents the first constant, n represents the second constant, and m*t represents the first product.
[0135] In one example, the starting brightness value corresponds to the brightness value of the target display frame of the display screen at time 0. Referring to expression (1), when the change time t=0, the brightness value of the target display frame is the starting brightness value. Moreover, during the brightness adjustment process, the starting brightness value can be obtained, for example, by directly reading the size of the starting brightness value from the display chip of the electronic device. For easier understanding, substituting the change time t=0 into expression (1), it can be obtained 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 display screen changes from dark to bright, the expression of the brightness adjustment function corresponding to the brightness adjustment rule is as follows:
[0136] Y 1 =ln(n)(2)
[0137] At this time, Y 1 In the above discussion, the starting brightness value Y 1 is a known number. Therefore, combined with the initial brightness value Y 1 The value of can be used to find the second constant n. For example, the initial brightness value Y 1 =1, and Y1 Substituting =1 into expression (2), we can obtain the value of the second constant n as the constant e.
[0138] In another example, similar to the brightness adjustment rule that the brightness of the display changes from dark to bright, when the brightness of the display changes from bright to dark in the brightness adjustment scenario, the expression of the brightness adjustment function corresponding to the brightness adjustment rule is as follows:
[0139] Y=exp(m*t+n)(3)
[0140] In an example, Y represents the brightness value of the target display frame at the change time, t represents the change time, m represents the first constant, n represents the second constant, and m*t represents the first product.
[0141] By observing expression (3) and expression (1), we can find that the two are inverse functions of each other, and the independent variables of the two are the same. Therefore, referring to the method of obtaining the second constant in the previous example, the same method can be used to obtain the second constant in expression (3). For example, substituting the change time t = 0 into expression (3), we can get the following expression:
[0142] Y 2 =exp(n)(4)
[0143] Among them, Y 2 Indicates the starting brightness value, and then passes the known starting brightness value Y 2 Find the second constant n. For example, the initial brightness value Y 2 =1, and Y 2 Substituting =e into expression (4), we can obtain the value of the second constant n as 1.
[0144] In step S205, assuming that the adjustment duration is T, and the change time corresponding to the starting brightness value is time 0, the change time corresponding to the target brightness value is time T. It should be noted that when the electronic device leaves the factory, different adjustment durations T have been stored in the control chip of the electronic device for different brightness adjustment scenarios. The adjustment duration T can be ultimately determined based on customer experience and previous design experience to be the time length that is most comfortable for the user's vision. Similar to the method for obtaining the second constant in step S204, the method for obtaining the first constant can be:
[0145] In an example, when the brightness of the display changes from dark to bright in a brightness adjustment scenario, the target brightness value and the time T corresponding to the target brightness value are substituted into expression (1) to obtain the following expression:
[0146] Y 3 =ln(m*T+n)(5)
[0147] Among them, Y 3In one example, the target brightness value can be directly read by the display chip of the electronic device, or obtained by monitoring the electronic device; the adjustment duration can be obtained by the configuration information pre-stored in the electronic device, and the second constant can be obtained by step S204. 3 , the adjustment time T and the second constant n are all known numbers. Therefore, the value of the first constant m can be determined by all the known data. For example, when the target brightness value Y 3 =1, the value of T is and the value of the second constant n is , the value of the first constant m is 1. In addition, it should be noted that, due to the logarithmic operation and exponential operation involved, there may be a situation where the value of the first constant m cannot be directly obtained. In this case, in order to facilitate subsequent calculations, the expression of the first constant m can be determined first, and the expression of the first constant m can be applied to subsequent calculations.
[0148] In another example, when the brightness of the display changes from bright to dark in the brightness adjustment scenario, the target brightness value and the T time corresponding to the target brightness value are substituted into expression (3) to obtain the following expression:
[0149] Y 4 =exp(m*T+n)(6)
[0150] Among them, Y 4 Indicates the target brightness value. In this scenario, the target brightness value Y 4 , adjustment time T and the second constant n are all known numbers, so the value of the first constant m can be determined through all known data.
[0151] In addition, it should be noted that the starting brightness value, target brightness value and adjustment duration in the above steps S204 and S205 all correspond to the brightness adjustment scene. In summary, the second constant of the brightness adjustment function can be determined by step S204, and the first constant of the brightness adjustment function can be determined by step S205. After determining the first constant and the second constant, the specific function expression of the brightness adjustment function can be obtained. Then, in the brightness adjustment process, it is only necessary to determine the moment corresponding to the target display frame, that is, the change moment, to determine the brightness value corresponding to the target display frame, so as to realize that the brightness value is sent to the target display frame, thereby achieving the technical effect of smooth transition of the brightness value.
[0152] In addition, since the starting brightness value, target brightness value and adjustment duration of different brightness adjustment scenes are different, the values of the first constant and the second constant in the brightness adjustment function of different brightness adjustment scenes may be different. It can be obtained that the brightness adjustment method in the present disclosure can calculate the brightness adjustment function corresponding to each brightness adjustment scene, make the brightness adjustment function correspond to the brightness adjustment scene one-to-one, and determine the brightness value of the target display frame according to the brightness adjustment function to achieve brightness adjustment of the display screen. In addition, due to the one-to-one correspondence between the brightness adjustment function and the brightness adjustment scene, the brightness adjustment function will be more in line with the brightness adjustment requirements of the current brightness adjustment scene, thereby avoiding the problem of flickering and jittering of the display screen.
[0153] In some embodiments, both expression (1) and expression (3) are functions with the change time as the independent variable and brightness as the dependent variable. Therefore, by taking the derivative of expression (1) and expression (3), the adjustment rate under the two brightness adjustment rules can be obtained. In combination with the relationship between the number of target display frames and the adjustment rate in the above text, the adjustment rate can be calculated by taking the derivative of expression (1) and expression (3), and then the number of target display frames can be set according to the adjustment rate. It should be noted that there is a corresponding relationship between the adjustment rate and the number of target display frames. If the adjustment rate is to be faster, the number of target display frames is increased as much as possible per unit time, for example, each display frame is used as a target display frame, and the adjustment rate is related to the first constant and the second constant. Before the electronic device leaves the factory, the corresponding adjustment duration can be determined according to the brightness adjustment scene, and then in the subsequent use process, the first constant and the second constant can be calculated to determine the adjustment rate of each brightness adjustment scene.
[0154] According to an exemplary embodiment, Figure 3 As shown, this embodiment provides a brightness adjustment method, including:
[0155] S301: Determine a brightness adjustment scene based on a first instruction.
[0156] S302: The brightness adjustment scene is a first scene, a target brightness value is determined based on a first instruction, and an adjustment duration corresponding to the brightness adjustment scene is determined based on preset configuration information.
[0157] S303: The brightness adjustment scene is the second scene, and a target brightness value and adjustment duration corresponding to the brightness adjustment scene are determined based on the configuration information.
[0158] S304: Obtain target adjustment parameters.
[0159] S305: Determine a brightness adjustment rule based on the initial brightness value and the target brightness value.
[0160] S306, based on the brightness adjustment rule, determining a brightness adjustment model corresponding to the brightness adjustment rule;
[0161] S307: Determine the brightness value of the target display frame in the adjustment duration based on the brightness adjustment model, and adjust the brightness of the display screen in the brightness adjustment scenario.
[0162] Among them, steps S304-S307 are the same as steps S101-S104 in the above embodiment, and are not repeated here.
[0163] In step S301, the first instruction may be an instruction generated based on an operation involving a user, such as a click operation, a sliding operation, or a voice operation. For example, an instruction to increase the brightness of a display screen may be generated based on an operation in which a user slides the brightness bar upward. For another example, an instruction to reduce the brightness of a display screen may be generated based on the user's voice input of "dim the brightness of the phone."
[0164] The first instruction may be an instruction triggered by a signal detected by the electronic device, for example, an instruction to increase the brightness of a display screen is generated by a signal triggered by an ambient light sensor of the electronic device detecting an increase in the brightness of the external ambient light; for another example, an instruction to decrease the brightness of the display screen is generated by a signal triggered by the electronic device detecting that the display screen has timed out due to inactivity and requesting to switch from a bright screen state to an off screen state; for another example, an instruction to increase / decrease the brightness of the display screen is generated by a signal triggered by the electronic device detecting that a high dynamic range rendered video is being played.
[0165] Brightness adjustment scenarios include:
[0166] The first is the active adjustment of the display brightness scenario. For example, the user drags the brightness bar on the display to actively adjust the display brightness; for example, when the application is playing a video, the user manually slides up or down on the left or right side of the playback interface to adjust the display brightness; for example, the user outputs "increase the brightness of the display" by voice, and the display brightness increases; for example, the user clicks the power saving mode control, and the display brightness decreases.
[0167] The second is the scene where the screen-off state and the screen-on state of the display screen switch each other, such as the display screen switches from the screen-off state to the screen-on state; for example, the display screen switches from the screen-on state to the screen-off state. Among them, the specific process of the display screen switching from the screen-on state to the screen-off state is: the electronic device records the time of the last operation made by the user on the electronic device, starts timing, and when the timing time exceeds the preset time, sends a request signal for requesting to switch from the screen-on state to the screen-off state, and the electronic device triggers the first instruction based on the request signal, and enters the screen-off state when the first instruction is detected. In addition, it should be noted that when the user is watching the video being played, there will definitely be a situation where the user does not operate the electronic device for a long time. In order to avoid bringing a bad user experience to the user, the scene where the screen-off state and the screen-on state of the display screen in the present disclosure switch each other can exclude the video playback scene. That is to say, in the scene where the video is playing, even if the user does not operate the electronic device for a long time, the request signal for requesting to switch from the screen-on state to the screen-off state will not be sent, and the first instruction will not be triggered, and the display screen will not enter the scene where the screen-off state and the screen-on state of the display screen switch each other. However, when the user pauses the video and does not perform any other operations, the display will still start counting down according to the process of the display going from the on screen state to the off screen state until it enters the off screen state.
[0168] The third type is the high dynamic range rendering display scene, in which the main core of the high dynamic range rendering display (High Dynamic Range Imaging, HDR) scene is to use HDR technology to provide more color and brightness details for the picture, and to show more details and depth in both dark and bright areas. HDR scenes can include playing HDR videos, HDR images, etc. Taking HDR video as an example, HDR video has a wider color gamut and a higher brightness range to show more details and realism. Due to the limited brightness range of the display, when playing HDR video, in order to maintain the dynamic range of the video, the electronic device will automatically adjust the brightness of the display to make the bright part brighter and the dark part darker to present a richer picture effect. Similarly, when exiting the HDR video, the electronic device will automatically adjust the brightness of the display, for example, from a brightness state where the bright part is brighter and the dark part is darker to a normal brightness state to meet daily use.
[0169] The fourth type is to adjust the display brightness based on ambient light. In real life, it is easy to have a low brightness of the display screen of electronic devices such as mobile phones when there is sunlight outdoors or strong light indoors, which makes it difficult for users to see the content on the display screen; or when the external ambient light is weak, such as at night, the brightness of the display screen of electronic devices such as mobile phones is high, which stimulates the user's vision. In view of the above situations, the function of adjusting the display brightness based on ambient light came into being. After turning on this function, mobile phones and other electronic devices will judge the current ambient light brightness based on the ambient light sensor and automatically adjust the brightness of the display screen. For example, when the ambient light brightness is high, the brightness of the display screen will be increased; for example, when the ambient light brightness is low, the brightness of the display screen will be reduced. By adjusting the brightness of the display screen based on ambient light, the user's comfort when using electronic devices can be improved, and the user's vision can be better protected.
[0170] Fifth, other possible brightness adjustment scenarios. For example, when an electronic device restarts or automatically shuts down due to lack of power, the display brightness will change from black to default brightness, or from bright to black. In this process, in order to improve the user's visual experience, it can be used as a brightness adjustment scenario to optimize the display brightness change process, making the display brightness change more stable and gentle. Sudden changes in display brightness will inevitably cause user discomfort.
[0171] The following uses several specific embodiments to illustrate the process of determining the brightness adjustment scene based on the first instruction:
[0172] In one example, to put it simply, it is possible to identify whether the brightness condition scene is a scene for actively adjusting the brightness of the display screen by judging whether the first instruction is an instruction generated based on the user's operation on the display screen. When the first instruction is an instruction generated based on the user's operation on the display screen, for example, an instruction generated based on a user's click operation, it is possible to determine that the brightness condition scene is a scene for actively adjusting the brightness of the display screen. In addition, in order to distinguish the instructions generated by the user's operation of waking up the display screen in the off-screen state and making the display screen enter the bright-screen state, the scene for actively adjusting the brightness of the display screen can be considered to be the brightness adjustment scene corresponding to the instruction generated by the user's active operation on the display screen in the bright-screen state and adjusting the brightness of the display screen according to the user's subjective will. The target brightness value of the brightness adjustment process is set by the user according to his personal wishes.
[0173] In another example, for example, the screen is set to enter the off-screen state after a preset period of inactivity. When the user does not operate the display interface for the preset period of time, the electronic device will detect a request signal for entering the off-screen state, and an instruction to reduce the brightness of the display triggered by the request signal. At this time, the brightness adjustment scene can be determined as a scene where the screen switches between the off-screen state and the bright-screen state. For another example, after the electronic device's display enters the off-screen state, the user clicks on the display, and the electronic device will detect a request signal for entering the bright-screen state, and an instruction to increase the brightness of the display triggered by the request signal. At this time, the brightness adjustment scene can be determined as a scene where the screen switches between the off-screen state and the bright-screen state.
[0174] In another example, for example, the electronic device detects a signal to enter an HDR video, and the signal triggers an instruction to increase / decrease the brightness of the display screen, then the brightness adjustment scene can be determined to be a high dynamic range rendering display scene. For another example, the electronic device detects a signal to exit an HDR video, and the signal triggers an instruction to increase / decrease the brightness of the display screen, then the brightness adjustment scene can be determined to be a high dynamic range rendering display scene.
[0175] In another example, an ambient light sensor of an electronic device detects a signal that the brightness of the external ambient light decreases, and an instruction to reduce the brightness of the display screen triggered by the signal. At this time, it can be determined that the brightness adjustment scenario is a scenario of adjusting the brightness of the display screen based on ambient light.
[0176] In step S302, in one example, the type of brightness adjustment scene can be directly determined according to the operational properties of the first instruction. For example, when the first instruction is an instruction generated based on user operation, the brightness adjustment scene can be directly determined as the first scene, wherein the first scene refers to an active adjustment scene, that is, a brightness adjustment scene in which the user actively participates; for another example, when the first instruction is an instruction triggered by a signal detected by an electronic device, the brightness adjustment scene can be determined as a second scene, wherein the second scene refers to an automatic adjustment scene, that is, a brightness adjustment scene in which the electronic device participates.
[0177] In another example, the type of brightness adjustment scene can also be determined according to the specific content of the brightness adjustment scene. For example, the scene of actively adjusting the brightness of the display screen is obviously the first scene. The three scenes of switching between the screen-off state and the screen-on state, the high dynamic range rendering display scene and the scene 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 scene.
[0178] When the brightness adjustment scene is the first scene, 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 scene can be determined. For example, the user operation corresponding to the first instruction is that the user slides the brightness bar. When the user's finger leaves the operation interface, it means that the user operation corresponding to the first instruction is completed. Then the brightness of the display screen when the user's finger leaves the operation interface can be determined as the target brightness value; for another example, the user operation corresponding to the first instruction is that the user clicks on the brightness bar. Then the target brightness value can be determined according to the position where the user clicks on the brightness bar. For example, the brightness bar is provided with five brightness values of 20%, 40%, 60%, 80% and 100%. When the user clicks on the brightness value of 80% in the brightness bar, the target brightness value is 80%.
[0179] In one example, the adjustment duration can be determined based on the user operation corresponding to the first instruction. For example, the user operates the brightness bar by himself to adjust the brightness of the display screen from 40 nits to 60 nits, so that the user can clearly know that the starting brightness value is 40 nits and the target brightness value is 60 nits, so that according to the difference between the starting brightness value and the target brightness value, that is, 20 nits, some parameter information pre-stored in the electronic device can be scheduled, for example, the adjustment rate information and the corresponding adjustment duration when the difference is 20 nits, so as to know the target adjustment parameter corresponding to the brightness difference generated by the user adjusting the brightness, and then adjust the brightness of the display screen. The adjustment process has been described above and will not be repeated here.
[0180] In step S303, if it is determined that the brightness adjustment scene is an automatic adjustment scene, it means that the current brightness adjustment scene is that the electronic device automatically adjusts the brightness according to a predetermined adjustment rate. Therefore, the target brightness value corresponding to the brightness adjustment scene can be determined based on the configuration information. For example, the adjustment time for the display screen to change from a bright screen state to a screen-off state is pre-stored in the electronic device. When the electronic device is in use and a brightness adjustment scene occurs in which the display screen changes from a bright screen state to a screen-off state, the information pre-stored in the electronic device is automatically retrieved to obtain the adjustment time. For another example, the adjustment time for the display screen to enter an HDR video is also pre-stored in the electronic device. When the electronic device enters an HDR video scene during use, the information pre-stored in the electronic device is automatically retrieved to obtain the adjustment time.
[0181] Here, it should be noted that, in order to avoid confusion in the adjustment logic during the brightness adjustment process, step S302 and step S303 are alternative relationships, that is, either actively adjusting the scene or automatically adjusting the scene.
[0182] In this embodiment, the brightness adjustment scene can be determined and the type of the brightness adjustment scene can be judged through the first instruction. A more accurate target brightness value and adjustment duration can be obtained through the type of the brightness adjustment scene to obtain more accurate target adjustment parameters, thereby determining a more precise brightness adjustment model, thereby making the brightness adjustment process smoother and improving the user's visual experience.
[0183] According to an exemplary embodiment, Figure 4 As shown, this embodiment provides a brightness adjustment method, including:
[0184] S401: Determine a brightness adjustment scene based on a first instruction.
[0185] S402: When the number of recognized brightness adjustment scenes is greater than or equal to 1, obtain preset priority information.
[0186] S403: Determine a target adjustment parameter based on the brightness adjustment scene with the highest priority.
[0187] S404: The brightness adjustment scene is a first scene, a target brightness value is determined based on the first instruction, and an adjustment duration corresponding to the brightness adjustment scene is determined based on preset configuration information.
[0188] S405: The brightness adjustment scene is the second scene, and a target brightness value and adjustment duration corresponding to the brightness adjustment scene are determined based on the configuration information.
[0189] S406: Determine a brightness adjustment rule based on the initial brightness value and the target brightness value.
[0190] S407: Based on the brightness adjustment rule, determine a brightness adjustment model corresponding to the brightness adjustment rule.
[0191] S408: Determine the brightness value of the target display frame in the adjustment duration based on the brightness adjustment model, and adjust the brightness of the display screen in the brightness adjustment scenario.
[0192] Among them, steps S401, S404, S405, S406-S408 are the same as steps S301, S302, S303, S102-S104 in the above embodiment, and are not repeated here. In addition, it should be noted that step S404 and step S405 are selective, 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 a situation where the number of recognized brightness adjustment scenes is greater than or equal to 1. For example, the user operation corresponding to the first instruction is that the user drags the brightness bar in the display screen, and the user's dragging operation is temporarily set at a certain brightness. At this time, it can be determined that the brightness adjustment scene is a scene of actively adjusting the brightness of the display screen. However, if the total duration of the user dragging the brightness bar is greater than the preset duration, where the preset duration refers to the duration threshold for the display screen to enter the screen-off state from the bright screen state, then the display screen enters the screen-off state from the bright screen state. At this time, it can be determined that the brightness adjustment scene is a scene in which the screen-off state and the bright screen state of the display screen switch each other. Assuming that the effect of the user dragging the brightness bar in the display screen is to increase the brightness of the display screen, however, the display screen enters the screen-off state from the bright screen state, which will cause the brightness of the display screen to decrease. At this time, a brightness adjustment conflict will occur, whether to increase the brightness of the display screen or reduce the brightness of the display screen.
[0194] To solve the above problems, the present disclosure sets priority information for each brightness adjustment scene, wherein the priority information is used to characterize the importance of the brightness adjustment scene, that is, the higher the priority, the greater the importance. Therefore, when adjusting the brightness of the display screen, the brightness adjustment scene with a high priority level is adjusted first.
[0195] In step S403, when the number of recognized brightness adjustment scenes is greater than or equal to 1, it means that there are multiple brightness adjustment scenes. In order to avoid brightness adjustment confusion, the target adjustment parameter should be determined based on the brightness adjustment scene with the highest priority. That is, when the number of recognized brightness adjustment scenes is greater than or equal to 1, the target adjustment parameter corresponding to the brightness adjustment scene with the highest priority should be obtained.
[0196] The present disclosure does not limit the priority order of each brightness adjustment scene. The priority order is an arrangement relationship pre-existing in the electronic device, and can give priority to the user's active adjustment, or give priority to the situation where the user uses more scenes, etc. For example, the priority of the four brightness adjustment scenes in the present disclosure can be sorted from high to low as the scene of actively adjusting the brightness of the display screen, the scene of switching between the screen-off state and the screen-on state of the display screen, the high dynamic range rendering display scene, and the scene of adjusting the brightness of the display screen based on ambient light. It can be seen that the priority of the scene of actively adjusting the brightness of the display screen is the highest. Referring to the example in the above step S402, assuming that the two scenes of actively adjusting the brightness of the display screen and switching between the screen-off state and the screen-on state of the display screen exist at the same time, the present disclosure should give priority to the brightness adjustment according to the scene of actively adjusting the brightness of the display screen, that is, obtaining the target adjustment parameters corresponding to the scene of actively adjusting the brightness of the display screen, and performing subsequent brightness adjustment.
[0197] In the present disclosure, each brightness adjustment scene is prioritized, which can solve the problem that there are multiple brightness adjustment scenes at the same time and it is impossible to determine according to which brightness adjustment scene's target adjustment parameter to perform brightness adjustment, thereby avoiding the conflict and coupling of multiple brightness adjustment scenes, making the brightness adjustment method proposed in the present disclosure more reasonable and more in line with practical applications.
[0198] The exemplary embodiment of the present disclosure provides a brightness adjustment device, such as Figure 5 As shown, a block diagram of a brightness adjustment device shown in the present disclosure.
[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 is used to acquire 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, wherein the target brightness value is the brightness of the display screen expected in the brightness adjustment scenario, and the adjustment duration is determined based on the brightness adjustment scenario, and the adjustment duration is the duration required for the display brightness of the display screen to change from the starting brightness to the target brightness; the first determination module 52 is used to determine a brightness adjustment rule based on the starting brightness value and the target brightness value, wherein the brightness adjustment rule is used to characterize that the brightness of the display screen changes from dark to bright or from bright to dark during the brightness adjustment process; the second determination module 53 is used to determine a brightness adjustment model corresponding to the brightness adjustment rule based on the brightness adjustment rule; the third determination module 54 is used to determine the brightness value of the target display frame in the adjustment duration based on the brightness adjustment model, and adjust 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 that when the brightness of the display 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 that when the brightness of the display screen 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 represents that when the brightness of the display screen changes from dark to bright during the brightness adjustment process, the brightness adjustment function is determined to be a logarithmic function;
[0206] The brightness adjustment law represents that when the brightness of the display screen changes from bright to dark during the brightness adjustment process, the brightness adjustment function is determined to be an exponential function.
[0207] In some embodiments, the brightness adjustment model includes an adjustment constant, the adjustment constant includes a first constant and a second constant, and the brightness adjustment device further includes:
[0208] A fourth determination module, configured to determine a second constant based on the initial brightness value;
[0209] The fifth determination module is used to determine the first constant based on the target brightness value, the second constant and the adjustment time.
[0210] In some embodiments, the independent variables of the logarithmic function and the exponential function both include the sum of a first product and a second constant, the first product is the product of the first constant and a change time, wherein the change time is a time corresponding to the target display frame.
[0211] In some embodiments, the brightness adjustment device further includes:
[0212] A sixth determining module, configured to determine a brightness adjustment scene based on the first instruction;
[0213] A seventh determination module, for determining a target brightness value based on the first instruction when the brightness adjustment scene is the first scene, and determining an adjustment duration corresponding to the brightness adjustment scene based on preset configuration information;
[0214] An eighth determination module, configured to determine, when the brightness adjustment scene is the second scene, a target brightness value and an adjustment duration corresponding to the brightness adjustment scene based on the configuration information;
[0215] Among them, the first scene is an active adjustment scene, and the second scene is an automatic adjustment scene.
[0216] In some embodiments, the brightness adjustment scenario includes at least one of the following scenarios:
[0217] Actively adjust the brightness scene of the display;
[0218] The display screen switches between the off screen state and the on screen state;
[0219] High dynamic range rendering to display the scene;
[0220] Adjust display brightness based on ambient light scenarios.
[0221] In some embodiments, the brightness adjustment device further includes:
[0222] A second acquisition module is used to acquire preset priority information when the number of recognized brightness adjustment scenes is greater than or equal to 1, where the priority information is used to characterize the importance of the brightness adjustment scene;
[0223] The acquisition module 51 is specifically used for:
[0224] Based on the brightness adjustment scenario with the highest priority, the target adjustment parameters are determined.
[0225] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0226] Figure 6 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a 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 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] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0229] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The 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 memory, flash memory, magnetic disk or optical disk.
[0230] The power supply component 606 provides power to the various components of the electronic device 600. The 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 the electronic device 600.
[0231] The 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 touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0232] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the 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: a home button, a volume button, a start button, and a lock button.
[0234] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0235] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can 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 above methods.
[0237] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an 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 execute the brightness adjustment method provided by an exemplary embodiment of the present disclosure.
[0239] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0240] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A brightness adjustment method, characterized in that: include: Obtaining a target adjustment parameter, wherein the target adjustment parameter is determined based on a brightness adjustment scenario, and the target adjustment parameter includes a starting brightness value, a target brightness value, and an adjustment duration, wherein the target brightness value is the brightness of the display screen expected under the brightness adjustment scenario, and the adjustment duration is determined based on the brightness adjustment scenario, and the adjustment duration is the duration required for the display brightness of the display screen to change from the starting brightness value to the target brightness value; Based on the initial brightness value and the target brightness value, determining a brightness adjustment rule, wherein the brightness adjustment rule is used to characterize whether the brightness of the display screen changes from dark to bright or from bright to dark during the brightness adjustment process; Based on the brightness adjustment law, determining a brightness adjustment model corresponding to the brightness adjustment law; Based on the brightness adjustment model, a brightness value of a target display frame in the adjustment duration is determined, and the brightness of the display screen in the brightness adjustment scenario is adjusted.
2. The brightness adjustment method according to claim 1, characterized in that: The brightness adjustment model includes a brightness adjustment function; The brightness adjustment rule is used to characterize that when the brightness of the display screen changes 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 that when the brightness of the display screen changes 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.
3. The brightness adjustment method according to claim 2, characterized in that: The determining, based on the brightness adjustment law, a brightness adjustment model corresponding to the brightness adjustment law comprises: When the brightness adjustment rule represents that the brightness of the display screen changes from dark to bright during the brightness adjustment process, the brightness adjustment function is determined to be a logarithmic function; The brightness adjustment rule represents that when the brightness of the display screen changes from bright to dark during the brightness adjustment process, the brightness adjustment function is determined to be an exponential function.
4. The brightness adjustment method according to claim 3, characterized in that: The brightness adjustment model includes an adjustment constant, and the adjustment constant includes a first constant and a second constant. The brightness adjustment method further includes: Based on the initial brightness value, determining the second constant; The first constant is determined based on the target brightness value, the second constant and the adjustment time.
5. The brightness adjustment method according to claim 4, characterized in that: The independent variables of the logarithmic function and the exponential function both include the sum of a first product and the second constant, the first product is the product of the first constant and a change time, wherein the change time is a time corresponding to the target display frame.
6. The brightness adjustment method according to any one of claims 1 to 5, characterized in that: The brightness adjustment method further includes: Based on the first instruction, determining the brightness adjustment scene; The brightness adjustment scene is a first scene, the target brightness value is determined based on the first instruction, and the adjustment duration corresponding to the brightness adjustment scene is determined based on preset configuration information; The brightness adjustment scene is a second scene, and the target brightness value and the adjustment duration corresponding to the brightness adjustment scene are determined based on the configuration information; Among them, the first scene is an active adjustment scene, and the second scene is an automatic adjustment scene.
7. The brightness adjustment method according to claim 6, characterized in that: The brightness adjustment scenario includes at least one of the following scenarios: Actively adjust the brightness scene of the display screen; The display screen switches between the off screen state and the on screen state; High dynamic range rendering to display the scene; The display screen brightness scene is adjusted based on ambient light.
8. The brightness adjustment method according to claim 6, characterized in that: The brightness adjustment method further includes: When the number of the identified brightness adjustment scenes is greater than or equal to 1, obtaining preset priority information, where the priority information is used to characterize the importance of the brightness adjustment scenes; The obtaining of the target adjustment parameter comprises: The target adjustment parameter is determined based on the brightness adjustment scene with the highest priority.
9. A brightness adjustment device, characterized in that: include: An acquisition module, used to acquire a target adjustment parameter, wherein the target adjustment parameter is determined based on a brightness adjustment scenario, and the target adjustment parameter includes a starting brightness value, a target brightness value, and an adjustment duration, wherein the target brightness value is the brightness of the display screen expected under the brightness adjustment scenario, and the adjustment duration is determined based on the brightness adjustment scenario, and the adjustment duration is the duration required for the display brightness of the display screen to change from the starting brightness value to the target brightness value; A first determination module is used to determine a brightness adjustment rule based on the starting brightness value and the target brightness value, wherein the brightness adjustment rule is used to characterize that the brightness of the display screen changes from dark to bright or from bright to dark during the brightness adjustment process; A second determining module, configured to determine a brightness adjustment model corresponding to the brightness adjustment law based on the brightness adjustment law; The third determination module is used to determine the brightness value of the target display frame in the adjustment duration based on the brightness adjustment model, and adjust the brightness of the display screen in the brightness adjustment scenario.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the brightness adjustment method as described in any one of claims 1-8.
11. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the brightness adjustment method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Intelligent screen brightness adjusting method and device, storage medium and mobile terminal
CN109951594A
Brightness adjusting method and device of display screen and display screen
CN110164367A
Screen brightness adjusting method and device
CN112037719A
Brightness adjusting method and device and storage medium
CN114078459A
Screen display brightness adjusting method and device and storage medium
CN115145662A