Power saving method and device applied to OLED screen equipment and electronic equipment

文档序号:1476952 发布日期:2020-02-25 浏览:11次 中文

阅读说明:本技术 应用于oled屏幕设备的节电方法及装置、电子设备 (Power saving method and device applied to OLED screen equipment and electronic equipment ) 是由 高凌霄 于 2019-10-18 设计创作,主要内容包括:本申请公开了一种应用于OLED屏幕设备的节电方法,属于电子设备技术领域,有助于提升设备的节电性能。所述应用于OLED屏幕设备的节电方法包括:响应于显示目标网页的接口调用,对设备的实时电量进行监测;然后,根据监测得到的设备实时电量值,修改所述目标网页的根标签样式表,以调整所述目标网页中各像素点的灰度值;最后,根据修改后的所述根标签样式表渲染所述目标网页,并控制所述设备基于渲染得到的网页数据显示所述目标网页,其中,在控制所述设备基于渲染得到的网页数据显示所述目标网页的过程中,所述设备以与所述目标网页中各像素点的所述灰度值匹配的电流驱动所述设备的OLED屏幕相应位置的发光材料,可以有效地节省OLED屏幕显示网页时的耗电量。(The application discloses a power saving method applied to OLED screen equipment, belongs to the technical field of electronic equipment, and is beneficial to improving the power saving performance of the equipment. The power saving method applied to the OLED screen device comprises the following steps: responding to the interface call of the display target webpage, and monitoring the real-time electric quantity of the equipment; then, modifying a root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage; and finally, rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering, wherein in the process of controlling the equipment to display the target webpage based on the webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using current matched with the gray value of each pixel point in the target webpage, so that the power consumption of the OLED screen in webpage display can be effectively saved.)

1. A power saving method applied to an OLED screen device is characterized by comprising the following steps:

responding to the interface call of the display target webpage, and monitoring the real-time electric quantity of the equipment;

modifying a root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage;

rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering;

and in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.

2. The method according to claim 1, wherein the step of modifying the root tag style sheet of the target webpage according to the monitored real-time electric quantity value of the device to adjust the gray value of each pixel point in the target webpage comprises:

responding to the fact that the real-time electric quantity value of the device obtained through the real-time electric quantity monitoring is larger than a preset low-electric-quantity threshold value, taking the real-time electric quantity value of the device as parameters for setting foreground color, background color and page gray value in a root label style sheet of the target webpage, and adjusting the gray value of the target webpage; wherein the foreground color is set to be inversely proportional to the device real-time electric quantity value, the background color is set to be directly proportional to the device real-time electric quantity value, and the page gray value is set to be inversely proportional to the device real-time electric quantity value.

3. The method according to claim 1, wherein the step of modifying the root tag style sheet of the target webpage according to the monitored real-time electric quantity value of the device to adjust the gray value of each pixel point in the target webpage comprises:

and in response to the fact that the real-time electric quantity value of the equipment obtained by the real-time electric quantity monitoring is smaller than or equal to a preset low-electric-quantity threshold value, performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of setting the foreground color, the background color and the page gray value in a root tag style sheet of the target webpage, and setting the page gray value of the target webpage as the maximum value.

4. The method of any of claims 1 to 3, wherein the step of responding to the interface call to display the target webpage is followed by further comprising:

timing the operation interval of the target webpage of the user;

in response to the operation interval being greater than or equal to a preset time interval, modifying a root tag style sheet of the target webpage to adjust the gray value of each pixel point in the target webpage;

rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering.

5. The method of claim 4, wherein the step of modifying the root tag style sheet of the target webpage to adjust the gray value of each pixel point in the target webpage in response to the operation interval being greater than or equal to a preset time interval comprises:

and performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of setting the foreground color, the background color and the page gray value in the root tag style sheet of the target webpage, and setting the page gray value of the target webpage as the maximum value.

6. A power saving device for an OLED screen device, comprising:

the real-time electric quantity monitoring module is used for responding to the interface call of the display target webpage and monitoring the real-time electric quantity of the equipment;

the webpage gray value adjusting module is used for modifying the root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage;

the webpage display module is used for rendering the target webpage according to the modified root tag style sheet and controlling the equipment to display the target webpage based on webpage data obtained through rendering;

and in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.

7. The apparatus of claim 6, wherein the web page grayvalue adjustment module is further configured to:

responding to the fact that the real-time electric quantity value of the device obtained through the real-time electric quantity monitoring is larger than a preset low-electric-quantity threshold value, taking the real-time electric quantity value of the device as parameters for setting foreground color, background color and page gray value in a root label style sheet of the target webpage, and adjusting the gray value of the target webpage; wherein the foreground color is set to be inversely proportional to the device real-time electric quantity value, the background color is set to be directly proportional to the device real-time electric quantity value, and the page gray value is set to be inversely proportional to the device real-time electric quantity value.

8. The apparatus of claim 6, wherein the web page grayvalue adjustment module is further configured to:

and in response to the fact that the real-time electric quantity value of the equipment obtained by the real-time electric quantity monitoring is smaller than or equal to a preset low-electric-quantity threshold value, performing reverse color processing on the foreground color and the background color of the target webpage by modifying parameters of setting the foreground color, the background color and the page gray value in a root tag style sheet of the target webpage, and setting the page gray value of the target webpage as the maximum value.

9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the power saving method of any one of claims 1 to 5 applied to an OLED screen device when executing the computer program.

10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, carries out the steps of the power saving method as claimed in any one of claims 1 to 5 applied to an OLED screen device.

Technical Field

The present application relates to the field of electronic devices, and in particular, to a power saving method and apparatus applied to an OLED screen device, an electronic device, and a computer-readable storage medium.

Background

In order to save power consumption and reduce power consumption speed, electronic devices are usually provided with a power saving mode. Taking a smart phone as an example, when the battery power is only 20% and 10%, the battery management application of the smart phone may remind the user whether the low power mode is turned on or not due to insufficient battery power. In the low power mode, the smart phone with the lcd generally achieves the purpose of saving power through the following two ways: first, some inactive application processes are shut down; second, some settings that can reduce the battery consumption of the phone are turned on (e.g., reduce the resolution, disable the display action). However, the power consumption saved by the above method is limited for OLED (organic light emitting diode) screen devices.

For OLED screen devices, it is desirable to provide an efficient method of saving power.

Disclosure of Invention

The application provides a power saving method applied to OLED screen equipment, which can improve the power saving performance of the equipment.

In order to solve the above problem, in a first aspect, an embodiment of the present application provides a power saving method applied to an OLED screen device, including:

responding to the interface call of the display target webpage, and monitoring the real-time electric quantity of the equipment;

modifying a root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage;

rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering;

and in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.

In a second aspect, an embodiment of the present application provides a power saving device applied to an OLED screen device, including:

the real-time electric quantity monitoring module is used for responding to the interface call of the display target webpage and monitoring the real-time electric quantity of the equipment;

the webpage gray value adjusting module is used for modifying the root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage;

the webpage display module is used for rendering the target webpage according to the modified root tag style sheet and controlling the equipment to display the target webpage based on webpage data obtained through rendering;

and in the process of controlling the equipment to display the target webpage based on webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage.

In a third aspect, an embodiment of the present application further discloses an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the electronic device implements the power saving method applied to the OLED screen device according to the embodiment of the present application.

In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps of the power saving method applied to the OLED screen device disclosed in the embodiments of the present application.

According to the power saving method applied to the OLED screen equipment, the real-time electric quantity of the equipment is monitored by responding to the interface call of the display target webpage; then, modifying a root label style sheet of the target webpage according to the monitored real-time electric quantity value of the equipment so as to adjust the gray value of each pixel point in the target webpage; and finally, rendering the target webpage according to the modified root tag style sheet, and controlling the equipment to display the target webpage based on webpage data obtained by rendering, wherein in the process of controlling the equipment to display the target webpage based on the webpage data obtained by rendering, the equipment drives the luminous material at the corresponding position of the OLED screen of the equipment by using the current matched with the gray value of each pixel point in the target webpage, so that the power consumption of the OLED screen when the webpage is displayed can be effectively saved, and the power saving performance of the equipment is improved.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.

Fig. 1 is a flowchart of a power saving method applied to an OLED screen device according to a first embodiment of the present application;

FIG. 2 is a flowchart of a power saving method applied to an OLED screen device according to a second embodiment of the present application;

FIG. 3 is a schematic diagram illustrating an original webpage display effect according to a second embodiment of the present application;

fig. 4 is a schematic diagram illustrating an adjusted webpage display effect according to a second embodiment of the present application;

FIG. 5 is a second schematic diagram illustrating an adjusted webpage display effect according to a second embodiment of the present application;

FIG. 6 is a flowchart of a power saving method applied to an OLED screen device according to a third embodiment of the present application;

FIG. 7 is a schematic structural diagram of a power saving device applied to an OLED screen device according to a fourth embodiment of the present application;

fig. 8 is a second schematic structural diagram of a power saving device applied to an OLED screen device according to a fourth embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种内核锁的管理方法及终端设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!