WO2015176524A1 - Power consumption adjustment method and electronic device - Google Patents

Power consumption adjustment method and electronic device Download PDF

Info

Publication number
WO2015176524A1
WO2015176524A1 PCT/CN2014/093310 CN2014093310W WO2015176524A1 WO 2015176524 A1 WO2015176524 A1 WO 2015176524A1 CN 2014093310 W CN2014093310 W CN 2014093310W WO 2015176524 A1 WO2015176524 A1 WO 2015176524A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
color value
mapping information
low power
pixel data
Prior art date
Application number
PCT/CN2014/093310
Other languages
French (fr)
Chinese (zh)
Inventor
齐波
张博
张淑燕
Original Assignee
西安中兴新软件有限责任公司
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 西安中兴新软件有限责任公司 filed Critical 西安中兴新软件有限责任公司
Publication of WO2015176524A1 publication Critical patent/WO2015176524A1/en

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • 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)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Liquid Crystal Display Device Control (AREA)
  • Instructional Devices (AREA)

Abstract

A power consumption adjustment method and electronic device, the method comprising: when pixel data in a frame cache is updated, determining, according to a color mapping information list, a low-power-consumption color value corresponding to the color value of the pixel data, and replacing the color value of the pixel data in the frame cache with the low-power-consumption color value (101); and displaying according to the replaced pixel data in the frame cache (102).

Description

一种调整功耗的方法及电子设备Method and electronic device for adjusting power consumption 技术领域Technical field
本发明涉及电子设备的控制技术,尤其涉及一种调整功耗的方法及电子设备。The present invention relates to control technologies for electronic devices, and more particularly to a method and electronic device for adjusting power consumption.
背景技术Background technique
电子设备尤其是移动终端的功能已经不再局限于基本的信息沟通,视频、聊天、办公、游戏等功能也接踵而至。特别是近几年随着移动终端的硬件配置逐步提升和使用越来越广泛,内部集成或早期开发的简单应用,例如小游戏已经不能再满足人们对终端上游戏应用的绚丽度、流畅度和复杂的新需求,很多画面更佳,动画效果更复杂的应用也已经相继出现在移动设备上。但是,随着越来越多的画面复杂且绚丽的应用在电子设备中运行,使得电子设备的功耗越来越大,从而严重影响了电子设备的续航时间。The functions of electronic devices, especially mobile terminals, are no longer limited to basic information communication, and functions such as video, chat, office, and games are also coming. In particular, in recent years, as the hardware configuration of mobile terminals has been gradually improved and used more and more, simple applications such as internal games or early development, such as small games, can no longer satisfy the brilliance and smoothness of people's game applications on the terminal. Complex new requirements, many better images, and more complex animation applications have appeared on mobile devices. However, as more and more complex and beautiful applications run in electronic devices, the power consumption of electronic devices is increasing, which seriously affects the life time of electronic devices.
发明内容Summary of the invention
为解决上述技术问题,本发明实施例提供一种调整功耗的方法及电子设备,能至少解决背景技术中存在的上述问题。In order to solve the above technical problem, an embodiment of the present invention provides a method and an electronic device for adjusting power consumption, which can at least solve the above problems in the background art.
本发明实施例提供了一种调整功耗的方法,所述方法包括:An embodiment of the present invention provides a method for adjusting power consumption, where the method includes:
当帧缓存中的像素数据更新时,When the pixel data in the frame buffer is updated,
根据颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值,将所述帧缓存中所述像素数据的颜色值替换为所述低功耗颜色值;Determining, according to the color mapping information table, a low power consumption color value corresponding to the color value of the pixel data, and replacing a color value of the pixel data in the frame buffer with the low power consumption color value;
根据所述帧缓存中替换后的像素数据进行显示。Display is performed according to the replaced pixel data in the frame buffer.
上述方案中,所述颜色映射信息表包括:原始颜色值、及原始颜色值对应的低功耗颜色值。 In the above solution, the color mapping information table includes: an original color value, and a low power consumption color value corresponding to the original color value.
上述方案中,所述方法还包括:保存一个或多个颜色映射信息表;In the above solution, the method further includes: saving one or more color mapping information tables;
所述颜色映射信息表包括:四个信息域;The color mapping information table includes: four information fields;
其中,第一信息域为标识信息,用于标识所述颜色映射信息表对应的应用;The first information field is identifier information, and is used to identify an application corresponding to the color mapping information table.
第二信息域为原始颜色值;The second information field is a raw color value;
第三信息域为原始颜色值对应的低功耗颜色值;The third information field is a low power color value corresponding to the original color value;
第四信息域为原始颜色值对应的备选低功耗颜色值。The fourth information field is an alternate low power color value corresponding to the original color value.
上述方案中,所述根据颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值之前,所述方法还包括:In the above solution, before the determining the low power consumption color value corresponding to the color value of the pixel data according to the color mapping information table, the method further includes:
确定所述帧缓存对应的应用,根据所述应用的标识选定颜色映射信息表。Determining an application corresponding to the frame buffer, and selecting a color mapping information table according to the identifier of the application.
上述方案中,所述根据颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值,将所述帧缓存中所述像素数据的颜色值替换为所述低功耗颜色值,包括:In the above solution, the determining, according to the color mapping information table, a low power consumption color value corresponding to the color value of the pixel data, and replacing the color value of the pixel data in the frame buffer with the low power consumption color value. ,include:
从像素数据中提取颜色值,将提取的所述颜色值作为原始颜色值,根据颜色映射信息表,确定原始颜色值对应的低功耗颜色值;Extracting a color value from the pixel data, using the extracted color value as an original color value, and determining a low power consumption color value corresponding to the original color value according to the color mapping information table;
将提取颜色值替换为所述低功耗颜色值;Replacing the extracted color value with the low power color value;
依此类推,直至像素数据中的全部颜色值均替换为所述低功耗颜色值。And so on, until all color values in the pixel data are replaced with the low power color values.
上述方案中,所述方法还包括:当应用初始化时,保存对所述应用对应的颜色映射信息表的设置。In the above solution, the method further includes: when the application is initialized, saving a setting of a color mapping information table corresponding to the application.
本发明实施例还提供了一种电子设备,所述电子设备包括:An embodiment of the present invention further provides an electronic device, where the electronic device includes:
监测模块,用于当监测到帧缓存中的像素数据更新时,通知执行模块进行颜色值转换;a monitoring module, configured to notify the execution module to perform color value conversion when the pixel data update in the frame buffer is detected;
执行模块,用于根据监测模块发来的通知,根据映射信息库中的颜 色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值,将所述帧缓存中所述像素数据的颜色值替换为所述低功耗颜色值;An execution module, configured according to the notification sent by the monitoring module, according to the color in the mapping information base The color mapping information table determines a low power consumption color value corresponding to the color value of the pixel data, and replaces a color value of the pixel data in the frame buffer with the low power consumption color value;
显示单元,用于根据所述帧缓存中替换后的像素数据进行显示;a display unit, configured to display according to the replaced pixel data in the frame buffer;
映射信息库,用于保存颜色映射信息表。A mapping information base for saving a color mapping information table.
上述方案中,所述映射信息库,具体用于保存由原始颜色值、及原始颜色值对应的低功耗颜色值组成的颜色映射信息表。In the above solution, the mapping information base is specifically configured to save a color mapping information table composed of original color values and low power consumption color values corresponding to original color values.
上述方案中,所述映射信息库,具体用于保存一个或多个颜色映射信息表;In the foregoing solution, the mapping information base is specifically configured to save one or more color mapping information tables;
所述颜色映射信息表包括:四个信息域;The color mapping information table includes: four information fields;
其中,第一信息域为标识信息,用于标识所述颜色映射信息表对应的应用;The first information field is identifier information, and is used to identify an application corresponding to the color mapping information table.
第二信息域为原始颜色值;The second information field is a raw color value;
第三信息域为原始颜色值对应的低功耗颜色值;The third information field is a low power color value corresponding to the original color value;
第四信息域为原始颜色值对应的备选低功耗颜色值。The fourth information field is an alternate low power color value corresponding to the original color value.
上述方案中,所述执行模块包括:色彩信息查找子模块,用于确定所述帧缓存对应的应用,根据所述应用的标识从所述映射信息库中选定颜色映射信息表。In the above solution, the execution module includes: a color information searching sub-module, configured to determine an application corresponding to the frame buffer, and select a color mapping information table from the mapping information library according to the identifier of the application.
上述方案中,所述执行模块还包括:替换子单元,用于从像素数据中提取颜色值,将提取的所述颜色值作为原始颜色值发送至色彩信息查找子模块,接收色彩信息查找子模块返回的低功耗颜色,将提取颜色值替换为所述低功耗颜色值;依此类推,直至像素数据中的全部颜色值均替换为所述低功耗颜色值;In the above solution, the execution module further includes: a replacement subunit, configured to extract a color value from the pixel data, and send the extracted color value as a original color value to the color information search submodule, and receive the color information search submodule Returning a low power color, replacing the extracted color value with the low power color value; and so on, until all color values in the pixel data are replaced with the low power color value;
相应的,所述色彩信息查找子模块,还用于根据映射信息库的颜色映射信息表,确定原始颜色值对应的低功耗颜色值。Correspondingly, the color information searching sub-module is further configured to determine a low-power color value corresponding to the original color value according to the color mapping information table of the mapping information library.
上述方案中,所述电子设备还包括:色彩信息配置模块,用于当应 用初始化时,将对所述应用对应的颜色映射信息表的设置保存至映射信息库中。In the above solution, the electronic device further includes: a color information configuration module, When the initialization is performed, the settings of the color mapping information table corresponding to the application are saved in the mapping information base.
本发明实施例所提供的调整功耗的方法及电子设备,能根据颜色映射信息表将帧缓存中像素数据的颜色值转换为低功耗颜色值,如此,就能够在保证不对应用的运行产生影响的情况下,降低电子设备的运行功耗,提升电子设备的续航能力,保证了用户的使用体验。The method and the electronic device for adjusting power consumption provided by the embodiments of the present invention can convert the color value of the pixel data in the frame buffer into a low-power color value according to the color mapping information table, so that the operation of the application can be ensured. Under the influence of the situation, the operating power consumption of the electronic device is reduced, the endurance capability of the electronic device is improved, and the user experience is ensured.
附图说明DRAWINGS
图1为本发明实施例提供的调整功耗的方法流程示意图一;1 is a schematic flowchart 1 of a method for adjusting power consumption according to an embodiment of the present invention;
图2为本发明实施例提供的电子设备组成结构示意图一;2 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present invention;
图3为本发明实施例提供的调整功耗的方法流程示意图二;3 is a schematic flowchart 2 of a method for adjusting power consumption according to an embodiment of the present invention;
图4为本发明实施例提供的调整功耗的方法流程示意图三;4 is a schematic flowchart 3 of a method for adjusting power consumption according to an embodiment of the present invention;
图5a为不启用本发明实施例的原始显示界面示意图;FIG. 5a is a schematic diagram of an original display interface that does not enable an embodiment of the present invention; FIG.
图5b为启用本发明实施例调整功耗后的显示界面示意图;FIG. 5b is a schematic diagram of a display interface after the power consumption is adjusted according to an embodiment of the present invention; FIG.
图6为本发明实施例提供的电子设备组成结构示意图二;FIG. 6 is a second schematic structural diagram of an electronic device according to an embodiment of the present invention;
图7为本发明实施例提供的颜色映射信息表组成示意图。FIG. 7 is a schematic diagram of a composition of a color mapping information table according to an embodiment of the present invention.
具体实施方式detailed description
下面结合附图及具体实施例对本发明再作进一步详细的说明。The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
实施例一、Embodiment 1
图1是本发明实施例提供的调整功耗的方法,具体如下:FIG. 1 is a method for adjusting power consumption according to an embodiment of the present invention, which is specifically as follows:
步骤101:当帧缓存中的像素数据更新时,根据颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值,将所述帧缓存中所述像素数据的颜色值替换为所述低功耗颜色值。Step 101: When the pixel data in the frame buffer is updated, determining a low power consumption color value corresponding to the color value of the pixel data according to the color mapping information table, and replacing the color value of the pixel data in the frame buffer with The low power color value.
步骤102:根据所述帧缓存中替换后的像素数据进行显示。Step 102: Display according to the replaced pixel data in the frame buffer.
这里,所述像素数据为现有技术中帧缓存中缓存的数据信息,可以 包括:与系统每一帧的分辨率相对应的多个像素点,以及每个像素点对应的颜色值,比如,分辨率为800x600,则像素数据包括800x600个像素点,及每个像素点对应的颜色值。Here, the pixel data is data information buffered in a frame buffer in the prior art, and may be The method includes: a plurality of pixel points corresponding to the resolution of each frame of the system, and a color value corresponding to each pixel point. For example, if the resolution is 800×600, the pixel data includes 800×600 pixels, and each pixel corresponds to The color value.
所述颜色映射信息表包括:原始颜色值、及所述原始颜色值对应的低功耗颜色值;其中,所述低功耗颜色值即颜色值中的亮度值比所述原始颜色值低指定值的颜色值。所述指定值可以为根据实际情况预设的数值。The color mapping information table includes: an original color value, and a low power consumption color value corresponding to the original color value; wherein the low power color value, that is, the brightness value in the color value is lower than the original color value The color value of the value. The specified value may be a value preset according to actual conditions.
这里,可以理解的是,现有技术中帧缓存中像素数据采用了HSL颜色模式,即色相(H)、饱和度(S)、明度(L)模式;这种模式下,在显示帧缓存的像素数据时,在色调和饱和度不变的前提下,颜色的亮度值越低则越节省功耗。因此,通过将颜色值替换为亮度值低的颜色值时,就会降低显示功耗值。Here, it can be understood that the pixel data in the frame buffer in the prior art adopts the HSL color mode, that is, the hue (H), saturation (S), and lightness (L) modes; in this mode, the frame buffer is displayed. In the case of pixel data, the lower the brightness value of the color, the lower the power consumption. Therefore, by replacing the color value with a color value with a low luminance value, the display power consumption value is lowered.
优选地,系统可以保存一个或多个颜色映射信息表,每个颜色映射信息表对应一种应用,其中,所述应用可以为游戏,或者网页应用等;Preferably, the system may save one or more color mapping information tables, where each color mapping information table corresponds to an application, wherein the application may be a game, or a web application;
所述颜色映射信息表可以包括:四个信息域;The color mapping information table may include: four information fields;
其中,第一信息域为标识信息,用于标识所述颜色映射信息表对应的应用,可以包括所述应用的标识,即所述颜色映射信息表是属于哪一个应用的配置信息,所述应用的标识可以为应用的名称;The first information field is the identification information, and is used to identify the application corresponding to the color mapping information table, and may include the identifier of the application, that is, the configuration information of the application to which the color mapping information table belongs. The identifier can be the name of the application;
第二信息域为一个或多个原始颜色值;The second information field is one or more original color values;
第三信息域为原始颜色值对应的低功耗颜色值;所述低功耗颜色值可以由用户选则,或者由系统选择;The third information field is a low power color value corresponding to the original color value; the low power color value may be selected by the user or selected by the system;
第四信息域为原始颜色值对应的备选低功耗颜色值。The fourth information field is an alternate low power color value corresponding to the original color value.
相应的,所述根据颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值之前,可以包括:确定所述帧缓存对应的应用,根据所述应用的标识选定颜色映射信息表。 Correspondingly, before determining the low power consumption color value corresponding to the color value of the pixel data according to the color mapping information table, the method may include: determining an application corresponding to the frame buffer, and selecting a color mapping according to the identifier of the application Information Sheet.
其中,所述确定帧缓存对应的应用为现有技术,比如直接由CPU记录的当前运行的应用来确定。The application corresponding to the determined frame buffer is prior art, such as directly determined by the currently running application recorded by the CPU.
优选地,所述根据颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值,将所述帧缓存中所述像素数据的颜色值替换为所述低功耗颜色值,可以包括:Preferably, the determining, according to the color mapping information table, a low power consumption color value corresponding to a color value of the pixel data, and replacing a color value of the pixel data in the frame buffer with the low power consumption color value, Can include:
从像素数据中提取颜色值,Extract color values from pixel data,
将提取的所述颜色值作为原始颜色值,根据颜色映射信息表,确定原始颜色值对应的低功耗颜色值;Determining the extracted color value as an original color value, and determining a low power consumption color value corresponding to the original color value according to the color mapping information table;
将提取颜色值替换为所述低功耗颜色值;依此类推,直至像素数据中的全部颜色值均替换为所述低功耗颜色值。The extracted color value is replaced with the low power color value; and so on, until all color values in the pixel data are replaced with the low power color value.
其中,所述提取像素数据可以为按照像素数据的队列从头开始提取;其中,所述像素数据的队列的排列顺序为现有技术,这里不做赘述。The extracted pixel data may be extracted from the beginning of the queue according to the pixel data; wherein the order of the queues of the pixel data is prior art, and details are not described herein.
优选地,在执行步骤101之前,还可以包括:设置所述颜色映射信息表;或者,当任意一个应用初始化时,设置所述应用对应的颜色映射信息表。Preferably, before performing step 101, the method further includes: setting the color mapping information table; or, when any one of the applications is initialized, setting a color mapping information table corresponding to the application.
其中,所述当任意一个应用初始化时,保存所述应用对应的所述颜色映射信息表具体为:当任意一个应用进行初始化时,显示所述应用对应的颜色映射信息表的设置界面,接收并保存设置完成后的颜色映射信息表;The storing the color mapping information table corresponding to the application when the application is initialized is specifically: when any one of the applications is initialized, displaying a setting interface of the color mapping information table corresponding to the application, receiving and Save the color mapping information table after the setting is completed;
比如,在游戏初始化的时候,系统将所述应用对应的颜色映射信息表的设置界面展示给用户,用户设置完成并确认后则建立所述应用对应的颜色映射信息表。同样,用户可以根据自己的审美喜好从备选的低功耗颜色组中选择合适的映射颜色,以此来重新配置映射数据库,即自主给映射数据库中高功耗的颜色值设置一个对应的低功耗颜色,从而构建起一个新的映射数据库。 For example, when the game is initialized, the system displays the setting interface of the color mapping information table corresponding to the application to the user, and after the user sets and confirms, the color mapping information table corresponding to the application is established. Similarly, the user can reconfigure the mapping database by selecting the appropriate mapping color from the alternative low-power color groups according to his own aesthetic preferences, that is, autonomously setting a corresponding low-power to the high-power color values in the mapping database. Consume color to build a new mapping database.
优选地,上述当应用初始化时,设置所述应用对应的颜色映射信息表还可以包括:判断所述应用是否需要进行像素颜色值的转换,当需要时,设置所述应用对应的颜色映射信息表;否则,不对所述应用进行设置,相应的,该应用在运行时,就不会进行颜色值的转换。Preferably, when the application is initialized, setting the color mapping information table corresponding to the application may further include: determining whether the application needs to perform conversion of a pixel color value, and setting a color mapping information table corresponding to the application when needed. Otherwise, the application is not set, and correspondingly, the color value is not converted when the application is running.
其中,所述判断所述应用是否需要进行像素颜色值的转换可以为:对预定类型的应用始终不进行像素颜色值的转换;或者,对预定类型的应用进行像素颜色的转换;根据上述的预定来判断应用是否需要进行像素颜色值的转换。The determining whether the application needs to perform the conversion of the pixel color value may be: performing conversion of the pixel color value for the predetermined type of application; or performing pixel color conversion on the predetermined type of application; To determine if the application needs to convert pixel color values.
如此,能够保证一些应用运行时的用户体验,比如,当播放电影时,用户不希望将颜色值进行转换,而希望保证视觉体验,那么,就可以选择不对播放器等应用进行颜色值的转换操作。In this way, the user experience of the application runtime can be guaranteed. For example, when the movie is played, the user does not want to convert the color value, but wants to ensure the visual experience, then, the user can choose not to perform the color value conversion operation on the application such as the player. .
本发明实施例中所述颜色值为依据R,G,B三原色的数据来分别计算得出,在低功耗的范围内通过对原始颜色微调R,G,B的数值,得出高中低三种功耗级别的相近颜色值作为低功耗备选颜色,而默认采用中等级别的颜色为映射颜色值。In the embodiment of the present invention, the color value is calculated according to the data of the three primary colors R, G, and B, and the values of R, G, and B are finely adjusted in the range of low power consumption to obtain the high, middle, and low The similar color values of the power consumption levels are used as the low power alternative color, and the medium color is the mapped color value by default.
可见,通过上述方案,能够根据颜色映射信息表将帧缓存中像素数据的颜色值转换为低功耗颜色值,如此,就能够在保证不对应用的运行产生影响的情况下,降低电子设备的运行功耗,提升电子设备的续航能力,保证了用户的使用体验。It can be seen that, through the above solution, the color value of the pixel data in the frame buffer can be converted into a low-power color value according to the color mapping information table, so that the operation of the electronic device can be reduced without ensuring influence on the operation of the application. Power consumption, enhance the endurance of electronic devices, and ensure the user experience.
实施例二、Embodiment 2
本实施例提供的电子设备,如图2所示,包括:The electronic device provided in this embodiment, as shown in FIG. 2, includes:
监测模块21,用于当监测到帧缓存中的像素数据更新时,通知执行模块进行颜色值转换;The monitoring module 21 is configured to notify the execution module to perform color value conversion when the pixel data update in the frame buffer is detected;
执行模块22,用于根据监测模块发来的通知,根据映射信息库24中的颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色 值,将所述帧缓存中所述像素数据的颜色值替换为所述低功耗颜色值;The executing module 22 is configured to determine, according to the notification sent by the monitoring module, a low power color corresponding to the color value of the pixel data according to the color mapping information table in the mapping information library 24 a value that replaces a color value of the pixel data in the frame buffer with the low power color value;
显示单元23,用于根据所述帧缓存中替换后的像素数据进行显示;a display unit 23, configured to display according to the replaced pixel data in the frame buffer;
映射信息库24,用于保存颜色映射信息表。The mapping information base 24 is configured to save a color mapping information table.
其中,所述像素数据为现有技术中帧缓存中缓存的数据信息,可以包括:与系统每一帧的分辨率相对应的多个像素点,以及每个像素点对应的颜色值,比如,分辨率为800x600,则像素数据包括800x600个像素点,及每个像素点对应的颜色值。The pixel data is the data information buffered in the frame buffer in the prior art, and may include: a plurality of pixel points corresponding to the resolution of each frame of the system, and a color value corresponding to each pixel point, for example, With a resolution of 800x600, the pixel data includes 800x600 pixels, and the color value corresponding to each pixel.
优选地,所述映射信息库24,用于保存由原始颜色值、及原始颜色值对应的低功耗颜色值组成的颜色映射信息表;其中,所述低功耗颜色值即颜色值中的亮度值比所述原始颜色值低指定值的颜色值。所述指定值可以为根据实际情况预设的数值。Preferably, the mapping information base 24 is configured to save a color mapping information table composed of an original color value and a low power consumption color value corresponding to the original color value; wherein the low power color value is a color value A color value whose brightness value is lower than the original color value by a specified value. The specified value may be a value preset according to actual conditions.
这里,可以理解的是,现有技术中帧缓存中像素数据采用了HSL颜色模式,即色相(H)、饱和度(S)、明度(L)模式;这种模式下,在显示帧缓存的像素数据时,在色调和饱和度不变的前提下,颜色的亮度值越低则越节省功耗。因此,通过将颜色值替换为亮度值低的颜色值时,就会降低显示功耗值。Here, it can be understood that the pixel data in the frame buffer in the prior art adopts the HSL color mode, that is, the hue (H), saturation (S), and lightness (L) modes; in this mode, the frame buffer is displayed. In the case of pixel data, the lower the brightness value of the color, the lower the power consumption. Therefore, by replacing the color value with a color value with a low luminance value, the display power consumption value is lowered.
或者,所述映射信息库24,用于保存一个或多个颜色映射信息表;Or the mapping information base 24 is configured to save one or more color mapping information tables;
所述颜色映射信息表包括:四个信息域;The color mapping information table includes: four information fields;
其中,第一信息域为标识信息,用于标识所述颜色映射信息表对应的应用,可以包括所述应用的标识,即所述颜色映射信息表是属于哪一个应用的配置信息,所述应用的标识可以为应用的名称;The first information field is the identification information, and is used to identify the application corresponding to the color mapping information table, and may include the identifier of the application, that is, the configuration information of the application to which the color mapping information table belongs. The identifier can be the name of the application;
第二信息域为原始颜色值;The second information field is a raw color value;
第三信息域为原始颜色值对应的低功耗颜色值;The third information field is a low power color value corresponding to the original color value;
第四信息域为原始颜色值对应的备选低功耗颜色值。The fourth information field is an alternate low power color value corresponding to the original color value.
所述执行模块还包括:色彩信息查找子模块,用于确定所述帧缓存 对应的应用,根据所述应用的标识从所述映射信息库中选定颜色映射信息表。The execution module further includes: a color information searching submodule, configured to determine the frame buffer The corresponding application selects a color mapping information table from the mapping information base according to the identifier of the application.
所述执行模块还包括:替换子单元,用于从像素数据中提取颜色值,将提取的所述颜色值作为原始颜色值发送至色彩信息查找子模块,接收色彩信息查找子模块返回的低功耗颜色,将提取颜色值替换为所述低功耗颜色值;依此类推,直至像素数据中的全部颜色值均替换为所述低功耗颜色值;相应的,所述色彩信息查找子模块,还用于根据映射信息库24的颜色映射信息表,确定原始颜色值对应的低功耗颜色值;其中,所述提取像素数据可以为按照像素数据的队列从头开始提取。The execution module further includes: a replacement subunit, configured to extract a color value from the pixel data, send the extracted color value as a raw color value to the color information search submodule, and receive the low work returned by the color information search submodule Color consumption, replacing the extracted color value with the low power color value; and so on, until all color values in the pixel data are replaced with the low power color value; correspondingly, the color information finding submodule And determining, according to the color mapping information table of the mapping information base 24, a low power consumption color value corresponding to the original color value; wherein the extracted pixel data may be extracted from the beginning according to the queue of the pixel data.
其中,所述像素数据的队列的排列顺序为现有技术,这里不做赘述。The order of the queues of the pixel data is in the prior art, and is not described herein.
优选地,所述电子设备还包括:色彩信息配置模块25,用于当应用初始化时,将对所述应用对应的颜色映射信息表的设置保存至映射信息库24中。其中,所述当任意一个应用初始化时,保存所述应用对应的所述颜色映射信息表具体为:当任意一个应用进行初始化时,显示所述应用对应的颜色映射信息表的设置界面,接收并保存设置完成后的颜色映射信息表;Preferably, the electronic device further includes: a color information configuration module 25, configured to save the settings of the color mapping information table corresponding to the application to the mapping information base 24 when the application is initialized. The storing the color mapping information table corresponding to the application when the application is initialized is specifically: when any one of the applications is initialized, displaying a setting interface of the color mapping information table corresponding to the application, receiving and Save the color mapping information table after the setting is completed;
比如,在游戏初始化的时候,系统将所述应用对应的颜色映射信息表的设置界面展示给用户,用户设置完成并确认后则建立所述应用对应的颜色映射信息表。同样,用户可以根据自己的审美喜好从备选的低功耗颜色组中选择合适的映射颜色,以此来重新配置映射数据库,即自主给映射数据库中高功耗的颜色值设置一个对应的低功耗颜色,从而构建起一个新的映射数据库。For example, when the game is initialized, the system displays the setting interface of the color mapping information table corresponding to the application to the user, and after the user sets and confirms, the color mapping information table corresponding to the application is established. Similarly, the user can reconfigure the mapping database by selecting the appropriate mapping color from the alternative low-power color groups according to his own aesthetic preferences, that is, autonomously setting a corresponding low-power to the high-power color values in the mapping database. Consume color to build a new mapping database.
所述映射信息库24,还用于判断所述应用是否需要进行像素颜色值的转换,当需要时,设置所述应用对应的颜色映射信息表;否则,不对所述应用进行设置,相应的,该应用在运行时,就不会进行颜色值的转 换。The mapping information base 24 is further configured to determine whether the application needs to perform pixel color value conversion, and if necessary, set a color mapping information table corresponding to the application; otherwise, the application is not set, correspondingly, When the app is running, it will not change the color value. change.
其中,所述判断所述应用是否需要进行像素颜色值的转换可以为:对预定类型的应用始终不进行像素颜色值的转换;或者,对预定类型的应用进行像素颜色的转换;根据上述的预定来判断应用是否需要进行像素颜色值的转换。The determining whether the application needs to perform the conversion of the pixel color value may be: performing conversion of the pixel color value for the predetermined type of application; or performing pixel color conversion on the predetermined type of application; To determine if the application needs to convert pixel color values.
如此,能够保证一些应用运行时的用户体验,比如,当播放电影时,用户不希望将颜色值进行转换,而希望保证视觉体验,那么,就可以选择不对播放器等应用进行颜色值的转换操作。In this way, the user experience of the application runtime can be guaranteed. For example, when the movie is played, the user does not want to convert the color value, but wants to ensure the visual experience, then, the user can choose not to perform the color value conversion operation on the application such as the player. .
所述监测模块,具体用于当有任意一个应用的UI变化时,所述应用把对应的像素数据更新到帧缓存中时,通知执行模块进行像素颜色优化。The monitoring module is specifically configured to notify the execution module to perform pixel color optimization when the application updates the corresponding pixel data to the frame buffer when the UI of any one of the applications changes.
色彩信息配置模块25,可以提供一个接口给用户使用,比如,在游戏初始化的时候,系统将当前映射数据库的默认颜色配置信息展示给用户,用户确认后则构建起一个映射数据库。The color information configuration module 25 can provide an interface for the user to use. For example, when the game is initialized, the system displays the default color configuration information of the current mapping database to the user, and after the user confirms, constructs a mapping database.
同样,用户可以根据自己的审美喜好从备选的低功耗颜色组中选择合适的映射颜色,以此来重新配置映射数据库,即自主给映射数据库中高功耗的颜色值设置一个对应的低功耗颜色,从而构建起一个新的映射数据库。颜色数值为依据R,G,B三原色的数据来分别计算得出,在低功耗的范围内通过对原始颜色微调R,G,B的数值,得出高中低三种功耗级别的相近颜色值作为低功耗备选颜色,而默认采用中等级别的颜色为映射颜色值。重复执行像素颜色值的转换,直到完成整个帧缓存数据转换后,系统最终会把帧缓存中修改后的颜色数据显示在液晶屏幕上,从而达到了节电的目的。Similarly, the user can reconfigure the mapping database by selecting the appropriate mapping color from the alternative low-power color groups according to his own aesthetic preferences, that is, autonomously setting a corresponding low-power to the high-power color values in the mapping database. Consume color to build a new mapping database. The color value is calculated based on the data of the three primary colors R, G, and B. By fine-tuning the values of R, G, and B for the original color in the low-power range, the similar colors of the three power consumption levels of high, medium, and low are obtained. The value is used as a low-power alternative color, and the default is a medium-level color for the mapped color value. The pixel color value conversion is repeatedly performed until the entire frame buffer data conversion is completed, and the system finally displays the modified color data in the frame buffer on the liquid crystal screen, thereby achieving the purpose of power saving.
优选地,上述监测模块、执行模块均可以由CPU或DSP等硬件实现;所述显示单元可以由触摸显示屏实现;所述映射信息库可以由电子设备中的存储器,比如ROM或RAM等实现;色彩信息配置模块可以由 触摸显示屏以及CPU等硬件配合实现。Preferably, the monitoring module and the execution module may be implemented by hardware such as a CPU or a DSP; the display unit may be implemented by a touch display screen; and the mapping information library may be implemented by a memory in an electronic device, such as a ROM or a RAM; Color information configuration module can be Touch display and CPU and other hardware to achieve.
实施例三、Embodiment 3
下面,通过一个实施例,对本发明提供的调整功耗的方法进行详细的说明,如图3所示,如下:In the following, the method for adjusting power consumption provided by the present invention is described in detail by using an embodiment, as shown in FIG. 3, as follows:
步骤301:监测模块的Monitor线程常驻后台,实时监测帧缓存(FrameBuffer)。Step 301: The monitor thread of the monitoring module is resident in the background, and the frame buffer (FrameBuffer) is monitored in real time.
步骤302:当监测到帧缓存中有数据更新时,执行步骤303;Step 302: When it is detected that there is data update in the frame buffer, step 303 is performed;
当未监测到帧缓存中有数据更新时,继续执行监测工作。When there is no data update in the frame buffer, the monitoring work continues.
步骤303:进程间通讯,Monitor线程调用通知接口通知执行模块帧缓存有数据更新,需要执行像素颜色优化。Step 303: Inter-process communication, the monitor thread calls the notification interface to notify the execution module that the frame buffer has data update, and needs to perform pixel color optimization.
步骤304:执行模块从帧缓存中逐个读取像素源颜色值,调用色彩信息查找模块的检索接口,从映射数据库中查找与像素源颜色值对应的低功耗颜色值。Step 304: The execution module reads the pixel source color value one by one from the frame buffer, invokes the retrieval interface of the color information search module, and searches for a low power consumption color value corresponding to the pixel source color value from the mapping database.
步骤305:用查找到的新的低功耗颜色值来修改当前像素源颜色值,并把修改后的颜色值更新到帧缓存中。Step 305: Modify the current pixel source color value with the found new low power color value, and update the modified color value to the frame buffer.
步骤306,判断帧缓存中的像素是否已经处理完成,如果完成,则根据所述帧缓存中替换后的像素数据进行显示,然后返回步骤301,重新开始下一轮帧缓存的监测工作;否则,仍旧继续从帧缓存中读取像素,重新开始步骤304。 Step 306, determining whether the pixel in the frame buffer has been processed. If yes, displaying according to the replaced pixel data in the frame buffer, and then returning to step 301 to restart the monitoring of the next frame buffer; otherwise, Still continuing to read pixels from the frame buffer, restarting step 304.
实施例四、Embodiment 4
本实施例为将本发明提供的调整功耗的方法应用于降低游戏类的应用的功耗中高低功耗颜色数据的映射数据库创建或更新的流程,如图4所示,如下:In this embodiment, the method for adjusting power consumption provided by the present invention is applied to a process of creating or updating a mapping database for reducing power consumption of high- and low-power color data of a game-like application, as shown in FIG. 4, as follows:
步骤S401,启动游戏应用软件。 In step S401, the game application software is started.
步骤S402,判断是否启动游戏节电功能,若开启则执行步骤S404;否则,执行步骤S403。In step S402, it is determined whether the game power saving function is activated. If yes, step S404 is performed; otherwise, step S403 is performed.
这里,所述判断可以为:根据用户的选择来判断是否需要启动游戏节电功能。Here, the determining may be: determining whether it is necessary to start the game power saving function according to the user's selection.
步骤S403,继续游戏应用,结束处理流程。In step S403, the game application is continued, and the processing flow is ended.
步骤S404,判断是否使用默认的颜色配置数据,若不使用,则执行步骤S405;若使用,则执行步骤S406。In step S404, it is determined whether the default color configuration data is used. If not, step S405 is performed; if so, step S406 is performed.
这里,所述判断可以为:显示提示信息用于询问用户是否使用默认的颜色配置数据,根据用户的选择进行判断。Here, the determining may be: displaying the prompt information for asking the user whether to use the default color configuration data, and determining according to the user's selection.
步骤S405,弹出颜色配置面板,供用户设置与当前源游戏颜色所对应的低功耗颜色值,然后执行步骤S403。Step S405, a color configuration panel is popped up for the user to set a low power consumption color value corresponding to the current source game color, and then step S403 is performed.
步骤S406,采用映射数据库中默认的颜色信息,然后执行步骤S403。In step S406, the default color information in the mapping database is adopted, and then step S403 is performed.
这里,通过不启用与启用本方案的游戏屏幕的对比截图对本方案的实施效果进行说明,如图5a及图5b所示。其中,图5a为不启用本方案的原始游戏运行中的图样,图5b为启用节能方案后的游戏运行中的截图。Here, the implementation effect of the present solution will be described by not enabling a comparison screenshot with the game screen in which the scheme is enabled, as shown in FIGS. 5a and 5b. 5a is a pattern in the original game running without enabling the solution, and FIG. 5b is a screenshot in the game running after the energy saving scheme is enabled.
图5a中,显示区域51对应的HSL值分别为色调32,饱和度190,亮度125;显示区域53对应的HSL值分别为色调0,饱和度240,亮度120;显示区域52对应的HSL值分别为色调40,饱和度240,亮度120;背景的色调80,饱和度240,亮度120;In FIG. 5a, the HSL values corresponding to the display area 51 are respectively hue 32, saturation 190, and brightness 125; the HSL values corresponding to the display area 53 are hue 0, saturation 240, and brightness 120, respectively; and the HSL values corresponding to the display area 52 are respectively For hue 40, saturation 240, brightness 120; background hue 80, saturation 240, brightness 120;
图5b为经过本实施例的颜色值功耗替换之后的显示内容,其中显示区域51对应的HSL值分别为色调32,饱和度190,亮度75;显示区域53对应的HSL值分别为色调0,饱和度240,亮度70;显示区域52对应的HSL值分别为色调40,饱和度240,亮度70;背景为色调80,饱和度240,亮度70。 FIG. 5b shows the display content after the color value power consumption is replaced by the present embodiment, wherein the HSL values corresponding to the display area 51 are hue 32, saturation 190, and brightness 75 respectively; and the HSL values corresponding to the display area 53 are hue 0, respectively. Saturation 240, brightness 70; HSL values corresponding to display area 52 are hue 40, saturation 240, brightness 70; background is hue 80, saturation 240, brightness 70.
通过对比图5a及图5b,不难发现,两个图的区别只是在于更换了其中显示区域51、显示区域52、显示区域53以及背景的亮度值。然而,经过实验,得出其瞬时帧图像的功耗对比:不启用本方案需要消耗186mA电流,而启用本方案则仅仅消耗162mA。可见,采用本方案能够在保证不对应用的运行产生影响的情况下,降低电子设备的运行功耗,提升电子设备的续航能力,保证了用户的使用体验降低。By comparing Fig. 5a with Fig. 5b, it is not difficult to find that the two figures differ only in that the brightness values of the display area 51, the display area 52, the display area 53, and the background are replaced. However, after experimenting, the power consumption comparison of the instantaneous frame image is obtained: the 186 mA current is consumed without enabling the scheme, and only 162 mA is consumed when the scheme is enabled. It can be seen that the solution can reduce the running power consumption of the electronic device and improve the endurance of the electronic device while ensuring that the operation of the application is not affected, thereby ensuring a reduced user experience.
实施例五、Embodiment 5
下面结合上述实施例提供的电子设备的结构,对本发明的一种实现方式进行描述,如图6所示,包括:An implementation manner of the present invention is described below in conjunction with the structure of the electronic device provided in the foregoing embodiment. As shown in FIG. 6, the method includes:
监测模块61,负责实时监控帧缓存,后台启动一个监测Monitor线程611,实时监听帧缓存FrameBuffer60;The monitoring module 61 is responsible for monitoring the frame buffer in real time, starting a monitoring monitor thread 611 in the background, and monitoring the frame buffer FrameBuffer60 in real time;
执行模块62,负责执行帧缓存中像素颜色值的转换工作;根据给定的像素源颜色值,在映射数据库64中查找其对应的低功耗颜色值。The execution module 62 is responsible for performing the conversion of the pixel color values in the frame buffer; and searching for the corresponding low power color values in the mapping database 64 according to the given pixel source color values.
映射数据库64,包含一组颜色映射信息表,每个表对应一种游戏。该表包含至少四个域,第一个域指明当前信息表是属于哪一个游戏的配置信息,第二个域为游戏原始的高功耗颜色值,第三个域为游戏采用的低功耗颜色值,第四个域为第三个域提供备选的一组低功耗颜色值。The mapping database 64 contains a set of color mapping information tables, each of which corresponds to a game. The table contains at least four fields, the first field indicates which game's configuration information the current information table belongs to, the second field is the game's original high-power color value, and the third field is the game's low power consumption. The color value, the fourth field provides an alternative set of low-power color values for the third field.
本实施例在游戏运行时,通过采样FrameBuffer60中像素的颜色值,将游戏界面上高耗能的颜色值转换为低耗能的颜色值,从而当显示在液晶屏上后达到一定的节电效果。In the embodiment, when the game is running, the color value of the pixel in the FrameBuffer60 is sampled, and the color value of the high energy consumption on the game interface is converted into a low-energy color value, so that a certain power saving effect is achieved when displayed on the liquid crystal screen. .
本实施例在上述模块的基础上还增加了用户配置可操作的色彩信息配置模块63,负责建立映射数据库或者更新映射数据库中的内容。该模块的功能是专门提供给用户使用的。在游戏初始化的时候,系统将当前映射数据库的默认颜色配置信息展示给用户,用户确认后则构建起一个映射数据库。 The embodiment further adds a user-configurable color information configuration module 63 on the basis of the above module, and is responsible for establishing a mapping database or updating the content in the mapping database. The function of this module is specifically for the user to use. When the game is initialized, the system displays the default color configuration information of the current mapping database to the user, and after the user confirms, constructs a mapping database.
同样,用户可以根据自己的审美喜好来重新配置映射数据库,即给映射数据库中高功耗的颜色值设置一个对应的低功耗颜色,从而构建起一个新的映射数据库。Similarly, the user can reconfigure the mapping database according to his own aesthetic preferences, that is, set a corresponding low-power color for the high-power color values in the mapping database, thereby constructing a new mapping database.
图7是本发明第一实施例提供的颜色映射信息表的结构示意图,第一信息域71为游戏编号,指明当前的映射数据库是属于哪一个游戏应用的;第二信息域72为源颜色值,指从FrameBuffer中读取的像素的原始颜色值;第三信息域73为低功耗颜色值,指需要从源颜色值转换为的最终目标颜色值,这个颜色数据可以是来自用户设定的,也可以是系统计算出的默认数值;第四信息域74为备选低功耗颜色值,提供给用户或者系统备选的一组低功耗颜色值,其最终选定结果即为低功耗颜色值。FIG. 7 is a schematic structural diagram of a color mapping information table according to a first embodiment of the present invention. The first information field 71 is a game number indicating which game application the current mapping database belongs to; the second information field 72 is a source color value. Refers to the original color value of the pixel read from the FrameBuffer; the third information field 73 is the low power color value, which refers to the final target color value that needs to be converted from the source color value, which may be from the user setting. It may also be a default value calculated by the system; the fourth information field 74 is an alternative low power color value, and is provided to the user or a system of a set of low power color values, and the final selected result is low power. The color value is consumed.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围The above is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
以上实施例仅用以说明本发明的技术方案而非限制,仅仅参照较佳实施例对本发明进行了详细说明。本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。The above embodiments are only intended to illustrate the technical solutions of the present invention and are not to be construed as limiting the invention. It should be understood by those skilled in the art that the present invention may be modified or equivalently substituted without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
本发明公开了一种调整功耗的方法及电子设备,能当帧缓存中的像素 数据更新时,根据颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值,将所述帧缓存中所述像素数据的颜色值替换为所述低功耗颜色值;根据所述帧缓存中替换后的像素数据进行显示。如此,就能够在保证不对应用的运行产生影响的情况下,降低电子设备的运行功耗,提升电子设备的续航能力,保证了用户的使用体验。 The invention discloses a method for adjusting power consumption and an electronic device, which can be used as pixels in a frame buffer When the data is updated, determining a low power consumption color value corresponding to the color value of the pixel data according to the color mapping information table, and replacing the color value of the pixel data in the frame buffer with the low power consumption color value; The replaced pixel data in the frame buffer is displayed. In this way, it is possible to reduce the operating power consumption of the electronic device and improve the endurance of the electronic device while ensuring that the operation of the application is not affected, thereby ensuring the user experience.

Claims (12)

  1. 一种调整功耗的方法,所述方法包括:A method of adjusting power consumption, the method comprising:
    当帧缓存中的像素数据更新时,When the pixel data in the frame buffer is updated,
    根据颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值,将所述帧缓存中所述像素数据的颜色值替换为所述低功耗颜色值;Determining, according to the color mapping information table, a low power consumption color value corresponding to the color value of the pixel data, and replacing a color value of the pixel data in the frame buffer with the low power consumption color value;
    根据所述帧缓存中替换后的像素数据进行显示。Display is performed according to the replaced pixel data in the frame buffer.
  2. 根据权利要求1所述的方法,其中,所述颜色映射信息表包括:原始颜色值、及原始颜色值对应的低功耗颜色值。The method of claim 1, wherein the color mapping information table comprises: an original color value, and a low power color value corresponding to the original color value.
  3. 根据权利要求1所述的方法,其中,所述方法还包括:保存一个或多个颜色映射信息表;The method of claim 1, wherein the method further comprises: saving one or more color mapping information tables;
    所述颜色映射信息表包括:四个信息域;The color mapping information table includes: four information fields;
    其中,第一信息域为标识信息,用于标识所述颜色映射信息表对应的应用;The first information field is identifier information, and is used to identify an application corresponding to the color mapping information table.
    第二信息域为原始颜色值;The second information field is a raw color value;
    第三信息域为原始颜色值对应的低功耗颜色值;The third information field is a low power color value corresponding to the original color value;
    第四信息域为原始颜色值对应的备选低功耗颜色值。The fourth information field is an alternate low power color value corresponding to the original color value.
  4. 根据权利要求3所述的方法,其中,所述根据颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值之前,所述方法还包括:The method according to claim 3, wherein the method further comprises: before determining the low power consumption color value corresponding to the color value of the pixel data according to the color mapping information table, the method further comprising:
    确定所述帧缓存对应的应用,根据所述应用的标识选定颜色映射信息表。Determining an application corresponding to the frame buffer, and selecting a color mapping information table according to the identifier of the application.
  5. 根据权利要求1-4任一项所述的方法,其中,所述根据颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值,将所述帧缓存中所述像素数据的颜色值替换为所述低功耗颜色值,包括:The method according to any one of claims 1 to 4, wherein the determining a low power consumption color value corresponding to a color value of the pixel data according to a color mapping information table, the pixel data in the frame buffer The color value is replaced with the low power color value, including:
    从像素数据中提取颜色值,将提取的所述颜色值作为原始颜色值, 根据颜色映射信息表,确定原始颜色值对应的低功耗颜色值;Extracting a color value from the pixel data, and using the extracted color value as the original color value, Determining a low power color value corresponding to the original color value according to the color mapping information table;
    将提取颜色值替换为所述低功耗颜色值;Replacing the extracted color value with the low power color value;
    依此类推,直至像素数据中的全部颜色值均替换为所述低功耗颜色值。And so on, until all color values in the pixel data are replaced with the low power color values.
  6. 根据权利要求3所述的方法,其中,所述方法还包括:当应用初始化时,保存对所述应用对应的颜色映射信息表的设置。The method of claim 3, wherein the method further comprises: saving the settings of the color mapping information table corresponding to the application when the application is initialized.
  7. 一种电子设备,所述电子设备包括:An electronic device, the electronic device comprising:
    监测模块,配置为当监测到帧缓存中的像素数据更新时,通知执行模块进行颜色值转换;a monitoring module configured to notify the execution module to perform color value conversion when the pixel data update in the frame buffer is detected;
    执行模块,配置为根据监测模块发来的通知,根据映射信息库中的颜色映射信息表确定与所述像素数据的颜色值对应的低功耗颜色值,将所述帧缓存中所述像素数据的颜色值替换为所述低功耗颜色值;An execution module, configured to determine, according to the notification sent by the monitoring module, a low-power color value corresponding to a color value of the pixel data according to a color mapping information table in the mapping information library, and buffer the pixel data in the frame buffer The color value is replaced with the low power color value;
    显示单元,配置为根据所述帧缓存中替换后的像素数据进行显示;a display unit configured to display according to the replaced pixel data in the frame buffer;
    映射信息库,配置为保存颜色映射信息表。A mapping repository configured to hold a color mapping information table.
  8. 根据权利要求7所述的电子设备,其中,所述映射信息库,配置为保存由原始颜色值、及原始颜色值对应的低功耗颜色值组成的颜色映射信息表。The electronic device according to claim 7, wherein the mapping information library is configured to hold a color mapping information table composed of original color values and low power consumption color values corresponding to original color values.
  9. 根据权利要求7所述的电子设备,其中,所述映射信息库,配置为保存一个或多个颜色映射信息表;The electronic device according to claim 7, wherein the mapping information library is configured to save one or more color mapping information tables;
    所述颜色映射信息表包括:四个信息域;The color mapping information table includes: four information fields;
    其中,第一信息域为标识信息,用于标识所述颜色映射信息表对应的应用;The first information field is identifier information, and is used to identify an application corresponding to the color mapping information table.
    第二信息域为原始颜色值;The second information field is a raw color value;
    第三信息域为原始颜色值对应的低功耗颜色值;The third information field is a low power color value corresponding to the original color value;
    第四信息域为原始颜色值对应的备选低功耗颜色值。 The fourth information field is an alternate low power color value corresponding to the original color value.
  10. 根据权利要求9所述的电子设备,其中,所述执行模块包括:色彩信息查找子模块,配置为确定所述帧缓存对应的应用,根据所述应用的标识从所述映射信息库中选定颜色映射信息表。The electronic device according to claim 9, wherein the execution module comprises: a color information searching submodule configured to determine an application corresponding to the frame buffer, and select from the mapping information library according to the identifier of the application Color mapping information table.
  11. 根据权利要求10所述的电子设备,其中,所述执行模块还包括:替换子单元,配置为从像素数据中提取颜色值,将提取的所述颜色值作为原始颜色值发送至色彩信息查找子模块,接收色彩信息查找子模块返回的低功耗颜色,将提取颜色值替换为所述低功耗颜色值;依此类推,直至像素数据中的全部颜色值均替换为所述低功耗颜色值;The electronic device of claim 10, wherein the execution module further comprises: a replacement subunit configured to extract a color value from the pixel data, and send the extracted color value as an original color value to the color information lookup a module that receives a color information to find a low power color returned by the submodule, replaces the extracted color value with the low power color value; and so on, until all color values in the pixel data are replaced with the low power color value;
    相应的,所述色彩信息查找子模块,配置为根据映射信息库的颜色映射信息表,确定原始颜色值对应的低功耗颜色值。Correspondingly, the color information searching submodule is configured to determine a low power consumption color value corresponding to the original color value according to the color mapping information table of the mapping information base.
  12. 根据权利要求9所述的电子设备,其中,所述电子设备还包括:色彩信息配置模块,配置为当应用初始化时,将对所述应用对应的颜色映射信息表的设置保存至映射信息库中。 The electronic device according to claim 9, wherein the electronic device further comprises: a color information configuration module configured to save the setting of the color mapping information table corresponding to the application to the mapping information base when the application is initialized .
PCT/CN2014/093310 2014-05-23 2014-12-08 Power consumption adjustment method and electronic device WO2015176524A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410222712.8 2014-05-23
CN201410222712.8A CN105096909A (en) 2014-05-23 2014-05-23 Method for adjusting power consumption and electronic device

Publications (1)

Publication Number Publication Date
WO2015176524A1 true WO2015176524A1 (en) 2015-11-26

Family

ID=54553373

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/093310 WO2015176524A1 (en) 2014-05-23 2014-12-08 Power consumption adjustment method and electronic device

Country Status (2)

Country Link
CN (1) CN105096909A (en)
WO (1) WO2015176524A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017107112A1 (en) * 2015-12-23 2017-06-29 华为技术有限公司 Method of adjusting display interface of display screen, user interface, device, electronic apparatus and storage medium
CN113126939B (en) * 2020-01-15 2022-05-31 荣耀终端有限公司 Display method, display control device, display and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7075242B2 (en) * 2002-12-16 2006-07-11 Eastman Kodak Company Color OLED display system having improved performance
CN1953037A (en) * 2005-10-21 2007-04-25 日本先锋公司 Display apparatus, display method, display system, server, and recording medium having program recorded thereon
CN101789215A (en) * 2009-01-23 2010-07-28 三星移动显示器株式会社 Organic light emitting display device, method of driving the same and power saving unit thereof
TW201120868A (en) * 2009-12-03 2011-06-16 Inst Information Industry Flat panel display and image processing method for power saving thereof
CN102867484A (en) * 2011-07-07 2013-01-09 中兴通讯股份有限公司 Display control method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7075242B2 (en) * 2002-12-16 2006-07-11 Eastman Kodak Company Color OLED display system having improved performance
CN1953037A (en) * 2005-10-21 2007-04-25 日本先锋公司 Display apparatus, display method, display system, server, and recording medium having program recorded thereon
CN101789215A (en) * 2009-01-23 2010-07-28 三星移动显示器株式会社 Organic light emitting display device, method of driving the same and power saving unit thereof
TW201120868A (en) * 2009-12-03 2011-06-16 Inst Information Industry Flat panel display and image processing method for power saving thereof
CN102867484A (en) * 2011-07-07 2013-01-09 中兴通讯股份有限公司 Display control method and system

Also Published As

Publication number Publication date
CN105096909A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
US10952146B2 (en) Method for dynamically adjusting energy-saving grade of terminal, non-transitory computer-readable storage medium, and terminal
US20230282162A1 (en) Display screen frequency conversion method, ddic chip, and terminal
US10037070B2 (en) Image display method and display system
JP5002166B2 (en) Screen transmission apparatus and screen generation method
KR101958870B1 (en) Display control method and apparatus for power saving
CN106658691B (en) Display control method and device and mobile terminal
KR101997776B1 (en) Method for reducing for consumption power of display unit and an electronic device thereof
WO2017190438A1 (en) Display control method and apparatus
US9613397B2 (en) Display method and electronic apparatus
US20110069089A1 (en) Power management for organic light-emitting diode (oled) displays
WO2019134605A1 (en) Method, apparatus and device for adjusting backlight brightness according to human eye characteristics
US10978027B2 (en) Electronic display partial image frame update systems and methods
WO2014187043A1 (en) Application display processing method and apparatus
US8537102B2 (en) Backlight control apparatus and control method thereof
US9686749B2 (en) Portable terminal and display control method
WO2013082940A1 (en) Oled display control method and device, and terminal device
KR102070322B1 (en) Display apparatus and display panel driving method thereof
JP2015038528A (en) Electronic apparatus and display control method
WO2015176524A1 (en) Power consumption adjustment method and electronic device
CN104460940A (en) Energy-saving display method and system of screen of smart phone or tablet personal computer
CN105373373B (en) Method and device for quickly generating icon
WO2019184447A1 (en) Backlight control method, device, and computer readable storage medium
CN100359932C (en) Self-adapting method for adjusting brightness in liquid crystal TV set
US20200192554A1 (en) Terminal device, display control method implemented by the terminal device, computer readable storage medium and computer program product
CN109544441B (en) Image processing method and device, and skin color processing method and device in live broadcast

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14892565

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14892565

Country of ref document: EP

Kind code of ref document: A1