CN107204177B - A kind of method and mobile terminal adjusting resolution ratio - Google Patents

A kind of method and mobile terminal adjusting resolution ratio Download PDF

Info

Publication number
CN107204177B
CN107204177B CN201710326459.4A CN201710326459A CN107204177B CN 107204177 B CN107204177 B CN 107204177B CN 201710326459 A CN201710326459 A CN 201710326459A CN 107204177 B CN107204177 B CN 107204177B
Authority
CN
China
Prior art keywords
display window
province
charge value
period
severe
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.)
Active
Application number
CN201710326459.4A
Other languages
Chinese (zh)
Other versions
CN107204177A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710326459.4A priority Critical patent/CN107204177B/en
Publication of CN107204177A publication Critical patent/CN107204177A/en
Application granted granted Critical
Publication of CN107204177B publication Critical patent/CN107204177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2330/00Aspects of power supply; Aspects of display protection and defect management
    • G09G2330/02Details of power systems and of start or stop of display operation
    • G09G2330/021Power management, e.g. power saving

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The present invention provides a kind of methods for adjusting resolution ratio, comprise determining that the drawing severe and scaling consumption electricity of each display window in the different time sections in preset time, it obtains and saves voltameter calculation parameter, for each period of each display window, according to the drawing severe of period, scaling consumption electricity and voltameter calculation parameter is saved, calculates province charge value of the display window in the period;For each display window, maximum province's charge value in the corresponding each province's charge value of display window is determined;For each display window, the corresponding target scale consumption electricity of maximum province's charge value is determined, using the corresponding resolution ratio of target scale consumption electricity as the target resolution of display window.Parameter is calculated by saving voltameter, then the corresponding resolution ratio of the corresponding scaling consumption electricity of available maximum province's charge value is allocated to the display window, it realizes the configuration in real time to current each display window resolution ratio, power consumption can either be reduced and does not influence the usage experience of user.

Description

A kind of method and mobile terminal adjusting resolution ratio
Technical field
The present invention relates to image display technology fields, more particularly to a kind of method and mobile terminal for adjusting resolution ratio.
Background technique
Big now with becoming for mobile terminal screen, resolution ratio also and then changes, and since the resolution ratio the high, consumes Electricity is also higher, and the method for changing power consumption now includes following two technology:
The first are as follows: provide two or more options for user, user by manually mode to global resolution ratio into Row selection.When power consumption is excessively high, user can choose slightly lower resolution applications in full frame.
Second are as follows: resolution ratio is simply automatically adjusted according to the data type currently shown, such as basis is worked as It is preceding that document, webpage, video or image etc. is shown, the resolution ratio at shown interface is adjusted automatically, such as Document is adjusted to high definition resolution ratio, and adjustable for video is general sorting resolution.
For above-mentioned first way, since user can not frequently switch over resolution ratio, when being set as high-resolution When rate, the high problem of power consumption will cause, when being set as low resolution, and will lead to that picture sense is poor, influence user uses body It tests, user generally can set resolution ratio to high-resolution, cause power consumption the problem of clear in order to reach picture.Above-mentioned second Kind of mode, due to each display window has drawn be merged into one after still need to scale, so when draw it is fewer (special Static) interface when reduce resolution ratio, the effect of power saving has both been not achieved, while also sacrificing experience and performance, therefore with aobvious Show data type to distinguish be inadequate.And it, can not in multiple types display data while in the display of multiple display windows Equilibrium treatment, can only select a kind of global resolution ratio, and image sharpness cannot be considered in terms of with power consumption.
Summary of the invention
The present invention provides a kind of methods and mobile terminal for adjusting resolution ratio, to solve in the prior art due to mobile whole The screen at end becomes greatly, under the premise of guaranteeing picture clearly, the problem of reducing the power consumption of mobile terminal.
To solve the above-mentioned problems, the invention discloses a kind of methods for adjusting resolution ratio, which comprises determines pre- If the drawing severe of each display window and scaling consumption electricity in the different time sections in the time, wherein shown on terminal screen It is shown at least one display window;Obtain and save voltameter and calculate parameter, wherein province's voltameter calculate parameter include: power saving weight, Screen resolution and drawing constant;For each period of each display window, according to the period drawing severe, Scaling consumption electricity and province's voltameter calculate parameter, calculate province charge value of the display window in the period;For Each display window determines maximum province's charge value in the corresponding each province's charge value of the display window;For each aobvious Show window, determines the corresponding target scale consumption electricity of maximum province's charge value, the target scale is consumed into electricity pair Target resolution of the resolution ratio answered as the display window.
To solve the above-mentioned problems, the invention discloses a kind of mobile terminal, the mobile terminal includes: the first determining mould Block, for determining the drawing severe and scaling consumption electricity of each display window in the different time sections in preset time, wherein At least one display window is shown on terminal screen;Module is obtained, saves voltameter calculation parameter for obtaining, wherein the province Electricity calculating parameter includes: power saving weight, screen resolution and drawing constant;Computing module, for being directed to each display window Mouth, each period according to the drawing severe of the period, scaling consumption electricity and save voltameter calculation parameter, calculating institute State province charge value of the display window in the period;Second determining module, described in determining for each display window Maximum province's charge value in the corresponding each province's charge value of display window;Third determining module, for being directed to each display window Mouthful, determine the corresponding target scale consumption electricity of maximum province's charge value, target scale consumption electricity is corresponding Target resolution of the resolution ratio as the display window.
Compared with prior art, the invention has the following advantages that
A kind of scheme adjusting resolution ratio provided by the invention determines in preset time, each display window in different time sections The drawing severe and scaling consumption electricity of mouth, obtain and save voltameter calculation parameter;For each display window, each period, According to period display window drawing severe, scaling consumption electricity and save voltameter calculate parameter, calculate display window when Between province's charge value in section;For each display window, maximum province's electricity in the corresponding each province's charge value of display window is determined Value;For each display window, determines the corresponding target scale consumption electricity of maximum province's charge value, scaling is consumed into electricity pair Target resolution of the resolution ratio answered as display window.As it can be seen that the scheme provided by the invention for adjusting resolution ratio, by drawing Figure severe, scaling consumption and province's voltameter calculate parameter, calculate and save charge value, since different resolution corresponds to different scalings Electricity is consumed, then the corresponding resolution ratio of the corresponding scaling consumption electricity of available maximum province's charge value is allocated to the display window Mouthful, it realizes the configuration in real time to current each display window resolution ratio, power consumption can either be reduced and do not influence user uses body It tests.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the method for adjusting resolution ratio of the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of the method for adjusting resolution ratio of the embodiment of the present invention two;
Fig. 3 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention three;
Fig. 4 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention four;
Fig. 5 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention five;
Fig. 6 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention six.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Embodiment one
Referring to Fig.1, a kind of step flow chart of the method for adjusting resolution ratio of the embodiment of the present invention one is shown.
It is provided in an embodiment of the present invention adjust resolution ratio method the following steps are included:
Step 101: determining the drawing severe and scaling consumption of each display window in the different time sections in preset time Electricity.
Wherein, at least one display window is shown on terminal screen.
Since there are multiple periods in preset time, and at least one display window is shown on terminal screen, determine In different time period for the current drawing severe of each display window and scaling consumption.For preset time and Specific duration indicated by each period can be carried out according to actual needs during specific implementation by those skilled in the art It is arranged, this is not specifically limited in the embodiment of the present invention.
Drawing severe is unit temporal mapping amount (screen of same size, resolution ratio is higher, and drawing cost is higher).
Scaling consumption electricity are as follows: the resolution ratio and screen resolution of total display window of display window after synthesis are different When cause, at least to do primary scaling in screen or system end could normally be shown, therefore need to consume during scaling Cost, such as electricity.
Step 102: obtaining and save voltameter calculation parameter.
Wherein, saving voltameter and calculating parameter includes: power saving weight, screen resolution and drawing constant.
Power saving weight: being up to 1, more values power saving for measuring deviation power saving or experience, bigger representative.It draws normal Amount: it measures and draws the electricity that a certain amount of picture needs to consume.Screen resolution: screen resolution is fixed, is by screen Physical characteristic determine.
Step 103: being directed to each display window, each period, drawing severe, contracting according to the period display window It puts consumption electricity and saves voltameter and calculate parameter, calculate province charge value of the display window in the period.
Each display window corresponds to multiple periods, and a screen includes multiple display windows.Therefore, specific real During now, needs to repeat step 103 and calculate each display window, province's electricity in each period within a preset time Value.
Such as: screen includes 3 display windows altogether, includes 3 periods in preset time, then finally calculates 9 provinces Charge value.
Step 104: being directed to each display window, determine maximum province's electricity in the corresponding each province's charge value of display window Value.
Such as: there is currently a certain display windows, under different time sections, calculate and obtain first province's charge value, second respectively Save charge value and third and save charge value, due to for a window different moments resolution ratio, then scale consumption electricity with And the drawing severe obtained is different, then saves electricity by the first province's charge value, second province's charge value and third that are calculated It is worth of different sizes, saves charge value by comparing first province's charge value, second province's charge value and third, determine three province's charge values In maximum value.
Step 105: it is directed to each display window, determines the corresponding target scale consumption electricity of maximum province's charge value, it will Target scale consumes target resolution of the corresponding resolution ratio of electricity as display window.
Different for maximum save charge value of each display window under each period, then each display window is each Scaling consumption electricity under period is different, then will the corresponding resolution ratio of scaling consumption electricity as the resolution ratio of display window, Then configuration setting can be carried out by resolution ratio of the above method to each display window, to reach while power saving maximum Meet the experience of user.
A kind of method adjusting resolution ratio provided by the invention determines in preset time, each display window in different time sections Mouthful drawing severe and scaling consumption electricity, obtain and save voltameter and calculate parameter, for each display window, each period, According to period display window drawing severe, scaling consumption electricity and save voltameter calculate parameter, calculate display window when Between province's charge value in section;For each display window, maximum province's electricity in the corresponding each province's charge value of display window is determined Value;For each display window, determines the corresponding target scale consumption electricity of maximum province's charge value, scaling is consumed into electricity pair Target resolution of the resolution ratio answered as display window.As it can be seen that the method provided by the invention for adjusting resolution ratio, by drawing Figure severe, scaling consumption and province's voltameter calculate parameter, calculate and save charge value, since different resolution corresponds to different scalings Electricity is consumed, then the corresponding resolution ratio of the corresponding scaling consumption electricity of available maximum province's charge value is allocated to the display window Mouthful, it realizes the configuration in real time to current each display window resolution ratio, power consumption can either be reduced and do not influence user uses body It tests.
Embodiment two
Referring to Fig. 2, a kind of step flow chart of the method for adjusting resolution ratio of the embodiment of the present invention two is shown.
It is provided in an embodiment of the present invention adjust resolution ratio method the following steps are included:
Step 201: detecting the sub- drawing severe of the display window within each sub- period respectively.
Wherein, a period includes multiple sub- periods.
Step 202: calculating multiple sub- drawing severe average values, average value is determined as display window drawing under the period Figure severe.
Since each period includes the sub- period, such as: certain time period is in 0-3 seconds, it is determined that first second, second The sub- drawing severe of second and third second, then the drawing severe in the period is the first sub- drawing severe, the second son drawing weight The average value of degree and third sub- drawing severe.
Step 203: determining that the scaling of the display window under the period consumes electricity.
Drawing severe is unit temporal mapping two (screen of same size, resolution ratio is higher, and drawing cost is higher).
Scaling consumption electricity are as follows: the resolution ratio and screen resolution of total display window of display window after synthesis are different When cause, in screen or system end, at least to do primary scaling could normally be shown, therefore need to consume during scaling Cost, such as electricity.
By step 201 to the available display window of step 203 drawing severe in a period of time and Scale consumption.During specific implementation, being performed both by above-mentioned steps i.e. for each display window can determine each display window Drawing severe and scaling consumption in a period of time.It is performed both by each period, for each display window Step is stated, that is, can determine each display window, corresponding drawing severe and scaling consumption within each period.
Step 204: obtaining and save voltameter calculation parameter.
Wherein, saving voltameter and calculating parameter includes: power saving weight, screen resolution and drawing constant.
Power saving weight: being up to 1, more values power saving for measuring deviation power saving or experience, bigger representative.It draws normal Amount: it measures and draws the electricity that a certain amount of picture needs to consume.Screen resolution: screen resolution is fixed, is by screen Physical characteristic determine.
Step 205: drawing severe and province's voltameter according to period display window calculate parameter, calculate display window pair The drawing charge value answered.
Specifically, drawing charge value is calculated by following formula:
P=(s-x) * x*c*y, wherein p is drawing charge value, s is screen resolution, x is drawing severe, y is power saving power Weight, c are drawing constant, wherein drawing severe is the drawing amount of unit time.
Step 206: consuming electricity according to the scaling of drawing charge value and period display window, calculate period display The corresponding province's charge value of window.
Specifically, it is calculated by following formula charge value is saved:
Px=p-Zx, wherein PxTo save charge value, p is drawing charge value, ZxElectricity is consumed for scaling.
Each period of each display window is corresponding with drawing severe and scaling consumption.For each display window Mouth, each period, which is performed both by step 205, step 206, can calculate each display window, province's electricity within each period Value.
Step 207: being directed to each display window, determine maximum province's electricity in the corresponding each province's charge value of display window Value.
Such as: current a certain display window, under different time sections, calculating respectively obtains first province's charge value, the second province Charge value and third display window are calculated third and save charge value, due to being directed to a window in the resolution of different moments The drawing severe of rate, scaling consumption electricity and acquisition is different, then first province's charge value, the second province's electricity by being calculated Value and third power saving magnitude size are different, obtain maximum value in three province's charge values.
Step 208: being directed to each display window, determine the corresponding scaling consumption electricity of maximum province's charge value, will scale Consume resolution ratio of the corresponding resolution ratio of electricity as display window.
Different for maximum save charge value of each display window under each period, then each display window is each Scaling consumption electricity under period is different, then will the corresponding resolution ratio of scaling consumption electricity as the resolution ratio of display window, It can then be configured by resolution ratio of the above method to each display window, to reach satisfaction while power saving maximum The experience of user.
A kind of method adjusting resolution ratio provided by the invention, determines each display window in the different time sections in preset time Mouthful drawing severe and scaling consumption electricity, obtain and save voltameter and calculate parameter, for each display window, each period, According to period display window drawing severe, scaling consumption electricity and save voltameter calculate parameter, calculate display window when Between province's charge value in section;For each display window, maximum province's electricity in the corresponding each province's charge value of display window is determined Value;For each display window, determines the corresponding target scale consumption electricity of maximum province's charge value, scaling is consumed into electricity pair Target resolution of the resolution ratio answered as display window.As it can be seen that the method provided by the invention for adjusting resolution ratio, by drawing Figure severe, scaling consumption and province's voltameter calculate parameter, calculate and save charge value, since different resolution corresponds to different scalings Electricity is consumed, then the corresponding resolution ratio of the corresponding scaling consumption electricity of available maximum province's charge value is allocated to the display window Mouthful, it realizes the configuration in real time to current each display window resolution ratio, power consumption can either be reduced and do not influence user uses body It tests.
Embodiment three
Referring to Fig. 3, a kind of structural block diagram of mobile terminal of the embodiment of the present invention three is shown.
Mobile terminal provided in an embodiment of the present invention includes: the first determining module 301, for determining in preset time not With the drawing severe and scaling consumption electricity of display window each in the period, wherein show at least one on terminal screen Display window, the drawing severe are the drawing amount of unit time;Module 302 is obtained, saves voltameter calculation parameter for obtaining, In, it includes: power saving weight, screen resolution and drawing constant that province's voltameter, which calculates parameter, and the drawing constant is to measure Draw the electricity that a certain amount of picture needs to consume;Computing module 303, for being directed to each display window, each period, according to According to the drawing severe of the period, scaling consumption electricity and voltameter calculation parameter is saved, calculates the display window described Province's charge value in period;Second determining module 304 determines that the display window is corresponding for being directed to each display window Each province's charge value in maximum province's charge value;Third determining module 305 determines institute for being directed to each display window State maximum province's charge value corresponding target scale consumption electricity, using the corresponding resolution ratio of target scale consumption electricity as The target resolution of the display window.
A kind of mobile terminal provided by the invention, determine in preset time, in different time sections each display window drawing Severe and scaling consumption electricity, obtain and save voltameter calculation parameter, for each display window, each period, according to the time Drawing severe, scaling consumption electricity and the province's voltameter of section display window calculate parameter, calculate display window in the period Save charge value;For each display window, maximum province's charge value in the corresponding each province's charge value of display window is determined;For every A display window determines the corresponding target scale consumption electricity of maximum province's charge value, by the corresponding resolution of scaling consumption electricity Target resolution of the rate as display window.As it can be seen that mobile terminal provided by the invention, by being consumed to drawing severe, scaling It amount and saves voltameter and calculates parameter, calculate and save charge value, it, then can be with since different resolution correspond to different scaling consumption electricity It obtains the corresponding resolution ratio of maximum province's charge value corresponding scaling consumption electricity and is allocated to the display window, realize in real time to working as The configuration of preceding each display window resolution ratio can either reduce power consumption and not influence the usage experience of user.
Example IV
Referring to Fig. 4, a kind of structural block diagram of mobile terminal of the embodiment of the present invention four is shown.
Mobile terminal provided in an embodiment of the present invention includes: the first determining module 401, for determining in preset time, no With the drawing severe and scaling consumption electricity of display window each in the period, wherein show at least one on terminal screen Display window, the drawing severe are the drawing amount of unit time;Module 402 is obtained, saves voltameter calculation parameter for obtaining, In, it includes: power saving weight, screen resolution and drawing constant that province's voltameter, which calculates parameter, and the drawing constant is to measure Draw the electricity that a certain amount of picture needs to consume;Computing module 403, for being directed to each display window, each period, according to According to the drawing severe of display window described in the period, scaling consumption electricity and voltameter calculation parameter is saved, is calculated described aobvious Show province's charge value of window;Second determining module 404 determines that the display window is corresponding for being directed to each display window Maximum province's charge value in each province's charge value;Third determining module 405, described in determining for each display window The corresponding target scale of maximum province's charge value consumes electricity, using the corresponding resolution ratio of target scale consumption electricity as institute State the target resolution of display window.
Preferably, the computing module 403 includes: the first computational submodule 4031, for according to described in the period The drawing severe of display window and province's voltameter calculate parameter, calculate the corresponding drawing electricity of the display window Value;Second computational submodule 4032, for according to described in display window described in the drawing charge value and the period Scaling consumption electricity, calculates the corresponding province's charge value of display window described in the period.
Preferably, first computational submodule 4031 calculates the drawing charge value by following formula:
P=(s-x) * x*c*y, wherein p is drawing charge value, s is screen resolution, x is drawing severe, y is power saving power Weight, c are drawing constant, wherein the drawing severe is the drawing amount of unit time.
Preferably, second computational submodule 4032 calculates province's charge value by following formula:
Px=p-Zx, wherein PxIt is to draw to save electricity, Z for province's charge value, pxElectricity is consumed for scaling.
Preferably, the first determining module 401 includes: detection sub-module 4011, for being detected within each sub- period respectively The sub- drawing severe of display window;Wherein, a period includes multiple sub- periods;Third computational submodule 4012, is used for Multiple sub- drawing severe average values are calculated, the average value is determined as the display window drawing under the period Figure severe;Submodule 4013 is determined, for determining that the scaling of the display window described under the period consumes electricity.
A kind of mobile terminal provided by the invention, determine in preset time, in different time sections each display window drawing Severe and scaling consumption electricity, obtain and save voltameter calculation parameter, for each display window, each period, according to the time Drawing severe, scaling consumption electricity and the province's voltameter of section display window calculate parameter, calculate province's charge value of display window;Needle To each display window, maximum province's charge value in the corresponding each province's charge value of display window is determined;For each display window, The corresponding target scale consumption electricity of maximum province's charge value is determined, using the corresponding resolution ratio of target scale consumption electricity as aobvious Show the target resolution of window.As it can be seen that mobile terminal provided by the invention, by drawing severe, scaling consumption and province Electricity calculating parameter calculates and saves charge value, consumes electricity since different resolution corresponds to different scalings, then available maximum The corresponding resolution ratio of province's charge value corresponding scaling consumption electricity be allocated to the display window, realize in real time to current each display The configuration of window resolution can either reduce power consumption and not influence the usage experience of user.
Embodiment five
Referring to Fig. 5, the structural block diagram of the mobile terminal of the embodiment of the present invention is shown.
The mobile terminal 800 of the embodiment of the present invention includes: at least one processor 801, memory 802, at least one net Network interface 804 and other users interface 803.Various components in mobile terminal 800 are coupled by bus system 805. It is understood that bus system 805 is for realizing the connection communication between these components.Bus system 805 remove include data/address bus it It outside, further include power bus, control bus and status signal bus in addition.It, will be various total in Fig. 5 but for the sake of clear explanation Line is all designated as bus system 805.
Wherein, user interface 803 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (ErasablePROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 802 of the system and method for description of the embodiment of the present invention is intended to include but is not limited to these With the memory of any other suitable type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 8021 and application program 8022.
Wherein, operating system 8021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 8022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 8022.
In embodiments of the present invention, by the program or instruction of calling memory 802 to store, specifically, can be application The program or instruction stored in program 8022, processor 801 are used for: determining each display window in the different time sections in preset time The drawing severe and scaling consumption electricity of mouth, wherein at least one display window is shown on terminal screen;It obtains and saves electricity Calculating parameter, wherein it includes: power saving weight, screen resolution and drawing constant that province's voltameter, which calculates parameter,;For each Each period of display window according to the drawing severe of the period, scaling consumption electricity and saves voltameter calculation parameter, Calculate province charge value of the display window in the period;For each display window, the display window pair is determined Maximum province's charge value in each province's charge value answered;For each display window, maximum province's charge value pair is determined The target scale consumption electricity answered, using the corresponding resolution ratio of target scale consumption electricity as the target of the display window Resolution ratio.
The method that the embodiments of the present invention disclose can be applied in processor 801, or be realized by processor 801. Processor 801 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 802, processor 801 reads the information in memory 802, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, the module (such as process, function etc.) of function described in the execution embodiment of the present invention can be passed through To realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Storage Device can in the processor or portion realizes outside the processor.
Optionally, processor 801 is also used to: according to the drawing severe of display window described in the period and institute It states province's voltameter and calculates parameter, calculate the corresponding drawing charge value of the display window;According to the drawing charge value and described The scaling of display window described in period consumes electricity, calculates the corresponding province's electricity of display window described in the period Value.
Optionally, processor 801 is also used to: being calculated by following formula the drawing charge value: p=(s-x) * X*c*y, wherein p is drawing charge value, s is screen resolution, x is drawing severe, y is power saving weight, c is drawing constant, In, the drawing severe is the drawing amount of unit time.
Optionally, processor 801 is also used to: being calculated by following formula province's charge value: Px=p-Zx, In, PxTo save charge value, p is drawing charge value, ZxElectricity is consumed for scaling.
Optionally, processor 801 is also used to: determining the drawing severe group and contracting of a display window in a period The step of putting consumption electricity includes the steps that, comprising: detects the sub- drawing severe of the display window within each sub- period respectively;Its In, a period includes multiple sub- periods;Multiple sub- drawing severe average values are calculated, the average value is determined as Drawing severe of the display window under the period;Determine the scaling consumption of the display window described under the period Amount.
Mobile terminal 800 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
The mobile terminal provided through the embodiment of the present invention determines in preset time, each display window in different time sections Drawing severe and scaling consumption electricity, obtain save voltameter calculate parameter;For each display window, each period, according to According to the drawing severe of period display window, scaling consumption electricity and voltameter calculation parameter is saved, calculates display window in the time Province's charge value in section;For each display window, maximum province's charge value in the corresponding each province's charge value of display window is determined; For each display window, the corresponding target scale consumption electricity of maximum province's charge value is determined, scaling consumption electricity is corresponding Target resolution of the resolution ratio as display window.As it can be seen that mobile terminal provided by the invention, by drawing severe, contracting It puts consumption and saves voltameter and calculate parameter, calculate and save charge value, consume electricity since different resolution corresponds to different scalings, Then the corresponding resolution ratio of the corresponding scaling consumption electricity of available maximum province's charge value is allocated to the display window, realizes real When configuration to current each display window resolution ratio, power consumption can either be reduced and do not influence the usage experience of user.
Embodiment six
Referring to Fig. 6, the structural block diagram of the mobile terminal of the embodiment of the present invention is shown.
Mobile terminal in the embodiment of the present invention can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal in Fig. 6 includes radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, processor 960, voicefrequency circuit 970, WiFi (Wireless Fidelity) module 980 and power supply 990。
Wherein, input unit 930 can be used for receiving the number or character information of user's input, and generation and mobile terminal User setting and function control related signal input.Specifically, in the embodiment of the present invention, which can be with Including touch panel 931.Touch panel 931, also referred to as touch screen collect the touch operation (ratio of user on it or nearby Such as user uses the operation of finger, stylus any suitable object or attachment on touch panel 931), and according to setting in advance Fixed formula drives corresponding attachment device.Optionally, touch panel 931 may include touch detecting apparatus and touch controller two A part.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, signal is passed Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then The processor 960 is given, and order that processor 960 is sent can be received and executed.Furthermore, it is possible to using resistance-type, electricity The multiple types such as appearance formula, infrared ray and surface acoustic wave realize touch panel 931.In addition to touch panel 931, input unit 930 Can also include other input equipments 932, other input equipments 932 can include but is not limited to physical keyboard, function key (such as Volume control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Wherein, display unit 940 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal.Display unit 940 may include display panel 941, optionally, can use LCD or organic light emission The forms such as diode (Organic Light-Emitting Diode, OLED) configure display panel 941.
It should be noted that touch panel 931 can cover display panel 941, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 960 is sent to determine the type of touch event, is followed by subsequent processing device 960 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 960 is the control centre of mobile terminal, utilizes each of various interfaces and connection whole mobile phone A part by running or execute the software program and/or module that are stored in first memory 921, and is called and is stored in Data in second memory 922 execute the various functions and processing data of mobile terminal, to carry out to mobile terminal whole Monitoring.Optionally, processor 960 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/ Or the data in the second memory 922, processor 960 are used for: determining each display window in the different time sections in preset time The drawing severe and scaling consumption electricity of mouth, wherein at least one display window is shown on terminal screen;It obtains and saves electricity Calculating parameter, wherein it includes: power saving weight, screen resolution and drawing constant that province's voltameter, which calculates parameter,;For each Each period of display window according to the drawing severe of the period, scaling consumption electricity and saves voltameter calculation parameter, Calculate province charge value of the display window in the period;For each display window, the display window pair is determined Maximum province's charge value in each province's charge value answered;For each display window, maximum province's charge value pair is determined The target scale consumption electricity answered, using the corresponding resolution ratio of target scale consumption electricity as the target of the display window Resolution ratio.
Optionally, processor 960 is also used to: according to the drawing severe of display window described in the period and institute It states province's voltameter and calculates parameter, calculate the corresponding drawing charge value of the display window;According to the drawing charge value and described The scaling of display window described in period consumes electricity, calculates the corresponding province's electricity of display window described in the period Value.
Optionally, processor 960 is also used to: being calculated by following formula the drawing charge value: p=(s-x) * X*c*y, wherein p is that drawing saves electricity, s is screen resolution, x is drawing severe, y is power saving weight, c is drawing constant.
Optionally, processor 801 is also used to: being calculated by following formula province's charge value: Px=p-Zx, In, PxIt is to draw to save electricity, Z for province's charge value, pxElectricity is consumed for scaling.
Optionally, processor 960 is also used to: determining the drawing severe group and contracting of a display window in a period The step of putting consumption electricity includes the steps that, comprising: detects the sub- drawing severe of the display window within each sub- period respectively;Its In, a period includes multiple sub- periods;Multiple sub- drawing severe average values are calculated, the average value is determined as Drawing severe of the display window under the period;Determine the scaling consumption of the display window described under the period Amount.
The mobile terminal provided through the embodiment of the present invention determines in preset time, each display window in different time sections Drawing severe and scaling consumption electricity, obtain save voltameter calculate parameter;For each display window, each period, according to According to the drawing severe of period display window, scaling consumption electricity and voltameter calculation parameter is saved, calculates display window in the time Province's charge value in section;For each display window, maximum province's charge value in the corresponding each province's charge value of display window is determined; For each display window, the corresponding target scale consumption electricity of maximum province's charge value is determined, scaling consumption electricity is corresponding Target resolution of the resolution ratio as display window.As it can be seen that mobile terminal provided by the invention, by drawing severe, contracting It puts consumption and saves voltameter and calculate parameter, calculate and save charge value, consume electricity since different resolution corresponds to different scalings, Then the corresponding resolution ratio of the corresponding scaling consumption electricity of available maximum province's charge value is allocated to the display window, realizes real When configuration to current each display window resolution ratio, power consumption can either be reduced and do not influence the usage experience of user.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
The method for adjusting resolution ratio provided herein is not intrinsic with any certain computer, virtual system or other equipment It is related.Various general-purpose systems can also be used together with teachings based herein.As described above, construction has the present invention Structure required by the system of scheme is obvious.In addition, the present invention is also not directed to any particular programming language.It should be bright It is white, it can use various programming languages and realize summary of the invention described herein, and retouched above to what language-specific was done State is in order to disclose the best mode of carrying out the invention.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize the processing of the method according to an embodiment of the present invention for adjusting resolution ratio The some or all functions of some or all components in method.The present invention is also implemented as being retouched here for executing The some or all device or device programs (for example, computer program and computer program product) for the method stated. It is such to realize that program of the invention can store on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or with it is any its He provides form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.For system embodiment For, since it is basically similar to the method embodiment, so being described relatively simple, referring to the portion of embodiment of the method in place of correlation It defends oneself bright.

Claims (10)

1. a kind of method for adjusting resolution ratio, which is characterized in that the described method includes:
Determine the drawing severe and scaling consumption electricity of each display window in the different time sections in preset time, wherein eventually At least one display window is shown on the screen of end, the drawing severe is the drawing amount of unit time;
It obtains and saves voltameter calculation parameter, wherein province's voltameter calculates parameter and includes: power saving weight, screen resolution and draw Figure constant, the drawing constant are to measure to draw the electricity that a certain amount of picture needs to consume;
For each period of each display window, according to the drawing severe of the period, scaling consumption electricity and province Electricity calculating parameter calculates province charge value of the display window in the period;
For each display window, maximum province's charge value in the corresponding each province's charge value of the display window is determined;
For each display window, the corresponding target scale consumption electricity of maximum province's charge value is determined, by the target Target resolution of the corresponding resolution ratio of scaling consumption electricity as the display window.
2. the method according to claim 1, wherein the drawing according to display window described in the period Severe, scaling consumption electricity and province's voltameter calculate parameter, calculate province charge value of the display window in the period The step of, comprising:
Parameter is calculated according to the drawing severe of display window described in the period and province's voltameter, is calculated described aobvious Show the corresponding drawing charge value of window;
The scaling according to display window described in the drawing charge value and the period consumes electricity, when calculating described Between the corresponding province's charge value of the section display window.
3. according to the method described in claim 2, it is characterized in that, being counted by following formula to the drawing charge value It calculates:
P=(s-x) * x*c*y, wherein p is drawing charge value, s is screen resolution, x is drawing severe, y is power saving weight, c For drawing constant, wherein the drawing severe is the drawing amount of unit time.
4. according to the method described in claim 3, it is characterized in that, being calculated by following formula province's charge value:
Px=p-Zx, wherein PxIt is to draw to save electricity, Z for province's charge value, pxElectricity is consumed for scaling.
5. the method according to claim 1, wherein determining the drawing weight of a display window in a period The step of degree group and scaling consumption electricity, includes the steps that, comprising:
The sub- drawing severe of the display window within each sub- period is detected respectively;Wherein, a period includes multiple sub- times Section;
Multiple sub- drawing severe average values are calculated, the average value is determined as the display window under the period Drawing severe;
Determine the scaling consumption of the display window described under the period.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
First determining module, for determining the drawing severe and scaling of each display window in the different time sections in preset time Consume electricity, wherein at least one display window is shown on terminal screen, the drawing severe is the drawing of unit time Amount;
Module is obtained, saves voltameter calculation parameter for obtaining, wherein it includes: power saving weight, screen that province's voltameter, which calculates parameter, Resolution ratio and drawing constant, the drawing constant are to measure to draw the electricity that a certain amount of picture needs to consume;
Computing module disappears for being directed to each display window, each period according to the drawing severe of the period, scaling Power consumption and province's voltameter calculate parameter, calculate province charge value of the display window in the period;
Second determining module determines in the corresponding each province's charge value of the display window for being directed to each display window Maximum province's charge value;
Third determining module determines that the corresponding target scale of maximum province's charge value disappears for being directed to each display window Power consumption, using the corresponding resolution ratio of target scale consumption electricity as the target resolution of the display window.
7. mobile terminal according to claim 6, which is characterized in that the computing module includes:
First computational submodule, for according to display window described in the period the drawing severe and province's electricity Calculating parameter calculates the corresponding drawing charge value of the display window;
Second computational submodule, for the scaling according to display window described in the drawing charge value and the period Electricity is consumed, the corresponding province's charge value of display window described in the period is calculated.
8. mobile terminal according to claim 7, which is characterized in that first computational submodule passes through following formula pair The drawing charge value is calculated:
P=(s-x) * x*c*y, wherein p is drawing charge value, s is screen resolution, x is drawing severe, y is power saving weight, c For drawing constant, wherein the drawing severe is the drawing amount of unit time.
9. mobile terminal according to claim 8, which is characterized in that second computational submodule passes through following formula pair Province's charge value is calculated:
Px=p-Zx, wherein PxIt is to draw to save electricity, Z for province's charge value, pxElectricity is consumed for scaling.
10. mobile terminal according to claim 6, which is characterized in that the first determining module includes:
Detection sub-module, for detecting the sub- drawing severe of the display window within each sub- period respectively;Wherein, a period Include multiple sub- periods;
The average value is determined as described aobvious by third computational submodule for calculating multiple sub- drawing severe average values Show drawing severe of the window under the period;
Submodule is determined, for determining that the scaling of the display window described under the period consumes electricity.
CN201710326459.4A 2017-05-10 2017-05-10 A kind of method and mobile terminal adjusting resolution ratio Active CN107204177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710326459.4A CN107204177B (en) 2017-05-10 2017-05-10 A kind of method and mobile terminal adjusting resolution ratio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710326459.4A CN107204177B (en) 2017-05-10 2017-05-10 A kind of method and mobile terminal adjusting resolution ratio

Publications (2)

Publication Number Publication Date
CN107204177A CN107204177A (en) 2017-09-26
CN107204177B true CN107204177B (en) 2019-08-16

Family

ID=59905050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710326459.4A Active CN107204177B (en) 2017-05-10 2017-05-10 A kind of method and mobile terminal adjusting resolution ratio

Country Status (1)

Country Link
CN (1) CN107204177B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554284B (en) * 2022-02-22 2023-08-11 网易(杭州)网络有限公司 Image quality information processing method, image quality information processing device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200844935A (en) * 2007-05-03 2008-11-16 Novatek Microelectronics Corp Apparatus for controlling the liquid crystal display
CN103688304A (en) * 2011-07-12 2014-03-26 高通股份有限公司 Displaying static images
CN106168890A (en) * 2016-06-30 2016-11-30 宇龙计算机通信科技(深圳)有限公司 A kind of display packing, device and terminal of based on screen resolution regulation
CN106547333A (en) * 2015-09-18 2017-03-29 中兴通讯股份有限公司 Mobile terminal and its method of work

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9082196B2 (en) * 2008-08-20 2015-07-14 Lucidlogix Technologies Ltd. Application-transparent resolution control by way of command stream interception

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200844935A (en) * 2007-05-03 2008-11-16 Novatek Microelectronics Corp Apparatus for controlling the liquid crystal display
CN103688304A (en) * 2011-07-12 2014-03-26 高通股份有限公司 Displaying static images
CN106547333A (en) * 2015-09-18 2017-03-29 中兴通讯股份有限公司 Mobile terminal and its method of work
CN106168890A (en) * 2016-06-30 2016-11-30 宇龙计算机通信科技(深圳)有限公司 A kind of display packing, device and terminal of based on screen resolution regulation

Also Published As

Publication number Publication date
CN107204177A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
CN107547734B (en) Method, mobile terminal and the storage medium that screen intensity is adjusted
CN106469011B (en) A kind of information display method and mobile terminal
CN106909289B (en) A kind of operating method and mobile terminal of application controls
EP3575940A1 (en) Electronic device, and screen-off processing method and apparatus
CN106657806B (en) A kind of exposure method and mobile terminal
CN106445235B (en) A kind of touch initial position recognition methods and mobile terminal
CN107657591A (en) A kind of image processing method and mobile terminal
CN107562473B (en) Application program display method and mobile terminal
CN106125984A (en) The touch-control processing method of a kind of mobile terminal and mobile terminal
CN106775322B (en) A kind of method preventing virtual key false triggering and mobile terminal
CN106131398B (en) A kind of image browsing method and mobile terminal
CN107577512A (en) A kind of message display method, mobile terminal and computer-readable recording medium
CN106993091A (en) A kind of image weakening method and mobile terminal
CN106993135B (en) A kind of photographic method and mobile terminal
CN105955600B (en) A kind of method and mobile terminal adjusting mobile terminal display interface
CN107122966A (en) A kind of red packet amount of money distribution method and mobile terminal
CN106527849A (en) Method for regulating icon position, and mobile terminal
CN105825537A (en) Method for generating animation curve and terminal
CN107678667A (en) A kind of virtual keyboard display method and mobile terminal
CN107071264A (en) A kind of image resolution ratio method of adjustment and mobile terminal
CN106888319A (en) The display methods and mobile terminal of a kind of shortcuts bar
CN106708389B (en) A kind of method and mobile terminal of control display interface scaling
CN107463051A (en) A kind of exposure method and device
CN106453778B (en) A kind of contact photo setting method and mobile terminal
CN107580182A (en) A kind of grasp shoot method, mobile terminal and computer-readable recording medium

Legal Events

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