Dimming method, electronic equipment and storage medium

By acquiring and utilizing the brightness value and grayscale adjustment parameters of the backlight order, the problem of brightness dimming accuracy loss in high-frequency PWM dimming is solved, achieving more accurate brightness adjustment and better display effects.

CN119252211AActive Publication Date: 2025-01-03HONOR DEVICE CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410447922.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2025-01-03
Estimated Expiration
2044-04-12

AI Technical Summary

Technical Problem

During high-frequency PWM dimming, the brightness dimming accuracy of electronic devices is lost greatly, resulting in a brightness step between the displayed brightness, affecting the display effect.

Method used

By obtaining the brightness values ​​corresponding to multiple backlight orders, the second brightness value to be inserted between adjacent brightness values, and based on these brightness values ​​and grayscale adjustment parameters, the brightness adjustment of the electronic device's display screen is performed to ensure brightness The ladder is smaller.

Benefits of technology

It improves the brightness adjustment accuracy of electronic devices, reduces the brightness ladder, and improves the display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119252211A_ABST
    Figure CN119252211A_ABST
Patent Text Reader

Abstract

The invention provides a dimming method, an electronic device and a storage medium, and relates to the technical field of intelligent terminal display, a second brightness value is inserted between adjacent first brightness values, so that the brightness of a display screen of the electronic device can be adjusted more accurately according to a gray scale adjustment parameter corresponding to the second brightness value, and the user experience is improved. The display effect of the electronic equipment is improved. The method comprises the following steps: acquiring a first brightness value corresponding to each backlight order in a plurality of backlight orders; based on adjacent first brightness values corresponding to adjacent backlight orders in the plurality of backlight orders, determining the number of second brightness values to be inserted between the adjacent first brightness values; when the number of the to-be-inserted second brightness values is greater than or equal to a preset number, determining each second brightness value and a gray scale adjustment parameter corresponding to each second brightness value based on the plurality of adjacent first brightness values; and adjusting the brightness of the display screen of the electronic equipment based on each second brightness value and the gray scale adjustment parameter corresponding to each second brightness value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent terminal display technology, and in particular to a dimming method, an electronic device and a storage medium. Background Art

[0002] With the rapid development of electronic equipment technology, mobile phones and other electronic devices have become indispensable tools in people's lives. At present, the brightness of electronic devices can be adjusted by pulse width modulation (PWM) dimming. Since the higher the frequency of PWM dimming, the less damage it causes to the human eye. Therefore, in order to realize the eye protection function of electronic devices, high-frequency PWM dimming has become the development direction of smart terminal display technology.

[0003] However, due to the influence of the hardware circuit in the electronic device, the dimming accuracy is greatly lost during the high-frequency PWM dimming process, resulting in brightness steps between the brightness displayed by the electronic device. When the human eye perceives the brightness changes between the brightness steps, it will cause dimming flicker at low brightness, seriously affecting the display effect of the electronic device. Summary of the invention

[0004] The embodiments of the present application provide a dimming method, an electronic device, and a storage medium, which can avoid the generation of brightness steps between the brightness displayed by the electronic device and improve the display effect of the electronic device.

[0005] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:

[0006] In a first aspect, the present application provides a dimming method, which is applied to an electronic device, and the method includes: obtaining a first brightness value corresponding to each backlight order among a plurality of backlight orders; determining the number of second brightness values ​​to be inserted between adjacent first brightness values ​​based on adjacent first brightness values ​​corresponding to adjacent backlight orders among the plurality of backlight orders; when the number of second brightness values ​​to be inserted is greater than or equal to a preset number, determining each second brightness value and a grayscale adjustment parameter corresponding to each second brightness value based on the plurality of adjacent first brightness values; and adjusting the brightness of a display screen of the electronic device based on each second brightness value and the grayscale adjustment parameter corresponding to each second brightness value.

[0007] Based on the technical solution provided in the above embodiments, a second brightness value can be inserted between adjacent first brightness values ​​corresponding to adjacent backlight orders in multiple backlight orders, so that the brightness step change between two adjacent brightness values ​​is smaller, so that the brightness of the display screen of the electronic device can be adjusted more accurately according to each second brightness value and the grayscale adjustment parameter corresponding to each second brightness value, ensuring that the brightness steps between the brightness displayed by the electronic device are smaller, thereby improving the display effect of the electronic device.

[0008] In a possible design method of the first aspect, based on adjacent first brightness values ​​corresponding to adjacent backlight orders in multiple backlight orders, the number of second brightness values ​​to be inserted between adjacent first brightness values ​​is determined, including: determining the brightness change value between adjacent first brightness values ​​corresponding to adjacent backlight orders; based on multiple brightness change values ​​and adjacent first brightness values, determining the number of second brightness values ​​to be inserted between adjacent first brightness values.

[0009] Based on the above solution, the number of second brightness values ​​inserted between adjacent first brightness values ​​can be determined more accurately based on a plurality of brightness change values ​​and adjacent first brightness values.

[0010] In a possible design method of the first aspect, adjacent first brightness values ​​include a third brightness value and a fourth brightness value, the third brightness value is greater than the fourth brightness value, and determining the brightness change value between adjacent first brightness values ​​corresponding to adjacent backlight orders includes: determining the brightness difference between the third brightness value and the fourth brightness value; and determining the brightness change value based on a first ratio of the brightness difference to the fourth brightness value.

[0011] Based on the above solution, the brightness difference between the third brightness value and the fourth brightness value can be accurately determined.

[0012] In a possible design method of the first aspect, based on multiple brightness change values ​​and adjacent first brightness values, the number of second brightness values ​​to be inserted between adjacent first brightness values ​​is determined, including: based on multiple brightness change values, determining the brightness change step; based on the brightness change step and adjacent first brightness values, determining the number of second brightness values ​​to be inserted between adjacent first brightness values.

[0013] Based on the above scheme, when the brightness change step can more accurately reflect the change trend between multiple brightness change values, the number of second brightness values ​​to be inserted between adjacent first brightness values ​​can be more accurately determined based on the brightness change step and adjacent first brightness values.

[0014] In a possible design method of the first aspect, based on the brightness change step and adjacent first brightness values, the number of second brightness values ​​to be inserted between adjacent first brightness values ​​is determined, including: determining a second ratio of the third brightness value to the fourth brightness value; based on the second ratio and the brightness change step, determining the number of second brightness values ​​to be inserted between adjacent first brightness values.

[0015] Based on the above solution, the number of second brightness values ​​to be inserted between adjacent first brightness values ​​can be accurately determined.

[0016] In a possible design manner of the first aspect, adjacent first brightness values ​​include a third brightness value and a fourth brightness value, the third brightness value is greater than the fourth brightness value, and each second brightness value and a grayscale adjustment parameter corresponding to each second brightness value are determined, including: determining a brightness change step based on multiple brightness change values; determining each second brightness value based on the brightness change step and the fourth brightness value; and determining a grayscale adjustment parameter corresponding to each second brightness value based on each second brightness value and the third brightness value.

[0017] Based on the above solution, each second brightness value to be inserted between adjacent first brightness values ​​and the grayscale adjustment parameter corresponding to each second brightness value can be accurately determined.

[0018] In a possible design method of the first aspect, adjacent first brightness values ​​include a third brightness value and a fourth brightness value, the third brightness value is greater than the fourth brightness value, and the brightness of the display screen of the electronic device is adjusted based on each second brightness value and the grayscale adjustment parameter corresponding to each second brightness value, including: based on the third brightness value, determining the backlight adjustment parameter corresponding to each second brightness value; based on each second brightness value, the backlight adjustment parameter corresponding to each second brightness value and the grayscale adjustment parameter corresponding to each second brightness value, adjusting the brightness of the display screen of the electronic device.

[0019] Based on the above technical solution, when the backlight adjustment parameters are unable to achieve precise adjustment of the brightness of the display screen of the electronic device, the brightness of the display screen of the electronic device can be further adjusted by using the grayscale adjustment parameters corresponding to each second brightness value on the basis of the backlight adjustment parameters, thereby achieving high-precision adjustment of the brightness of the display screen of the electronic device.

[0020] In a possible design method of the first aspect, the brightness of the display screen of the electronic device is adjusted based on each second brightness value, the backlight adjustment parameter corresponding to each second brightness value, and the grayscale adjustment parameter corresponding to each second brightness value, including: obtaining a target brightness value; determining a target backlight adjustment parameter corresponding to the target brightness value from the backlight adjustment parameters corresponding to each second brightness value; determining a target grayscale adjustment parameter corresponding to the target brightness value from the grayscale adjustment parameters corresponding to each second brightness value; writing the target backlight adjustment parameter into a screen register corresponding to the backlight of the electronic device, transmitting the target grayscale adjustment parameter to a corresponding image processing module in the electronic device, and correspondingly adjusting the brightness of the display screen of the electronic device.

[0021] Based on the above technical solution, when the backlight adjustment parameters corresponding to each second brightness value are relatively accurate, the target backlight adjustment parameters corresponding to the target brightness value can be relatively accurately determined; when the grayscale adjustment parameters corresponding to each second brightness value are relatively accurate, the target grayscale adjustment parameters corresponding to the target brightness value can be relatively accurately determined. Furthermore, when the target backlight adjustment parameters are written into the screen register corresponding to the backlight of the electronic device, and the target grayscale adjustment parameters are transmitted to the corresponding image processing module in the electronic device, the brightness adjustment of the display screen of the electronic device can be accurately achieved, so that the brightness of the display screen of the electronic device corresponds to the target brightness value.

[0022] In a second aspect, the present application provides an electronic device, comprising: a display screen, a memory and one or more processors; the display screen, the memory and the processor are coupled; wherein the memory stores computer program code, the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the dimming method provided in the first aspect and any possible design method thereof.

[0023] In a third aspect, the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the dimming method provided in the first aspect and any possible design thereof.

[0024] In a fourth aspect, the present application provides a computer program product, which includes executable instructions. When the computer program product runs on an electronic device, the electronic device executes the dimming method provided in the first aspect and any possible design thereof.

[0025] In a fifth aspect, a device (for example, the device may be a chip system) is provided, the device including a processor for supporting an electronic device to implement the functions involved in the second aspect above. In one possible design, the device also includes a memory for storing program instructions and data necessary for the electronic device. When the device is a chip system, it may be composed of a chip, or may include a chip and other discrete devices.

[0026] It can be understood that the beneficial effects that can be achieved by the technical solutions provided in the second to fifth aspects provided above can refer to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of the hardware architecture of an electronic device provided in an embodiment of the present application;

[0028] Figure 2A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;

[0029] Figure 3 A schematic diagram of a dimming method provided in an embodiment of the present application;

[0030] Figure 4 A schematic diagram of a brightness adjustment interface of an electronic device provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of a flow chart of another dimming method provided in an embodiment of the present application;

[0032] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0033] Figure 7 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "a", "an", "", "above", "the" and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that " / " means or, for example, A / B can mean A or B; "and / or" in the text is merely a description of an associative relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0035] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0036] The terms "first" and "second" in the following embodiments of the present application are used for descriptive purposes only and should not be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more.

[0037] With the rapid development of electronic equipment technology, people have higher and higher requirements for the display effect of electronic equipment. At present, in the hardware design of electronic equipment, the reset drive circuit of thin film transistor (TFT) is mainly added to the pixel drive circuit of the electronic equipment to eliminate the residual image and mura (such as various traces caused by uneven brightness of the display) in the low-light display process of the electronic equipment, so as to make the display picture smoother.

[0038] In order to completely refresh the display screen, high-frequency PWM dimming can also be performed using pulses that are multiples of 3 to solve the problem of image retention during the display process. Currently, in the process of implementing 36-pulse PWM dimming, since there is no specific integrated circuit (IC) with 36 pulses to generate a 36-pulse PWM control signal, it is necessary to reuse the 12-pulse IC three times to implement 36-pulse PWM dimming.

[0039] However, in the process of repeatedly using the 12-pulse IC three times to achieve 36-pulse PWM dimming, only the 12-pulse PWM dimming can be performed independently, and the dimming accuracy is greatly lost, resulting in brightness steps between the displayed brightness levels. When the brightness change between adjacent steps is within the range that can be perceived by the human eye, it will cause dimming flickering at low brightness, seriously affecting the display effect of electronic equipment.

[0040] In response to the above problems, an embodiment of the present application provides a dimming method, which can be applied to electronic devices. In this technical solution, a first brightness value corresponding to each backlight order among a plurality of backlight orders can be obtained; based on adjacent first brightness values ​​corresponding to adjacent backlight orders among a plurality of backlight orders, the number of second brightness values ​​to be inserted between adjacent first brightness values ​​is determined. In this way, when the number of second brightness values ​​to be inserted is greater than or equal to a preset number, each second brightness value and the grayscale adjustment parameter corresponding to each second brightness value can be accurately determined based on a plurality of adjacent first brightness values. Thus, based on each second brightness value and the grayscale adjustment parameter corresponding to each second brightness value, the brightness of the display screen of the electronic device can be adjusted with high precision, ensuring that the brightness steps between the brightness displayed by the electronic device are small, thereby improving the display effect of the electronic device.

[0041] The technical solution provided by the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0042] In the present application, the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or the like, which uses a multi-battery series system to supply power. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device.

[0043] Take the example of a mobile phone being an electronic device. Figure 1 A schematic structural diagram of an electronic device provided in the present application is shown.

[0044] Reference Figure 1 As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a display screen 193, a subscriber identification module (SIM) card interface 194, and a camera 195, etc. Among them, the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0045] The processor 110 may include one or more processing units, for example, the processor 110 may include an AP, a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0046] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0047] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system. In an embodiment of the present application, the processor may be a SOC.

[0048] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an I2C interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0049] The charging management module 140 is used to receive charging input from a power supply device (such as a charger, a laptop, etc.). The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device.

[0050] While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141. The battery 142 can be composed of multiple batteries connected in series. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.

[0051] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 193, the camera 195, and the wireless communication module 160. The power management module 141 can also be used to monitor the voltage, current, battery cycle number, battery health status (leakage, impedance) and other parameters of the battery 142. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device, for example, the power management module 141 and the charging management module 140 can be different functional modules in the same chip.

[0052] In the embodiment of the present application, the power management module 141 and / or the charging management module 140 may include a fast charging chip. The power management module 141 and / or the charging management module 140 may use the fast charging chip to realize high-power charging of the battery. In the fast charging chip, there will be corresponding multiple registers for different types of data to store corresponding ADC data.

[0053] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.

[0054] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data. The non-volatile memory can also store executable programs and store user and application data, etc., and can be loaded into the random access memory in advance for direct reading and writing by the processor 110.

[0055] A touch sensor is also called a "touch control device". The touch sensor can be arranged on the display screen 193. The touch sensor and the display screen 193 form a touch screen, also called a "touch control screen". The touch sensor is used to monitor touch operations acting on or near it. The touch sensor can pass the monitored touch operations to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 193. In other embodiments, the touch sensor can also be arranged on the surface of the electronic device, which is different from the position of the display screen 193.

[0056] The pressure sensor is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor can be set on the display screen 193. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. When a touch operation is applied to the display screen 193, the electronic device monitors the touch operation intensity according to the pressure sensor. The electronic device can also calculate the touch position based on the monitoring signal of the pressure sensor. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0057] A temperature sensor is a device used to measure the temperature of an environment or object. It can convert temperature into electrical signals or digital signals so that the temperature can be read and processed by computers or other electronic devices.

[0058] Gyroscope (GYRO-sensor), also known as ground sensor or gyro sensor, has a traditional structure with a gyroscope inside. A three-axis gyroscope can simultaneously measure the position, movement trajectory, and acceleration in six directions. A single-axis gyroscope can only measure quantities in two directions, that is, a system requires three gyroscopes, and a three-axis gyroscope can replace three single-axis gyroscopes. The working principle of a three-axis gyroscope is to measure the angle between the vertical axis of the gyroscope rotor and the device in a three-dimensional coordinate system, and calculate the angular velocity, and use the angle and angular velocity to determine the motion state of the object in three-dimensional space. A three-axis gyroscope can simultaneously measure six directions, including up, down, left, right, front, and back (the composite direction can also be decomposed into three-axis coordinates), and finally determine the movement trajectory and acceleration of the device. In other words, the three-axis gyroscope determines the current motion state of the device by measuring its own rotation state, such as forward, backward, upward, downward, left, or right; whether it is accelerating (angular velocity) or decelerating (angular velocity), etc. In the embodiment of the present application, the gyro sensor in the electronic device is a three-axis gyro sensor. The electronic device can determine the position or area on the electronic device corresponding to the heating feedback operation performed by the user based on the detection data of the gyro sensor.

[0059] The electronic device implements the display function through a GPU, a display screen 193, and an application processor. The GPU is a microprocessor for image editing, connecting the display screen 193 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0060] The electronic device can realize the shooting function through ISP, camera 195, video codec, GPU, display screen 193 and application processor.

[0061] ISP is used to process data fed back by camera 195. For example, when taking a photo, the shutter is opened, and light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise and brightness of the image. ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, ISP can be set in camera 195. Camera 195 is used to capture still images or videos. In some embodiments, the electronic device may include 1 or N cameras, where N is a positive integer greater than 1. Camera 195 can be a front camera or a rear camera.

[0062] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.

[0063] The display screen 193 is used to display images, videos, etc. The display screen 193 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), miniLED, microLed, micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 193, where N is a positive integer greater than 1.

[0064] In an embodiment of the present application, the display screen 193 can be used to display the interface of the electronic device (for example, a camera preview interface, a video preview interface, a finished film preview interface, etc.), and display images taken from any one or more cameras 195 in the interface.

[0065] In some examples, a specific position of the interface of the display screen 193 may also include a space for adjusting the display brightness. For example, a brightness bar may also be provided at the upper right corner of the display screen 193.

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

[0067] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas.

[0068] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

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

[0070] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0071] The SIM card interface 194 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device by inserting it into or removing it from the SIM card interface 194. The electronic device can support one or more SIM card interfaces. The SIM card interface 194 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 194 at the same time. The SIM card interface 194 can also be compatible with external memory cards. The electronic device interacts with the network through the SIM card to implement functions such as calls and data communications. One SIM card corresponds to one user number.

[0072] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0073] Of course, it is understandable that the above Figure 1 The figure is only an exemplary description when the electronic device is in the form of a mobile phone. If the electronic device is in the form of a tablet computer, a handheld computer, a personal computer (PC), a PDA, a wearable device (such as a smart watch, a smart bracelet), etc., the structure of the electronic device may include Figure 1 The structure shown in the figure is less than Figure 1 More structures are shown in the figure, which are not limited here.

[0074] It is understandable that, in general, the realization of electronic device functions requires the support of hardware and the cooperation of software. The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structure of the electronic device is illustrated.

[0075] Figure 2 A schematic diagram of a layered architecture of a software system of an electronic device provided in an embodiment of the present application. The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces (such as APIs).

[0076] In some examples, reference Figure 2 As shown, in the embodiment of the present application, the software of the electronic device is divided into four layers, which are, from top to bottom, the application layer, the system library and Android runtime (android runtime), the HAL layer (hardware abstraction layer) and the driver layer (or kernel layer).

[0077] The application layer can include a series of applications. Figure 3 As shown, the application layer may include applications (APP) such as camera, gallery, calendar, map, WLAN, Bluetooth, music, video, short message, call, contact, live broadcast, etc. Among them, the call application and contact may be factory preset in the electronic device, or may be a third-party application for user calls provided by the application market.

[0078] In some examples, the camera, gallery, calendar, map, video, live broadcast and other APPs and third-party applications can call or include a brightness adjustment request module and an adjustment result display module. The brightness adjustment request module can be used to generate and send a brightness adjustment request. The adjustment result display module can be used to receive the brightness adjustment result and display the brightness adjustment result.

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

[0080] In some examples, the surface manager may include a brightness management module and an adjustment result transmission module. The brightness management module may be used to receive a brightness adjustment request, and generate a brightness management dynamic item according to a brightness adjustment target value and a current brightness value in the brightness adjustment request. And based on the brightness management dynamic item, a brightness adjustment request including a target brightness value corresponding to the current frame is issued. The adjustment result transmission module may be used to receive a brightness adjustment result, and transparently transmit the brightness adjustment result to an adjustment result display module of the application layer.

[0081] The Android runtime includes the core library and the ART virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the ART virtual machine. The ART virtual machine executes the Java files of the application layer and the application framework layer as binary files. The ART virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0082] The HAL layer is an interface layer between the operating system kernel and the hardware circuit, and its purpose is to abstract the hardware. It hides the hardware interface details of a specific platform and provides a virtual hardware platform for the operating system, making it hardware-independent and portable on multiple platforms. The HAL layer provides a standard interface to display device hardware functions to the higher-level Java API framework (i.e., the framework layer). The HAL layer contains multiple library modules, each of which implements an interface for a specific type of hardware component.

[0083] In some examples, the HAL layer includes a camera HAL, an audio HAL, a Bluetooth HAL, a sensor HAL (or referred to as an Isensor service, sensor service), etc., which is not limited in the embodiments of the present application. The camera HAL may include a brightness adjustment request processing module and a processing result capture module.

[0084] The brightness adjustment request processing module is used to receive a brightness adjustment request including a target brightness value corresponding to the current frame, and respond to the brightness adjustment request, determine the target backlight adjustment parameter (such as the target backlight level) and the target grayscale adjustment parameter corresponding to the target brightness value, and input the target grayscale adjustment parameter to the display synthesis module (such as the hardware composer HAL (HWC)), and at the same time send the target backlight level to the screen register of the backlight in the driver layer. The screen register adjusts the driving current of the pixel in response to the target backlight level adjustment parameter, and obtains the initial brightness adjustment result of the pixel point in response to the corresponding driving current, and transmits the initial brightness adjustment result to the HAL layer. Then, the HWC performs display synthesis based on the initial brightness adjustment result and the target grayscale adjustment parameter to obtain the brightness adjustment processing result. The processing result capture module is used to capture the brightness adjustment processing result, and transmit the brightness adjustment processing result to the surface manager.

[0085] The kernel layer (or driver layer) is a layer between hardware and software. In some examples, the kernel layer includes a camera driver (or camera driver), a display driver, an audio driver, a sensor driver, a battery driver, etc., which is not limited in the embodiments of the present application.

[0086] The methods in the following embodiments can all be implemented in an electronic device having the above hardware structure.

[0087] Based on the above hardware architecture and software structure, the following combination Figure 3 , a dimming method is provided in detail for the embodiment of the present application, and the method can be used in electronic devices. Figure 3 As shown, the dimming method provided in the embodiment of the present application may include steps S301 to S310:

[0088] Step S301: obtaining first brightness values ​​corresponding to a plurality of backlight levels within a preset backlight level range.

[0089] Exemplarily, the backlight order is used to represent the brightness level of different brightness adjustments in the backlight system. In some examples, if the backlight order is greater, the backlight system can adjust the brightness more finely, thereby providing a better viewing experience under different ambient light conditions.

[0090] Exemplarily, the preset backlight level range refers to the backlight level range supported by the backlight of the electronic device. In some examples, the preset backlight level range can be determined according to the number of bits of the screen register in the electronic device. For example, if the number of bits of the screen register is 12 bits, the preset backlight level range is 0 to 4095 (2 to the 12th power) levels.

[0091] In some examples, first brightness values ​​corresponding to a plurality of backlight levels within a preset backlight level range may be referred to in Table 1 below.

[0092] Table 1

[0093] Backlight level First brightness value (unit Nit) 743 12.0309 744 12.0249 745 12.3585 746 12.2780 747 12.3648 748 12.3338 749 12.3532 750 12.2980 751 12.3684 752 12.3149 753 12.3625 754 12.3167 755 12.6167 756 12.5756 757 12.6127 758 12.5722 759 12.6106 760 12.5545

[0094] Exemplarily, when a plurality of backlight levels within a preset backlight level range are written into a screen register in an electronic device, a brightness value corresponding to each backlight level can be tested by a brightness testing device.

[0095] Step S302 , determining a brightness change value between two adjacent first brightness values ​​corresponding to two adjacent backlight levels among a plurality of backlight levels.

[0096] Exemplarily, the brightness change value may be a percentage representing the magnitude of the brightness change. In some examples, the brightness change value may be greater than or equal to 2%, or may be less than 2%. The embodiment of the present application does not limit the magnitude of the brightness change value. For example, referring to Table 1 above, the brightness change values ​​of the two adjacent first brightness values ​​12.3167 and 12.6167 corresponding to the adjacent backlight orders 754 and 755 ((12.6167-12.3167) / 12.3167) are greater than or equal to 2%; the brightness change values ​​of the two adjacent first brightness values ​​12.3338 and 12.3532 corresponding to the adjacent backlight orders 748 and 749 ((12.3532-12.3338) / 12.3338) are less than 2%.

[0097] For example, according to a preset brightness change determination rule, corresponding operations may be performed on two adjacent first brightness values ​​corresponding to two adjacent backlight orders in a plurality of backlight orders to obtain a brightness change value. The embodiment of the present application does not limit the implementation method of the brightness change determination rule.

[0098] Exemplarily, a preset brightness change rule corresponds to ΔL / L, a group of two adjacent brightness values ​​includes a third brightness value and a fourth brightness value, and the third brightness value is greater than the fourth brightness value. The brightness difference between the adjacent third brightness value and the fourth brightness value can be calculated first, and then the first ratio between the brightness difference and the fourth brightness value is calculated, and the brightness change value is determined according to the first ratio. In some examples, the first ratio can be determined as the brightness change value, or the first ratio can be multiplied by a preset proportional coefficient to obtain the brightness change value. The embodiment of the present application does not limit the specific implementation method for determining the brightness change value. The embodiment of the present application takes the determination of the first ratio as the brightness change value as an example for exemplary description.

[0099] Exemplarily, since multiple backlight orders include multiple groups of two adjacent backlight orders, a group of two adjacent backlight orders can correspond to determine a brightness change value between a group of two adjacent brightness values. Therefore, based on the first brightness values ​​corresponding to the multiple backlight orders, multiple brightness change values ​​can be determined.

[0100] In some examples, referring to Table 1 above, 18 backlight levels (backlight levels 743 to 760) include 17 groups of two adjacent backlight levels (e.g., 743 and 744, 744 and 745, 745 and 746...), and furthermore, 17 brightness change values ​​can be determined based on 17 groups of two adjacent first brightness values ​​(e.g., 12.0309 and 12.0249, 12.0249 and 12.3585, 12.3585 and 12.2780...).

[0101] Step S303: determining the number of second brightness values ​​to be inserted between two adjacent first brightness values ​​based on the multiple brightness change values ​​and two adjacent first brightness values.

[0102] Exemplarily, if the number of the second brightness values ​​to be inserted is greater than or equal to the preset number, the process proceeds to step S304; if the number of the second brightness values ​​to be inserted is less than the preset number, it is determined not to insert a brightness value between two adjacent first brightness values.

[0103] In the embodiment of the present application, the brightness change step size can be determined based on multiple brightness change values, and the number of second brightness values ​​to be inserted between two adjacent first brightness values ​​can be determined based on the brightness change step size and two adjacent first brightness values.

[0104] Exemplarily, the brightness change step size may be a brightness change value that ensures that the display screen of the electronic device displays normally during the dimming process. In some examples, the brightness change step size may be any percentage less than or equal to 0.5%. The embodiment of the present application takes the brightness change step size of 0.5% as an example for exemplary description.

[0105] In the embodiment of the present application, a maximum brightness change value can be determined from multiple brightness change values, and then the brightness change step size can be determined based on at least one brightness change value other than the maximum brightness change value among the multiple brightness change values.

[0106] Exemplarily, the maximum value of the brightness change may refer to a value where the brightness change value is greater than or equal to a preset percentage. The preset percentage may be a brightness change value that causes the display screen of the electronic device to flicker during the dimming process. In some examples, the preset percentage may be the minimum brightness change perceived by the human eye when the brightness exceeds 1Nit in a simplified model of the human eye. For example, the preset percentage may be 2%, or any value greater than 2%.

[0107] Exemplarily, the plurality of brightness change values ​​may include at least one brightness change maximum value. In some examples, referring to Table 1, since the brightness change value between brightness orders 744 and 745 and the brightness change value between brightness orders 754 and 755 are both greater than or equal to 2%, the brightness change value between brightness orders 744 and 745 and the brightness change value between brightness orders 754 and 755 may be determined as the brightness change maximum value.

[0108] In some examples, the average brightness value of at least one brightness change value other than the maximum brightness change value among the multiple brightness change values ​​may be determined as the brightness change step. For example, as shown in reference Table 1, the average value (e.g., 0.5%) of the remaining 15 brightness change values ​​other than the brightness change value between the brightness order 744 and 745 and the brightness change value between the brightness order 754 and 755 among the multiple brightness change values ​​may be used as the brightness change step.

[0109] In an embodiment of the present application, taking the case where two adjacent first brightness values ​​include a third brightness value and a fourth brightness value, and the third brightness value is greater than the fourth brightness value as an example, the second ratio of the third brightness value to the fourth brightness value can be determined first, and based on the second ratio and the brightness change step, the number of second brightness values ​​to be inserted between the two adjacent first brightness values ​​can be determined.

[0110] Exemplarily, the number n of second brightness values ​​to be inserted between the third brightness value and the fourth brightness value may be determined based on the following formula (1).

[0111] n=log (1+c%) *B / A (1);

[0112] Wherein, B represents the third brightness value; A represents the fourth brightness value; and c% represents the brightness change step.

[0113] Exemplarily, when the calculated number n of second brightness values ​​to be inserted is not an integer, n is determined by rounding down. In some examples, if the calculated number n of second brightness values ​​to be inserted is 1.23 or 1.78, the number of second brightness values ​​to be inserted between the third brightness value and the fourth brightness value is determined to be 1. If the calculated number n of second brightness values ​​to be inserted is 4.9 or 4.1, the number of second brightness values ​​to be inserted between the third brightness value and the fourth brightness value is determined to be 4. If the calculated number n of second brightness values ​​to be inserted is 0.9 or 0.1, the number of second brightness values ​​to be inserted between the third brightness value and the fourth brightness value is determined to be 0. For example, referring to Table 1, when the third brightness value is 12.6167 corresponding to the brightness order 755, the fourth brightness value is 12.3167 corresponding to the brightness order 754, and the brightness change step is 0.5%, according to formula (1), n=log (1+0.5%) *12.6167 / 12.3167≈4.

[0114] Exemplarily, if the number of second brightness values ​​to be inserted between two adjacent first brightness values ​​is 0, it means that the brightness change value between the two adjacent first brightness values ​​is small enough, and there is no need to insert a second brightness value between the two adjacent first brightness values.

[0115] Step S304 , when the number of the second brightness values ​​to be inserted is greater than or equal to the preset number, determining each second brightness value and a grayscale adjustment parameter corresponding to each second brightness value based on a plurality of brightness change values ​​and two adjacent first brightness values.

[0116] Exemplarily, the preset number may be 1. The number of second brightness values ​​to be inserted being greater than or equal to the preset number may mean that a second brightness value needs to be inserted between two adjacent first brightness values.

[0117] In an embodiment of the present application, when determining to insert at least one second brightness value between two adjacent first brightness values, the brightness change step can be determined based on multiple brightness change values; each second brightness value can be determined based on the brightness change step and the fourth brightness value; and the grayscale adjustment parameter corresponding to each second brightness value can be determined based on each second brightness value and the third brightness value.

[0118] For example, the brightness values ​​corresponding to the brightness change step lengths may be sequentially added to the fourth brightness value to obtain each brightness value. In some examples, each brightness value L may be determined according to the following formula (2).

[0119] L = A*(1+c%) i (2);

[0120] Here, i may be a positive integer greater than or equal to 1, and i represents the i-th second brightness value inserted starting from the fourth brightness value.

[0121] Referring to Table 1 above, if it is determined according to formula (1) that four brightness values ​​need to be inserted between the fourth brightness value 12.3167 corresponding to the brightness order 754 and the third brightness value 12.6167 corresponding to 755, and the brightness change step is 0.5%, then according to formula (2), the first inserted second brightness value L1 = 12.3167*(1+0.5%) = 12.3783; the second inserted second brightness value L2 = 12.3167*(1+0.5%) 2 =12.4402; the third inserted second brightness value L3 =12.3167*(1+0.5%) 3 =12.5024; the fourth inserted second brightness value L4 =12.3167*(1+0.5%) 4 =12.5649.

[0122] Exemplarily, the ratio of each second brightness value to the third brightness value may be determined, and each obtained ratio may be used as the grayscale adjustment parameter corresponding to each second brightness value. That is, the ratio of the i-th inserted second brightness value to the third brightness value may be used as the grayscale adjustment parameter corresponding to the i-th inserted second brightness value. In some examples, the grayscale adjustment parameter PCC corresponding to each second brightness value may be determined according to the following formula (3).

[0123] PCC= A*(1+c%) i / B (3);

[0124] In some examples, if the four brightness values ​​inserted between the fourth brightness value 12.3167 and the third brightness value 12.6167 are determined according to formula (2) to be 12.3783, 12.4402, 12.5024 and 12.5649 respectively, then the corresponding four grayscale adjustment parameters are 0.9811, 0.9860, 0.9909 and 0.9959 respectively.

[0125] Step S305 , determining the backlight adjustment parameters corresponding to each second brightness value based on the backlight order corresponding to the third brightness value.

[0126] Exemplarily, the backlight order corresponding to the third brightness value may be determined as the backlight adjustment parameter corresponding to each second brightness value. For example, if the backlight order corresponding to the third adjustment parameter is 755, 755 is used as the backlight adjustment parameter corresponding to each second brightness value inserted between the fourth brightness value 12.3167 and the third brightness value 12.6167.

[0127] Step S306: write the grayscale adjustment parameter corresponding to the second brightness value and the backlight adjustment parameter corresponding to the second brightness value into the electronic device.

[0128] Exemplarily, the grayscale adjustment parameters corresponding to the second brightness value and the backlight adjustment parameters corresponding to the second brightness value may be represented by the same table, or may be represented by different tables. The embodiment of the present application does not limit the representation method of the grayscale adjustment parameters corresponding to the second brightness value and the backlight adjustment parameters corresponding to the second brightness value. The embodiment of the present application takes the grayscale adjustment parameters corresponding to the second brightness value and the backlight adjustment parameters corresponding to the second brightness value as an example to be represented by the same table. For example, the grayscale adjustment parameters corresponding to the second brightness value and the backlight adjustment parameters corresponding to the second brightness value can be shown in Table 2 below.

[0129] Table 2

[0130] Brightness value Backlight adjustment parameters Grayscale adjustment parameters 12.3167 754 1 12.3783 755 0.9811 12.4402 755 0.9860 12.5024 755 0.9909 12.5649 755 0.9959 12.6167 755 1

[0131] In some examples, the above Table 2 may be stored in the HAL layer of the electronic device.

[0132] Step S307: generating a brightness adjustment dynamic item in response to the brightness adjustment instruction triggered by the electronic device.

[0133] Exemplarily, the brightness adjustment instruction may be a voice adjustment instruction or a brightness adjustment operation, and the embodiment of the present application does not limit the implementation method of the brightness adjustment instruction. The following embodiment takes the brightness adjustment instruction as a brightness adjustment operation as an example for exemplary description.

[0134] For example, taking the brightness adjustment instruction as a brightness adjustment operation as an example, the user can first trigger the setting control in the electronic device or scroll down the display screen of the electronic device to enter the following Figure 4 The display brightness adjustment interface 40 is shown. Figure 4 As shown, the brightness adjustment interface may include a brightness bar 400. The user can manually slide the brightness bar 400, and the electronic device receives and responds to the user's sliding operation on the brightness bar (i.e., brightness adjustment operation) to generate a brightness adjustment dynamic item. It should be noted that the dimming method in the embodiment of the present application can be applied to any application that needs to display an image. The application can be an application on the electronic device or a third-party application, and the embodiment of the present application is not limited to this. For example, the application can be a camera application on the electronic device or a third-party WeChat application.

[0135] Exemplarily, the brightness adjustment dynamic item may be a series of brightness groups for adjusting the current display brightness to the target display brightness within a preset time according to the brightness adjustment instruction. In some examples, if the brightness adjustment instruction is used to adjust the display brightness from 10Nit to 100Nit, the brightness adjustment dynamic item may be to increase 10Nit by 11.5Nit in sequence within 100ms (milliseconds) until it is adjusted to 100Nit, that is, the brightness adjustment dynamic item may include 21.5Nit, 33Nit, 44.5Nit, 56Nit, 67.5Nit, 79Nit...

[0136] For example, the user may automatically trigger the brightness adjustment instruction when starting an application that needs to display an image, or may choose to trigger the brightness adjustment instruction according to user needs before or after starting an application that needs to display an image.

[0137] For example, after the brightness adjustment instruction is triggered, the brightness adjustment request module may be triggered to generate a brightness adjustment request and send the brightness adjustment request to the surface manager in the system library. The brightness management module in the surface manager receives the brightness adjustment request and generates a brightness adjustment dynamic item in response to the brightness adjustment request.

[0138] In some examples, the adjustment result transmission module in the surface manager may also receive the brightness adjustment result transparently transmitted by the HAL layer, and transparently transmit the brightness adjustment result to the adjustment result display module in the application layer.

[0139] In some examples, the brightness adjustment request may include a brightness adjustment target value corresponding to the brightness adjustment instruction. After receiving the brightness adjustment request, the brightness management module may obtain the current brightness value and generate a brightness adjustment dynamic item based on the current brightness value, the target value and a preset rule.

[0140] Step S308: Determine a target brightness value corresponding to the current image frame based on the brightness adjustment dynamic item.

[0141] Exemplarily, the surface manager in the system library may sequentially select the brightness values ​​in the brightness adjustment dynamic items as the target brightness value corresponding to the current image frame, the target brightness value corresponding to the next image frame, and so on. For example, if the brightness adjustment dynamic items include 21.5Nit, 33Nit, 44.5Nit, 56Nit, 67.5Nit, 79Nit, etc., then 21.5Nit may be used as the target brightness value corresponding to the current image frame, and 33Nit may be used as the target brightness value corresponding to the next image frame.

[0142] In some examples, when adjusting the brightness of the current image frame, the brightness management module in the surface manager may send a brightness adjustment request including a target brightness value (e.g., 21.5 Nit) corresponding to the current image frame to the brightness adjustment request processing module of the HAL layer.

[0143] Step S309 , determining a target backlight adjustment parameter corresponding to the target brightness value from the backlight adjustment parameters corresponding to the second brightness values, and determining a target grayscale adjustment parameter corresponding to the target brightness value from the grayscale adjustment parameters corresponding to the second brightness values.

[0144] Exemplarily, the brightness adjustment request processing module of the HAL layer can query the backlight adjustment parameters corresponding to each second brightness value according to the target brightness value to obtain the target backlight adjustment parameters corresponding to the target brightness value, and query the grayscale adjustment parameters corresponding to each second brightness value according to the target brightness value to obtain the target grayscale adjustment parameters corresponding to the target brightness value.

[0145] In some examples, taking the target brightness value corresponding to the current image frame as 12.5 as an example, the brightness adjustment request processing module of the HAL layer can query Table 2 above to determine that the backlight adjustment parameter corresponding to the brightness value 12.5 is 755, and the grayscale adjustment parameter corresponding to the brightness value 12.5 is 0.9909, that is, the target backlight adjustment parameter is 755, and the target grayscale adjustment parameter is 0.9909.

[0146] Step S310, writing the target backlight adjustment parameter into the screen register corresponding to the backlight of the electronic device, transferring the target grayscale adjustment parameter to the corresponding image processing module in the electronic device, and correspondingly adjusting the brightness of the display screen of the electronic device.

[0147] Exemplarily, different values ​​in the screen register may drive a different pixel current. Therefore, the brightness of the display screen of the electronic device may be adjusted by writing different values ​​to the screen register.

[0148] Exemplarily, the image processing module may be a display composition module in the HAL layer. In some examples, the image processing module may be a HWC.

[0149] Exemplarily, inputting different grayscale adjustment parameters into the HWC can adjust the grayscale of the display screen of the electronic device, thereby achieving brightness adjustment of the display screen of the electronic device.

[0150] Exemplarily, the target backlight adjustment parameters can be sent down to the display driver of the driving layer, and the display driver adjusts the driving current of the pixel point, and obtains the initial brightness adjustment result of the pixel point in response to the corresponding driving current, and transmits the initial brightness adjustment result to the HAL layer. At the same time, the image processing module performs a second adjustment on the brightness of the image frame based on the initial brightness adjustment result and the input target grayscale parameter to obtain the brightness adjustment processing result. The processing result capture module captures the brightness adjustment processing result, and transmits the brightness adjustment processing result to the adjustment result transmission module in the system library. The adjustment result transmission module receives the brightness adjustment processing result, and transmits the brightness adjustment processing result to the adjustment result display module of the application layer, and displays the brightness adjustment result through the adjustment result display module.

[0151] In an embodiment of the present application, by determining the brightness change value between two adjacent first brightness values ​​within a preset backlight order range, and when it is determined that the number of second brightness values ​​to be inserted between two adjacent first brightnesses is greater than a preset number, each second brightness value and the grayscale adjustment parameter corresponding to each second brightness value are determined based on multiple brightness change values ​​and two adjacent first brightness values. Then, the backlight adjustment parameter corresponding to each second brightness value is determined. In this way, the backlight adjustment parameter and grayscale adjustment parameter corresponding to the second brightness value can be added on the basis of multiple first brightness values. Furthermore, when the target brightness value is not the first brightness value but the second brightness value, the brightness corresponding to the second brightness value can be displayed through the display screen of the electronic device based on the target backlight adjustment parameter and the target grayscale adjustment parameter corresponding to the target brightness value, and the display accuracy is higher.

[0152] Figure 5 A schematic diagram of another dimming method provided in an embodiment of the present application. Figure 5As shown, the dimming method may include steps S501 to S504.

[0153] Step S501, obtaining a first brightness value corresponding to each backlight level among a plurality of backlight levels.

[0154] For example, the implementation of step S501 can refer to Figure 3 The step S301 of the illustrated embodiment will not be described in detail in the embodiment of the present application.

[0155] Step S502 : determining the number of second brightness values ​​to be inserted between adjacent first brightness values ​​based on adjacent first brightness values ​​corresponding to adjacent backlight levels in a plurality of backlight levels.

[0156] For example, the implementation of step S502 can refer to Figure 3 Step S302 and step S303 of the illustrated embodiment will not be described in detail in the embodiment of the present application.

[0157] In some examples, based on adjacent first brightness values ​​corresponding to adjacent backlight orders among multiple backlight orders, the number of second brightness values ​​to be inserted between adjacent first brightness values ​​is determined, including: determining the brightness change value between adjacent first brightness values ​​corresponding to adjacent backlight orders; based on multiple brightness change values ​​and adjacent first brightness values, determining the number of second brightness values ​​to be inserted between adjacent first brightness values.

[0158] In some examples, adjacent first brightness values ​​include a third brightness value and a fourth brightness value, the third brightness value is greater than the fourth brightness value, and determining the brightness change value between adjacent first brightness values ​​corresponding to adjacent backlight orders includes: determining the brightness difference between the third brightness value and the fourth brightness value; and determining the brightness change value based on a first ratio of the brightness difference value to the fourth brightness value.

[0159] In some examples, based on multiple brightness change values ​​and adjacent first brightness values, determining the number of second brightness values ​​to be inserted between adjacent first brightness values ​​includes: determining the brightness change step based on multiple brightness change values; determining the number of second brightness values ​​to be inserted between adjacent first brightness values ​​based on the brightness change step and adjacent first brightness values.

[0160] In some examples, based on the brightness change step and adjacent first brightness values, determining the number of second brightness values ​​to be inserted between adjacent first brightness values ​​includes: determining a second ratio of the third brightness value to the fourth brightness value; based on the second ratio and the brightness change step, determining the number of second brightness values ​​to be inserted between adjacent first brightness values.

[0161] Step S503 : when the number of the second brightness values ​​to be inserted is greater than or equal to the preset number, determining each second brightness value and a grayscale adjustment parameter corresponding to each second brightness value based on a plurality of adjacent first brightness values.

[0162] For example, the implementation of step S503 can refer to Figure 3 Step S304 of the illustrated embodiment will not be described in detail in the embodiment of the present application.

[0163] In some examples, adjacent first brightness values ​​include a third brightness value and a fourth brightness value, the third brightness value is greater than the fourth brightness value, and each second brightness value and a grayscale adjustment parameter corresponding to each second brightness value are determined, including: determining a brightness change step based on multiple brightness change values; determining each second brightness value based on the brightness change step and the fourth brightness value; determining a grayscale adjustment parameter corresponding to each second brightness value based on each second brightness value and the third brightness value.

[0164] Step S504: adjusting the brightness of the display screen of the electronic device based on the second brightness values ​​and the grayscale adjustment parameters corresponding to the second brightness values.

[0165] For example, the implementation of step S504 can refer to Figure 3 The steps S309 and S310 of the illustrated embodiment are not described in detail in the embodiments of the present application.

[0166] In some examples, adjacent first brightness values ​​include a third brightness value and a fourth brightness value, the third brightness value is greater than the fourth brightness value, and the brightness of the display screen of the electronic device is adjusted based on each second brightness value and the grayscale adjustment parameter corresponding to each second brightness value, including: determining the backlight adjustment parameter corresponding to each second brightness value based on the backlight order corresponding to the third brightness value; adjusting the brightness of the display screen of the electronic device based on each second brightness value, the backlight adjustment parameter corresponding to each second brightness value, and the grayscale adjustment parameter corresponding to each second brightness value.

[0167] In some examples, the brightness of a display screen of an electronic device is adjusted based on each second brightness value, a backlight adjustment parameter corresponding to each second brightness value, and a grayscale adjustment parameter corresponding to each second brightness value, including: obtaining a target brightness value; determining a target backlight adjustment parameter corresponding to the target brightness value from the backlight adjustment parameters corresponding to each second brightness value; determining a target grayscale adjustment parameter corresponding to the target brightness value from the grayscale adjustment parameters corresponding to each second brightness value; writing the target backlight adjustment parameter into a screen register corresponding to the backlight of the electronic device, passing the target grayscale adjustment parameter to a corresponding image processing module in the electronic device, and correspondingly adjusting the brightness of the display screen of the electronic device.

[0168] It is understandable that, in order to realize the above functions, the above electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0169] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0170] In the case of dividing each functional module into corresponding functional modules, refer to Figure 6 As shown, an embodiment of the present application provides an electronic device, which can implement the dimming method provided in the above embodiment. The electronic device 600 can include an acquisition module 601, a first determination module 602, a second determination module 603 and a brightness adjustment module 604.

[0171] The acquisition module 601 is used to acquire a first brightness value corresponding to each backlight order among a plurality of backlight orders;

[0172] A first determining module 602, configured to determine the number of second brightness values ​​to be inserted between adjacent first brightness values ​​based on adjacent first brightness values ​​corresponding to adjacent backlight orders in a plurality of backlight orders;

[0173] A second determination module 603, configured to determine each second brightness value and a grayscale adjustment parameter corresponding to each second brightness value based on a plurality of adjacent first brightness values ​​when the number of second brightness values ​​to be inserted is greater than or equal to a preset number;

[0174] The brightness adjustment module 604 is used to adjust the brightness of the display screen of the electronic device based on each second brightness value and the grayscale adjustment parameter corresponding to each second brightness value.

[0175] Optionally, the first determination module 602 is specifically configured to determine a brightness change value between adjacent first brightness values ​​corresponding to adjacent backlight orders; and determine the number of second brightness values ​​to be inserted between adjacent first brightness values ​​based on multiple brightness change values ​​and adjacent first brightness values.

[0176] Optionally, adjacent first brightness values ​​include a third brightness value and a fourth brightness value, the third brightness value is greater than the fourth brightness value, and the first determination module 602 is specifically used to determine the brightness difference between the third brightness value and the fourth brightness value; based on a first ratio of the brightness difference to the fourth brightness value, determine the brightness change value.

[0177] Optionally, the first determination module 602 is specifically configured to determine a brightness change step length based on multiple brightness change values; and determine the number of second brightness values ​​to be inserted between adjacent first brightness values ​​based on the brightness change step length and adjacent first brightness values.

[0178] Optionally, the first determination module 602 is specifically configured to determine a second ratio of the third brightness value to the fourth brightness value; and determine the number of second brightness values ​​to be inserted between adjacent first brightness values ​​based on the second ratio and the brightness change step.

[0179] Optionally, the second determination module 603 is specifically used to determine the brightness change step based on multiple brightness change values; determine each second brightness value based on the brightness change step and the fourth brightness value; and determine the grayscale adjustment parameter corresponding to each second brightness value based on each second brightness value and the third brightness value.

[0180] Optionally, adjacent first brightness values ​​include a third brightness value and a fourth brightness value, and the third brightness value is greater than the fourth brightness value; the brightness adjustment module 604 is specifically used to determine the backlight adjustment parameters corresponding to each second brightness value based on the backlight order corresponding to the third brightness value; based on each second brightness value, the backlight adjustment parameters corresponding to each second brightness value and the grayscale adjustment parameters corresponding to each second brightness value, the brightness of the display screen of the electronic device is adjusted.

[0181] Optionally, the brightness adjustment module 604 is specifically used to obtain a target brightness value; determine a target backlight adjustment parameter corresponding to the target brightness value from the backlight adjustment parameters corresponding to each second brightness value; determine a target grayscale adjustment parameter corresponding to the target brightness value from the grayscale adjustment parameters corresponding to each second brightness value; write the target backlight adjustment parameter into a screen register corresponding to the backlight of the electronic device, pass the target grayscale adjustment parameter to a corresponding image processing module in the electronic device, and adjust the brightness of the display screen of the electronic device accordingly.

[0182] Regarding the electronic device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the information display method in the above embodiment, and will not be elaborated here. The relevant beneficial effects can also refer to the relevant beneficial effects of the above information display method, and will not be repeated here.

[0183] The present application also provides an electronic device, which includes: a display screen, a memory, and one or more processors; the display screen, the memory, and the processor are coupled; wherein the memory stores a computer program code, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the dimming method provided in the above embodiment. The specific structure of the electronic device can be referred to Figure 1 The structure of the electronic device shown in .

[0184] An embodiment of the present application further provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the dimming method provided in the above embodiment.

[0185] An embodiment of the present application further provides a computer program product, which includes executable instructions. When the computer program product is run on an electronic device, the electronic device executes the dimming method provided in the aforementioned embodiment.

[0186] The present application also provides a chip system, such as Figure 7 As shown, the chip system 700 includes at least one processor 701 and at least one interface circuit 702. The processor 701 and the interface circuit 702 can be interconnected through a line. For example, the interface circuit 702 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 702 can be used to send signals to other devices (such as the processor 701).

[0187] Exemplarily, the interface circuit 702 can read the instruction stored in the memory and send the instruction to the processor 701. When the instruction is executed by the processor 701, the electronic device can execute each step in the above embodiment. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiment of the present application.

[0188] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0189] In the several embodiments provided in the present application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0190] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0191] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0192] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0193] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A dimming method, characterized in that: Applied to electronic equipment, the method comprises: Obtaining a first brightness value corresponding to each backlight order among a plurality of backlight orders; Determining the number of second brightness values ​​to be inserted between adjacent first brightness values ​​based on adjacent first brightness values ​​corresponding to adjacent backlight orders in the plurality of backlight orders; When the number of the second brightness values ​​to be inserted is greater than or equal to a preset number, determining each of the second brightness values ​​and a grayscale adjustment parameter corresponding to each of the second brightness values ​​based on a plurality of adjacent first brightness values; The brightness of the display screen of the electronic device is adjusted based on each of the second brightness values ​​and the grayscale adjustment parameters corresponding to each of the second brightness values.

2. The method according to claim 1, characterized in that The determining, based on adjacent first brightness values ​​corresponding to adjacent backlight orders in the plurality of backlight orders, the number of second brightness values ​​to be inserted between the adjacent first brightness values ​​comprises: Determine a brightness change value between adjacent first brightness values ​​corresponding to the adjacent backlight orders; Based on the plurality of brightness change values ​​and the adjacent first brightness values, the number of second brightness values ​​to be inserted between the adjacent first brightness values ​​is determined.

3. The method according to claim 2, characterized in that The adjacent first brightness values ​​include a third brightness value and a fourth brightness value, the third brightness value is greater than the fourth brightness value, and the determining of the brightness change value between the adjacent first brightness values ​​corresponding to the adjacent backlight orders includes: determining a brightness difference between the third brightness value and the fourth brightness value; The brightness change value is determined based on a first ratio of the brightness difference value to the fourth brightness value.

4. The method according to claim 3, characterized in that: The step of determining the number of second brightness values ​​to be inserted between the adjacent first brightness values ​​based on the plurality of brightness change values ​​and the adjacent first brightness values ​​comprises: Determining a brightness change step size based on the plurality of brightness change values; Based on the brightness change step size and the adjacent first brightness values, the number of second brightness values ​​to be inserted between the adjacent first brightness values ​​is determined.

5. The method according to claim 4, characterized in that The determining, based on the brightness change step and the adjacent first brightness values, the number of second brightness values ​​to be inserted between the adjacent first brightness values ​​comprises: determining a second ratio of the third brightness value to the fourth brightness value; The number of second brightness values ​​to be inserted between the adjacent first brightness values ​​is determined based on the second ratio and the brightness change step.

6. The method according to claim 2, characterized in that The adjacent first brightness values ​​include a third brightness value and a fourth brightness value, the third brightness value is greater than the fourth brightness value, and the determining of each of the second brightness values ​​and a grayscale adjustment parameter corresponding to each of the second brightness values ​​includes: Determining a brightness change step size based on the plurality of brightness change values; Determine each of the second brightness values ​​based on the brightness change step and the fourth brightness value; Based on each of the second brightness values ​​and the third brightness value, a grayscale adjustment parameter corresponding to each of the second brightness values ​​is determined.

7. The method according to any one of claims 1 to 6, characterized in that: The adjacent first brightness values ​​include a third brightness value and a fourth brightness value, the third brightness value is greater than the fourth brightness value, and the adjusting the brightness of the display screen of the electronic device based on each of the second brightness values ​​and the grayscale adjustment parameters corresponding to each of the second brightness values ​​includes: Determining, based on the backlight order corresponding to the third brightness value, a backlight adjustment parameter corresponding to each of the second brightness values; The brightness of the display screen of the electronic device is adjusted based on each of the second brightness values, the backlight adjustment parameters corresponding to each of the second brightness values, and the grayscale adjustment parameters corresponding to each of the second brightness values.

8. The method according to claim 7, characterized in that The step of adjusting the brightness of the display screen of the electronic device based on each of the second brightness values, the backlight adjustment parameters corresponding to each of the second brightness values, and the grayscale adjustment parameters corresponding to each of the second brightness values ​​includes: Get the target brightness value; Determining a target backlight adjustment parameter corresponding to the target brightness value from the backlight adjustment parameters corresponding to each of the second brightness values; Determine a target grayscale adjustment parameter corresponding to the target brightness value from the grayscale adjustment parameters corresponding to each of the second brightness values; The target backlight adjustment parameter is written into a screen register corresponding to the backlight of the electronic device, and the target grayscale adjustment parameter is transmitted to a corresponding image processing module in the electronic device to adjust the brightness of the display screen of the electronic device accordingly.

9. An electronic device, characterized in that: It includes a display screen, a memory and one or more processors; the display screen and the memory are coupled to the processor; wherein the memory stores computer program code, the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the dimming method as described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the dimming method as claimed in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method for adjusting backlight brightness levels, mobile terminal and storage medium

    CN107146581A

  • Brightness calibration method, brightness calibration device, electronic equipment and storage medium

    CN114420071A

  • Display brightness adjusting method and device, electronic equipment and computer readable storage medium

    CN114639356A

  • Method for determining gray-scale value, chip, electronic equipment and readable storage medium

    CN117133215A

  • Display panel brightness adjusting method and device, electronic equipment and storage medium

    CN117456935A