CN114596819A - Brightness adjusting method and related device - Google Patents

Brightness adjusting method and related device Download PDF

Info

Publication number
CN114596819A
CN114596819A CN202210244184.0A CN202210244184A CN114596819A CN 114596819 A CN114596819 A CN 114596819A CN 202210244184 A CN202210244184 A CN 202210244184A CN 114596819 A CN114596819 A CN 114596819A
Authority
CN
China
Prior art keywords
display brightness
levels
brightness level
level
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210244184.0A
Other languages
Chinese (zh)
Other versions
CN114596819B (en
Inventor
刘旺龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210244184.0A priority Critical patent/CN114596819B/en
Publication of CN114596819A publication Critical patent/CN114596819A/en
Application granted granted Critical
Publication of CN114596819B publication Critical patent/CN114596819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a brightness adjusting method and a related device, which are applied to electronic equipment, wherein the method comprises the following steps: acquiring a current display brightness grade, wherein the electronic equipment comprises N display brightness grades, the current display brightness grade is any one of the N display brightness grades, and N is an integer greater than 1; when the current display brightness level is lower than a preset threshold value, determining a target display brightness level corresponding to the current display brightness level, wherein the target display brightness level is an expansion level corresponding to the current display brightness level; and adjusting the backlight brightness according to the target display brightness level. By adopting the embodiment of the application, the backlight shaking phenomenon can be avoided in the backlight brightness adjusting process in the low-brightness interval.

Description

Brightness adjusting method and related device
Technical Field
The present disclosure relates to the field of display technologies, and in particular, to a method and a related device for adjusting brightness.
Background
With the widespread use of electronic devices (such as mobile phones, tablet computers, and the like), the applications that can be supported by electronic devices are increasing, the functions are becoming more and more powerful, and the electronic devices are developing towards diversification and personalization directions, and becoming indispensable electronic articles for use in the life of users.
At present, backlight adjustment technology is also commonly used as a basic function of electronic devices. However, taking a mobile phone as an example, the backlight scheme is basically in what state provided by a screen provider, and a mobile phone manufacturer directly uses the backlight scheme, but a user may find that the backlight jitter phenomenon occurs when dragging a luminance bar in a low luminance interval. Therefore, how to avoid the backlight jitter phenomenon in the backlight brightness adjustment process in the low-brightness interval is urgently needed to be solved.
Disclosure of Invention
The embodiment of the application provides a brightness adjusting method and a related device, which can avoid the backlight jitter phenomenon in the backlight brightness adjusting process of a low-brightness interval.
In a first aspect, an embodiment of the present application provides a brightness adjustment method applied to an electronic device, where the method includes:
acquiring a current display brightness grade, wherein the electronic equipment comprises N display brightness grades, the current display brightness grade is any one of the N display brightness grades, and N is an integer greater than 1;
when the current display brightness level is lower than a preset threshold value, determining a target display brightness level corresponding to the current display brightness level, wherein the target display brightness level is an expansion level corresponding to the current display brightness level;
and adjusting the backlight brightness according to the target display brightness level.
In a second aspect, an embodiment of the present application provides a brightness adjustment apparatus applied to an electronic device, where the apparatus includes: an acquisition unit, an expansion unit and an adjustment unit, wherein,
the acquisition unit is used for acquiring a current display brightness level, the electronic device comprises N display brightness levels, the current display brightness level is any one of the N display brightness levels, and N is an integer greater than 1;
the expansion unit is used for determining a target display brightness level corresponding to the current display brightness level when the current display brightness level is lower than a preset threshold value, wherein the target display brightness level is an expansion level corresponding to the current display brightness level;
and the adjusting unit is used for adjusting the backlight brightness according to the target display brightness level.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, and a memory, where the memory is configured to store one or more programs and is configured to be executed by the processor, and the program includes instructions for performing some or all of the steps described in the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, the present application provides a computer program product, where the computer program product includes a computer program operable to cause a computer to perform some or all of the steps as described in the first aspect of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that the brightness adjustment method and the related apparatus described in the embodiments of the present application are applied to an electronic device to obtain a current display brightness level, where the electronic device includes N display brightness levels, the current display brightness level is any one of the N display brightness levels, and N is an integer greater than 1; when the current display brightness level is lower than a preset threshold value, determining a target display brightness level corresponding to the current display brightness level, wherein the target display brightness level is an expansion level corresponding to the current display brightness level; and backlight brightness adjustment is carried out according to the target display brightness grade, and grade quantity expansion is carried out on the display brightness grade in the backlight brightness adjustment process of a low-brightness interval, so that fine and smooth transition between adjacent display brightness grades is realized, further, the backlight shaking phenomenon is avoided, and the improvement of user experience is facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a software structure of an electronic device according to an embodiment of the present application;
fig. 3A is a schematic flowchart of a brightness adjustment method according to an embodiment of the present application;
fig. 3B is a schematic diagram illustrating a brightness adjustment method according to an embodiment of the present application;
FIG. 3C is a schematic illustration of an exemplary level number extension provided by an embodiment of the present disclosure;
FIG. 3D is another illustrative diagram of an extension of the number of levels provided by an embodiment of the present application;
FIG. 3E is another illustrative diagram of an extension of the number of levels provided by an embodiment of the present application;
fig. 4 is a schematic flowchart of another brightness adjustment method provided in the embodiment of the present application;
fig. 5 is a schematic flowchart of another brightness adjustment method provided in the embodiment of the present application;
fig. 6 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 7 is a block diagram of functional units of a brightness adjusting apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
In order to better understand the scheme of the embodiments of the present application, the following first introduces the related terms and concepts that may be involved in the embodiments of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
In specific implementation, in this embodiment of the application, the electronic device may include various devices having a computer function, for example, a handheld device (a smart phone, a tablet computer, etc.), a vehicle-mounted device (a navigator, an auxiliary car backing system, a car recorder, a vehicle-mounted refrigerator, etc.), a wearable device (a smart bracelet, a wireless headset, a smart watch, smart glasses, etc.), a computing device or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), a Mobile Station (MS), a virtual reality/augmented reality device, a terminal device (terminal device), etc., where the electronic device may also be a base Station or a server.
The electronic device may further include an intelligent home device, and the intelligent home device may be at least one of: intelligent audio amplifier, intelligent camera, intelligent electric rice cooker, intelligent wheelchair, intelligent massage armchair, intelligent furniture, intelligent dish washer, intelligent TV set, intelligent refrigerator, intelligent electric fan, intelligent room heater, intelligent clothes hanger that dries in the air, intelligent lamp, intelligent router, intelligent switch, intelligent flush mounting plate, intelligent humidifier, intelligent air conditioner, intelligent door, intelligent window, intelligent top of a kitchen range, intelligent sterilizer, intelligent closestool, the robot etc. of sweeping the floor do not restrict here.
In a first section, the software and hardware operating environment of the technical solution disclosed in the present application is described as follows.
As shown, fig. 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charge 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 compass 190, a motor 191, a pointer 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an application processor AP, a modem processor, a graphics processor GPU, an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural network processor NPU, among others. Wherein the different processing units may be separate components or may be integrated in one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to complete the control of instruction fetching and instruction execution. In other embodiments, a memory may also be provided in processor 110 for storing instructions and data. Illustratively, the memory in the processor 110 may be a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from memory. This avoids repeated accesses and reduces the latency of the processor 110, thereby increasing the efficiency with which the electronic device 100 processes data or executes instructions. The processor may also include an image processor, which may be an image Pre-processor (Pre-ISP), which may be understood as a simplified ISP, which may also perform some image processing operations, e.g. may obtain image statistics.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit audio (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 SIM card interface, a USB interface, and/or the like. The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. The USB interface 130 may also be used to connect to a headset to play audio through the headset.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
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 charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G/6G, etc. applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (blue tooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an 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 alter display information.
The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (mini-light-emitting diode, mini), a Micro-o led, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or more display screens 194.
The electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or more cameras 193.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may execute the above-mentioned instructions stored in the internal memory 121, so as to enable the electronic device 100 to execute the method for displaying page elements provided in some embodiments of the present application, and various applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system; the storage program area may also store one or more applications (e.g., gallery, contacts, etc.), and the like. The storage data area may store data (e.g., photos, contacts, etc.) created during use of the electronic device 100, and the like. Further, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage components, flash memory components, Universal Flash Storage (UFS), and the like. In some embodiments, the processor 110 may cause the electronic device 100 to perform the method for displaying page elements provided in the embodiments of the present application, and other applications and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor 110. The electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. Such as music playing, recording, etc.
The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., X, Y and the Z axis) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the electronic device 100 at a different position than the display screen 194.
Fig. 2 shows a block diagram of a software structure of the electronic device 100. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom. The application layer may include a series of application packages.
As shown in fig. 2, the application layer may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (media libraries), three-dimensional graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
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 a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
In the second section, the brightness adjusting method and the related apparatus disclosed in the embodiments of the present application are described as follows.
Referring to fig. 3A, fig. 3A is a schematic flow chart of a brightness adjustment method according to an embodiment of the present application, where as shown in the figure, the brightness adjustment method includes:
301. the method comprises the steps of obtaining a current display brightness grade, wherein the electronic equipment comprises N display brightness grades, the current display brightness grade is any one of the N display brightness grades, and N is an integer larger than 1.
In a specific implementation, a current display brightness level may be obtained, for example, the current display brightness level may be a display brightness level when the display screen is started, or may be any brightness level in a brightness adjustment process.
In this embodiment, the electronic device may include N display brightness levels, and the current display brightness level may be any one of the N display brightness levels, where N is an integer greater than 1.
In a specific implementation, since the N display brightness levels are related to the hardware attributes of the display screen itself, they may also be referred to as physical levels or hardware levels. I.e., each of the N display brightness levels may correspond to a physical level or a hardware level.
302. And when the current display brightness level is lower than a preset threshold value, determining a target display brightness level corresponding to the current display brightness level, wherein the target display brightness level is an expansion level corresponding to the current display brightness level.
In specific implementation, different display screens may correspond to different preset thresholds, that is, mapping relationships between attribute information of the preset display screens and the preset thresholds may be stored in advance, and then the preset thresholds corresponding to the attribute information of the display screens of the electronic devices may be determined based on the mapping relationships. The attribute information may include at least one of: the type of the display screen, the size of the display screen, the material of the display screen, etc., are not limited herein.
Optionally, in the step 302, determining the target display brightness level corresponding to the current display brightness level may include the following steps:
21. expanding the grade number of the display brightness grades in a preset interval range to obtain M display brightness grades, wherein the preset interval range comprises the current display brightness grade, and M is an integer greater than 1;
22. and determining the target display brightness level corresponding to the current display brightness level according to the M display brightness levels.
In a specific implementation, the preset interval range may include a current display brightness level, and the current display brightness level may be an upper limit value or a lower limit value of the preset interval range or a display brightness level between the lower limit value and the upper limit value. Specifically, the preset interval range may include at least two display brightness levels, for example, when the current display brightness level is 4, the preset interval range may be 4 to 5, for example, when the current display brightness level is 4, the preset interval range may be 0 to 300, for example, when the current display brightness level is 4, the preset interval range may be 0 to 4. Specifically, the preset interval range may include some or all of the N display luminance levels, for example, the preset interval range may include the display luminance levels of the low luminance interval.
Specifically, when the current display brightness level is lower than the preset threshold, it indicates that the current display brightness is in a low brightness region, and in order to avoid a backlight jitter phenomenon, the display brightness level in the preset interval range may be subjected to level number expansion to obtain M display brightness levels, where the M display brightness levels may satisfy a monotonic characteristic (e.g., monotonically increasing), and the M display brightness levels may implement smooth and fine transition of brightness. Furthermore, the target display brightness level corresponding to the current display brightness level may be determined according to the M display brightness levels in an automatic backlight adjustment manner or a manual backlight adjustment manner, for example, in the automatic backlight adjustment manner, one of the M display brightness levels may be automatically determined to be the target display brightness level corresponding to the current display brightness level, and in the manual backlight adjustment manner, one of the M display brightness levels may be determined to be the target display brightness level corresponding to the current display brightness level according to a user selection.
For example, taking the electronic device of the OLED screen as an example, because the OLED screen is driven by current to emit light, as shown in fig. 3B, in the case of automatic backlight adjustment, under the action of the hardware adjustment driving current module, the brightness bar can be dragged, and Different (DBV) gradation values corresponding to different positions can be realized, so that the screen brightness changes. In the low brightness interval, the current difference between adjacent levels DBV is small, which causes the brightness instability due to the sensitive fluctuation of the current and the brightness jitter when the level DBV is cut rapidly. For example, in practical applications, problems are likely to occur at about 300 levels under 2047-level backlight, problems are likely to occur at about 450 levels under 3515-level backlight, and further, in the embodiment of the present application, the number of levels of display luminance levels in a low luminance interval is expanded, so that fine and smooth transition of backlight luminance is realized in a process of dragging a luminance bar or automatically adjusting backlight.
Optionally, in step 21, performing level number expansion on the display brightness levels in the preset interval range to obtain the M display brightness levels, which may be implemented as follows:
and performing grade number expansion on the display brightness grades in the preset interval range according to the polynomial color calibration matrix PCC parameters to obtain M display brightness grades.
In specific implementation, partial or all display brightness levels in the original N display brightness levels may be divided more finely based on the polynomial color calibration matrix PCC parameters, and since the display brightness level change in the preset interval range is based on the gamma parameter change, the PCC parameters may be inferred reversely by the gamma parameters, and finally, the display brightness levels may be expanded in number of levels based on the PCC parameters.
Further, in the above step, performing level number expansion on the display luminance levels in the preset interval range according to the polynomial color calibration matrix PCC parameter to obtain the M display luminance levels, the method may include the following steps:
211. determining a lower limit value and an upper limit value of the preset interval range;
212. determining a first gamma parameter corresponding to the lower limit value and a second gamma parameter corresponding to the upper limit value;
213. acquiring a gamma curve segment between the first gamma parameter and the second gamma parameter;
214. uniformly sampling the gamma curve segment to obtain M points, wherein each point corresponds to a gamma parameter;
215. determining a polynomial color calibration matrix (PCC) parameter of each point according to the gamma parameters of the M points to obtain M PCC parameters;
216. and performing grade number expansion on the display brightness grades in the preset interval range according to the M PCC parameters to obtain the M display brightness grades.
In specific implementation, the electronic device may pre-configure a gamma curve, where a horizontal axis of the gamma curve is a display brightness level and a vertical axis of the gamma curve is a gamma parameter. The gamma curve may be any gamma curve, for example, the gamma curve may be a gamma curve obtained by gamma 2.1 theory, and for example, the gamma curve may be a gamma curve obtained by gamma 2.2 theory, and for example, the gamma curve may be a gamma curve obtained by gamma 2.3 theory, and so on, which are not limited herein.
Specifically, a lower limit value and an upper limit value of a preset interval range may be determined, the lower limit value may correspond to one display brightness level, the upper limit value may also correspond to one display brightness level, based on the gamma curve, a first gamma parameter corresponding to the lower limit value and a second gamma parameter corresponding to the upper limit value may be determined, and then a gamma curve segment between the first gamma parameter and the second gamma parameter may be obtained.
Further, the gamma curve segment can be uniformly sampled to obtain M points, each point corresponds to one gamma parameter, and each point corresponds to one display brightness level. The method comprises the steps of determining a polynomial color calibration matrix (PCC) parameter of each point according to the gamma parameter of the M points to obtain M PCC parameters, and finally, performing grade quantity expansion on display brightness levels in a preset interval range according to the M PCC parameters to obtain M display brightness levels, so that smooth and fine transition of the M display brightness levels can be realized to avoid the backlight jitter phenomenon.
Further, optionally, in step 216, performing level number expansion on the display brightness levels in the preset interval range according to the M PCC parameters to obtain the M display brightness levels, may include the following steps:
2161. determining display brightness levels corresponding to the preset interval range to obtain P display brightness levels, wherein P is a positive integer less than or equal to N;
2162. determining a PCC parameter corresponding to each display brightness level in the P display brightness levels to obtain P groups of PCC parameters, wherein each group of PCC parameters comprises M/P PCC parameters;
2163. determining a product between each display brightness level in the P display brightness levels and a PCC parameter in a corresponding group of PCC parameters to obtain a P group product;
2164. determining the M display brightness levels according to the P groups of products.
In a specific implementation, some or all display brightness levels corresponding to the preset interval range may be determined to obtain P display brightness levels, where P is a positive integer less than or equal to N. Further, the PCC parameters corresponding to each of the P display brightness levels may be determined to obtain P sets of PCC parameters, each set of PCC parameters includes M/P PCC parameters, for example, the expansion may be performed between adjacent display brightness levels, specifically, the corresponding gamma curve can be uniformly sampled to obtain a plurality of sampling points, the PCC parameters corresponding to each point are determined, further, a product between each of the P display brightness levels and the PCC parameters of the corresponding set of PCC parameters may be determined to obtain P sets of products, and finally, M display brightness levels may be determined based on the P sets of products, that is, each product corresponds to a display brightness level, and each display brightness level of the M display brightness levels is an expanded (software-processed) display brightness level, which may also be referred to as a software level.
Optionally, in the step 214, the uniformly sampling the gamma curve segment to obtain M points may include the following steps:
2141. intercepting the gamma curve segments to obtain at least one curve segment, wherein the end point of each curve segment in the at least one curve segment corresponds to a display brightness level;
2142. and uniformly sampling the at least one curve segment to obtain the M points.
In specific implementation, the cut-out operation can be performed on the gamma curve segment, and then at least one curve segment can be obtained, the end point of each curve segment in the at least one curve segment corresponds to one display brightness level, taking the gamma curve segment corresponding to the display brightness level 4-10 as an example, a complete curve segment between the display brightness levels 4-10 can be directly cut out, a curve segment between the display brightness levels 4-5 can be cut out, and a curve segment between the display brightness levels 7-10 can be cut out, and then the uniform sampling can be performed on the at least one curve segment, so as to obtain M points, wherein the gamma parameters of adjacent points in the M points are different. The at least one curved segment may include one or more curved segments, which may be continuous or intermittent curved segments.
For example, if the user wants to adjust the display brightness levels between 4 and 5, a curve segment corresponding to the display brightness levels between 4 and 5 may be obtained, and an end point of the curve segment corresponds to one display brightness level, so that the number of levels between 4 and 5 may be expanded.
For example, as shown in fig. 3C, for the case of no-jump physical level debugging, that is, for the case of a single refresh rate and/or multiple refresh rates but inconsistent level and brightness trends, for example, the actual hardware level 4, 5, 6,. gtoreq.2046, 2047\4, 5, 6,. gtoreq.3514 \3515 may be multiplied by a PCC coefficient according to the actual hardware level, for example, 4 × 0.95, which may correspond to the expanded hardware level 4, and so on, which may be expanded to 4, 5, 6,. gtoreq.8191, 8192, and so on.
For another example, as shown in fig. 3D, for the case of jump physical level debugging, that is, for the case of multiple refresh rates but inconsistent levels and brightness trends, for example, the actual hardware level 4, 5, 6, 0, 2046, 2047\4, 5, 6, 0, 3514\3515 may be multiplied by a PCC coefficient according to the actual hardware level, for example, 4 × 0.95, it may correspond to the expanded hardware level 4, and so on, it may be expanded to 4, 5, 6, 0.,. 8191, 8192, and so on. For another example, since the physical level debugging is performed, the jump from 4 to 7 can be directly performed, and then 7 × 0.85 can correspond to the expanded hardware level 10.
In the embodiment of the present application, the actual hardware level refers to the 2047, 3515, 4096 levels, and the like, which are 2047, 3515, 4096 brightness levels that can be actually separated by pure screen hardware, and based on this, the hardware level with low brightness can be separated into more levels, that is, software levels, and the software level is a level obtained by compression fitting of the hardware level and the content of the PCC, so that the level from 0 to 300 or the level from 0 to 450 can be expanded to 2000, 3000, 4000, or even higher. The principle of expansion is that the low-brightness interval of the final software fitting grade accords with the increasing rule of gamma which is the power of 2.2.
For another example, as shown in fig. 3E, the parameters for PCC coefficient adjustment are strongly related to the gamma of the current hardware level DBV, and the parameters need to be adjusted according to the gamma value, so that the brightness value does not reverse and the brightness is smooth. For example, using 7 hardware levels, what is calculated by the theory of gamma 2.2 is that the PCC is 0.85, which can be connected to the brightness of hardware level 4 x 1, but it actually appears that the brightness of 7 x 0.85 is too bright or too dark, and at this time, the connection point appears brightness jitter, even the screen flickers, and at this time, it is necessary to calculate the PCC values of 0.84 and 0.86 respectively according to the gamma of the actual screen, and at this time, the brightness of current 7 hardware levels is 2.1 or 2.3, and the brightness of current 7 hardware levels can be well connected to the brightness of hardware level 4 x 1 according to gamma 2.1 or gamma 2.3, so that the brightness of 7 x 0.84 or 7 x 0.86 can be well connected to the brightness of hardware level 4 x 1, and thus, the other levels are very smooth and fine, and so on.
Optionally, in the step 22, determining the target display brightness level corresponding to the current display brightness level according to the M display brightness levels may include the following steps:
a221, displaying the M display brightness levels on a brightness bar;
a222, receiving a dragging instruction aiming at the brightness bar;
and A223, responding to the dragging instruction, and determining the target display brightness level selected by the user.
In the specific implementation, the situation of manual backlight adjustment is specified, M display brightness levels can be displayed on the brightness bar, the user can drag the brightness bar, and then can receive a dragging instruction for the brightness bar, and in response to the dragging instruction, the target display brightness level selected by the user is determined, the target display brightness level is one of the M display brightness levels, and then the current display brightness level can be adjusted to the target display brightness level, so that the display brightness level is gradually changed in the dragging process, and the different levels can be in very smooth and fine transition, and further, the backlight jitter phenomenon is avoided, and therefore the user experience is improved.
Optionally, in the step 22, determining the target display brightness level corresponding to the current display brightness level according to the M display brightness levels may include the following steps:
b221, acquiring target environment parameters;
and B222, determining the target display brightness level corresponding to the target environment parameter, wherein the target display brightness level is one of the M display brightness levels.
In an embodiment of the present application, the environmental parameter may include at least one of: the environmental brightness, the environmental color temperature, the environmental humidity, the weather, the geographic location, the magnetic field interference parameter, and the like, which are not limited herein, may be stored in advance in a mapping relationship between the preset environmental parameter and the display brightness level.
In the specific implementation, in the case of automatic backlight adjustment, a target environment parameter may be obtained, and then a target display brightness level corresponding to the target environment parameter is determined according to a mapping relationship between a pre-stored preset environment parameter and a display brightness level, where the target display brightness level is one of M display brightness levels, and then a display brightness level suitable for the environment may be obtained, and further, a current display brightness level may be adjusted to the target display brightness level. In the case of automatic backlight adjustment, the luminance bar may or may not be displayed.
Therefore, in the process of the manual backlight adjustment and the automatic backlight adjustment, the manual dragging brightness and the automatic brightness can be in fine and smooth transition, and the user experience is greatly improved.
303. And adjusting the backlight brightness according to the M display brightness levels.
In specific implementation, the backlight brightness can be adjusted according to the M display brightness levels under the condition of manual backlight adjustment or automatic backlight adjustment, and in the process of dragging the brightness bar, different positions can correspond to one display brightness level in the M display brightness levels. In the backlight brightness adjusting process of the low-brightness interval, the display brightness grades are subjected to grade quantity expansion, fine and smooth transition between adjacent display brightness grades is realized, the backlight shaking phenomenon is avoided, and the improvement of user experience is facilitated.
Optionally, the method may further include the following steps:
and when the current display brightness level is greater than or equal to the preset threshold value, carrying out backlight brightness adjustment according to the N display brightness levels.
In a specific implementation, when the current display brightness level is greater than or equal to the preset threshold, it is indicated that backlight adjustment is not performed for the low-brightness interval, and backlight brightness adjustment may be performed according to the N display brightness levels, that is, in the case of manual backlight adjustment, as long as the adjusted display brightness level is greater than or equal to the preset threshold, a backlight jitter phenomenon may not occur. Similarly, in the case of automatic backlight adjustment, as long as the adjusted display brightness level is greater than or equal to the preset threshold, the backlight jitter phenomenon will not occur.
In the embodiment of the application, aiming at the problem of brightness level under a low display brightness level DBV, the display brightness level is realized in a software mode to expand the level number, so that the brightness of the low-level DBV is smoother, the problem of low brightness jitter is solved, and therefore, fine and smooth transition of manual brightness dragging and automatic brightness can be realized, and the user experience is greatly improved.
In the embodiment of the application, the software level is called, and the level obtained by compression fitting of the hardware level and the content of the PCC is used, for example, the level from 0 to 300 or the level from 0 to 450 can be expanded to 2000, 3000, 4000 or even higher. The principle of expansion is that the low-brightness interval of the final software fitting grade conforms to the increasing rule of gamma theory (such as gamma raised to the power of 2.2). And the content of the PCC coefficient is adjusted in a constructive combination with the gamma parameter of the hardware level, and finally, the fine and smooth transition of the manual dragging brightness and the automatic brightness is shown.
It can be seen that the brightness adjustment method described in the embodiment of the present application is applied to an electronic device to obtain a current display brightness level, where the electronic device includes N display brightness levels, the current display brightness level is any one of the N display brightness levels, and N is an integer greater than 1; when the current display brightness level is lower than a preset threshold value, determining a target display brightness level corresponding to the current display brightness level, wherein the target display brightness level is an expansion level corresponding to the current display brightness level; and backlight brightness adjustment is carried out according to the target display brightness grade, and grade quantity expansion is carried out on the display brightness grade in the backlight brightness adjustment process of a low-brightness interval, so that fine and smooth transition between adjacent display brightness grades is realized, further, the backlight shaking phenomenon is avoided, and the improvement of user experience is facilitated.
Referring to fig. 4 in a manner consistent with the embodiment shown in fig. 3A, fig. 4 is a schematic flowchart of a brightness adjusting method provided in an embodiment of the present application, and the brightness adjusting method is applied to an electronic device, and as shown in the diagram, the brightness adjusting method includes:
401. the method comprises the steps of obtaining a current display brightness grade, wherein the electronic equipment comprises N display brightness grades, the current display brightness grade is any one of the N display brightness grades, and N is an integer larger than 1.
402. And when the current display brightness level is lower than a preset threshold value, performing level quantity expansion on the display brightness level in a preset interval range to obtain M display brightness levels, wherein the preset interval range comprises the current display brightness level, and M is an integer greater than 1.
403. The M display brightness levels are shown on a brightness bar.
404. Receiving a drag instruction for the luma bar.
405. And responding to the dragging instruction, and determining the display brightness level of the target selected by the user.
406. And adjusting the current display brightness level to the target display brightness level.
For the detailed description of steps 401 to 406, reference may be made to corresponding steps of the brightness adjustment method shown in fig. 3A, which are not described herein again.
It can be seen that the brightness adjustment method described in the embodiment of the present application is applied to an electronic device to obtain a current display brightness level, where the electronic device includes N display brightness levels, the current display brightness level is any one of the N display brightness levels, and N is an integer greater than 1; when the current display brightness level is lower than a preset threshold value, performing level quantity expansion on the display brightness level in a preset interval range to obtain M display brightness levels, wherein the preset interval range comprises the current display brightness level, and M is an integer greater than 1; displaying M display brightness levels on the brightness bar; receiving a dragging instruction for a brightness bar; responding to the dragging instruction, and determining the target display brightness level selected by the user; the current display brightness level is adjusted to the target display brightness level, in the backlight brightness adjusting process of the low-brightness interval, the display brightness level is subjected to level quantity expansion, the display brightness level is gradually changed in the dragging process, and therefore smooth and fine transition can be achieved between different levels, the backlight shaking phenomenon is avoided, and the user experience is improved.
Referring to fig. 5 in a manner consistent with the embodiment shown in fig. 3A, fig. 5 is a flowchart illustrating a brightness adjusting method provided in an embodiment of the present application, and the brightness adjusting method is applied to an electronic device, where as shown in the diagram, the brightness adjusting method includes:
501. the method comprises the steps of obtaining a current display brightness grade, wherein the electronic equipment comprises N display brightness grades, the current display brightness grade is any one of the N display brightness grades, and N is an integer larger than 1.
502. And when the current display brightness level is lower than a preset threshold value, performing level quantity expansion on the display brightness level in a preset interval range to obtain M display brightness levels, wherein the preset interval range comprises the current display brightness level, and M is an integer greater than 1.
503. And acquiring target environment parameters.
504. And determining a target display brightness level corresponding to the target environment parameter, wherein the target display brightness level is one of the M display brightness levels.
505. And adjusting the current display brightness level to the target display brightness level.
For the detailed description of steps 501 to 505, reference may be made to corresponding steps of the brightness adjustment method shown in fig. 3A, which are not described herein again.
It can be seen that the brightness adjustment method described in the embodiment of the present application is applied to an electronic device to obtain a current display brightness level, where the electronic device includes N display brightness levels, the current display brightness level is any one of the N display brightness levels, and N is an integer greater than 1; when the current display brightness level is lower than a preset threshold value, performing level quantity expansion on the display brightness level in a preset interval range to obtain M display brightness levels, wherein the preset interval range comprises the current display brightness level, and M is an integer greater than 1; acquiring target environment parameters; determining a target display brightness level corresponding to the target environment parameter, wherein the target display brightness level is one of the M display brightness levels; the current display brightness level is adjusted to be the target display brightness level, the display brightness level is subjected to level quantity expansion in the backlight brightness adjusting process of a low-brightness interval, the display brightness level is gradually changed in the automatic backlight adjusting process, and therefore smooth and fine transition can be achieved between different levels, and further the backlight shaking phenomenon is avoided, and the user experience is improved.
Referring to fig. 6 in keeping with the above embodiments, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and in an embodiment of the present application, the programs include instructions for performing the following steps:
acquiring a current display brightness grade, wherein the electronic equipment comprises N display brightness grades, the current display brightness grade is any one of the N display brightness grades, and N is an integer greater than 1;
when the current display brightness level is lower than a preset threshold value, determining a target display brightness level corresponding to the current display brightness level, wherein the target display brightness level is an expansion level corresponding to the current display brightness level;
and adjusting the backlight brightness according to the target display brightness level.
Optionally, in the aspect of determining the target display brightness level corresponding to the current display brightness level, the program includes instructions for executing the following steps:
expanding the grade number of the display brightness grades in a preset interval range to obtain M display brightness grades, wherein the preset interval range comprises the current display brightness grade, and M is an integer greater than 1;
and determining the target display brightness level corresponding to the current display brightness level according to the M display brightness levels.
Optionally, in the aspect of expanding the number of levels of the display luminance levels in the preset interval range to obtain M display luminance levels, the program includes instructions for executing the following steps:
and performing grade number expansion on the display brightness grades in the preset interval range according to the polynomial color calibration matrix PCC parameters to obtain the M display brightness grades.
Optionally, in the aspect that the display brightness levels in the preset interval range are subjected to level number expansion according to the polynomial color calibration matrix PCC parameter to obtain the M display brightness levels, the program includes instructions for executing the following steps:
determining a lower limit value and an upper limit value of the preset interval range;
determining a first gamma parameter corresponding to the lower limit value and a second gamma parameter corresponding to the upper limit value;
acquiring a gamma curve segment between the first gamma parameter and the second gamma parameter;
uniformly sampling the gamma curve segment to obtain M points, wherein each point corresponds to a gamma parameter;
determining a polynomial color calibration matrix (PCC) parameter of each point according to the gamma parameters of the M points to obtain M PCC parameters;
and performing grade number expansion on the display brightness grades in the preset interval range according to the M PCC parameters to obtain the M display brightness grades.
Optionally, in the aspect that the number of levels of the display brightness levels in the preset interval range is expanded according to the M PCC parameters to obtain the M display brightness levels, the program includes instructions for executing the following steps:
determining display brightness levels corresponding to the preset interval range to obtain P display brightness levels, wherein P is a positive integer less than or equal to N;
determining a PCC parameter corresponding to each display brightness level in the P display brightness levels to obtain P groups of PCC parameters, wherein each group of PCC parameters comprises M/P PCC parameters;
determining a product between each display brightness level in the P display brightness levels and a PCC parameter in a corresponding group of PCC parameters to obtain P groups of products;
determining the M display brightness levels according to the P groups of products.
Optionally, in the aspect that the gamma curve segment is uniformly sampled according to the gamma curve segment to obtain M points, the program includes instructions for executing the following steps:
intercepting the gamma curve segments to obtain at least one curve segment, wherein the end point of each curve segment in the at least one curve segment corresponds to a display brightness level;
and uniformly sampling the at least one curve segment to obtain the M points.
Optionally, in the aspect of determining the target display brightness level corresponding to the current display brightness level according to the M display brightness levels, the program includes instructions for executing the following steps:
displaying the M display brightness levels on a brightness bar;
receiving a dragging instruction aiming at the brightness bar;
and responding to the dragging instruction, and determining the target display brightness level selected by the user.
Optionally, in the aspect of determining the target display brightness level corresponding to the current display brightness level according to the M display brightness levels, the program includes instructions for executing the following steps:
acquiring target environment parameters;
and determining the target display brightness level corresponding to the target environment parameter, wherein the target display brightness level is one of the M display brightness levels.
Optionally, the program further includes instructions for performing the following steps:
and when the current display brightness level is greater than or equal to the preset threshold value, carrying out backlight brightness adjustment according to the N display brightness levels.
It can be seen that, in the electronic device described in the embodiment of the present application, the current display luminance level is obtained, the electronic device includes N display luminance levels, the current display luminance level is any one of the N display luminance levels, and N is an integer greater than 1; when the current display brightness level is lower than a preset threshold value, determining a target display brightness level corresponding to the current display brightness level, wherein the target display brightness level is an expansion level corresponding to the current display brightness level; and backlight brightness adjustment is carried out according to the target display brightness grade, and grade quantity expansion is carried out on the display brightness grade in the backlight brightness adjustment process of a low-brightness interval, so that fine and smooth transition between adjacent display brightness grades is realized, further, the backlight shaking phenomenon is avoided, and the improvement of user experience is facilitated.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments provided herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 7 is a block diagram showing functional units of a luminance adjusting apparatus 700 according to an embodiment of the present application. The brightness adjusting device 700 is applied to an electronic device, and the device 700 comprises: the device comprises: an acquisition unit 701, an expansion unit 702 and an adjustment unit 703, wherein,
the obtaining unit 701 is configured to obtain a current display brightness level, where the electronic device includes N display brightness levels, the current display brightness level is any one of the N display brightness levels, and N is an integer greater than 1;
the extension unit 702 is configured to determine a target display brightness level corresponding to the current display brightness level when the current display brightness level is lower than a preset threshold, where the target display brightness level is an extension level corresponding to the current display brightness level;
the adjusting unit 703 is configured to perform backlight brightness adjustment according to the target display brightness level.
Optionally, in the aspect of determining the target display brightness level corresponding to the current display brightness level, the extension unit 702 is specifically configured to:
expanding the number of levels of the display brightness levels in a preset interval range to obtain M display brightness levels, wherein the preset interval range comprises the current display brightness level, and M is an integer greater than 1;
and determining the target display brightness level corresponding to the current display brightness level according to the M display brightness levels.
Optionally, in the aspect of performing level number expansion on the display brightness levels in the preset interval range to obtain M display brightness levels, the expansion unit 702 is specifically configured to:
and performing grade number expansion on the display brightness grades in the preset interval range according to the polynomial color calibration matrix PCC parameters to obtain the M display brightness grades.
Optionally, in the aspect that the number of levels of the display luminance levels in a preset interval range is expanded according to the polynomial color calibration matrix PCC parameter to obtain the M display luminance levels, the expanding unit 702 is specifically configured to:
optionally, in the aspect of performing level number expansion on the display brightness levels in the preset interval range to obtain M display brightness levels, the expansion unit 702 is specifically configured to:
determining a lower limit value and an upper limit value of the preset interval range;
determining a first gamma parameter corresponding to the lower limit value and a second gamma parameter corresponding to the upper limit value;
acquiring a gamma curve segment between the first gamma parameter and the second gamma parameter;
uniformly sampling the gamma curve segment to obtain M points, wherein each point corresponds to a gamma parameter;
determining a polynomial color calibration matrix PCC parameter of each point according to the gamma parameters of the M points to obtain M PCC parameters;
and performing grade number expansion on the display brightness grades in the preset interval range according to the M PCC parameters to obtain the M display brightness grades.
Optionally, in the aspect that the number of levels of the display brightness levels in the preset interval range is expanded according to the M PCC parameters to obtain the M display brightness levels, the expanding unit 702 is specifically configured to:
determining display brightness levels corresponding to the preset interval range to obtain P display brightness levels, wherein P is a positive integer less than or equal to N;
determining a PCC parameter corresponding to each display brightness level in the P display brightness levels to obtain P groups of PCC parameters, wherein each group of PCC parameters comprises M/P PCC parameters;
determining a product between each display brightness level in the P display brightness levels and a PCC parameter in a corresponding group of PCC parameters to obtain P groups of products;
determining the M display brightness levels according to the P groups of products.
Optionally, in terms of uniformly sampling the gamma curve segment according to the gamma curve segment to obtain M points, the expanding unit 702 is specifically configured to:
intercepting the gamma curve segments to obtain at least one curve segment, wherein the end point of each curve segment in the at least one curve segment corresponds to a display brightness level;
and uniformly sampling the at least one curve segment to obtain the M points.
Optionally, in the aspect that the target display brightness level corresponding to the current display brightness level is determined according to the M display brightness levels, the extension unit 702 is specifically configured to:
displaying the M display brightness levels on a brightness bar;
receiving a dragging instruction aiming at the brightness bar;
and responding to the dragging instruction, and determining the target display brightness level selected by the user.
Optionally, in the aspect that the target display brightness level corresponding to the current display brightness level is determined according to the M display brightness levels, the extension unit 702 is specifically configured to:
acquiring target environment parameters;
and determining the target display brightness level corresponding to the target environment parameter, wherein the target display brightness level is one of the M display brightness levels.
Optionally, the apparatus 700 is further specifically configured to:
and when the current display brightness level is greater than or equal to the preset threshold value, carrying out backlight brightness adjustment according to the N display brightness levels.
It can be seen that the brightness adjustment apparatus described in the embodiment of the present application is applied to an electronic device to obtain a current display brightness level, where the electronic device includes N display brightness levels, the current display brightness level is any one of the N display brightness levels, and N is an integer greater than 1; when the current display brightness level is lower than a preset threshold value, determining a target display brightness level corresponding to the current display brightness level, wherein the target display brightness level is an expansion level corresponding to the current display brightness level; and backlight brightness adjustment is carried out according to the target display brightness grade, and grade quantity expansion is carried out on the display brightness grade in the backlight brightness adjustment process of a low-brightness interval, so that fine and smooth transition between adjacent display brightness grades is realized, further, the backlight shaking phenomenon is avoided, and the improvement of user experience is facilitated.
It should be noted that the electronic device described in the embodiments of the present application is presented in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
The obtaining unit 701, the expanding unit 702, and the adjusting unit 703 may be processors, which may be artificial intelligence chips, NPUs, CPUs, GPUs, and the like, and are not limited herein. The functions or steps of any of the above methods can be implemented based on the above unit modules.
The present embodiment also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the embodiments of the present application to implement any one of the methods in the embodiments.
The present embodiment also provides a computer program product, which when run on a computer causes the computer to execute the relevant steps described above to implement any of the methods in the above embodiments.
In addition, the embodiment of the present application further provides a brightness adjusting device, which may be specifically a chip, a component or a module, and the brightness adjusting device may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute any one of the methods in the above method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A brightness adjustment method is applied to an electronic device, and the method comprises the following steps:
acquiring a current display brightness grade, wherein the electronic equipment comprises N display brightness grades, the current display brightness grade is any one of the N display brightness grades, and N is an integer greater than 1;
when the current display brightness level is lower than a preset threshold value, determining a target display brightness level corresponding to the current display brightness level, wherein the target display brightness level is an expansion level corresponding to the current display brightness level;
and adjusting the backlight brightness according to the target display brightness level.
2. The method of claim 1, wherein determining the target display brightness level corresponding to the current display brightness level comprises:
expanding the grade number of the display brightness grades in a preset interval range to obtain M display brightness grades, wherein the preset interval range comprises the current display brightness grade, and M is an integer greater than 1;
and determining the target display brightness level corresponding to the current display brightness level according to the M display brightness levels.
3. The method according to claim 2, wherein the expanding the number of levels of the display brightness levels in the preset interval range to obtain M display brightness levels comprises:
and performing grade number expansion on the display brightness grades in the preset interval range according to the polynomial color calibration matrix PCC parameters to obtain the M display brightness grades.
4. The method according to claim 3, wherein said expanding the number of levels of the display luminance levels in a preset interval range according to the polynomial color calibration matrix PCC parameter to obtain the M display luminance levels comprises:
determining a lower limit value and an upper limit value of the preset interval range;
determining a first gamma parameter corresponding to the lower limit value and a second gamma parameter corresponding to the upper limit value;
acquiring a gamma curve segment between the first gamma parameter and the second gamma parameter;
uniformly sampling the gamma curve segment to obtain M points, wherein each point corresponds to a gamma parameter;
determining a polynomial color calibration matrix (PCC) parameter of each point according to the gamma parameters of the M points to obtain M PCC parameters;
and performing grade number expansion on the display brightness grades in the preset interval range according to the M PCC parameters to obtain the M display brightness grades.
5. The method according to claim 4, wherein the expanding the number of levels of the display brightness levels in the preset interval range according to the M PCC parameters to obtain the M display brightness levels comprises:
determining display brightness levels corresponding to the preset interval range to obtain P display brightness levels, wherein P is a positive integer less than or equal to N;
determining a PCC parameter corresponding to each display brightness level in the P display brightness levels to obtain P groups of PCC parameters, wherein each group of PCC parameters comprises M/P PCC parameters;
determining a product between each display brightness level in the P display brightness levels and a PCC parameter in a corresponding group of PCC parameters to obtain a P group product;
determining the M display brightness levels according to the P groups of products.
6. The method of claim 4, wherein said uniformly sampling said gamma curve segment from said gamma curve segment resulting in M points comprises:
intercepting the gamma curve segments to obtain at least one curve segment, wherein the end point of each curve segment in the at least one curve segment corresponds to a display brightness level;
and uniformly sampling the at least one curve segment to obtain the M points.
7. The method according to any of claims 2-6, wherein said determining said target display brightness level corresponding to said current display brightness level from said M display brightness levels comprises:
displaying the M display brightness levels on a brightness bar;
receiving a dragging instruction aiming at the brightness bar;
and responding to the dragging instruction, and determining the target display brightness level selected by the user.
8. The method according to any of claims 2-6, wherein said determining said target display brightness level corresponding to said current display brightness level from said M display brightness levels comprises:
acquiring target environment parameters;
and determining the target display brightness level corresponding to the target environment parameter, wherein the target display brightness level is one of the M display brightness levels.
9. The method according to any one of claims 1-8, further comprising:
and when the current display brightness level is greater than or equal to the preset threshold value, carrying out backlight brightness adjustment according to the N display brightness levels.
10. A brightness adjustment device, applied to an electronic apparatus, the device comprising: an acquisition unit, an expansion unit and an adjustment unit, wherein,
the acquisition unit is used for acquiring a current display brightness grade, the electronic device comprises N display brightness grades, the current display brightness grade is any one of the N display brightness grades, and N is an integer greater than 1;
the expansion unit is used for determining a target display brightness level corresponding to the current display brightness level when the current display brightness level is lower than a preset threshold value, wherein the target display brightness level is an expansion level corresponding to the current display brightness level;
and the adjusting unit is used for adjusting the backlight brightness according to the target display brightness level.
11. An electronic device, comprising a processor, a memory for storing one or more programs and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-9.
12. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-9.
CN202210244184.0A 2022-03-11 2022-03-11 Brightness adjusting method and related device Active CN114596819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210244184.0A CN114596819B (en) 2022-03-11 2022-03-11 Brightness adjusting method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210244184.0A CN114596819B (en) 2022-03-11 2022-03-11 Brightness adjusting method and related device

Publications (2)

Publication Number Publication Date
CN114596819A true CN114596819A (en) 2022-06-07
CN114596819B CN114596819B (en) 2023-06-27

Family

ID=81809563

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210244184.0A Active CN114596819B (en) 2022-03-11 2022-03-11 Brightness adjusting method and related device

Country Status (1)

Country Link
CN (1) CN114596819B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105047145A (en) * 2015-09-14 2015-11-11 青岛海信电器股份有限公司 Backlight brightness control method, backlight brightness control device and display terminal
CN105575342A (en) * 2016-03-18 2016-05-11 青岛海信电器股份有限公司 Backlight source brightness control method and device and liquid crystal display equipment
US20160173862A1 (en) * 2014-12-10 2016-06-16 Hisense Electric Co., Ltd. Method and device for adjusting grayscale brightness and 3d display device
CN105825834A (en) * 2015-07-27 2016-08-03 维沃移动通信有限公司 Terminal and backlight brightness adjustment method thereof
CN106782431A (en) * 2017-03-10 2017-05-31 广东欧珀移动通信有限公司 A kind of screen backlight brightness adjusting method, device and mobile terminal
CN110428782A (en) * 2019-07-24 2019-11-08 Oppo广东移动通信有限公司 Brightness adjusting method and Related product
US10504453B1 (en) * 2019-04-18 2019-12-10 Apple Inc. Displays with adjustable direct-lit backlight units

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160173862A1 (en) * 2014-12-10 2016-06-16 Hisense Electric Co., Ltd. Method and device for adjusting grayscale brightness and 3d display device
CN105825834A (en) * 2015-07-27 2016-08-03 维沃移动通信有限公司 Terminal and backlight brightness adjustment method thereof
CN105047145A (en) * 2015-09-14 2015-11-11 青岛海信电器股份有限公司 Backlight brightness control method, backlight brightness control device and display terminal
CN105575342A (en) * 2016-03-18 2016-05-11 青岛海信电器股份有限公司 Backlight source brightness control method and device and liquid crystal display equipment
CN106782431A (en) * 2017-03-10 2017-05-31 广东欧珀移动通信有限公司 A kind of screen backlight brightness adjusting method, device and mobile terminal
US10504453B1 (en) * 2019-04-18 2019-12-10 Apple Inc. Displays with adjustable direct-lit backlight units
CN110428782A (en) * 2019-07-24 2019-11-08 Oppo广东移动通信有限公司 Brightness adjusting method and Related product

Also Published As

Publication number Publication date
CN114596819B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
CN109814766B (en) Application display method and electronic equipment
CN112040361B (en) Earphone control method, earphone control device and storage medium
WO2023000772A1 (en) Mode switching method and apparatus, electronic device and chip system
CN111553846A (en) Super-resolution processing method and device
CN113177229A (en) Data processing method and related device
CN114237646A (en) Game trial playing method and related device
CN114422686B (en) Parameter adjustment method and related device
CN117234398A (en) Screen brightness adjusting method and electronic equipment
WO2023030168A1 (en) Interface display method and electronic device
CN113781959B (en) Interface processing method and device
CN111836226B (en) Data transmission control method, device and storage medium
WO2022089216A1 (en) Interface display method and electronic device
CN111581119B (en) Page recovery method and device
CN114244655A (en) Signal processing method and related device
CN114596819B (en) Brightness adjusting method and related device
CN115691370A (en) Display control method and related device
CN115083400A (en) Voice assistant awakening method and device
CN114630152A (en) Parameter transmission method and device for image processor and storage medium
CN111865369B (en) Antenna control method, antenna control device and storage medium
WO2024109198A1 (en) Window adjustment method and related apparatus
CN115933952B (en) Touch sampling rate adjusting method and related device
WO2023193720A1 (en) Control method and central control equipment
WO2023160224A1 (en) Photographing method and related device
CN117076072A (en) Container borrowing method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant