[go: up one dir, main page]

CN114596819A - Brightness adjustment method and related device - Google Patents

Brightness adjustment 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
brightness level
levels
level
target
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 adjustment method and related device

技术领域technical field

本申请涉及显示技术领域,尤其涉及一种用于亮度调节方法及相关装置。The present application relates to the field of display technology, and in particular, to a method for adjusting brightness and a related device.

背景技术Background technique

随着电子设备(如手机、平板电脑等等)的大量普及应用,电子设备能够支持的应用越来越多,功能越来越强大,电子设备向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。With the widespread application of electronic devices (such as mobile phones, tablet computers, etc.), electronic devices can support more and more applications, and their functions are becoming more and more powerful. Electronic devices are developing in the direction of diversification and personalization. Indispensable electronic supplies.

目前来看,背光调节技术作为电子设备的基本功能也得到普遍应用。但是,以手机为例,背光方案基本是都是屏幕供应商的提供什么样的状态,手机厂商就直接用,但是用户会发现在低亮度区间,拖动亮度条,会发现背光抖动现象。因此,如何在低亮度区间的背光亮度调节过程中,避免出现背光抖动现象的问题亟待解决。At present, backlight adjustment technology has also been widely used as a basic function of electronic equipment. However, taking a mobile phone as an example, the backlight scheme is basically what the screen supplier provides, and the mobile phone manufacturer uses it directly. However, users will find that in the low brightness range, drag the brightness bar and find the backlight jitter phenomenon. Therefore, the problem of how to avoid the phenomenon of backlight jitter during the backlight brightness adjustment process in the low brightness range needs to be solved urgently.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种亮度调节方法及相关装置,能够在低亮度区间的背光亮度调节过程中,避免出现背光抖动现象。Embodiments of the present application provide a brightness adjustment method and a related device, which can avoid the phenomenon of backlight jitter during a backlight brightness adjustment process in a low brightness range.

第一方面,本申请实施例提供一种亮度调节方法,应用于电子设备,所述方法包括:In a first aspect, an embodiment of the present application provides a brightness adjustment method, which is applied to an electronic device, and the method includes:

获取当前显示亮度等级,所述电子设备包括N个显示亮度等级,所述当前显示亮度等级为所述N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;Obtaining a current display brightness level, the electronic device includes N display brightness levels, the current display brightness level is any display brightness level in 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, determining a target display brightness level corresponding to the current display brightness level, where the target display brightness level is an extended level corresponding to the current display brightness level;

根据所述目标显示亮度等级进行背光亮度调节。The backlight brightness is adjusted according to the target display brightness level.

第二方面,本申请实施例提供一种亮度调节装置,应用于电子设备,所述装置包括:获取单元、扩展单元和调节单元,其中,In a second aspect, an embodiment of the present application provides an apparatus for adjusting brightness, which is applied to an electronic device. The apparatus includes: an acquisition unit, an expansion unit, and an adjustment unit, wherein,

所述获取单元,用于获取当前显示亮度等级,所述电子设备包括N个显示亮度等级,所述当前显示亮度等级为所述N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;The acquisition unit is configured to acquire the current display brightness level, the electronic device includes N display brightness levels, the current display brightness level is any display brightness level in the N display brightness levels, and N is greater than 1 the integer;

所述扩展单元,用于在所述当前显示亮度等级低于预设阈值时,确定与所述当前显示亮度等级对应的目标显示亮度等级,所述目标显示亮度等级为所述当前显示亮度等级对应的扩展等级;The expansion unit 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 corresponds to the current display brightness level extension level;

所述调节单元,用于根据所述目标显示亮度等级进行背光亮度调节。The adjustment unit is configured to adjust the backlight brightness according to the target display brightness level.

第三方面,本申请实施例提供一种电子设备,所述电子设备包括处理器、存储器,所述存储器用于存储一个或多个程序,并且被配置由处理器执行,所述程序包括用于执行如第一方所描述的部分或者全部步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor and a memory, the memory is used to store one or more programs, and is configured to be executed by the processor, the program includes a program for Perform some or all of the steps as described by the first party.

第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present application 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 computer program as described in the first embodiment of the present application. Some or all of the steps described in an aspect.

第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括计算机程序,上述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to cause a computer to execute part or all of the first aspect of the embodiment of the present application. step. The computer program product may be a software installation package.

实施本申请实施例,具备如下有益效果:Implementing the embodiments of the present application has the following beneficial effects:

可以看出,本申请实施例中所描述的亮度调节方法及相关装置,应用于电子设备,获取当前显示亮度等级,电子设备包括N个显示亮度等级,当前显示亮度等级为N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;在当前显示亮度等级低于预设阈值时,确定与当前显示亮度等级对应的目标显示亮度等级,目标显示亮度等级为当前显示亮度等级对应的扩展等级;根据目标显示亮度等级进行背光亮度调节,在低亮度区间的背光亮度调节过程中,对显示亮度等级进行等级数量扩展,实现相邻显示亮度等级之间的细腻、平滑过渡,进而避免出现背光抖动现象,有助于提升用户体验。It can be seen that the brightness adjustment method and related device described in the embodiments of the present application are applied to electronic equipment to obtain the current display brightness level. The electronic device includes N display brightness levels, and the current display brightness level is among the N display brightness levels. Any display brightness level of , N is an integer greater than 1; when the current display brightness level is lower than the preset threshold, determine the target display brightness level corresponding to the current display brightness level, and the target display brightness level is the current display brightness level. Expansion level: Adjust the backlight brightness according to the target display brightness level. During the backlight brightness adjustment process in the low-brightness range, the display brightness level is expanded by the number of levels to achieve a delicate and smooth transition between adjacent display brightness levels, thereby avoiding the occurrence of The phenomenon of backlight jitter helps to improve user experience.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本申请实施例提供的一种电子设备的结构示意图;1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图2是本申请实施例提供的一种电子设备的软件结构示意图;2 is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application;

图3A是本申请实施例提供的一种亮度调节方法的流程示意图;3A is a schematic flowchart of a brightness adjustment method provided by an embodiment of the present application;

图3B是本申请实施例提供的一种亮度调节方法的演示示意图;FIG. 3B is a schematic diagram illustrating a brightness adjustment method provided by an embodiment of the present application;

图3C是本申请实施例提供的一种等级数量扩展的演示示意图;FIG. 3C is a schematic diagram illustrating a demonstration of a level quantity extension provided by an embodiment of the present application;

图3D是本申请实施例提供的一种等级数量扩展的另一演示示意图;FIG. 3D is another schematic diagram illustrating a class quantity extension provided by an embodiment of the present application;

图3E是本申请实施例提供的一种等级数量扩展的另一演示示意图;FIG. 3E is another schematic diagram illustrating a class quantity extension provided by an embodiment of the present application;

图4是本申请实施例提供的另一种亮度调节方法的流程示意图;4 is a schematic flowchart of another brightness adjustment method provided by an embodiment of the present application;

图5是本申请实施例提供的另一种亮度调节方法的流程示意图;5 is a schematic flowchart of another brightness adjustment method provided by an embodiment of the present application;

图6是本申请实施例提供的另一种电子设备的结构示意图;6 is a schematic structural diagram of another electronic device provided by an embodiment of the present application;

图7是本申请实施例提供的一种亮度调节装置的功能单元组成框图。FIG. 7 is a block diagram of functional units of a brightness adjustment device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合附图,对本申请实施例中的技术方案进行描述。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 solutions of the embodiments of the present application, related terms and concepts that may be involved in the embodiments of the present application are first introduced below.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

具体实现中,本申请实施例中,电子设备可以包括各种具有计算机功能的设备,例如,手持设备(智能手机、平板电脑等)、车载设备(导航仪、辅助倒车系统、行车记录仪、车载冰箱等等)、可穿戴设备(智能手环、无线耳机、智能手表、智能眼镜等等)、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(Mobile Station,MS),虚拟现实/增强现实设备,终端设备(terminal device)等等,电子设备还可以为基站或者服务器。In specific implementation, in the embodiments of the present application, the electronic devices may include various devices with computer functions, such as handheld devices (smartphones, tablet computers, etc.), in-vehicle devices (navigator, auxiliary reversing system, driving recorder, vehicle-mounted refrigerators, etc.), wearable devices (smart bracelets, wireless headphones, smart watches, smart glasses, etc.), computing devices or other processing devices connected to wireless modems, and various forms of user equipment (UE) , a mobile station (Mobile Station, MS), a virtual reality/augmented reality device, a terminal device (terminal device), etc. The electronic device may also be a base station or a server.

电子设备还可以包括智能家居设备,智能家居设备可以为以下至少一种:智能音箱、智能摄像头、智能电饭煲、智能轮椅、智能按摩椅、智能家具、智能洗碗机、智能电视机、智能冰箱、智能电风扇、智能取暖器、智能晾衣架、智能灯、智能路由器、智能交换机、智能开关面板、智能加湿器、智能空调、智能门、智能窗、智能灶台、智能消毒柜、智能马桶、扫地机器人等等,在此不做限定。The electronic devices may also include smart home devices, and the smart home devices may be at least one of the following: smart speakers, smart cameras, smart rice cookers, smart wheelchairs, smart massage chairs, smart furniture, smart dishwashers, smart TVs, smart refrigerators, Smart fans, smart heaters, smart drying racks, smart lights, smart routers, smart switches, smart switch panels, smart humidifiers, smart air conditioners, smart doors, smart windows, smart cooktops, smart disinfection cabinets, smart toilets, floor sweeping Robots, etc., are not limited here.

第一部分,本申请所公开的技术方案的软硬件运行环境介绍如下。In the first part, the software and hardware operating environment of the technical solution disclosed in this application is introduced as follows.

如图所示,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110、外部存储器接口120、内部存储器121、通用串行总线(universal serial bus,USB)接口130、充电管理模块140、电源管理模块141、电池142、天线1、天线2、移动通信模块150、无线通信模块160、音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、传感器模块180、指南针190、马达191、指示器192、摄像头193、显示屏194以及用户标识模块(subscriber identification module,SIM)卡接口195等。As shown in the figure, 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 charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, compass 190, motor 191, indicator 192, camera 193, display screen 194 and user A subscriber identification module (SIM) card interface 195 and the like.

可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器AP,调制解调处理器,图形处理器GPU,图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器NPU等。其中,不同的处理单元可以是独立的部件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备100也可以包括一个或多个处理器110。其中,控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。在其他一些实施例中,处理器110中还可以设置存储器,用于存储指令和数据。示例性地,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。这样就避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备100处理数据或执行指令的效率。处理器还可以包括图像处理器,图像处理器可以为图像预处理器(preprocess image signal processor,Pre-ISP),其可以理解为一个简化的ISP,其也可以进行一些图像处理操作,例如,可以获取图像统计信息。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor AP, a modem processor, a graphics processor GPU, an image signal processor (ISP), a controller, Video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor NPU, etc. Wherein, different processing units may be independent components, or may be integrated in one or more processors. In some embodiments, 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 timing signal, and complete the control of fetching and executing instructions. In some other embodiments, a memory may also be provided in the processor 110 for storing instructions and data. Illustratively, the memory in the processor 110 may be a cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from memory. In this way, repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the electronic device 100 in processing data or executing instructions. The processor may also include an image processor, and the image processor may be an image pre-processor (preprocess image signal processor, Pre-ISP), which can be understood as a simplified ISP, which can also perform some image processing operations, for example, can Get image statistics.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路间(inter-integrated circuit,I2C)接口、集成电路间音频(inter-integrated circuitsound,I2S)接口、脉冲编码调制(pulse code modulation,PCM)接口、通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口、移动产业处理器接口(mobile industry processor interface,MIPI)、用输入输出(general-purpose input/output,GPIO)接口、SIM卡接口和/或USB接口等。其中,USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口、Micro USB接口、USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。该USB接口130也可以用于连接耳机,通过耳机播放音频。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuitsound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output (GPIO) interface, SIM card interface and/or USB interface, etc. 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 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. The USB interface 130 can also be used to connect an earphone, and play audio through the earphone.

可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.

充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the 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 the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .

电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110、内部存储器121、外部存储器、显示屏194、摄像头193和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量、电池循环次数、电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.

电子设备100的无线通信功能可以通过天线1、天线2、移动通信模块150、无线通信模块160、调制解调处理器以及基带处理器等实现。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, the modulation and demodulation processor, the baseband processor, and the like.

天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed into a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G/6G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G/6G etc. applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .

无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络)、蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS)、调频(frequency modulation,FM)、近距离无线通信技术(near field communication,NFC)、红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR). 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 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify the signal, and then convert it into an electromagnetic wave for radiation through the antenna 2 .

电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.

显示屏194用于显示图像、视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emittingdiode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED)、柔性发光二极管(flex light-emittingdiode,FLED)、迷你发光二极管(mini light-emitting diode,miniled)、MicroLed、Micro-oLed、量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或多个显示屏194。The display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), mini light-emitting diode (mini light-emitting diode, miniLED), MicroLed, Micro-oLed, quantum dot light emitting diode (quantum dot light emitting diode, QLED), etc. . In some embodiments, electronic device 100 may include one or more display screens 194 .

电子设备100可以通过ISP、摄像头193、视频编解码器、GPU、显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.

ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点、亮度、肤色进行算法优化。ISP还可以对拍摄场景的曝光、色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP may be provided in the camera 193 .

摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或多个摄像头193。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the electronic device 100 may include one or more cameras 193 .

数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.

视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1、MPEG2、MPEG3、MPEG4等。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 can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.

NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别、人脸识别、语音识别、文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 . The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.

内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备100执行本申请一些实施例中所提供的显示页面元素的方法,以及各种应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用(比如图库、联系人等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如照片,联系人等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储部件,闪存部件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,来使得电子设备100执行本申请实施例中所提供的显示页面元素的方法,以及其他应用及数据处理。电子设备100可以通过音频模块170、扬声器170A、受话器170B、麦克风170C、耳机接口170D、以及应用处理器等实现音频功能。例如音乐播放、录音等。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, thereby causing the electronic device 100 to execute the method for displaying page elements, various applications and data processing provided in some embodiments of the present application. The internal memory 121 may include a storage program area and a storage data area. Wherein, the stored program area may store the operating system; the stored program area may also store one or more applications (such as gallery, contacts, etc.) and the like. The storage data area may store data (such as photos, contacts, etc.) created during the use of the electronic device 100 and the like. In addition, the internal memory 121 may include high-speed random access memory, and may also include 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 execute the instructions provided in the embodiments of the present application by executing the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor 110 . Methods for displaying page elements, as well as other applications and data processing. The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.

传感器模块180可以包括压力传感器180A、陀螺仪传感器180B、气压传感器180C、磁传感器180D、加速度传感器180E、距离传感器180F、接近光传感器180G、指纹传感器180H、温度传感器180J、触摸传感器180K、环境光传感器180L、骨传导传感器180M等。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, and an ambient light sensor 180L, bone conduction sensor 180M, etc.

其中,压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be provided on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.

陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即X、Y和Z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 about three axes (ie, the X, Y, and Z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenarios.

加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.

环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.

指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.

温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "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, also referred to as a "touch screen". The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.

示例性的,图2示出了电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。Exemplarily, FIG. 2 shows a software structural block diagram of the electronic device 100 . The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and system libraries, and a kernel layer. The application layer can include a series of application packages.

如图2所示,应用程序层可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 2, the application layer can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short messages.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for the applications of the application layer. The application framework layer includes some predefined functions.

如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.

内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make these data accessible to applications. Data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. A display interface can consist 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.

电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the electronic device 100 . For example, the management of call status (including connecting, hanging up, etc.).

资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.

通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.

Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.

系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (media libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.

媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.

第二部分,本申请实施例所公开的亮度调节方法及相关装置介绍如下。In the second part, the brightness adjustment method and related apparatus disclosed in the embodiments of the present application are introduced as follows.

请参阅图3A,图3A是本申请实施例提供的一种亮度调节方法的流程示意图,如图所示,本亮度调节方法包括:Please refer to FIG. 3A. FIG. 3A is a schematic flowchart of a brightness adjustment method provided by an embodiment of the present application. As shown in the figure, the brightness adjustment method includes:

301、获取当前显示亮度等级,所述电子设备包括N个显示亮度等级,所述当前显示亮度等级为所述N个显示亮度等级中的任一显示亮度等级,N为大于1的整数。301. 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.

其中,具体实现中,可以获取当前显示亮度等级,例如,该当前显示亮度等级可以为启动显示屏时候的显示亮度等级,或者,也可以为亮度调节过程中的任一亮度等级。Wherein, in the specific implementation, the current display brightness level may be obtained. For example, the current display brightness level may be the display brightness level when the display screen is started, or may be any brightness level during the brightness adjustment process.

本申请实施例中,电子设备可以包括N个显示亮度等级,而当前显示亮度等级可以为N个等级中的任一显示亮度等级,N为大于1的整数。In this embodiment of the present application, the electronic device may include N display brightness levels, and the current display brightness level may be any display brightness level among the N levels, where N is an integer greater than 1.

具体实现中,由于N个显示亮度等级与显示屏自身的硬件属性相关,其又可以被称之为物理等级或者硬件等级。即N个显示亮度等级中的每一显示亮度等级则可以对应物理等级或者硬件等级。In specific implementation, since the N display brightness levels are related to the hardware properties of the display screen, they may also be called physical levels or hardware levels. That is, each display brightness level in the N display brightness levels may correspond to a physical level or a hardware level.

302、在所述当前显示亮度等级低于预设阈值时,确定与所述当前显示亮度等级对应的目标显示亮度等级,所述目标显示亮度等级为所述当前显示亮度等级对应的扩展等级。302. When the current display brightness level is lower than a preset threshold, determine a target display brightness level corresponding to the current display brightness level, where the target display brightness level is an extended level corresponding to the current display brightness level.

其中,预设阈值可以预先设置或者系统默认,具体实现中,不同的显示屏可以对应不同的预设阈值,即可以预先存储预设的显示屏的属性信息与预设阈值之间的映射关系,进而,可以基于该映射关系确定电子设备的显示屏的属性信息对应的预设阈值。属性信息可以包括以下至少一种:显示屏的型号、显示屏的尺寸、显示屏的材质等等,在此不做限定。The preset threshold may be preset or defaulted by the system. In the specific implementation, different display screens may correspond to different preset thresholds, that is, the mapping relationship between the preset attribute information of the display screen and the preset threshold may be stored in advance. Furthermore, the preset threshold corresponding to the attribute information of the display screen of the electronic device may be determined based on the mapping relationship. The attribute information may include at least one of the following: the model of the display screen, the size of the display screen, the material of the display screen, etc., which are not limited herein.

可选的,上述步骤302,确定与所述当前显示亮度等级对应的目标显示亮度等级,可以包括如下步骤:Optionally, in the above step 302, determining the target display brightness level corresponding to the current display brightness level may include the following steps:

21、将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,所述预设区间范围包括所述当前显示亮度等级,M为大于1的整数;21. Expand the display brightness level of the preset interval range by the number of levels to obtain M display brightness levels, the preset interval range includes the current display brightness level, and M is an integer greater than 1;

22、根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级。22. Determine the target display brightness level corresponding to the current display brightness level according to the M display brightness levels.

具体实现中,预设区间范围可以包括当前显示亮度等级,该当前显示亮度等级可以为预设区间范围的上限值或者下限值或者处于下限值与上限值之间的一个显示亮度等级。具体的,预设区间范围可以包括至少两个显示亮度等级,例如,在当前显示亮度等级为4时,预设区间范围可以为4~5,又例如,在当前显示亮度等级为4时,预设区间范围可以为0~300,又例如,在当前显示亮度等级为4时,预设区间范围可以为0~4。具体的,预设区间范围可以包括N个显示亮度等级中的部分或者全部显示亮度等级,如预设区间范围可以包括低亮度区间的显示亮度等级。In specific implementation, the preset interval range may include the 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 another example, when the current display brightness level is 4, the preset interval range is 4. The interval range may be 0-300. For another example, when the current display brightness level is 4, the preset interval range may be 0-4. Specifically, the preset interval range may include some or all of the N display brightness levels, for example, the preset interval range may include the display brightness levels of the low brightness interval.

具体的,在当前显示亮度等级低于预设阈值时,则说明当前显示亮度处于低亮度区域,为了避免出现背光抖动现象,则可以将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,该M个显示亮度等级可以满足单调特性(例如,单调递增),且M个显示亮度等级能够实现亮度平滑、细腻过渡。进而,可以根据自动背光调节方式或者手动背光调节方式根据M个显示亮度等级确定与当前显示亮度等级对应的目标显示亮度等级,例如,在自动背光调节方式下,可以自动确定将M个显示亮度等级中的一个显示亮度等级确定为当前显示亮度等级对应的目标显示亮度等级,在手动背光调节方式下,则可以根据用户选择,将将M个显示亮度等级中的一个显示亮度等级确定为当前显示亮度等级对应的目标显示亮度等级。Specifically, when the current display brightness level is lower than the preset threshold, it means that the current display brightness is in a low brightness area. In order to avoid the phenomenon of backlight jitter, the display brightness level in the preset range can be expanded by the number of levels to obtain M The M display brightness levels can satisfy monotonic characteristics (for example, monotonically increasing), and the M display brightness levels can realize smooth and delicate transition of brightness. Furthermore, the target display brightness level corresponding to the current display brightness level can be determined according to the M display brightness levels according to the automatic backlight adjustment method or the manual backlight adjustment method. For example, in the automatic backlight adjustment method, the M display brightness levels can be automatically determined. One of the display brightness levels is determined as the target display brightness level corresponding to the current display brightness level. In the manual backlight adjustment mode, one of the M display brightness levels can be determined as the current display brightness according to the user's selection. The target display brightness level corresponding to the level.

举例说明下,以OLED屏幕的电子设备为例,因为OLED屏幕是通过电流来驱动发光的,如图3B所示,自动背光调节的情形下,在硬件调节驱动电流模块的作用下,可以实现拖动亮度条,实现不同位置对应不同的(display brightness value,DBV)等级值,从而屏幕亮度改变。在低亮度区间,相邻等级DBV的电流差异很小,就会导致在快速的切等级DBV的时候就是会出现由于电流的灵敏波动出现了亮度不稳定,就出现了亮度的抖动。例如,在实际应用中,对于2047等级背光下的300左右等级下容易出现问题,3515等级背光下的450左右等级下容易出现问题,进而,本申请实施例中,对低亮度区间的显示亮度等级进行等级数量扩展,以实现在拖动亮度条或者自动背光调节的过程中,实现背光亮度细腻、平滑过渡。For example, take the electronic device of the OLED screen as an example, because the OLED screen is driven by current to emit light. As shown in Figure 3B, in the case of automatic backlight adjustment, under the action of the hardware adjustment driving current module, the drag and drop can be realized. Move the brightness bar to achieve different (display brightness value, DBV) level values corresponding to different positions, so that the screen brightness changes. In the low-brightness range, the current difference between adjacent DBV levels is very small, which will lead to brightness instability due to the sensitive fluctuation of the current when the level of DBV is rapidly switched, resulting in brightness jitter. For example, in practical applications, problems are likely to occur at a level of about 300 under a 2047-level backlight, and problems are likely to occur at a level of about 450 under a 3515-level backlight. Furthermore, in the embodiment of the present application, the display brightness level in the low brightness range is Expand the number of levels to achieve delicate and smooth transition of backlight brightness in the process of dragging the brightness bar or automatic backlight adjustment.

可选的,上述步骤21,将预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级,可以按照如下方式实施:Optionally, in the above step 21, the display brightness levels of the preset interval range are expanded by the number of levels to obtain the M display brightness levels, which can be implemented as follows:

根据多项式颜色校准矩阵PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级。According to the polynomial color calibration matrix PCC parameter, the display brightness levels of the preset interval range are extended by the number of levels to obtain M display brightness levels.

具体实现中,可以基于多项式颜色校准矩阵PCC参数对原本的N个显示亮度等级中的部分或者全部显示亮度等级进行更细致划分,由于预设区间范围的显示亮度等级变化基于伽马参数变化,进而,通过伽马参数可以反推PCC参数,最后,可以基于PCC参数实现对显示亮度等级进行等级数量扩展。In the specific implementation, some or all of the original N display brightness levels can be divided more precisely based on the polynomial color calibration matrix PCC parameters. Since the display brightness level changes in the preset interval range are based on the gamma parameter changes, and then , the PCC parameter can be reversed through the gamma parameter, and finally, the display brightness level can be extended by the number of levels based on the PCC parameter.

进一步的,上述步骤,根据多项式颜色校准矩阵PCC参数将预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级,可以包括如下步骤:Further, in the above steps, according to the polynomial color calibration matrix PCC parameter, the display brightness levels of the preset interval range are expanded by the number of levels, and the M display brightness levels are obtained, which may include the following steps:

211、确定所述预设区间范围的下限值和上限值;211. Determine the lower limit value and the upper limit value of the preset interval range;

212、确定所述下限值对应的第一伽马参数和所述上限值对应的第二伽马参数;212. Determine a first gamma parameter corresponding to the lower limit value and a second gamma parameter corresponding to the upper limit value;

213、获取所述第一伽马参数和所述第二伽马参数之间的伽马曲线段;213. Acquire a gamma curve segment between the first gamma parameter and the second gamma parameter;

214、对所述伽马曲线段进行均匀采样,得到M个点,每一个点对应一个伽马参数;214. Perform uniform sampling on the gamma curve segment to obtain M points, each point corresponding to a gamma parameter;

215、根据所述M个点的伽马参数确定每一个点的多项式颜色校准矩阵PCC参数,得到M个PCC参数;215. Determine the polynomial color calibration matrix PCC parameter of each point according to the gamma parameters of the M points, and obtain M PCC parameters;

216、根据所述M个PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级。216. Expand the display brightness levels of the preset interval range by the number of levels according to the M PCC parameters to obtain the M display brightness levels.

具体实现中,电子设备可以预先配置伽马曲线,伽马曲线的横轴为显示亮度等级,纵轴为伽马参数。伽马曲线可以为任一gamma曲线,例如,gamma曲线可以为gamma 2.1理论得到的gamma曲线,又例如,gamma曲线可以为gamma 2.2理论得到的gamma曲线,又例如,gamma曲线可以为gamma 2.3理论得到的gamma曲线等等,在此不做限定。In a specific implementation, the electronic device may be preconfigured with a gamma curve, the horizontal axis of the gamma curve is the display brightness level, and the vertical axis is the gamma parameter. The gamma curve can be any gamma curve. For example, the gamma curve can be the gamma curve obtained from the gamma 2.1 theory. For another example, the gamma curve can be the gamma curve obtained from the gamma 2.2 theory. For example, the gamma curve can be obtained from the gamma 2.3 theory. The gamma curve, etc., are not limited here.

具体的,可以确定预设区间范围的下限值和上限值,下限值可以对应一个显示亮度等级,上限值也可以对应一个显示亮度等级,基于上述伽马曲线,则可以确定下限值对应的第一伽马参数和上限值对应的第二伽马参数,再获取第一伽马参数和第二伽马参数之间的伽马曲线段。Specifically, the lower limit value and the upper limit value of the preset interval range can be determined. The lower limit value can correspond to a display brightness level, and the upper limit value can also correspond to a display brightness level. Based on the above gamma curve, the lower limit can be determined. The first gamma parameter corresponding to the value and the second gamma parameter corresponding to the upper limit value are obtained, and then the gamma curve segment between the first gamma parameter and the second gamma parameter is obtained.

进一步的,可以对伽马曲线段进行均匀采样,得到M个点,每一个点对应一个伽马参数,以及每一个点对应一个显示亮度等级。可以根据M个点的伽马参数确定每一个点的多项式颜色校准矩阵(polynomial color calibration matrix,PCC)参数,得到M个PCC参数,最后,可以根据M个PCC参数将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,进而,可以保证M个显示亮度等级实现平滑、细腻过渡,以避免出现背光抖动现象。Further, the gamma curve segment can be uniformly sampled to obtain M points, each point corresponds to a gamma parameter, and each point corresponds to a display brightness level. The polynomial color calibration matrix (PCC) parameter of each point can be determined according to the gamma parameters of the M points, and M PCC parameters can be obtained. Finally, the display brightness of the preset interval can be adjusted according to the M PCC parameters. The number of levels is expanded to obtain M display brightness levels, and further, smooth and delicate transition of the M display brightness levels can be ensured, so as to avoid the phenomenon of backlight jitter.

进一步的,可选的,上述步骤216,根据所述M个PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级,可以包括如下步骤:Further, optionally, in the above step 216, according to the M PCC parameters, the display brightness levels of the preset interval range are expanded by the number of levels to obtain the M display brightness levels, which may include the following steps:

2161、确定所述预设区间范围对应的显示亮度等级,得到P个显示亮度等级,P为小于或等于N的正整数;2161. Determine the display brightness level corresponding to the preset interval range, and obtain P display brightness levels, where P is a positive integer less than or equal to N;

2162、确定所述P个显示亮度等级中每一显示亮度等级对应的PCC参数,得到P组PCC参数,每一组PCC参数包括M/P个PCC参数;2162. Determine PCC parameters corresponding to each display brightness level in the P display brightness levels, and obtain P groups of PCC parameters, where each group of PCC parameters includes M/P PCC parameters;

2163、确定所述P个显示亮度等级中的每一显示亮度等级与对应组PCC参数中的PCC参数之间的乘积,得到P组乘积;2163. Determine the product between each display brightness level in the P display brightness levels and the PCC parameters in the corresponding group of PCC parameters, to obtain P groups of products;

2164、根据所述P组乘积确定所述M个显示亮度等级。2164. Determine the M display brightness levels according to the P groups of products.

具体实现中,可以确定预设区间范围对应的部分或者全部显示亮度等级,得到P个显示亮度等级,P为小于或等于N的正整数。进而,可以确定P个显示亮度等级中每一显示亮度等级对应的PCC参数,得到P组PCC参数,每一组PCC参数包括M/P个PCC参数,例如,相邻的显示亮度等级之间则可以进行扩展,具体的,可以对其对应的伽马曲线进行均匀采样,得到多个采样点,再确定每个点对应的PCC参数,进而,可以确定P个显示亮度等级中的每一显示亮度等级与对应组PCC参数中的PCC参数之间的乘积,得到P组乘积,最后,可以根据P组乘积确定M个显示亮度等级,即每一个乘积对应一个显示亮度等级,由于M个显示亮度等级中的每一显示亮度等级均为经过扩展(软件处理)的显示亮度等级,其又可以称之为软件等级。In a specific implementation, part or all of the 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. Furthermore, PCC parameters corresponding to each display brightness level in the P display brightness levels can be determined, and P groups of PCC parameters can be obtained, and each group of PCC parameters includes M/P PCC parameters. For example, between adjacent display brightness levels, the It can be expanded. Specifically, the corresponding gamma curve can be uniformly sampled to obtain a plurality of sampling points, and then the PCC parameter corresponding to each point can be determined, and then, each display brightness in the P display brightness levels can be determined. The product between the level and the PCC parameters in the corresponding group of PCC parameters, the P group product is obtained. Finally, M display brightness levels can be determined according to the P group product, that is, each product corresponds to a display brightness level. Since the M display brightness levels Each display brightness level in is an expanded (software processed) display brightness level, which can also be called a software level.

可选的,上述步骤214,对所述伽马曲线段进行均匀采样,得到M个点,可以包括如下步骤:Optionally, in the above step 214, the gamma curve segment is uniformly sampled to obtain M points, which may include the following steps:

2141、对所述伽马曲线段进行截取操作,得到至少一个曲线段,所述至少一个曲线段中每一曲线段的端点对应一个显示亮度等级;2141. Perform an interception operation on the gamma curve segment to obtain at least one curve segment, where the endpoint of each curve segment in the at least one curve segment corresponds to a display brightness level;

2142、对所述至少一个曲线段进行均匀采样,得到所述M个点。2142. Perform uniform sampling on the at least one curve segment to obtain the M points.

具体实现中,可以对伽马曲线段进行截取操作,进而,可以得到至少一个曲线段,至少一个曲线段中每一曲线段的端点对应一个显示亮度等级,以显示亮度等级4-10对应的伽马曲线段为例,则可以直接截取显示亮度等级4-10之间的完整的一个曲线段,也可以截取显示亮度等级4-5之间的一个曲线段,以及显示亮度等级7-10之间的一个曲线段,进而,可以对至少一个曲线段进行均匀采样,得到M个点,M个点中,相邻点的伽马参数不一样。至少一个曲线段可以包括一个或者多个曲线段,该曲线段可以是连续的或者间断的曲线段。In the specific implementation, the gamma curve segment can be intercepted, and then at least one curve segment can be obtained, and the endpoint of each curve segment in the at least one curve segment corresponds to a display brightness level, so as to display the gamma corresponding to the brightness levels 4-10. Take the horse curve segment as an example, you can directly intercept a complete curve segment between display brightness levels 4-10, or you can intercept a curve segment between display brightness levels 4-5, and display brightness levels between 7-10 A curve segment of , and further, at least one curve segment can be uniformly sampled to obtain M points, and among the M points, the gamma parameters of adjacent points are different. At least one curve segment may include one or more curve segments, which may be continuous or discontinuous curve segments.

例如,用户想在显示亮度等级4-5之间进行调节,则可以获取显示亮度等级4-5对应的曲线段,该曲线段的端点对应一个显示亮度等级,进而,可以对显示亮度等级4-5之间进行等级数量扩展。For example, if the user wants to adjust the display brightness level between 4-5, the curve segment corresponding to the display brightness level 4-5 can be obtained, and the endpoint of the curve segment corresponds to a display brightness level, and further, the display brightness level 4-5 can be adjusted. The number of levels can be expanded between 5.

举例说明下,如图3C所示,针对不跳物理等级调试的情况,即针对单个刷新率/或者多个刷新率但是等级和亮度趋势不一致的情况,例如,实际硬件等级4、5、6、...、2046、2047\4、5、6、...、3514\3515,则则可以根据实际硬件等级乘以PCC系数,如4*0.95,则其可以对应扩展后的硬件等级4,以此类推,则可以将其扩展为4、5、6、...、8191、8192等等。For example, as shown in Figure 3C, for the case of debugging without jumping the physical level, that is, for a single refresh rate/or multiple refresh rates but the level and brightness trends are inconsistent, for example, the actual hardware levels 4, 5, 6, ..., 2046, 2047\4, 5, 6, ..., 3514\3515, you can multiply the PCC coefficient according to the actual hardware level, such as 4*0.95, it can correspond to the extended hardware level 4, And so on, it can be expanded to 4, 5, 6, ..., 8191, 8192, and so on.

再举例说明下,如图3D所示,针对跳物理等级调试的情况,即针对多个刷新率但是等级和亮度趋势不一致的情况,例如,实际硬件等级4、5、6、...、2046、2047\4、5、6、...、3514\3515,则则可以根据实际硬件等级乘以PCC系数,如4*0.95,则其可以对应扩展后的硬件等级4,以此类推,则可以将其扩展为4、5、6、...、8191、8192等等。又例如,由于是调物理等级调试,则可以直接由4跳都到7,则7*0.85,则其可以对应扩展后的硬件等级10。As another example, as shown in Figure 3D, for the case of jumping physical level debugging, that is, for multiple refresh rates but the level and brightness trends are inconsistent, for example, the actual hardware level 4, 5, 6, ..., 2046 , 2047\4, 5, 6,..., 3514\3515, then you can multiply the PCC coefficient according to the actual hardware level, such as 4*0.95, then it can correspond to the extended hardware level 4, and so on, then This can be expanded to 4, 5, 6, ..., 8191, 8192, etc. For another example, since the physical level is adjusted, it can be directly jumped from 4 to 7, then 7*0.85, which can correspond to the extended hardware level of 10.

本申请实施例中,实际硬件等级指的是上述2047、3515、4096等级等等,它是纯屏幕硬件实际可以分出的2047份、3515份、4096份亮度等级,基于此,可以把低亮度的硬件等级来拆分出更多等级,就是软件等级,所谓软件等级就是用硬件等级加上PCC的内容压缩拟合出来的等级,如此,便可以把0-300等级或者0-450等级扩展到2000、3000、4000甚至更高等级。扩展的原则就是最终软件拟合等级的低亮度区间符合gamma的2.2次幂的递增规律。In the embodiment of this application, the actual hardware level refers to the above-mentioned 2047, 3515, 4096 levels, etc., which are 2047, 3515, and 4096 brightness levels that can actually be divided by pure screen hardware. The hardware level is divided into more levels, which is the software level. The so-called software level is the level obtained by compressing and fitting the content of the PCC with the hardware level. In this way, the 0-300 level or 0-450 level can be extended to 2000, 3000, 4000 or even higher. The principle of expansion is that the low brightness interval of the final software fitting level conforms to the increasing law of gamma to the power of 2.2.

再举例说明下,如图3E所示,PCC系数调整的参数和所使用的当前硬件等级DBV的gamma强相关,需要根据gamma的数值来调整参数,亮度值才不会出现反转以及亮度顺滑。例如,使用7硬件等级,通过gamma 2.2的理论算出来的是PCC为0.85的可以衔接硬件等级4*1的亮度,但是实际会出现7*0.85的亮度会出现过亮或者偏暗,这时候的衔接点就会出现亮度的抖动,甚至闪屏,这个时候需要根据实际屏幕的gamma,可能当前7硬件等级的gamma为2.1或者2.3,则可以根据gamma 2.1或者gamma 2.3来计算出PCC值分别为0.84和0.86,这时候7*0.84或者7*0.86的亮度就能很好衔接到硬件等级4*1的亮度,这样不同等级之间就会非常平滑细腻,其他等级以此类推。As another example, as shown in Figure 3E, the parameters of PCC coefficient adjustment are strongly related to the gamma of the current hardware level DBV used, and the parameters need to be adjusted according to the value of gamma, so that the brightness value will not be reversed and the brightness will be smooth. . For example, using a hardware level of 7, the theoretical calculation of gamma 2.2 is that a PCC of 0.85 can be connected to the brightness of the hardware level of 4*1, but the actual brightness of 7*0.85 will appear too bright or too dark. At the connection point, there will be jitter in brightness, or even screen flickering. At this time, it needs to be based on the gamma of the actual screen. Maybe the gamma of the current 7 hardware level is 2.1 or 2.3, then the PCC value can be calculated according to gamma 2.1 or gamma 2.3 to be 0.84 respectively. and 0.86, at this time, the brightness of 7*0.84 or 7*0.86 can be well connected to the brightness of hardware level 4*1, so that the different levels will be very smooth and delicate, and so on for other levels.

可选的,上述步骤22,根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级,可以包括如下步骤:Optionally, in the above 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、在亮度条上展示所述M个显示亮度等级;A221. Display the M display brightness levels on the brightness bar;

A222、接收针对所述亮度条的拖动指令;A222. Receive a drag instruction for the brightness bar;

A223、响应所述拖动指令,确定用户选取的所述目标显示亮度等级。A223. In response to the dragging instruction, determine the display brightness level of the target selected by the user.

具体实现中,指定手动背光调节的情形,则可以在亮度条上展示M个显示亮度等级,用户则可以对亮度条进行拖动操作,进而,可以接收针对亮度条的拖动指令,响应该拖动指令,确定用户选取的目标显示亮度等级,该目标显示亮度等级为M个显示亮度等级中的一个显示亮度等级,则可以将当前显示亮度等级调节到目标显示亮度等级,如此,由于在拖动过程中,显示亮度等级是逐步变化,不同等级之间就会非常平滑、细腻过渡,进而,避免出现背光抖动现象,从而提升用户体验。In the specific implementation, if manual backlight adjustment is specified, M display brightness levels can be displayed on the brightness bar, and the user can drag the brightness bar, and further, can receive a drag command for the brightness bar and respond to the drag operation. To determine the target display brightness level selected by the user, the target display brightness level is one of the M display brightness levels, then the current display brightness level can be adjusted to the target display brightness level. During the process, the display brightness level is gradually changed, and the transition between different levels will be very smooth and delicate, thus avoiding the phenomenon of backlight jitter, thereby improving the user experience.

可选的,上述步骤22,根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级,可以包括如下步骤:Optionally, in the above 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、获取目标环境参数;B221. Obtain target environment parameters;

B222、确定与所述目标环境参数对应的所述目标显示亮度等级,所述目标显示亮度等级为所述M个显示亮度等级中的一个显示亮度等级。B222. Determine the target display brightness level corresponding to the target environment parameter, where the target display brightness level is one display brightness level among the M display brightness levels.

本申请实施例中,环境参数可以包括以下至少一种:环境亮度、环境色温、环境温度、环境湿度、天气、地理位置、磁场干扰参数等等,在此不做限定,可以预先存储预设的环境参数与显示亮度等级之间的映射关系。In this embodiment of the present application, the environmental parameters may include at least one of the following: environmental brightness, environmental color temperature, environmental temperature, environmental humidity, weather, geographic location, magnetic field interference parameters, etc., which are not limited here, and a preset can be stored in advance. The mapping relationship between environmental parameters and display brightness levels.

具体实现中,在自动背光调节的情形中,可以获取目标环境参数,再根据预先存储预设的环境参数与显示亮度等级之间的映射关系确定目标环境参数对应的目标显示亮度等级,目标显示亮度等级为M个显示亮度等级中的一个显示亮度等级,则可以得到与环境相宜的显示亮度等级,进而,可以将当前显示亮度等级调节为目标显示亮度等级,如此,由于在自动背光调节过程中,显示亮度等级是逐步变化,不同等级之间就会非常平滑、细腻过渡,进而,避免出现背光抖动现象,从而提升用户体验。在自动背光调节的情况下,可以展示亮度条,也可以不展示亮度条。In the specific implementation, in the case of automatic backlight adjustment, the target environmental parameters can be obtained, and then the target display brightness level corresponding to the target environmental parameters is determined according to the mapping relationship between the pre-stored preset environmental parameters and the display brightness level, and the target display brightness If the level is one of the M display brightness levels, a display brightness level suitable for the environment can be obtained, and then the current display brightness level can be adjusted to the target display brightness level. The display brightness level is gradually changed, and the transition between different levels will be very smooth and delicate, thus avoiding the phenomenon of backlight jitter, thereby improving the user experience. In the case of automatic backlight adjustment, the brightness bar may or may not be displayed.

可以看出,在上述手动背光调节以及自动背光调节的过程中,本申请实施例中,能够使得手动拖亮度和自动亮度都呈现出细腻、平滑的过渡,极大的改善了用户体验。It can be seen that in the above-mentioned manual backlight adjustment and automatic backlight adjustment process, in the embodiment of the present application, both the manual drag brightness and the automatic brightness can present a delicate and smooth transition, which greatly improves the user experience.

303、根据所述M个显示亮度等级进行背光亮度调节。303. Perform backlight brightness adjustment according to the M display brightness levels.

具体实现中,可以在手动背光调节或者自动背光调节的情况下,根据M个显示亮度等级进行背光亮度调节,在拖动亮度条的过程中,不同位置则可以对应M个显示亮度等级中的一个显示亮度等级。在低亮度区间的背光亮度调节过程中,对显示亮度等级进行等级数量扩展,实现相邻显示亮度等级之间的细腻、平滑过渡,进而避免出现背光抖动现象,有助于提升用户体验。In the specific implementation, in the case of manual backlight adjustment or automatic backlight adjustment, the backlight brightness can be adjusted according to the M display brightness levels. During the process of dragging the brightness bar, different positions can correspond to one of the M display brightness levels. Displays the brightness level. During the backlight brightness adjustment process in the low-brightness range, the display brightness level is expanded by the number of levels to achieve a delicate and smooth transition between adjacent display brightness levels, thereby avoiding the phenomenon of backlight jitter, and helping to improve the user experience.

可选的,还可以包括如下步骤:Optionally, the following steps may also be included:

在所述当前显示亮度等级大于或等于所述预设阈值时,根据所述N个显示亮度等级进行背光亮度调节。When the current display brightness level is greater than or equal to the preset threshold, the backlight brightness adjustment is performed according to the N display brightness levels.

具体实现中,在当前显示亮度等级大于或等于预设阈值时,则说明不是针对低亮度区间进行背光调节,则可以根据N个显示亮度等级进行背光亮度调节,即在手动背光调节的情形,则只要调节后的显示亮度等级大于或等于预设阈值,则不会出现背光抖动现象。同理,在自动背光调节的情形,则只要调节后的显示亮度等级大于或等于预设阈值,则也不会出现背光抖动现象。In the specific implementation, when the current display brightness level is greater than or equal to the preset threshold, it means that the backlight adjustment is not performed for the low brightness interval, and the backlight brightness adjustment can be performed according to N display brightness levels, that is, in the case of manual backlight adjustment, then As long as the adjusted display brightness level is greater than or equal to the preset threshold, there will be no backlight jitter. 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 phenomenon of backlight jitter will not occur.

本申请实施例中,针对低显示亮度等级DBV下的亮度等级问题,通过软件方式实现显示亮度等级进行等级数量扩展,目的就是使得低等级DBV亮度更加平滑,改善低亮度抖动问题,从而能够使得手动拖亮度和自动亮度都呈现出细腻、平滑的过渡,极大的改善了用户体验。In the embodiment of the present application, aiming at the brightness level problem under the low display brightness level DBV, the display brightness level is implemented by software to expand the number of levels. Both drag-brightness and auto-brightness present delicate and smooth transitions, which greatly improves the user experience.

本申请实施例中,通过调出软件等级,用硬件等级加上PCC的内容压缩拟合出来的等级,如可以把0-300等级或者0-450等级扩展到2000、3000、4000甚至更高等级。扩展的原则就是最终软件拟合等级的低亮度区间符合gamma理论(如gamma的2.2次幂)的递增规律。并且建设性的结合硬件等级的gamma参数,调整PCC系数内容,最终表现出手动拖亮度和自动亮度都呈现出细腻、平滑的过渡。In the embodiment of the present application, by calling out the software level, adding the hardware level and the content compression fitting level of the PCC, for example, the 0-300 level or the 0-450 level can be extended to 2000, 3000, 4000 or even higher levels . The principle of expansion is that the low brightness interval of the final software fitting level conforms to the increasing law of gamma theory (such as gamma to the power of 2.2). And constructively combine the gamma parameters of the hardware level to adjust the content of the PCC coefficient, and finally show a delicate and smooth transition between the manual drag brightness and the automatic brightness.

可以看出,本申请实施例中所描述的亮度调节方法,应用于电子设备,获取当前显示亮度等级,电子设备包括N个显示亮度等级,当前显示亮度等级为N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;在当前显示亮度等级低于预设阈值时,确定与当前显示亮度等级对应的目标显示亮度等级,目标显示亮度等级为当前显示亮度等级对应的扩展等级;根据目标显示亮度等级进行背光亮度调节,在低亮度区间的背光亮度调节过程中,对显示亮度等级进行等级数量扩展,实现相邻显示亮度等级之间的细腻、平滑过渡,进而避免出现背光抖动现象,有助于提升用户体验。It can be seen that the brightness adjustment method described in the embodiments of the present application is applied to an electronic device to obtain the current display brightness level. The electronic device includes N display brightness levels, and the current display brightness level is any one of the N display brightness levels. Display brightness level, N is an integer greater than 1; when the current display brightness level is lower than the preset threshold, determine the target display brightness level corresponding to the current display brightness level, and the target display brightness level is the extension level corresponding to the current display brightness level; The backlight brightness is adjusted according to the target display brightness level. During the backlight brightness adjustment process in the low-brightness interval, the number of levels is expanded to achieve a delicate and smooth transition between adjacent display brightness levels, thereby avoiding the phenomenon of backlight jitter. , which helps to improve the user experience.

与上述图3A所示的实施例一致地,请参阅图4,图4是本申请实施例提供的一种亮度调节方法的流程示意图,应用于电子设备,如图所示,本亮度调节方法包括:Consistent with the embodiment shown in FIG. 3A , please refer to FIG. 4 . FIG. 4 is a schematic flowchart of a brightness adjustment method provided by an embodiment of the present application, which is applied to electronic equipment. As shown in the figure, the brightness adjustment method includes: :

401、获取当前显示亮度等级,所述电子设备包括N个显示亮度等级,所述当前显示亮度等级为所述N个显示亮度等级中的任一显示亮度等级,N为大于1的整数。401. Obtain a current display brightness level, where the electronic device includes N display brightness levels, the current display brightness level is any display brightness level among the N display brightness levels, and N is an integer greater than 1.

402、在所述当前显示亮度等级低于预设阈值时,将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,所述预设区间范围包括所述当前显示亮度等级,M为大于1的整数。402. When the current display brightness level is lower than a preset threshold, expand the display brightness level of a preset interval range by the number of levels to obtain M display brightness levels, where the preset interval range includes the current display brightness level. , M is an integer greater than 1.

403、在亮度条上展示所述M个显示亮度等级。403. Display the M display brightness levels on the brightness bar.

404、接收针对所述亮度条的拖动指令。404. Receive a drag instruction for the brightness bar.

405、响应所述拖动指令,确定用户选取的目标显示亮度等级。405. In response to the dragging instruction, determine the display brightness level of the target selected by the user.

406、将所述当前显示亮度等级调节到所述目标显示亮度等级。406. Adjust the current display brightness level to the target display brightness level.

其中,上述步骤401-步骤406的具体描述可以参照如图3A所示的亮度调节方法的相应步骤,在此不再赘述。The specific description of the above steps 401 to 406 may refer to the corresponding steps of the brightness adjustment method as shown in FIG. 3A , which will not be repeated here.

可以看出,本申请实施例中所描述的亮度调节方法,应用于电子设备,获取当前显示亮度等级,电子设备包括N个显示亮度等级,当前显示亮度等级为N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;在当前显示亮度等级低于预设阈值时,将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,预设区间范围包括当前显示亮度等级,M为大于1的整数;在亮度条上展示M个显示亮度等级;接收针对亮度条的拖动指令;响应拖动指令,确定用户选取的目标显示亮度等级;将当前显示亮度等级调节到目标显示亮度等级,在低亮度区间的背光亮度调节过程中,对显示亮度等级进行等级数量扩展,由于在拖动过程中,显示亮度等级是逐步变化,不同等级之间就会非常平滑、细腻过渡,进而,避免出现背光抖动现象,从而提升用户体验。It can be seen that the brightness adjustment method described in the embodiments of the present application is applied to an electronic device to obtain the current display brightness level. The electronic device includes N display brightness levels, and the current display brightness level is any one of the N display brightness levels. Display brightness level, N is an integer greater than 1; when the current display brightness level is lower than the preset threshold, the display brightness level in the preset interval range is expanded by the number of levels to obtain M display brightness levels, and the preset interval range includes the current display brightness level. Display brightness level, M is an integer greater than 1; display M display brightness levels on the brightness bar; receive a drag command for the brightness bar; respond to the drag command, determine the target display brightness level selected by the user; display the current display brightness level Adjust to the target display brightness level. During the backlight brightness adjustment process in the low brightness range, the display brightness level is expanded by the number of levels. Since the display brightness level changes gradually during the dragging process, the different levels will be very smooth and smooth. Delicate transitions, and thus, avoid backlight jitter, thereby improving user experience.

与上述图3A所示的实施例一致地,请参阅图5,图5是本申请实施例提供的一种亮度调节方法的流程示意图,应用于电子设备,如图所示,本亮度调节方法包括:Consistent with the embodiment shown in FIG. 3A, please refer to FIG. 5. FIG. 5 is a schematic flowchart of a brightness adjustment method provided by an embodiment of the present application, which is applied to electronic equipment. As shown in the figure, the brightness adjustment method includes: :

501、获取当前显示亮度等级,所述电子设备包括N个显示亮度等级,所述当前显示亮度等级为所述N个显示亮度等级中的任一显示亮度等级,N为大于1的整数。501. Obtain a current display brightness level, where the electronic device includes N display brightness levels, the current display brightness level is any display brightness level among the N display brightness levels, and N is an integer greater than 1.

502、在所述当前显示亮度等级低于预设阈值时,将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,所述预设区间范围包括所述当前显示亮度等级,M为大于1的整数。502. When the current display brightness level is lower than a preset threshold, expand the display brightness level of a preset interval range by the number of levels to obtain M display brightness levels, where the preset interval range includes the current display brightness level. , M is an integer greater than 1.

503、获取目标环境参数。503. Obtain target environment parameters.

504、确定与所述目标环境参数对应的目标显示亮度等级,所述目标显示亮度等级为所述M个显示亮度等级中的一个显示亮度等级。504. Determine a target display brightness level corresponding to the target environment parameter, where the target display brightness level is one display brightness level among the M display brightness levels.

505、将所述当前显示亮度等级调节为所述目标显示亮度等级。505. Adjust the current display brightness level to the target display brightness level.

其中,上述步骤501-步骤505的具体描述可以参照如图3A所示的亮度调节方法的相应步骤,在此不再赘述。The specific description of the above steps 501 to 505 may refer to the corresponding steps of the brightness adjustment method as shown in FIG. 3A , which will not be repeated here.

可以看出,本申请实施例中所描述的亮度调节方法,应用于电子设备,获取当前显示亮度等级,电子设备包括N个显示亮度等级,当前显示亮度等级为N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;在当前显示亮度等级低于预设阈值时,将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,预设区间范围包括当前显示亮度等级,M为大于1的整数;获取目标环境参数;确定与目标环境参数对应的目标显示亮度等级,目标显示亮度等级为M个显示亮度等级中的一个显示亮度等级;将当前显示亮度等级调节为目标显示亮度等级,在低亮度区间的背光亮度调节过程中,对显示亮度等级进行等级数量扩展,由于在自动背光调节过程中,显示亮度等级是逐步变化,不同等级之间就会非常平滑、细腻过渡,进而,避免出现背光抖动现象,从而提升用户体验。It can be seen that the brightness adjustment method described in the embodiments of the present application is applied to an electronic device to obtain the current display brightness level. The electronic device includes N display brightness levels, and the current display brightness level is any one of the N display brightness levels. Display brightness level, N is an integer greater than 1; when the current display brightness level is lower than the preset threshold, the display brightness level in the preset interval range is expanded by the number of levels to obtain M display brightness levels, and the preset interval range includes the current display brightness level. Display brightness level, M is an integer greater than 1; obtain the target environment parameters; determine the target display brightness level corresponding to the target environment parameters, and the target display brightness level is one of the M display brightness levels; Adjust to the target display brightness level. During the backlight brightness adjustment process in the low brightness range, the display brightness level is expanded by the number of levels. Since the display brightness level changes gradually during the automatic backlight adjustment process, the different levels will be very smooth. , delicate transition, and then, to avoid the phenomenon of backlight jitter, so as to improve the user experience.

与上述实施例一致地,请参阅图6,图6是本申请实施例提供的一种电子设备的结构示意图,如图所示,该电子设备包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由处理器执行,本申请实施例中,上述程序包括用于执行以下步骤的指令:Consistent with the above-mentioned embodiment, please refer to FIG. 6, which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more A program, wherein the above-mentioned one or more programs are stored in the above-mentioned memory and are configured to be executed by a processor. In the embodiment of the present application, the above-mentioned program includes instructions for executing the following steps:

获取当前显示亮度等级,所述电子设备包括N个显示亮度等级,所述当前显示亮度等级为所述N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;Obtaining a current display brightness level, the electronic device includes N display brightness levels, the current display brightness level is any display brightness level in 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, determining a target display brightness level corresponding to the current display brightness level, where the target display brightness level is an extended level corresponding to the current display brightness level;

根据所述目标显示亮度等级进行背光亮度调节。The backlight brightness is adjusted 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 above program includes instructions for performing the following steps:

将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,所述预设区间范围包括所述当前显示亮度等级,M为大于1的整数;Expanding the display brightness level of the preset interval range by the number of levels, to obtain M display brightness levels, the preset interval range includes the current display brightness level, and M is an integer greater than 1;

根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级。The target display brightness level corresponding to the current display brightness level is determined according to the M display brightness levels.

可选的,在所述将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级方面,上述程序包括用于执行以下步骤的指令:Optionally, in the aspect of extending the display brightness levels of the preset interval range by the number of levels to obtain M display brightness levels, the above program includes instructions for performing the following steps:

根据多项式颜色校准矩阵PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级。According to the polynomial color calibration matrix PCC parameter, the display brightness levels of the preset interval range are expanded by the number of levels to obtain the M display brightness levels.

可选的,在所述根据多项式颜色校准矩阵PCC参数将预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级方面,上述程序包括用于执行以下步骤的指令:Optionally, in the aspect of extending the display brightness level of the preset interval range by the number of levels according to the polynomial color calibration matrix PCC parameter to obtain the M display brightness levels, the above program includes an instruction for performing the following steps:

确定所述预设区间范围的下限值和上限值;determining the lower limit value and the 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;

获取所述第一伽马参数和所述第二伽马参数之间的伽马曲线段;obtaining a gamma curve segment between the first gamma parameter and the second gamma parameter;

对所述伽马曲线段进行均匀采样,得到M个点,每一个点对应一个伽马参数;The gamma curve segment is uniformly sampled to obtain M points, each point corresponding to a gamma parameter;

根据所述M个点的伽马参数确定每一个点的多项式颜色校准矩阵PCC参数,得到M个PCC参数;Determine the polynomial color calibration matrix PCC parameter of each point according to the gamma parameters of the M points, and obtain M PCC parameters;

根据所述M个PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级。According to the M PCC parameters, the display brightness levels of the preset interval range are extended by the number of levels to obtain the M display brightness levels.

可选的,在所述根据所述M个PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级方面,上述程序包括用于执行以下步骤的指令:Optionally, in the aspect of extending the display brightness levels of the preset interval range by the number of levels according to the M PCC parameters to obtain the M display brightness levels, the above program includes instructions for performing the following steps: :

确定所述预设区间范围对应的显示亮度等级,得到P个显示亮度等级,P为小于或等于N的正整数;Determine the display brightness levels corresponding to the preset interval range, and obtain P display brightness levels, where P is a positive integer less than or equal to N;

确定所述P个显示亮度等级中每一显示亮度等级对应的PCC参数,得到P组PCC参数,每一组PCC参数包括M/P个PCC参数;Determine the PCC parameters corresponding to each display brightness level in the P display brightness levels, and obtain P groups of PCC parameters, and each group of PCC parameters includes M/P PCC parameters;

确定所述P个显示亮度等级中的每一显示亮度等级与对应组PCC参数中的PCC参数之间的乘积,得到P组乘积;Determine the product between each display brightness level in the P display brightness levels and the PCC parameters in the corresponding group of PCC parameters, to obtain P groups of products;

根据所述P组乘积确定所述M个显示亮度等级。The M display brightness levels are determined according to the P groups of products.

可选的,在所述根据所述伽马曲线段将所述伽马曲线段进行均匀采样,得到M个点方面,上述程序包括用于执行以下步骤的指令:Optionally, in the aspect of uniformly sampling the gamma curve segment according to the gamma curve segment to obtain M points, the above program includes instructions for performing the following steps:

对所述伽马曲线段进行截取操作,得到至少一个曲线段,所述至少一个曲线段中每一曲线段的端点对应一个显示亮度等级;performing an interception operation on the gamma curve segment to obtain at least one curve segment, and the endpoint of each curve segment in the at least one curve segment corresponds to a display brightness level;

对所述至少一个曲线段进行均匀采样,得到所述M个点。The at least one curve segment is uniformly sampled to obtain the M points.

可选的,在所述根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级方面,上述程序包括用于执行以下步骤的指令: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 above program includes instructions for performing the following steps:

在亮度条上展示所述M个显示亮度等级;displaying the M display brightness levels on the brightness bar;

接收针对所述亮度条的拖动指令;receiving a drag instruction for the brightness bar;

响应所述拖动指令,确定用户选取的所述目标显示亮度等级。In response to the dragging instruction, the display brightness level of the target selected by the user is determined.

可选的,在所述根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级方面,上述程序包括用于执行以下步骤的指令: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 above program includes instructions for performing the following steps:

获取目标环境参数;Get the target environment parameters;

确定与所述目标环境参数对应的所述目标显示亮度等级,所述目标显示亮度等级为所述M个显示亮度等级中的一个显示亮度等级。The target display brightness level corresponding to the target environment parameter is determined, and the target display brightness level is one display brightness level among the M display brightness levels.

可选的,上述程序还包括用于执行以下步骤的指令:Optionally, the above program also includes instructions for performing the following steps:

在所述当前显示亮度等级大于或等于所述预设阈值时,根据所述N个显示亮度等级进行背光亮度调节。When the current display brightness level is greater than or equal to the preset threshold, the backlight brightness adjustment is performed according to the N display brightness levels.

可以看出,本申请实施例中所描述的电子设备,获取当前显示亮度等级,电子设备包括N个显示亮度等级,当前显示亮度等级为N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;在当前显示亮度等级低于预设阈值时,确定与当前显示亮度等级对应的目标显示亮度等级,目标显示亮度等级为当前显示亮度等级对应的扩展等级;根据目标显示亮度等级进行背光亮度调节,在低亮度区间的背光亮度调节过程中,对显示亮度等级进行等级数量扩展,实现相邻显示亮度等级之间的细腻、平滑过渡,进而避免出现背光抖动现象,有助于提升用户体验。It can be seen that the electronic device described in the embodiment of the present application obtains the current display brightness level, 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 the preset threshold, the target display brightness level corresponding to the current display brightness level is determined, and the target display brightness level is the extended level corresponding to the current display brightness level; according to the target display brightness level Backlight brightness adjustment, in the process of backlight brightness adjustment in the low-brightness range, the display brightness level is expanded by the number of levels to achieve a delicate and smooth transition between adjacent display brightness levels, thereby avoiding the phenomenon of backlight jitter, and helping users improve experience.

上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions of the embodiments of the present application from the perspective of the method-side execution process. It can be understood that, in order to realize the above-mentioned functions, the electronic device includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or in the form of a combination of hardware and computer software, in combination with the units and algorithm steps of each example described in the embodiments provided herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the electronic device may be divided into functional units according to the foregoing method examples. 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 above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and other division methods may be used in actual implementation.

图7是本申请实施例中所涉及的亮度调节装置700的功能单元组成框图。该亮度调节装置700应用于电子设备,所述装置700包括:所述装置包括:获取单元701、扩展单元702和调节单元703,其中,FIG. 7 is a block diagram of functional units of the brightness adjustment apparatus 700 involved in the embodiment of the present application. The brightness adjustment apparatus 700 is applied to electronic equipment, and the apparatus 700 includes: the apparatus includes: an acquisition unit 701, an extension unit 702 and an adjustment unit 703, wherein,

所述获取单元701,用于获取当前显示亮度等级,所述电子设备包括N个显示亮度等级,所述当前显示亮度等级为所述N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;The obtaining unit 701 is configured to obtain the current display brightness level, the electronic device includes N display brightness levels, the current display brightness level is any display brightness level in the N display brightness levels, and N is greater than an integer of 1;

所述扩展单元702,用于在所述当前显示亮度等级低于预设阈值时,确定与所述当前显示亮度等级对应的目标显示亮度等级,所述目标显示亮度等级为所述当前显示亮度等级对应的扩展等级;The expansion 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 the current display brightness level the corresponding extension level;

所述调节单元703,用于根据所述目标显示亮度等级进行背光亮度调节。The adjusting unit 703 is configured to adjust the backlight brightness according to the target display brightness level.

可选的,在所述确定与所述当前显示亮度等级对应的目标显示亮度等级方面,所述扩展单元702具体用于:Optionally, in the aspect of determining the target display brightness level corresponding to the current display brightness level, the expansion unit 702 is specifically configured to:

将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,所述预设区间范围包括所述当前显示亮度等级,M为大于1的整数;Expanding the display brightness level of the preset interval range by the number of levels, to obtain M display brightness levels, the preset interval range includes the current display brightness level, and M is an integer greater than 1;

根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级。The target display brightness level corresponding to the current display brightness level is determined according to the M display brightness levels.

可选的,在所述将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级方面,所述扩展单元702具体用于:Optionally, in the aspect of extending the display brightness levels of the preset interval range by the number of levels to obtain M display brightness levels, the expansion unit 702 is specifically used for:

根据多项式颜色校准矩阵PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级。According to the polynomial color calibration matrix PCC parameter, the display brightness levels of the preset interval range are expanded by the number of levels to obtain the M display brightness levels.

可选的,在所述根据多项式颜色校准矩阵PCC参数将预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级方面,所述扩展单元702具体用于:Optionally, in the aspect of extending the display brightness level of the preset interval range by the number of levels according to the polynomial color calibration matrix PCC parameter to obtain the M display brightness levels, the expansion unit 702 is specifically used for:

可选的,在所述将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级方面,所述扩展单元702具体用于:Optionally, in the aspect of extending the display brightness levels of the preset interval range by the number of levels to obtain M display brightness levels, the expansion unit 702 is specifically used for:

确定所述预设区间范围的下限值和上限值;determining the lower limit value and the 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;

获取所述第一伽马参数和所述第二伽马参数之间的伽马曲线段;obtaining a gamma curve segment between the first gamma parameter and the second gamma parameter;

对所述伽马曲线段进行均匀采样,得到M个点,每一个点对应一个伽马参数;The gamma curve segment is uniformly sampled to obtain M points, each point corresponding to a gamma parameter;

根据所述M个点的伽马参数确定每一个点的多项式颜色校准矩阵PCC参数,得到M个PCC参数;Determine the polynomial color calibration matrix PCC parameter of each point according to the gamma parameters of the M points, and obtain M PCC parameters;

根据所述M个PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级。According to the M PCC parameters, the display brightness levels of the preset interval range are extended by the number of levels to obtain the M display brightness levels.

可选的,在所述根据所述M个PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级方面,所述扩展单元702具体用于:Optionally, in the aspect of extending the display brightness levels of the preset interval range by the number of levels according to the M PCC parameters to obtain the M display brightness levels, the expansion unit 702 is specifically configured to:

确定所述预设区间范围对应的显示亮度等级,得到P个显示亮度等级,P为小于或等于N的正整数;Determine the display brightness levels corresponding to the preset interval range, and obtain P display brightness levels, where P is a positive integer less than or equal to N;

确定所述P个显示亮度等级中每一显示亮度等级对应的PCC参数,得到P组PCC参数,每一组PCC参数包括M/P个PCC参数;Determine the PCC parameters corresponding to each display brightness level in the P display brightness levels, and obtain P groups of PCC parameters, and each group of PCC parameters includes M/P PCC parameters;

确定所述P个显示亮度等级中的每一显示亮度等级与对应组PCC参数中的PCC参数之间的乘积,得到P组乘积;Determine the product between each display brightness level in the P display brightness levels and the PCC parameters in the corresponding group of PCC parameters, to obtain P groups of products;

根据所述P组乘积确定所述M个显示亮度等级。The M display brightness levels are determined according to the P groups of products.

可选的,在所述根据所述伽马曲线段将所述伽马曲线段进行均匀采样,得到M个点方面,所述扩展单元702具体用于:Optionally, in the aspect of uniformly sampling the gamma curve segment according to the gamma curve segment to obtain M points, the expansion unit 702 is specifically configured to:

对所述伽马曲线段进行截取操作,得到至少一个曲线段,所述至少一个曲线段中每一曲线段的端点对应一个显示亮度等级;performing an interception operation on the gamma curve segment to obtain at least one curve segment, and the endpoint of each curve segment in the at least one curve segment corresponds to a display brightness level;

对所述至少一个曲线段进行均匀采样,得到所述M个点。The at least one curve segment is uniformly sampled to obtain the M points.

可选的,在所述根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级方面,所述扩展单元702具体用于: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 expansion unit 702 is specifically configured to:

在亮度条上展示所述M个显示亮度等级;displaying the M display brightness levels on the brightness bar;

接收针对所述亮度条的拖动指令;receiving a drag instruction for the brightness bar;

响应所述拖动指令,确定用户选取的所述目标显示亮度等级。In response to the dragging instruction, the display brightness level of the target selected by the user is determined.

可选的,在所述根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级方面,所述扩展单元702具体用于: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 expansion unit 702 is specifically configured to:

获取目标环境参数;Get the target environment parameters;

确定与所述目标环境参数对应的所述目标显示亮度等级,所述目标显示亮度等级为所述M个显示亮度等级中的一个显示亮度等级。The target display brightness level corresponding to the target environment parameter is determined, and the target display brightness level is one display brightness level among the M display brightness levels.

可选的,所述装置700还具体用于:Optionally, the device 700 is also specifically used for:

在所述当前显示亮度等级大于或等于所述预设阈值时,根据所述N个显示亮度等级进行背光亮度调节。When the current display brightness level is greater than or equal to the preset threshold, the backlight brightness adjustment is performed according to the N display brightness levels.

可以看出,本申请实施例中所描述的亮度调节装置,应用于电子设备,获取当前显示亮度等级,电子设备包括N个显示亮度等级,当前显示亮度等级为N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;在当前显示亮度等级低于预设阈值时,确定与当前显示亮度等级对应的目标显示亮度等级,目标显示亮度等级为当前显示亮度等级对应的扩展等级;根据目标显示亮度等级进行背光亮度调节,在低亮度区间的背光亮度调节过程中,对显示亮度等级进行等级数量扩展,实现相邻显示亮度等级之间的细腻、平滑过渡,进而避免出现背光抖动现象,有助于提升用户体验。It can be seen that the brightness adjustment device described in the embodiments of the present application is applied to electronic equipment to obtain the current display brightness level, the electronic equipment includes N display brightness levels, and the current display brightness level is any one of the N display brightness levels Display brightness level, N is an integer greater than 1; when the current display brightness level is lower than the preset threshold, determine the target display brightness level corresponding to the current display brightness level, and the target display brightness level is the extension level corresponding to the current display brightness level; The backlight brightness is adjusted according to the target display brightness level. During the backlight brightness adjustment process in the low-brightness interval, the number of levels is expanded to achieve a delicate and smooth transition between adjacent display brightness levels, thereby avoiding the phenomenon of backlight jitter. , which helps to improve the user experience.

需要注意的是,本申请实施例所描述的电子设备是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。It should be noted that the electronic devices described in the embodiments of the present application are presented in the form of functional units. The term "unit" as used herein should be understood in the broadest possible sense, and the object used to implement the functions described by each "unit" may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware Program processors (shared, dedicated, or chipset) and memory, combinational logic circuits, and/or other suitable components that provide the functions described above.

其中,获取单元701、扩展单元702和调节单元703可以是处理器,该处理器可以为人工智能芯片、NPU、CPU、GPU等等,在此不做限定。基于上述单元模块能够实现上述任一方法的功能或者步骤。The acquisition unit 701 , the expansion unit 702 and the adjustment unit 703 may be processors, and the processors may be artificial intelligence chips, NPUs, CPUs, GPUs, etc., which are not limited herein. Based on the above unit modules, the functions or steps of any of the above methods can be implemented.

本实施例还提供了一种计算机可读存储介质,其中,该计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例,以用于实现上述实施例中的任一方法。This embodiment also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program causes a computer to execute the embodiments of the present application, so as to realize any of the methods described above.

本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的任一方法。This embodiment also provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the above-mentioned relevant steps, so as to implement any of the methods in the above-mentioned embodiments.

另外,本申请的实施例还提供一种亮度调节装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的任一方法。In addition, the embodiments of the present application also provide a brightness adjustment device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, and when the device runs At the time, the processor can execute the computer-executed instructions stored in the memory, so that the chip executes any one of the foregoing method embodiments.

其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved, reference can be made to the corresponding provided above. The beneficial effects of the method will not be repeated here.

通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。From the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated by different The function module is completed, that is, the internal structure of the device is divided into different function modules, so as to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。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 this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that make contributions to the prior art, or all or part of the technical solutions, which are stored in a storage medium. , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk and other media that can store program codes.

以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above content is only a specific embodiment of the present application, but the protection scope of the present application is not limited to this. Covered within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1.一种亮度调节方法,其特征在于,应用于电子设备,所述方法包括:1. a brightness adjustment method, is characterized in that, is applied to electronic equipment, described method comprises: 获取当前显示亮度等级,所述电子设备包括N个显示亮度等级,所述当前显示亮度等级为所述N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;Obtaining a current display brightness level, the electronic device includes N display brightness levels, the current display brightness level is any display brightness level in 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, determining a target display brightness level corresponding to the current display brightness level, where the target display brightness level is an extended level corresponding to the current display brightness level; 根据所述目标显示亮度等级进行背光亮度调节。The backlight brightness is adjusted according to the target display brightness level. 2.根据权利要求1所述的方法,其特征在于,所述确定与所述当前显示亮度等级对应的目标显示亮度等级,包括:2. The method according to claim 1, wherein the determining the target display brightness level corresponding to the current display brightness level comprises: 将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,所述预设区间范围包括所述当前显示亮度等级,M为大于1的整数;Expanding the display brightness level of the preset interval range by the number of levels, to obtain M display brightness levels, the preset interval range includes the current display brightness level, and M is an integer greater than 1; 根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级。The target display brightness level corresponding to the current display brightness level is determined according to the M display brightness levels. 3.根据权利要求2所述的方法,其特征在于,所述将预设区间范围的显示亮度等级进行等级数量扩展,得到M个显示亮度等级,包括:3. The method according to claim 2, wherein the display brightness level of the preset interval range is expanded by the number of levels to obtain M display brightness levels, comprising: 根据多项式颜色校准矩阵PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级。According to the polynomial color calibration matrix PCC parameter, the display brightness levels of the preset interval range are extended by the number of levels to obtain the M display brightness levels. 4.根据权利要求3所述的方法,其特征在于,所述根据多项式颜色校准矩阵PCC参数将预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级,包括:4. The method according to claim 3, wherein the display brightness level of the preset interval range is expanded by the number of levels according to the polynomial color calibration matrix PCC parameter, so as to obtain the M display brightness levels, comprising: 确定所述预设区间范围的下限值和上限值;determining the lower limit value and the 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; 获取所述第一伽马参数和所述第二伽马参数之间的伽马曲线段;obtaining a gamma curve segment between the first gamma parameter and the second gamma parameter; 对所述伽马曲线段进行均匀采样,得到M个点,每一个点对应一个伽马参数;The gamma curve segment is uniformly sampled to obtain M points, each point corresponding to a gamma parameter; 根据所述M个点的伽马参数确定每一个点的多项式颜色校准矩阵PCC参数,得到M个PCC参数;Determine the polynomial color calibration matrix PCC parameter of each point according to the gamma parameters of the M points to obtain M PCC parameters; 根据所述M个PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级。The display brightness levels of the preset interval range are expanded by the number of levels according to the M PCC parameters to obtain the M display brightness levels. 5.根据权利要求4所述的方法,其特征在于,所述根据所述M个PCC参数将所述预设区间范围的显示亮度等级进行等级数量扩展,得到所述M个显示亮度等级,包括:5 . The method according to claim 4 , wherein the display brightness levels of the preset interval range are expanded by the number of levels according to the M PCC parameters to obtain the M display brightness levels, including: 6 . : 确定所述预设区间范围对应的显示亮度等级,得到P个显示亮度等级,P为小于或等于N的正整数;Determine the display brightness levels corresponding to the preset interval range, and obtain P display brightness levels, where P is a positive integer less than or equal to N; 确定所述P个显示亮度等级中每一显示亮度等级对应的PCC参数,得到P组PCC参数,每一组PCC参数包括M/P个PCC参数;Determine the PCC parameter corresponding to each display brightness level in the P display brightness levels, obtain P groups of PCC parameters, and each group of PCC parameters includes M/P PCC parameters; 确定所述P个显示亮度等级中的每一显示亮度等级与对应组PCC参数中的PCC参数之间的乘积,得到P组乘积;Determine the product between each display brightness level in the P display brightness levels and the PCC parameters in the corresponding group of PCC parameters, to obtain P groups of products; 根据所述P组乘积确定所述M个显示亮度等级。The M display brightness levels are determined according to the P groups of products. 6.根据权利要求4所述的方法,其特征在于,所述根据所述伽马曲线段将所述伽马曲线段进行均匀采样,得到M个点,包括:6. The method according to claim 4, wherein the performing uniform sampling on the gamma curve segment according to the gamma curve segment to obtain M points, comprising: 对所述伽马曲线段进行截取操作,得到至少一个曲线段,所述至少一个曲线段中每一曲线段的端点对应一个显示亮度等级;performing an interception operation on the gamma curve segment to obtain at least one curve segment, and the endpoint of each curve segment in the at least one curve segment corresponds to a display brightness level; 对所述至少一个曲线段进行均匀采样,得到所述M个点。The at least one curve segment is uniformly sampled to obtain the M points. 7.根据权利要求2-6任一项所述的方法,其特征在于,所述根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级,包括:7. The method according to any one of claims 2-6, wherein the determining the target display brightness level corresponding to the current display brightness level according to the M display brightness levels comprises: 在亮度条上展示所述M个显示亮度等级;displaying the M display brightness levels on the brightness bar; 接收针对所述亮度条的拖动指令;receiving a drag instruction for the brightness bar; 响应所述拖动指令,确定用户选取的所述目标显示亮度等级。In response to the dragging instruction, the display brightness level of the target selected by the user is determined. 8.根据权利要求2-6任一项所述的方法,其特征在于,所述根据所述M个显示亮度等级确定与所述当前显示亮度等级对应的所述目标显示亮度等级,包括:8. The method according to any one of claims 2-6, wherein the determining the target display brightness level corresponding to the current display brightness level according to the M display brightness levels comprises: 获取目标环境参数;Get the target environment parameters; 确定与所述目标环境参数对应的所述目标显示亮度等级,所述目标显示亮度等级为所述M个显示亮度等级中的一个显示亮度等级。The target display brightness level corresponding to the target environment parameter is determined, and the target display brightness level is one display brightness level among the M display brightness levels. 9.根据权利要求1-8任一项所述的方法,其特征在于,所述方法还包括:9. The method according to any one of claims 1-8, wherein the method further comprises: 在所述当前显示亮度等级大于或等于所述预设阈值时,根据所述N个显示亮度等级进行背光亮度调节。When the current display brightness level is greater than or equal to the preset threshold, the backlight brightness is adjusted according to the N display brightness levels. 10.一种亮度调节装置,其特征在于,应用于电子设备,所述装置包括:获取单元、扩展单元和调节单元,其中,10. A brightness adjustment device, characterized in that, when applied to electronic equipment, the device comprises: an acquisition unit, an expansion unit, and an adjustment unit, wherein, 所述获取单元,用于获取当前显示亮度等级,所述电子设备包括N个显示亮度等级,所述当前显示亮度等级为所述N个显示亮度等级中的任一显示亮度等级,N为大于1的整数;The obtaining unit is configured to obtain the current display brightness level, the electronic device includes N display brightness levels, the current display brightness level is any display brightness level in the N display brightness levels, and N is greater than 1 the integer; 所述扩展单元,用于在所述当前显示亮度等级低于预设阈值时,确定与所述当前显示亮度等级对应的目标显示亮度等级,所述目标显示亮度等级为所述当前显示亮度等级对应的扩展等级;The expansion unit 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 corresponds to the current display brightness level extension level; 所述调节单元,用于根据所述目标显示亮度等级进行背光亮度调节。The adjustment unit is configured to adjust the backlight brightness according to the target display brightness level. 11.一种电子设备,其特征在于,所述电子设备包括处理器、存储器,所述存储器用于存储一个或多个程序,并且被配置处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。11. An electronic device, characterized in that the electronic device comprises a processor and a memory, the memory is used to store one or more programs, and is configured to be executed by the processor, the program including a program for executing the program as claimed in the claims Instructions for steps in the method of any one of 1-9. 12.一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。12. A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115331637A (en) * 2022-08-26 2022-11-11 上海闻泰信息技术有限公司 Method, device, electronic device and storage medium for adjusting screen backlight brightness
CN115346497A (en) * 2022-08-30 2022-11-15 联想长风科技(北京)有限公司 High-brightness screen adjusting control circuit, method and system thereof
CN118471139A (en) * 2023-07-03 2024-08-09 荣耀终端有限公司 Display method, electronic device and storage medium
CN120052803A (en) * 2025-04-25 2025-05-30 杭州科飞视神科技有限公司 A measurement system for spatial contrast sensitivity curve

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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115331637A (en) * 2022-08-26 2022-11-11 上海闻泰信息技术有限公司 Method, device, electronic device and storage medium for adjusting screen backlight brightness
CN115346497A (en) * 2022-08-30 2022-11-15 联想长风科技(北京)有限公司 High-brightness screen adjusting control circuit, method and system thereof
CN118471139A (en) * 2023-07-03 2024-08-09 荣耀终端有限公司 Display method, electronic device and storage medium
CN120052803A (en) * 2025-04-25 2025-05-30 杭州科飞视神科技有限公司 A measurement system for spatial contrast sensitivity curve

Also Published As

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

Similar Documents

Publication Publication Date Title
CN114816210B (en) A full-screen display method and device for a mobile terminal
CN112040361B (en) Earphone control method, earphone control device and storage medium
CN114596819B (en) Brightness adjusting method and related device
CN111553846B (en) Super-resolution processing method and device
CN111400605A (en) Recommendation method and device based on eyeball tracking
CN111882642B (en) Texture filling method and device for three-dimensional model
CN111768352B (en) Image processing method and device
CN113177229B (en) Data processing method and related device
WO2022089216A1 (en) Interface display method and electronic device
CN110780929A (en) Method and electronic device for calling hardware interface
CN114237646A (en) Game trial playing method and related device
CN113781959B (en) Interface processing method and device
CN114422686B (en) Parameter adjustment method and related device
WO2024109198A1 (en) Window adjustment method and related apparatus
CN117234398A (en) Screen brightness adjusting method and electronic equipment
CN114244655B (en) Signal processing methods and related devices
CN115933952B (en) A touch sampling rate adjustment method and related devices
CN111836226B (en) Data transmission control method, device and storage medium
CN116931802A (en) Control methods and central control equipment
CN114630152A (en) Parameter transmission method, device and storage medium for image processor
CN115083400A (en) Voice assistant awakening method and device
CN114519891A (en) Backlight adjustment method, device and storage medium
CN114336998A (en) Charging control method, charging control device and storage medium
CN113311380B (en) Calibration method, device and storage medium
CN111459271B (en) Gaze offset error determination method and 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