CN104699221B - One kind economize on electricity processing method - Google Patents

One kind economize on electricity processing method Download PDF

Info

Publication number
CN104699221B
CN104699221B CN201510088775.3A CN201510088775A CN104699221B CN 104699221 B CN104699221 B CN 104699221B CN 201510088775 A CN201510088775 A CN 201510088775A CN 104699221 B CN104699221 B CN 104699221B
Authority
CN
China
Prior art keywords
color
region
power consumption
color region
needed
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.)
Expired - Fee Related
Application number
CN201510088775.3A
Other languages
Chinese (zh)
Other versions
CN104699221A (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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510088775.3A priority Critical patent/CN104699221B/en
Publication of CN104699221A publication Critical patent/CN104699221A/en
Application granted granted Critical
Publication of CN104699221B publication Critical patent/CN104699221B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the invention discloses one kind economize on electricity processing method, this method includes:Obtain the page to be shown;Identify the color of at least one color region in the page to be shown;Determine currently to show power consumption needed for the page to be shown;The color of first object color region at least one color region is adjusted, display power consumption needed for the page to be shown after adjustment is less than the required current display power consumption.Implement the embodiment of the present invention, terminal display screen can be reduced and show power consumption, to extend terminal standby time.

Description

One kind economize on electricity processing method
Technical field
The present invention relates to electronic technology field, and in particular to one kind economize on electricity processing method.
Background technology
With the continuous development of electronic technology, the terminal display screen such as mobile phone, tablet computer is increasing.As terminal is shown Screen constantly becomes larger, and terminal display screen shows that power consumption has become the important component in power consumption of terminal.Due to end cell electricity Measure it is limited, terminal display screen show power consumption increase will shorten terminal standby time.
The content of the invention
The embodiment of the present invention discloses a kind of economize on electricity processing method, power consumption is shown for reducing terminal display screen, to extend end Hold stand-by time.
The embodiment of the present invention discloses a kind of economize on electricity processing method, including:
Obtain the page to be shown;
Identify the color of at least one color region in the page to be shown;
Determine currently to show power consumption needed for the page to be shown;
The color of first object color region at least one color region is adjusted, makes the page to be shown after adjustment Required display power consumption is less than the required current display power consumption.
In the embodiment of the present invention, the page to be shown is obtained, identifies the color of at least one color region in the page to be shown, Determine currently to show power consumption needed for the page to be shown, adjust the color of first object color region at least one color region, Display power consumption needed for the page to be shown after adjustment is less than the required current display power consumption, therefore, terminal can be reduced and shown Screen shows power consumption, to extend terminal standby time.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, without creative efforts, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of processing method of economizing on electricity disclosed by the embodiments of the present invention;
Fig. 2 is the flow chart of another economize on electricity processing method disclosed by the embodiments of the present invention;
Fig. 3 is the flow chart of another economize on electricity processing method disclosed by the embodiments of the present invention;
Fig. 4 is the flow chart of another economize on electricity processing method disclosed by the embodiments of the present invention;
Fig. 5 is a kind of structure chart of terminal disclosed by the embodiments of the present invention;
Fig. 6 is the structure chart of another terminal disclosed by the embodiments of the present invention;
Fig. 7 is the structure chart of another terminal disclosed by the embodiments of the present invention;
Fig. 8 is the structure chart of another terminal disclosed by the embodiments of the present invention;
Fig. 9 is the structure chart of another terminal disclosed by the embodiments of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained without making creative work Example is applied, belongs to the scope of protection of the invention.
The embodiment of the present invention discloses a kind of economize on electricity processing method and terminal, and power consumption is shown for reducing terminal display screen, with Extend terminal standby time.It is described in detail individually below.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of processing method of economizing on electricity disclosed by the embodiments of the present invention.Wherein, the economize on electricity Processing method is suitable for the terminals such as mobile phone, tablet computer.As shown in Figure 1, the economize on electricity processing method may comprise steps of.
S101, obtain the page to be shown.
In the present embodiment, terminal can be provided with display power saving function in advance, when user needs to reduce terminal display screen Display power consumption when, user can be by clicking on preset icon or programmable button in the predeterminable area in display screen, display screen Input starts the enabled instruction for showing power saving function, after terminal detects the enabled instruction for starting display power saving function, will open Dynamic display power saving function, afterwards when terminal display screen is in running order, terminal will obtain the page to be shown.Wherein, wait to show It is the page that terminal will be shown on a display screen to show the page.
The color of at least one color region in S102, the identification page to be shown.
In the present embodiment, the page to be shown has at least one color region, after getting the page to be shown, identifies and waits to show Show the color of at least one color region in the page.
S103, determine currently to show power consumption needed for the page to be shown.
In the present embodiment, after getting the page to be shown, determine currently to show power consumption needed for the page to be shown, wherein, Step S102 and step S103 can be performed parallel, can also S102 prior to S103 perform, can with S103 prior to S102 perform, The present embodiment is not construed as limiting.
As a kind of possible embodiment, determine that currently the mode of display power consumption is specially needed for the page to be shown:
Obtain the region area of each color region at least one color region;
Determine to treat according to each region area of color region at least one color region and the color of the color region Show current display power consumption needed for the page.
In the present embodiment, after getting the page to be shown, obtain every at least one color region in the page to be shown The region area of a color region, afterwards according to the region area of each color region at least one color region and the color The color in region determines currently to show power consumption needed for the page to be shown.
As a kind of possible embodiment, according to the region area of each color region at least one color region and The color of the color region determines that currently the mode of display power consumption is specially needed for the page to be shown:
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
Unit area needed for the color of each color region is shown that power consumption is multiplied by the region area of the color region to obtain Obtain display power consumption needed for the color region;
It will show that power consumption is added to obtain needed for each color region and power consumption currently shown needed for the page to be shown.
In the present embodiment, after getting the page to be shown, obtain every at least one color region in the page to be shown The region area of a color region, and obtain unit area needed for the color of each color region at least one color region and show Show power consumption, the unit area power consumption needed for the color of each color region is multiplied by the region area of the color region and will obtain afterwards Display power consumption, will show that power consumption is added to obtain needed for the page to be shown and works as afterwards needed for the color region needed for each color region Preceding display power consumption.
S104, the color for adjusting color of object region at least one color region, make the page to be shown after adjustment Required display power consumption is less than the required current display power consumption.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, the color in color of object region at least one color region can be adjusted, makes display needed for the page to be shown after adjustment Current display power consumption needed for the page to be shown before power consumption is less than adjustment, so as to reduce the display power consumption of display screen.Wherein, Color of object region is part color region or whole color regions at least one color region.
In the described economize on electricity processing methods of Fig. 1, the page to be shown is obtained, identifies at least one face in the page to be shown The color in color region, determines currently to show power consumption needed for the page to be shown, adjusts color of object area at least one color region The color in domain, makes display power consumption needed for the page to be shown after adjustment be less than the required current display power consumption, therefore, can reduce Terminal display screen shows power consumption, to extend terminal standby time.
Referring to Fig. 2, Fig. 2 is the flow chart of another economize on electricity processing method disclosed by the embodiments of the present invention.Wherein, the section Electric treatment method is suitable for the terminals such as mobile phone, tablet computer.As shown in Fig. 2, the economize on electricity processing method may comprise steps of.
S201, obtain the page to be shown.
In the present embodiment, terminal can be provided with display power saving function in advance, when user needs to reduce terminal display screen Display power consumption when, user can be by clicking on preset icon or programmable button in the predeterminable area in display screen, display screen Input starts the enabled instruction for showing power saving function, after terminal detects the enabled instruction for starting display power saving function, will open Dynamic display power saving function, afterwards when terminal display screen is in running order, terminal will obtain the page to be shown.Wherein, wait to show It is the page that terminal will be shown on a display screen to show the page.
The color of at least one color region in S202, the identification page to be shown.
In the present embodiment, the page to be shown has at least one color region, after getting the page to be shown, identifies and waits to show Show the color of at least one color region in the page.
S203, determine currently to show power consumption needed for the page to be shown.
In the present embodiment, after getting the page to be shown, determine currently to show power consumption needed for the page to be shown, wherein, Step S202 and step S203 can be performed parallel, can also S202 prior to S203 perform, can with S203 prior to S202 perform, The present embodiment is not construed as limiting.
As a kind of possible embodiment, determine that currently the mode of display power consumption is specially needed for the page to be shown:
Obtain the region area of each color region at least one color region;
Determine to treat according to each region area of color region at least one color region and the color of the color region Show current display power consumption needed for the page.
In the present embodiment, after getting the page to be shown, obtain every at least one color region in the page to be shown The region area of a color region, afterwards according to the region area of each color region at least one color region and the color The color in region determines currently to show power consumption needed for the page to be shown.
As a kind of possible embodiment, according to the region area of each color region at least one color region and The color of the color region determines that currently the mode of display power consumption is specially needed for the page to be shown:
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
Unit area needed for the color of each color region is shown that power consumption is multiplied by the region area of the color region to obtain Obtain display power consumption needed for the color region;
It will show that power consumption is added to obtain needed for each color region and power consumption currently shown needed for the page to be shown.
In the present embodiment, after getting the page to be shown, obtain every at least one color region in the page to be shown The region area of a color region, and obtain unit area needed for the color of each color region at least one color region and show Show power consumption, the unit area power consumption needed for the color of each color region is multiplied by the region area of the color region and will obtain afterwards Display power consumption, will show that power consumption is added to obtain needed for the page to be shown and works as afterwards needed for the color region needed for each color region Preceding display power consumption.
S204, by the color of at least one color region according to needed for color unit area show power consumption carry out descending arrangement To obtain descending table, at least one color region is subjected to ascending order arrangement to obtain ascending order table according to region area, and by ascending order The color that the color region of i-th bit is arranged in table replaces with the color that i-th bit is arranged in descending table, makes replaced to wait to show Show that display power consumption needed for the page is less than the required current display power consumption, wherein, i is more than zero and is less than or equal at least one face The integer of the region quantity in color region.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, the color of at least one color region is shown that power consumption carries out descending and arranges to obtain descending according to unit area needed for color Table, and at least one color region is subjected to ascending order arrangement to obtain ascending order table according to region area, ascending order will be arranged in afterwards The color of the color region of i-th bit replaces with the color for being arranged in i-th bit in descending table in table, makes the replaced page to be shown Required display power consumption is less than the required current display power consumption.Since the region area of each color region remains unchanged, and it is different Unit area needed for color shows that power consumption is different, therefore, the color of the color region of region area maximum can be replaced with institute Need unit area to show the color of power consumption minimum, be replaced successively, finally, by the color of the color region of region area minimum Unit area shows the color of power consumption maximum needed for replacing with, and the color category of at least one color region can kept constant In the case of, it will show that power consumption is minimized needed for the page to be shown.Wherein, i is more than zero and less than or equal at least one The integer of the region quantity of color region.Wherein, when being arranged in ascending order table the color of the color region of i-th bit and be arranged in drop It is when the color of i-th bit is identical in sequence table, the color for keeping the color region is constant for current color;When being arranged in ascending order table When the color of the color region of i-th bit is differed with being arranged in the color of i-th bit in descending table, the color of the color region is replaced It is changed to the color for being arranged in i-th bit in descending table.
Illustrate, it is assumed that have four color regions A, B, C and D in the page to be shown, the region area of A color regions is A1, the region area of color A2, B color region are B1, the region area of color B2, C color region is C1, color is The region area of C2, D color region is D1, color D2, and the region area of this four color regions is A1 < C1 < D1 < B1, Unit area needed for the color of this four color regions shows that power consumption is B2 > A2 > C2 > D2, therefore, region area is maximum B color regions color B2 replace with needed for unit area show power consumption minimum color D2, by the color D2 of D color regions Color C2 is replaced with, the color C2 of C color regions is replaced with into color A2, by the color of the A color regions of region area minimum A2 replaces with the color B2 that required unit area shows power consumption maximum, and currently display power consumption is needed for the page to be shown before adjustment A1*A2+B1*B2+C1*C2+D1*D2, display power consumption is B1*D2+D1*C2+C1*A2+A1* needed for the page to be shown after adjustment B2.When A1 is 4, C1 5, D1 6, B1 7, B2 8, A2 6, C2 5, D2 are 4, A1*A2+B1*B2+C1*C2+D1* D2=129, B1*D2+D1*C2+C1*A2+A1*B2=120, it is seen that display lower power consumption needed for the page to be shown after adjustment.
In the described economize on electricity processing methods of Fig. 2, the page to be shown is obtained, identifies at least one face in the page to be shown The color in color region, determines currently to show power consumption needed for the page to be shown, by the color of at least one color region according to color Required unit area shows that power consumption carries out descending arrangement to obtain descending table, by least one color region according to region area into Row ascending order is arranged to obtain ascending order table, and the color for the color region that i-th bit is arranged in ascending order table is replaced with descending table The color of i-th bit is arranged in, display power consumption needed for the replaced page to be shown is less than the required current display power consumption, can be with Reduce terminal display screen and show power consumption, to extend terminal standby time.
Referring to Fig. 3, Fig. 3 is the flow chart of another economize on electricity processing method disclosed by the embodiments of the present invention.Wherein, the section Electric treatment method is suitable for the terminals such as mobile phone, tablet computer.As shown in figure 3, the economize on electricity processing method may comprise steps of.
S301, obtain the page to be shown.
In the present embodiment, terminal can be provided with display power saving function in advance, when user needs to reduce terminal display screen Display power consumption when, user can be by clicking on preset icon or programmable button in the predeterminable area in display screen, display screen Input starts the enabled instruction for showing power saving function, after terminal detects the enabled instruction for starting display power saving function, will open Dynamic display power saving function, afterwards when terminal display screen is in running order, terminal will obtain the page to be shown.Wherein, wait to show It is the page that terminal will be shown on a display screen to show the page.
The color of at least one color region in S302, the identification page to be shown.
In the present embodiment, the page to be shown has at least one color region, after getting the page to be shown, identifies and waits to show Show the color of at least one color region in the page.
S303, determine currently to show power consumption needed for the page to be shown.
In the present embodiment, after getting the page to be shown, determine currently to show power consumption needed for the page to be shown, wherein, Step S302 and step S303 can be performed parallel, can also S302 prior to S303 perform, can with S303 prior to S302 perform, The present embodiment is not construed as limiting.
As a kind of possible embodiment, determine that currently the mode of display power consumption is specially needed for the page to be shown:
Obtain the region area of each color region at least one color region;
Determine to treat according to each region area of color region at least one color region and the color of the color region Show current display power consumption needed for the page.
In the present embodiment, after getting the page to be shown, obtain every at least one color region in the page to be shown The region area of a color region, afterwards according to the region area of each color region at least one color region and the color The color in region determines currently to show power consumption needed for the page to be shown.
As a kind of possible embodiment, according to the region area of each color region at least one color region and The color of the color region determines that currently the mode of display power consumption is specially needed for the page to be shown:
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
Unit area needed for the color of each color region is shown that power consumption is multiplied by the region area of the color region to obtain Obtain display power consumption needed for the color region;
It will show that power consumption is added to obtain needed for each color region and power consumption currently shown needed for the page to be shown.
In the present embodiment, after getting the page to be shown, obtain every at least one color region in the page to be shown The region area of a color region, and obtain unit area needed for the color of each color region at least one color region and show Show power consumption, the unit area power consumption needed for the color of each color region is multiplied by the region area of the color region and will obtain afterwards Display power consumption, will show that power consumption is added to obtain needed for the page to be shown and works as afterwards needed for the color region needed for each color region Preceding display power consumption.
S304, choose color of object region from least one color region, by each color area in color of object region The color in domain replaces with required unit area and shows that power consumption is less than unit area needed for the color of the color region and shows power consumption First object color, makes display power consumption needed for the replaced page to be shown be less than the required current display power consumption, wherein, target Display power consumption needed for color region is more than the first default power consumption, first object color be except at least one color region color it Any color in outer color.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, display power consumption needed for being chosen from least one color region is more than the color of object region of the first default power consumption, it is believed that extremely It is to be shown to show that power consumption is occupied more than display power consumption needed for the color of object region of the first default power consumption in a few color region The large percentage of power consumption is currently shown needed for the page, the color of each color region in color of object region is replaced with remove afterwards Required unit area shows that power consumption is less than the color institute of the color region in color outside the color of at least one color region Need unit area to show any color of power consumption, display power consumption needed for the replaced page to be shown is less than this required current aobvious Show power consumption.Since the region area in color of object region remains unchanged, and reduce unit needed for the color in color of object region Area shows power consumption, it therefore reduces the display power consumption of display screen.It is from least one color region when carrying out color replacement Outside color in select, therefore, after having replaced, the color of each color region not phase at least one color region Together.
Illustrate, it is assumed that there are eight color regions in the page to be shown, wherein, there is display work(needed for four color regions Consumption is more than the first default power consumption, first replaces with the color of a color region in this four color regions except this eight kinds of colors Outside required unit area show that power consumption is less than the color that unit area needed for the color of this color region shows power consumption, afterwards The color of another color region in this four color regions is replaced with required unit area outside above-mentioned nine kinds of colors to show Show that power consumption is less than the color that unit area needed for the color of this color region shows power consumption, afterwards by this four color regions The color of another color region replace with required unit area outside above-mentioned ten kinds of colors and show that power consumption is less than this color Unit area needed for the color in region shows the color of power consumption, finally by last color region in this four color regions Color replaces with required unit area outside a kind of above-mentioned ten colors and shows that power consumption is less than list needed for the color of this color region Plane product shows the color of power consumption.
As a kind of possible embodiment, display power consumption needed for color of object region is more than the first default power consumption, and mesh Mark unit area needed for the color of each color region in color region and show that power consumption is more than the second default power consumption.
In the present embodiment, display power consumption is that the face of color region is multiplied by by the region area of color region needed for color region Unit area needed for color shows what power consumption obtained, and therefore, display power consumption needed for color region is more than the first default power consumption and is probably Caused by the region area of color region is larger, it is also possible to be due to that unit area needed for the color of color region shows power consumption Caused by larger, and the region area of color region remains unchanged, and therefore, can reduce face by adjusting the color of color region Display power consumption needed for color region.When showing that power consumption is more than the first default power consumption, and the color institute of color region needed for color region When needing unit area display power consumption more than the second default display power consumption, it will be considered that the color of the color region is to the color region institute It need to show having a great influence for power consumption, the color of each color region in these color regions is replaced with except at least one color area Required unit area shows that power consumption is shown less than unit area needed for the color of the color region in color outside the color in domain Any color of power consumption, makes display power consumption needed for the replaced page to be shown be less than the required current display power consumption.
As a kind of possible embodiment, first object color is the face in addition to the color of at least one color region Any color in color, and the contrast between first object color and the second color of object is more than preset value, wherein, the second target Color is any color in the color of the color region at least one color region in addition to color of object region.
In the present embodiment, since when the contrast between two kinds of colors is less than or equal to preset value, user is difficult to pass through Eyes distinguish both colors, and therefore, in order to allow users to differentiate different colours by eyes, the replacement color of selection will The contrast of color with need not originally be replaced in the page to be shown is more than preset value, and to be replaced with what be substituted for The contrast between color is changed also greater than preset value.
Illustrate, it is assumed that have four color regions, the first color region to the 4th color region in the page to be shown Color is followed successively by the first color, the second color, the 3rd color and the 4th color, wherein, the first color region and the second color area The color in domain needs to replace, and the first color of the first color region first is replaced with the required unit area in addition to these four colors Show that power consumption is less than unit area needed for the first color and shows power consumption and distinguish with the contrast of the 3rd color and the 4th color big In the 5th color of preset value, the second color of the second color region is replaced with into required unit area outside above-mentioned five kinds afterwards Show power consumption be less than needed for the second color unit area show power consumption and with the contrast of the 3rd color, the 4th color and the 5th color Degree is respectively greater than the color of preset value.
In the described economize on electricity processing methods of Fig. 3, the page to be shown is obtained, identifies at least one face in the page to be shown The color in color region, determines currently to show power consumption needed for the page to be shown, color of object is chosen from least one color region Region, replaces with required unit area by the color of each color region in color of object region and shows that power consumption is less than the color area Unit area needed for the color in domain shows the first object color of power consumption, makes display small power consumption needed for the replaced page to be shown In the required current display power consumption, wherein, display power consumption needed for color of object region is more than the first default power consumption, first object face Color is any color in the color in addition to the color of at least one color region, therefore, can reduce terminal display screen and show Power consumption, to extend terminal standby time.
Referring to Fig. 4, Fig. 4 is the flow chart of another economize on electricity processing method disclosed by the embodiments of the present invention.Wherein, the section Electric treatment method is suitable for the terminals such as mobile phone, tablet computer.As shown in figure 4, the economize on electricity processing method may comprise steps of.
S401, obtain the page to be shown.
In the present embodiment, terminal can be provided with display power saving function in advance, when user needs to reduce terminal display screen Display power consumption when, user can be by clicking on preset icon or programmable button in the predeterminable area in display screen, display screen Input starts the enabled instruction for showing power saving function, after terminal detects the enabled instruction for starting display power saving function, will open Dynamic display power saving function, afterwards when terminal display screen is in running order, terminal will obtain the page to be shown.Wherein, wait to show It is the page that terminal will be shown on a display screen to show the page.
The color of at least one color region in S402, the identification page to be shown.
In the present embodiment, the page to be shown has at least one color region, after getting the page to be shown, identifies and waits to show Show the color of at least one color region in the page.
S403, determine currently to show power consumption needed for the page to be shown.
In the present embodiment, after getting the page to be shown, determine currently to show power consumption needed for the page to be shown, wherein, Step S402 and step S403 can be performed parallel, can also S402 prior to S403 perform, can with S403 prior to S402 perform, The present embodiment is not construed as limiting.
As a kind of possible embodiment, determine that currently the mode of display power consumption is specially needed for the page to be shown:
Obtain the region area of each color region at least one color region;
Determine to treat according to each region area of color region at least one color region and the color of the color region Show current display power consumption needed for the page.
In the present embodiment, after getting the page to be shown, obtain every at least one color region in the page to be shown The region area of a color region, afterwards according to the region area of each color region at least one color region and the color The color in region determines currently to show power consumption needed for the page to be shown.
As a kind of possible embodiment, according to the region area of each color region at least one color region and The color of the color region determines that currently the mode of display power consumption is specially needed for the page to be shown:
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
Unit area needed for the color of each color region is shown that power consumption is multiplied by the region area of the color region to obtain Obtain display power consumption needed for the color region;
It will show that power consumption is added to obtain needed for each color region and power consumption currently shown needed for the page to be shown.
In the present embodiment, after getting the page to be shown, obtain every at least one color region in the page to be shown The region area of a color region, and obtain unit area needed for the color of each color region at least one color region and show Show power consumption, the unit area power consumption needed for the color of each color region is multiplied by the region area of the color region and will obtain afterwards Display power consumption, will show that power consumption is added to obtain needed for the page to be shown and works as afterwards needed for the color region needed for each color region Preceding display power consumption.
S404, choose first object color region from least one color region, will be every in first object color region The color of a color region replaces with required unit area and shows that power consumption is shown less than unit area needed for the color of the color region Show any color in the color of power consumption, display power consumption needed for the replaced page to be shown is less than the required current display work( Consumption, display power consumption is more than default power consumption needed for first object color region.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, display power consumption is more than the first object color region of default power consumption needed for being chosen from least one color region, it is believed that extremely It is to be shown to show that power consumption is occupied more than display power consumption needed for the first object color region of default power consumption in a few color region The large percentage of power consumption is currently shown needed for the page, afterwards replaces the color of each color region in first object color region Show that power consumption is less than any face in the color of unit area display power consumption needed for the color of the color region for required unit area Color, makes display power consumption needed for the replaced page to be shown be less than the required current display power consumption.Due to first object color area The region area in domain remains unchanged, and reduces unit area needed for the color of first object color region and show power consumption, therefore, Reduce the display power consumption of display screen.When carrying out color replacement, selected from all colours, therefore, after replacing it at least The identical situation of the color of some color regions is likely to occur in one color region.
In the present embodiment, display power consumption needed for first object color region can be more than default power consumption, and first object face Unit area needed for the color of each color region shows that power consumption can be more than preset value in color region.
In the present embodiment, the color of each color region in first object color region can be replaced with required unit plane Product shows that power consumption is less than first object color in the color of unit area display power consumption needed for the color of the color region, and first Contrast between color of object and the second color of object is more than preset value, wherein, the second color of object is at least one color Any color in the color of color region in region in addition to first object color region.
As a kind of possible embodiment, the color of each color region in first object color region is replaced with into institute Unit area is needed to show that power consumption is less than any color in the color of unit area display power consumption needed for the color of the color region Mode is specially:
Color region in first object color region is subjected to descending arrangement to obtain descending table according to region area;
All colours are shown that power consumption carries out ascending order and arranges to obtain ascending order table according to unit area needed for color;
The color for the color region that jth position is arranged in descending table is replaced with to the color that jth position is arranged in ascending order table, Display power consumption needed for the replaced page to be shown is less than the required current display power consumption, wherein, j be more than zero and be less than or Equal to the integer of the region quantity of color region in first object color region.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, display power consumption is more than the first object color region of default power consumption needed for being chosen from least one color region, it is believed that extremely It is to be shown to show that power consumption is occupied more than display power consumption needed for the first object color region of default power consumption in a few color region Currently the large percentage of display power consumption, the color that will be arranged in the color region of jth position in descending table afterwards are replaced needed for the page To be arranged in the color of jth position in ascending order table, display power consumption needed for the replaced page to be shown is set to be less than this required current aobvious Show power consumption.Since the region area of each color region remains unchanged, and unit area needed for different colours shows that power consumption is different, Therefore, unit area shows the color of power consumption minimum needed for can replacing with the color of the color region of region area maximum, It is replaced successively, can will shows that power consumption is minimized needed for the page to be shown.Wherein, j is more than zero and is less than or equal to The integer of the region quantity of color region in first object color region.Wherein, when the color area for being arranged in jth position in descending table When the color in domain is identical with the color for being arranged in jth position in ascending order table, will keep the color of the color region for current color not Become;When be arranged in the color of the color region of jth position in descending table and be arranged in the color of jth position in ascending order table differ when, The color of the color region is replaced with to the color for being arranged in jth position in ascending order table.
As a kind of possible embodiment, the color for the color region that jth position is arranged in descending table is replaced with into liter The color of jth position is arranged in sequence table, display power consumption needed for the replaced page to be shown is less than the required current display work( After consumption, which can also include:
Judge the second color of object region in first object color region color whether with the 3rd color of object region Color is identical, and the second color of object region is any color region in first object color region, and the 3rd color of object region is Any color region in color region at least one color region in addition to first object color region;
If identical, judge whether the second color of object region and the 3rd color of object region are adjacent color region;
If adjacent color region, the color in the 3rd color of object region is replaced with into the 3rd color of object, the 3rd target Color is any color in the color in addition to the color of the color region adjacent with the 3rd color of object region.
In the present embodiment, after the color of first object color region is replaced, it is possible to the face of two color regions occur The identical situation of color, if the two color regions are adjacent, user will be unable to distinguish the two color regions, therefore, by this two The color for not carrying out the color region of color replacement in a color region replaces with and removes the color area adjacent with this color region Any color in color outside the color in domain, while display power consumption is reduced, not influence user experience.
In the described economize on electricity processing methods of Fig. 4, the page to be shown is obtained, identifies at least one face in the page to be shown The color in color region, determines currently to show power consumption needed for the page to be shown, first object is chosen from least one color region Color region, replaces with required unit area by the color of each color region in first object color region and shows that power consumption is less than Any color in the color of unit area display power consumption needed for the color of the color region, makes needed for the replaced page to be shown Show that power consumption is less than the required current display power consumption, therefore, terminal display screen can be reduced and show power consumption, to extend terminal standby Time.
Referring to Fig. 5, Fig. 5 is a kind of structure chart of terminal disclosed by the embodiments of the present invention.Wherein, which can be hand Machine, tablet computer etc..The terminal 500 can include:
Acquiring unit 501, for obtaining the page to be shown;
Recognition unit 502, for identify acquiring unit 501 obtain the page to be shown at least one color region face Color;
Determination unit 503, current display power consumption needed for the page to be shown obtained for determining acquiring unit 502;
Adjustment unit 504, color of object region at least one color region for adjusting the identification of recognition unit 502 Color, makes display power consumption needed for the page to be shown after adjustment be less than the required current display power consumption that determination unit 503 determines.
In the present embodiment, terminal can be provided with display power saving function in advance, when user needs to reduce terminal display screen Display power consumption when, user can be by clicking on preset icon or programmable button in the predeterminable area in display screen, display screen Input starts the enabled instruction for showing power saving function, after terminal detects the enabled instruction for starting display power saving function, will open Dynamic display power saving function, afterwards when terminal display screen is in running order, acquiring unit 501 will obtain the page to be shown.Its In, the page to be shown is the page that terminal will be shown on a display screen.
In the present embodiment, the page to be shown has at least one color region, acquiring unit 501 get the page to be shown it Afterwards, recognition unit 502 will identify the color of at least one color region in the page to be shown.
In the present embodiment, after getting the page to be shown, determination unit 503 will determine currently to show needed for the page to be shown Show power consumption.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, adjustment unit 504 can adjust the color in color of object region at least one color region, make the page to be shown after adjustment Current display power consumption needed for the page to be shown before display power consumption is less than adjustment needed for face, so as to reduce the display of display screen Power consumption.Wherein, color of object region is part color region or whole color regions at least one color region.
In the described terminals of Fig. 5, the page to be shown is obtained, identifies at least one color region in the page to be shown Color, determines currently to show power consumption needed for the page to be shown, adjusts the color in color of object region at least one color region, Display power consumption needed for the page to be shown after adjustment is less than the required current display power consumption, therefore, terminal can be reduced and shown Screen shows power consumption, to extend terminal standby time.
Referring to Fig. 6, Fig. 6 is the structure chart of another terminal disclosed by the embodiments of the present invention.Wherein, which can be Mobile phone, tablet computer etc..The terminal 600 can include:
First acquisition unit 601, for obtaining the page to be shown;
Recognition unit 602, for identify first acquisition unit 601 obtain the page to be shown at least one color region Color;
First determination unit 603, current display work(needed for the page to be shown obtained for determining first acquisition unit 602 Consumption;
Adjustment unit 604, color of object region at least one color region for adjusting the identification of recognition unit 602 Color, makes display power consumption needed for the page to be shown after adjustment be less than the required current display work(that the first determination unit 603 determines Consumption.
In the present embodiment, terminal can be provided with display power saving function in advance, when user needs to reduce terminal display screen Display power consumption when, user can be by clicking on preset icon or programmable button in the predeterminable area in display screen, display screen Input starts the enabled instruction for showing power saving function, after terminal detects the enabled instruction for starting display power saving function, will open Dynamic display power saving function, afterwards when terminal display screen is in running order, first acquisition unit 601 will obtain page to be shown Face.Wherein, the page to be shown is the page that terminal will be shown on a display screen.
In the present embodiment, the page to be shown has at least one color region, and first acquisition unit 601 gets page to be shown After face, recognition unit 602 will identify the color of at least one color region in the page to be shown.
In the present embodiment, after first acquisition unit 601 gets the page to be shown, the first determination unit 603 determines to treat Show current display power consumption needed for the page.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, adjustment unit 604 can adjust the color in color of object region at least one color region, make the page to be shown after adjustment Current display power consumption needed for the page to be shown before display power consumption is less than adjustment needed for face, so as to reduce the display of display screen Power consumption.Wherein, color of object region is part color region or whole color regions at least one color region.
As a kind of possible embodiment, the first determination unit 603 can include:
Second acquisition unit 6031, for obtaining the region area of each color region at least one color region;
Second determination unit 6032, for each at least one color region for being obtained according to second acquisition unit 6031 The region area of color region and the color of the color region determine currently to show power consumption needed for the page to be shown.
In the present embodiment, after first acquisition unit 601 gets the page to be shown, second acquisition unit 6031 is obtained and treated Show the region area of each color region at least one color region in the page, the second determination unit 6032 is according to extremely afterwards Each region area of color region and the color of the color region determine to work as needed for the page to be shown in a few color region Preceding display power consumption.
As a kind of possible embodiment, the second determination unit 6032 is specifically used for:
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
Unit area needed for the color of each color region is shown that power consumption is multiplied by the region area of the color region to obtain Obtain display power consumption needed for the color region;
It will show that power consumption is added to obtain needed for each color region and power consumption currently shown needed for the page to be shown.
In the present embodiment, after first acquisition unit 601 gets the page to be shown, second acquisition unit 6031 is obtained and treated Show the region area of each color region at least one color region in the page, and obtain every at least one color region Unit area needed for the color of a color region shows power consumption, and the second determination unit 6032 is by the color of each color region afterwards The region area that required unit area power consumption is multiplied by the color region will obtain display power consumption needed for the color region, and will be each Display power consumption, which is added to obtain, needed for color region currently shows power consumption needed for the page to be shown.
As a kind of possible embodiment, adjustment unit 604 can include:
First order unit 6041, for the color of at least one color region to be shown according to unit area needed for color Show that power consumption carries out descending arrangement to obtain descending table;
Second order unit 6042, arranges to obtain at least one color region to be carried out ascending order according to region area Obtain ascending order table;
Replacement unit 6043, for being arranged in the color area of i-th bit in the ascending order table that obtains second order unit 6042 The color in domain replaces with the color that i-th bit is arranged in the descending table that first order unit 6041 obtains, and makes replaced to wait to show Show that display power consumption needed for the page is less than the required current display power consumption that the first determination unit 603 determines, wherein, i be more than zero and Less than or equal to the integer of the region quantity of at least one color region.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, the color of at least one color region is shown that power consumption is dropped by first order unit 6041 according to unit area needed for color To obtain descending table, at least one color region is carried out ascending order arrangement by second order unit 6042 according to region area for sequence arrangement To obtain ascending order table, the color for being arranged in the color region of i-th bit in ascending order table is replaced with arrangement by replacement unit 6043 afterwards The color of i-th bit in descending table, makes display power consumption needed for the replaced page to be shown be determined less than the first determination unit 603 Required current display power consumption.Since the region area of each color region remains unchanged, and unit area needed for different colours Show that power consumption is different, therefore, the color of the color region of region area maximum can be replaced with to required unit area and show work( Minimum color is consumed, is replaced successively, finally, the color of the color region of region area minimum is replaced with into required unit plane Product shows the color of power consumption maximum, be able to will wait to show in the case where the color category of at least one color region of holding is constant Show that display power consumption is minimized needed for the page.Wherein, i is more than zero and less than or equal to the number of regions of at least one color region The integer of amount.Wherein, when being arranged in the color of the color region of i-th bit in ascending order table and be arranged in the face of i-th bit in descending table Form and aspect are at the same time, constant for current color by the color for keeping the color region;When the color region for being arranged in i-th bit in ascending order table Color and when being arranged in the color of i-th bit in descending table and differing, the color of the color region is replaced with and is arranged in descending The color of i-th bit in table.
In the described terminals of Fig. 6, the page to be shown is obtained, identifies at least one color region in the page to be shown Color, determines currently to show power consumption needed for the page to be shown, by the color of at least one color region according to unit needed for color Area shows that power consumption carries out descending arrangement to obtain descending table, and at least one color region is carried out ascending order row according to region area The color for the color region that i-th bit is arranged in ascending order table is replaced with descending table to obtain ascending order table and is arranged in i-th by row The color of position, makes display power consumption needed for the replaced page to be shown be less than the required current display power consumption, can reduce terminal Display screen shows power consumption, to extend terminal standby time.
Referring to Fig. 7, Fig. 7 is the structure chart of another terminal disclosed by the embodiments of the present invention.Wherein, which can be Mobile phone, tablet computer etc..The terminal 700 can include:
First acquisition unit 701, for obtaining the page to be shown;
Recognition unit 702, for identify first acquisition unit 701 obtain the page to be shown at least one color region Color;
First determination unit 703, current display work(needed for the page to be shown obtained for determining first acquisition unit 702 Consumption;
Adjustment unit 704, for adjust recognition unit 702 identification at least one color region in first object color area The color in domain, makes display power consumption needed for the page to be shown after adjustment required current aobvious less than what the first determination unit 703 determined Show power consumption.
In the present embodiment, terminal can be provided with display power saving function in advance, when user needs to reduce terminal display screen Display power consumption when, user can be by clicking on preset icon or programmable button in the predeterminable area in display screen, display screen Input starts the enabled instruction for showing power saving function, after terminal detects the enabled instruction for starting display power saving function, will open Dynamic display power saving function, afterwards when terminal display screen is in running order, first acquisition unit 701 will obtain page to be shown Face.Wherein, the page to be shown is the page that terminal will be shown on a display screen.
In the present embodiment, the page to be shown has at least one color region, and first acquisition unit 701 gets page to be shown After face, recognition unit 702 will identify the color of at least one color region in the page to be shown.
In the present embodiment, after first acquisition unit 701 gets the page to be shown, the first determination unit 703 determines to treat Show current display power consumption needed for the page.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, adjustment unit 704 can adjust the color in color of object region at least one color region, make the page to be shown after adjustment Current display power consumption needed for the page to be shown before display power consumption is less than adjustment needed for face, so as to reduce the display of display screen Power consumption.Wherein, color of object region is part color region or whole color regions at least one color region.
As a kind of possible embodiment, the first determination unit 703 can include:
Second acquisition unit 7031, for obtaining the region area of each color region at least one color region;
Second determination unit 7032, for each at least one color region for being obtained according to second acquisition unit 7031 The region area of color region and the color of the color region determine currently to show power consumption needed for the page to be shown.
In the present embodiment, after first acquisition unit 701 gets the page to be shown, second acquisition unit 7031 is obtained and treated Show the region area of each color region at least one color region in the page, the second determination unit 7032 is according to extremely afterwards Each region area of color region and the color of the color region determine to work as needed for the page to be shown in a few color region Preceding display power consumption.
As a kind of possible embodiment, the second determination unit 7032 is specifically used for:
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
The power consumption that unit area needed for the color of each color region shows is multiplied by the region area of the color region to obtain Display power consumption needed for the color region;
It will show that power consumption is added to obtain needed for each color region and power consumption currently shown needed for the page to be shown.
In the present embodiment, after first acquisition unit 701 gets the page to be shown, second acquisition unit 7031 is obtained and treated Show the region area of each color region at least one color region in the page, and obtain every at least one color region Unit area needed for the color of a color region shows power consumption, and the second determination unit 7032 is by the color of each color region afterwards The region area that required unit area power consumption is multiplied by the color region will obtain display power consumption needed for the color region, and will be each Display power consumption, which is added to obtain, needed for color region currently shows power consumption needed for the page to be shown.
As a kind of possible embodiment, adjustment unit 704 can include:
Unit 7041 is chosen, for choosing color of object region, color of object region from least one color region Required display power consumption is more than the first default power consumption;
Replacement unit 7042, for the color of each color region in the color of object region chosen of unit 7041 will to be chosen Unit area needed for replacing with shows that power consumption is less than the first object that unit area needed for the color of the color region shows power consumption Color, makes display power consumption needed for the replaced page to be shown be less than the required current display work(that the first determination unit 703 determines Consumption, first object color are any color in the color in addition to the color of at least one color region.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, choose unit 7041 and the color of object that required display power consumption is more than the first default power consumption is chosen from least one color region Region, it is believed that show that power consumption is more than display power consumption needed for the color of object region of the first default power consumption at least one color region The large percentage that power consumption is currently shown needed for the page to be shown is occupied, choosing unit 7041 afterwards will be each in color of object region The color of color region replaces with required unit area in color in addition to the color of at least one color region and shows power consumption Less than any color that unit area needed for the color of the color region shows power consumption, make to show needed for the replaced page to be shown Show that power consumption is less than the required current display power consumption that the first determination unit 703 determines.Since the region area in color of object region is protected Hold constant, and reduce needed for the color in color of object region unit area and show power consumption, it therefore reduces the display of display screen Power consumption.It is to be selected in the color outside at least one color region, therefore, after having replaced, extremely when carrying out color replacement The color of each color region is different from a few color region.
As a kind of possible embodiment, display power consumption needed for color of object region is more than the first default power consumption, and the Unit area needed for the color of each color region shows that power consumption is more than the second default power consumption in one color of object region.
In the present embodiment, display power consumption is that the face of color region is multiplied by by the region area of color region needed for color region Unit area needed for color shows what power consumption obtained, and therefore, display power consumption needed for color region is more than the first default power consumption and is probably Caused by the region area of color region is larger, it is also possible to be due to that unit area needed for the color of color region shows power consumption Caused by larger, and the region area of color region remains unchanged, and therefore, can reduce face by adjusting the color of color region Display power consumption needed for color region.When showing that power consumption is more than the first default power consumption, and the color institute of color region needed for color region When needing unit area display power consumption more than the second default display power consumption, it will be considered that the color of the color region is to the color region institute It need to show having a great influence for power consumption, replacement unit 7042 replaces with the color of each color region in these color regions except extremely Required unit area shows that power consumption is less than needed for the color of the color region in color outside the color of a few color region Unit area shows any color of power consumption, display power consumption needed for the replaced page to be shown is less than the first determination unit The 703 required current display power consumptions determined.
As a kind of possible embodiment, first object color is the face in addition to the color of at least one color region Any color in color, and the contrast between first object color and the second color of object is more than the first preset value, wherein, second Color of object is any color in the color of the color region at least one color region in addition to color of object region.
In the present embodiment, since when the contrast between two kinds of colors is less than or equal to preset value, user is difficult to pass through Eyes distinguish both colors, therefore, in order to allow users to differentiate different colors, the replacement color of selection by eyes To be more than preset value with the contrast for the color that need not be originally replaced in the page to be shown, and will be with substituted for The contrast between color is replaced also greater than preset value.
In the described terminals of Fig. 7, the page to be shown is obtained, identifies at least one color region in the page to be shown Color, determines currently to show power consumption needed for the page to be shown, color of object region is chosen from least one color region, by mesh The color of each color region replaces with required unit area and shows that power consumption is less than the color of the color region in mark color region Required unit area shows the first object color of power consumption, display power consumption needed for the replaced page to be shown is less than this required Current display power consumption, wherein, display power consumption needed for color of object region is more than the first default power consumption, and first object color is except extremely Any color in color outside the color of a few color region, therefore, can reduce terminal display screen and show power consumption, to prolong Long terminal standby time.
Referring to Fig. 8, Fig. 8 is the structure chart of another terminal disclosed by the embodiments of the present invention.Wherein, which can be Mobile phone, tablet computer etc..The terminal 800 can include:
First acquisition unit 801, for obtaining the page to be shown;
Recognition unit 802, for identify first acquisition unit 801 obtain the page to be shown at least one color region Color;
First determination unit 803, current display work(needed for the page to be shown obtained for determining first acquisition unit 802 Consumption;
Adjustment unit 804, for adjust recognition unit 802 identification at least one color region in first object color area The color in domain, makes display power consumption needed for the page to be shown after adjustment required current aobvious less than what the first determination unit 803 determined Show power consumption.
In the present embodiment, terminal can be provided with display power saving function in advance, when user needs to reduce terminal display screen Display power consumption when, user can be by clicking on preset icon or programmable button in the predeterminable area in display screen, display screen Input starts the enabled instruction for showing power saving function, after terminal detects the enabled instruction for starting display power saving function, will open Dynamic display power saving function, afterwards when terminal display screen is in running order, first acquisition unit 801 will obtain page to be shown Face.Wherein, the page to be shown is the page that terminal will be shown on a display screen.
In the present embodiment, the page to be shown has at least one color region, and first acquisition unit 801 gets page to be shown After face, recognition unit 802 will identify the color of at least one color region in the page to be shown.
In the present embodiment, after first acquisition unit 801 gets the page to be shown, the first determination unit 803 determines to treat Show current display power consumption needed for the page.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, adjustment unit 804 can adjust the color in color of object region at least one color region, make the page to be shown after adjustment Current display power consumption needed for the page to be shown before display power consumption is less than adjustment needed for face, so as to reduce the display of display screen Power consumption.Wherein, color of object region is part color region or whole color regions at least one color region.
As a kind of possible embodiment, the first determination unit 803 can include:
Second acquisition unit 8031, for obtaining the region area of each color region at least one color region;
Second determination unit 8032, for each at least one color region for being obtained according to second acquisition unit 8031 The region area of color region and the color of the color region determine currently to show power consumption needed for the page to be shown.
In the present embodiment, after first acquisition unit 801 gets the page to be shown, second acquisition unit 8031 is obtained and treated Show the region area of each color region at least one color region in the page, the second determination unit 8032 is according to extremely afterwards Each region area of color region and the color of the color region determine to work as needed for the page to be shown in a few color region Preceding display power consumption.
As a kind of possible embodiment, the second determination unit 8032 is specifically used for:
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
Unit area needed for the color of each color region is shown that power consumption is multiplied by the region area of the color region to obtain Obtain display power consumption needed for the color region;
It will show that power consumption is added to obtain needed for each color region and power consumption currently shown needed for the page to be shown.
In the present embodiment, after first acquisition unit 801 gets the page to be shown, second acquisition unit 8031 is obtained and treated Show the region area of each color region at least one color region in the page, and obtain every at least one color region Unit area needed for the color of a color region shows power consumption, and the second determination unit 8032 is by the color of each color region afterwards The region area that required unit area power consumption is multiplied by the color region will obtain display power consumption needed for the color region, and will be each Display power consumption, which is added to obtain, needed for color region currently shows power consumption needed for the page to be shown.
As a kind of possible embodiment, adjustment unit 804 can include:
Unit 8041 is chosen, for choosing first object color region, first object from least one color region Display power consumption needed for color region is more than the 3rd default power consumption;
First replacement unit 8042, for each color region in the first color region chosen of unit 8041 will to be chosen Color replaces with required unit area and shows that power consumption is less than the color that unit area needed for the color of the color region shows power consumption In any color, make display power consumption needed for the replaced page to be shown be less than the first determination unit 803 determine it is required current Show power consumption.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, choose unit 8041 and the first object color that required display power consumption is more than default power consumption is chosen from least one color region Region, it is believed that show that power consumption is more than display power consumption needed for the first object color region of default power consumption at least one color region The large percentage of currently display power consumption is occupied needed for the page to be shown, the first replacement unit 8042 is by first object color area afterwards The color of each color region replaces with required unit area and shows that power consumption is less than unit needed for the color of the color region in domain Any color in the color of area display power consumption, makes display power consumption needed for the replaced page to be shown be less than the first determination unit The 803 required current display power consumptions determined.Since the region area of first object color region remains unchanged, and reduce first Unit area needed for the color in color of object region shows power consumption, it therefore reduces the display power consumption of display screen.Color is carried out to replace When changing, selected from all colours, therefore, replace it in rear at least one color region and be likely to occur some color regions The identical situation of color.
As a kind of possible embodiment, the first replacement unit 8042 is specifically used for:
Color region in first object color region is subjected to descending arrangement to obtain descending table according to region area;
All colours are shown that power consumption carries out ascending order and arranges to obtain ascending order table according to unit area needed for color;
The color for the color region that jth position is arranged in descending table is replaced with to the color that jth position is arranged in ascending order table, Display power consumption needed for the replaced page to be shown is set to be less than the required current display power consumption that the first determination unit 803 determines, its In, j is more than zero and less than or equal to the integer of the region quantity of color region in first object color region.
In the present embodiment, obtain needed for the page to be shown currently display power consumption and the color of at least one color region it Afterwards, choose unit 8041 and the first object color that required display power consumption is more than default power consumption is chosen from least one color region Region, it is believed that show that power consumption is more than display power consumption needed for the first object color region of default power consumption at least one color region The large percentage that power consumption is currently shown needed for the page to be shown is occupied, the first replacement unit 8042 will be arranged in descending table afterwards The color of the color region of jth position replaces with the color that jth position is arranged in ascending order table, makes needed for the replaced page to be shown Show that power consumption is less than the required current display power consumption that the first determination unit 803 determines.Due to the region area of each color region Remain unchanged, and unit area needed for different colours shows that power consumption is different, therefore, can be by the color region of region area maximum Color replace with needed for unit area show power consumption minimum color, be replaced successively, can be by needed for the page to be shown Display power consumption is minimized.Wherein, j is more than zero and less than or equal to the number of regions of color region in first object color region The integer of amount.Wherein, when being arranged in the color of the color region of jth position in descending table and be arranged in the face of jth position in ascending order table Form and aspect are at the same time, constant for current color by the color for keeping the color region;When the color region for being arranged in jth position in descending table Color and when being arranged in the color of jth position in ascending order table and differing, the color of the color region is replaced with and is arranged in ascending order The color of jth position in table.
As a kind of possible embodiment, the first replacement unit 8042 will be arranged in the face of jth position in second descending table The color in color region replaces with the color that jth position is arranged in the second ascending order table, makes display needed for the replaced page to be shown Power consumption is less than after the required current display power consumption that the first determination unit 803 determines, adjustment unit 804 can also include:
First judging unit 8043, for judge the second color of object region in first object color region color whether Identical with the color in the 3rd color of object region, the second color of object region is any color area in first object color region Domain, the 3rd color of object region are any in the color region at least one color region in addition to first object color region Color region;
Second judging unit 8044, for when the judging result of the first judging unit 8043 is is, judging the second target Whether color region and the 3rd color of object region are adjacent color region;
Second replacement unit 8045, for when the second judging unit 8044 judging result for be when, by the 3rd target face The color in color region replaces with the 3rd color of object, and the 3rd color of object is except the color area adjacent with the 3rd color of object region Any color in color outside the color in domain.
In the present embodiment, after the color of first object color region is replaced, it is possible to the face of two color regions occur The identical situation of color, if the two color regions are adjacent, user will be unable to distinguish the two color regions, therefore, will The color for not carrying out the color region of color replacement in the two color regions replaces with and removes the face adjacent with this color region Any color in color outside the color in color region, while display power consumption is reduced, not influence user experience.
In the described terminals of Fig. 8, the page to be shown is obtained, identifies at least one color region in the page to be shown Color, determines currently to show power consumption needed for the page to be shown, first object color region is chosen from least one color region, The color of each color region in first object color region is replaced with into required unit area and shows that power consumption is less than the color area Any color in the color of unit area display power consumption needed for the color in domain, makes display power consumption needed for the replaced page to be shown Less than the required current display power consumption, therefore, terminal display screen can be reduced and show power consumption, to extend terminal standby time.
Referring to Fig. 9, Fig. 9 is the structure chart of another terminal disclosed by the embodiments of the present invention.Wherein, which can be Mobile phone, tablet computer etc..As shown in figure 9, the communication apparatus 900 can include:At least one processor 901, such as CPU, storage Device 902 and at least one communication bus 903.Memory 902 can be high-speed RAM memory or non-labile Memory (non-volatile memory), for example, at least a magnetic disk storage.Alternatively, memory 902 can also be to A few storage device for being located remotely from aforementioned processor 1101.Wherein:
Memory 902, for storing batch processing code;
Communication bus 903, the connection communication being used for realization between these components;
Processor 901 is used to call the program code stored in memory 902 to perform following operation:
Obtain the page to be shown;
Identify the color of at least one color region in the page to be shown;
Determine currently to show power consumption needed for the page to be shown;
The color of first object color region at least one color region is adjusted, makes the page institute to be shown after adjustment It need to show that power consumption is less than the required current display power consumption.
As a kind of possible embodiment, processor 901 determines currently to show the mode of power consumption needed for the page to be shown Specially:
Obtain the region area of each color region at least one color region;
Determined according to each region area of color region at least one color region and the color of the color region Power consumption is currently shown needed for the page to be shown.
As a kind of possible embodiment, processor 901 is according to each color region at least one color region Region area and the color of the color region determine needed for the page to be shown that the mode of currently display power consumption is specially:
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
Unit area needed for the color of each color region is shown that power consumption is multiplied by the region area of the color region to obtain Obtain display power consumption needed for the color region;
It will show that power consumption is added to obtain needed for each color region and power consumption currently shown needed for the page to be shown.
As a kind of possible embodiment, processor 901 adjusts first object color at least one color region The color in region, makes the mode that display power consumption needed for the page to be shown after adjustment is less than the required current display power consumption specific For:
By the color of at least one color region according to needed for color unit area show power consumption carry out descending arrangement with Obtain the first descending table;
At least one color region is subjected to ascending order arrangement to obtain the first ascending order table according to region area;
The color for the color region for being arranged in i-th bit in first ascending order table is replaced with the first descending table and is arranged in i-th The color of position, makes display power consumption needed for the replaced page to be shown be less than the required current display power consumption, wherein, i be more than Zero and less than or equal at least one color region region quantity integer.
As a kind of possible embodiment, processor 901 adjusts first object color at least one color region The color in region, makes the mode that display power consumption needed for the page to be shown after adjustment is less than the required current display power consumption specific For:
First object color region is chosen from least one color region, display work(needed for first object color region Consumption is more than the first default power consumption;
The color of each color region in first object color region is replaced with into required unit area and shows that power consumption is less than Unit area needed for the color of the color region shows the first object color of power consumption, makes to show needed for the replaced page to be shown Show that power consumption is less than the required current display power consumption, first object color is the face in addition to the color of at least one color region Any color in color.
As a kind of possible embodiment, display power consumption needed for first object color region is more than the first default power consumption, And unit area needed for the color of each color region shows that power consumption is more than the second default power consumption in first object color region.
As a kind of possible embodiment, first object color is the face in addition to the color of at least one color region Any color in color, and the contrast between first object color and the second color of object is more than preset value, wherein, the second target Color is any color in the color of the color region at least one color region in addition to first object color region.
As a kind of possible embodiment, processor 901 adjusts first object color area at least one color region The color in domain, makes to show that the mode that power consumption is less than required current display power consumption is specially needed for the page to be shown after adjustment:
First object color region is chosen from least one color region, display work(needed for first object color region Consumption is more than the 3rd default power consumption;
The color of each color region in first object color region is replaced with into required unit area and shows that power consumption is less than Any color in the color of unit area display power consumption needed for the color of the color region, makes needed for the replaced page to be shown Show that power consumption is less than the required current display power consumption.
As a kind of possible embodiment, processor 901 is by the face of each color region in first object color region Color replaces with required unit area and shows that power consumption is less than unit area needed for the color of the color region and shows in the color of power consumption The mode of any color, makes to show that power consumption is less than the required current display power consumption and is specially needed for the replaced page to be shown:
Color region in first object color region is subjected to descending arrangement to obtain the second descending table according to region area;
All colours are shown that power consumption carries out ascending order and arranges to obtain the second ascending order table according to unit area needed for color;
The color for the color region for being arranged in jth position in second descending table is replaced with the second ascending order table and is arranged in jth The color of position, makes display power consumption needed for the replaced page to be shown be less than the required current display power consumption, wherein, j be more than Zero and less than or equal to the integer of the region quantity of color region in first object color region.
As a kind of possible embodiment, processor 901 will be arranged in the color region of jth position in second descending table Color replaces with the color that jth position is arranged in the second ascending order table, is less than display power consumption needed for the replaced page to be shown After the required current display power consumption, processor 901 is additionally operable to call the program code stored in memory 902 to perform following behaviour Make:
Judge the second color of object region in first object color region color whether with the 3rd color of object region Color is identical, and the second color of object region is any color region in first object color region, and the 3rd color of object region is Any color region in color region at least one color region in addition to first object color region;
If identical, judge whether the second color of object region and the 3rd color of object region are adjacent color region;
If adjacent color region, the color in the 3rd color of object region is replaced with into the 3rd color of object, the 3rd target Color is any color in the color in addition to the color of the color region adjacent with the 3rd color of object region.
In the described terminals of Fig. 9, the page to be shown is obtained, identifies at least one color region in the page to be shown Color, determines currently to show power consumption needed for the page to be shown, adjusts first object color region at least one color region Color, makes display power consumption needed for the page to be shown after adjustment be less than the required current display power consumption, therefore, can reduce terminal Display screen shows power consumption, to extend terminal standby time.
The step of method of the embodiment of the present invention, sequentially can be adjusted according to actual needs, merges or delete.This hair The unit of the terminal of bright embodiment can be integrated according to actual needs, further divide or delete.
The unit of the embodiment of the present invention, can be with universal integrated circuit (such as central processor CPU), or with special integrated electricity Road (ASIC) is realized.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct relevant hardware to complete by program, which can be stored in one and determine in machine readable storage medium storing program for executing, storage Medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Economize on electricity processing method disclosed by the embodiments of the present invention and terminal are described in detail above, it is used herein Specific case is set forth the principle of the present invention and embodiment, and the explanation of above example is only intended to help to understand this The method and its core concept of invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, specific There will be changes in embodiment and application range, in conclusion this specification content should not be construed as to the present invention's Limitation.

Claims (5)

1. one kind economize on electricity processing method, it is characterised in that including:
Obtain the page to be shown;
Identify the color of at least one color region in the page to be shown;
Determine currently to show power consumption needed for the page to be shown;
The color of first object color region at least one color region is adjusted, is made needed for the page to be shown after adjustment Show that power consumption is less than the required current display power consumption;
It is described to determine that current display power consumption includes needed for the page to be shown:
Obtain the region area of each color region at least one color region;
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
Unit area needed for the color of each color region is shown that power consumption is multiplied by the region area of the color region to obtain Obtain display power consumption needed for the color region;
It will show that power consumption is added to obtain current display power consumption needed for the page to be shown needed for each color region;
The color of first object color region, makes the page to be shown after adjustment in adjustment at least one color region Required display power consumption is less than the required current display power consumption and includes:
The color of at least one color region is shown that power consumption carries out descending and arranges to obtain according to unit area needed for color Obtain the first descending table;
At least one color region is subjected to ascending order arrangement to obtain the first ascending order table according to region area;
The color for the color region for being arranged in i-th bit in the first ascending order table is replaced with the first descending table and is arranged in The color of i-th bit, makes display power consumption needed for the replaced page to be shown be less than the required current display power consumption, wherein, institute State the integer that i is the region quantity more than zero and less than or equal at least one color region.
2. one kind economize on electricity processing method, it is characterised in that including:
Obtain the page to be shown;
Identify the color of at least one color region in the page to be shown;
Determine currently to show power consumption needed for the page to be shown;
The color of first object color region at least one color region is adjusted, is made needed for the page to be shown after adjustment Show that power consumption is less than the required current display power consumption;
It is described to determine that current display power consumption includes needed for the page to be shown:
Obtain the region area of each color region at least one color region;
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
Unit area needed for the color of each color region is shown that power consumption is multiplied by the region area of the color region to obtain Obtain display power consumption needed for the color region;
It will show that power consumption is added to obtain current display power consumption needed for the page to be shown needed for each color region;
The color of first object color region, makes the page to be shown after adjustment in adjustment at least one color region Required display power consumption is less than the required current display power consumption and includes:
First object color region, display needed for the first object color region are chosen from least one color region Power consumption is more than the first default power consumption;
The color of each color region in the first object color region is replaced with into required unit area and shows that power consumption is less than Unit area needed for the color of the color region shows the first object color of power consumption, makes to show needed for the replaced page to be shown Show that power consumption is less than the required current display power consumption, the first object color is except the color of at least one color region Outside color in any color;The first object color is the color in addition to the color of at least one color region In any color, and the contrast between the first object color and the second color of object is more than preset value, wherein, described Two color of objects are the color of the color region in addition to the first object color region at least one color region In any color.
3. according to the method described in claim 2, it is characterized in that, display power consumption is more than needed for the first object color region First default power consumption, and unit area needed for the color of each color region shows that power consumption is big in the first object color region In the second default power consumption.
4. one kind economize on electricity processing method, it is characterised in that including:
Obtain the page to be shown;
Identify the color of at least one color region in the page to be shown;
Determine currently to show power consumption needed for the page to be shown;
The color of first object color region at least one color region is adjusted, is made needed for the page to be shown after adjustment Show that power consumption is less than the required current display power consumption;
It is described to determine that current display power consumption includes needed for the page to be shown:
Obtain the region area of each color region at least one color region;
Obtain unit area needed for the color of each color region at least one color region and show power consumption;
Unit area needed for the color of each color region is shown that power consumption is multiplied by the region area of the color region to obtain Obtain display power consumption needed for the color region;
It will show that power consumption is added to obtain current display power consumption needed for the page to be shown needed for each color region;
The color of first object color region, makes the page to be shown after adjustment in adjustment at least one color region Required display power consumption is less than the required current display power consumption and includes:
First object color region, display needed for the first object color region are chosen from least one color region Power consumption is more than the 3rd default power consumption;
The color of each color region in the first object color region is replaced with into required unit area and shows that power consumption is less than Any color in the color of unit area display power consumption needed for the color of the color region, makes needed for the replaced page to be shown Show that power consumption is less than the required current display power consumption;
The color by each color region in the first object color region replaces with required unit area and shows power consumption Less than any color in the color that unit area needed for the color of the color region shows power consumption, make the replaced page to be shown Required display power consumption is less than the required current display power consumption and includes:
Color region in the first object color region is subjected to descending arrangement to obtain the second descending table according to region area;
All colours are shown that power consumption carries out ascending order and arranges to obtain the second ascending order table according to unit area needed for color;
The color for the color region for being arranged in jth position in the second descending table is replaced with the second ascending order table and is arranged in The color of jth position, makes display power consumption needed for the replaced page to be shown be less than the required current display power consumption, wherein, institute It is more than zero and less than or equal to the integer of the region quantity of color region in the first object color region to state j.
5. according to the method described in claim 4, it is characterized in that, described will be arranged in jth position in the second descending table The color of color region replaces with the color that jth position is arranged in the second ascending order table, makes replaced page institute to be shown It need to show that power consumption is less than after the required current display power consumption, the method further includes:
Judge the second color of object region in the first object color region color whether with the 3rd color of object region Color is identical, the second color of object region be the first object color region in any color region, the 3rd mesh Mark color region is any in the color region at least one color region in addition to the first object color region Color region;
If identical, judge whether the second color of object region and the 3rd color of object region are adjacent color area Domain;
If adjacent color region, the color in the 3rd color of object region is replaced with into the 3rd color of object, the described 3rd Color of object is any color in the color in addition to the color of the color region adjacent with the 3rd color of object region.
CN201510088775.3A 2015-02-26 2015-02-26 One kind economize on electricity processing method Expired - Fee Related CN104699221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510088775.3A CN104699221B (en) 2015-02-26 2015-02-26 One kind economize on electricity processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510088775.3A CN104699221B (en) 2015-02-26 2015-02-26 One kind economize on electricity processing method

Publications (2)

Publication Number Publication Date
CN104699221A CN104699221A (en) 2015-06-10
CN104699221B true CN104699221B (en) 2018-04-27

Family

ID=53346438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510088775.3A Expired - Fee Related CN104699221B (en) 2015-02-26 2015-02-26 One kind economize on electricity processing method

Country Status (1)

Country Link
CN (1) CN104699221B (en)

Families Citing this family (3)

* 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
KR102429801B1 (en) * 2018-02-22 2022-08-05 삼성전자주식회사 Method for adaptively controlling low power display mode and electronic device thereof
CN111767102A (en) * 2020-03-25 2020-10-13 北京沃东天骏信息技术有限公司 Application program display method, information processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200907922A (en) * 2007-08-15 2009-02-16 Au Optronics Corp A driving method for reducing power consumption of a flat display
CN102867484A (en) * 2011-07-07 2013-01-09 中兴通讯股份有限公司 Display control method and system
CN103914124A (en) * 2014-04-04 2014-07-09 浙江工商大学 Energy-saving color mapping method aiming at three-dimensional scenes

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7760210B2 (en) * 2005-05-04 2010-07-20 Honeywood Technologies, Llc White-based power savings
TWI420492B (en) * 2009-10-29 2013-12-21 Chunghwa Picture Tubes Ltd Color sequential display apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200907922A (en) * 2007-08-15 2009-02-16 Au Optronics Corp A driving method for reducing power consumption of a flat display
CN102867484A (en) * 2011-07-07 2013-01-09 中兴通讯股份有限公司 Display control method and system
CN103914124A (en) * 2014-04-04 2014-07-09 浙江工商大学 Energy-saving color mapping method aiming at three-dimensional scenes

Also Published As

Publication number Publication date
CN104699221A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
US20160357616A1 (en) Application management method and application management apparatus
CN104699221B (en) One kind economize on electricity processing method
CN103823735B (en) Status icons display methods and portable terminal thereof
CN103761110B (en) browser font display processing method and device
CN106250092B (en) A kind of terminal screen switching method and device
CN103513748A (en) Method for processing information, information processor and electronic device
CN106961454A (en) Document down loading method, device and terminal device
CN110083415A (en) Device screen adaptation method, terminal device and storage medium
CN104699222B (en) A kind of terminal
CN105573595A (en) Information display method and device
CN105005485B (en) A kind of method, apparatus and terminal that limitation application memory occupies
CN103729051A (en) Display control method and terminal
CN104394675A (en) Terminal
CN105607901B (en) Method and device for optimizing system memory and terminal equipment
CN105373373B (en) Method and device for quickly generating icon
CN106535245A (en) Different system measurement method and multi-mode mobile terminal
CN104572223A (en) Method and device for arranging desktop icons
CN106462317A (en) User account switching interface
CN104765599A (en) Terminal
CN105843391B (en) The method, apparatus and terminal of frequency modulation tune core
EP2881847A1 (en) Method and device for transversely laying out list component on terminal
CN104881222B (en) Man-machine interaction method and device
CN106055229B (en) Display interface adjusting method and display interface adjusting module based on screen reading
CN103885689A (en) Information processing method and electronic device
CN110489013B (en) Touch detection method, touch detection device and display panel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180427

Termination date: 20200226