Summary of the invention
Embodiments of the invention provide a kind of on screen, show data method and display control unit, when substantially not influential system performance, reduce Overall Power Consumption.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of method showing data on screen, and the resolution of described screen is first resolution, and described method comprises:
According to data genaration first graph data to be shown, the resolution of described first graph data is second resolution;
Be described first resolution by the conversion of resolution of described first graph data, and export described screen to and show, wherein said first resolution is greater than described second resolution.
In conjunction with first aspect, in the implementation that the first is possible, described according to before data genaration first graph data to be shown, also comprise:
Judge whether the terminal residing for described screen is in low-power consumption mode;
Be specially according to data genaration first graph data to be shown:
When described terminal is in described low-power consumption mode, according to data genaration first graph data to be shown.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible, described method also comprises:
When described terminal is in non-low-power consumption mode, according to data genaration second graph data to be shown, and export described second graph data to described screen and show; The resolution of described second graph data is described first resolution.
In conjunction with first aspect, in the implementation that the third is possible, described according to before data genaration first graph data to be shown, also comprise:
Judge whether the power consumption of the one or more devices processing image display is more than or equal to preset value;
Describedly to be specially according to data genaration first graph data to be shown:
When the power consumption of the one or more devices processing image display is more than or equal to described preset value, according to data genaration first graph data to be shown.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, described method also comprises:
When the power consumption of one or more devices processing image display is less than described preset value, by described according to data genaration second graph data to be shown, and export described second graph data to described screen and show; The resolution of described second graph data is described first resolution.
Second aspect, a kind of control device of screen resolution is provided, comprise: communication interface, processor, amplification processing module, storer and bus, wherein, described communication interface, described processor and described storer are interconnected by described bus, and described storer is for storing the data of described processor and the process of described amplification processing module;
Described processor, for according to data genaration first graph data to be shown, the resolution of described first graph data is second resolution;
Described amplification processing module, conversion of resolution for described first graph data generated by described processor is described first resolution, and export described screen to by described communication interface and show, wherein said first resolution is greater than described second resolution.
In conjunction with second aspect, in the implementation that the first is possible, also comprise:
Described processor is also for judging whether the terminal residing for described screen is in low-power consumption mode; When described terminal is in described low-power consumption mode, according to data genaration first graph data to be shown.
In conjunction with the first possible implementation of second aspect, in the implementation that the second is possible, described processor is also for when described terminal is in non-low-power consumption mode, according to data genaration second graph data to be shown, and export described second graph data to described screen by described communication interface and show; The resolution of described second graph data is described first resolution.
In conjunction with second aspect, in the implementation that the third is possible, described processor is also for judging whether the power consumption of the one or more devices processing image display is more than or equal to preset value; When the power consumption of the one or more devices processing image display is more than or equal to described preset value, according to data genaration first graph data to be shown.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation, described processor is also for when the power consumption of the one or more devices processing image display is less than described preset value, by described according to data genaration second graph data to be shown, and export described second graph data to described screen by communication interface and show; The resolution of described second graph data is described first resolution.
In conjunction with any possible implementation in second aspect or second aspect, in the 5th kind of possible implementation, described amplification processing module is described processor.
In conjunction with any possible implementation in second aspect or second aspect, in the 6th kind of possible implementation, described processor comprises: one or more the combination in central processor CPU, graphic process unit GPU, other specific integrated circuit ASIC.
The method showing data on screen that embodiments of the invention provide and display control unit, according to the first graph data of data genaration second resolution to be shown; When by screen display the first graph data, be first resolution by the conversion of resolution of the first graph data, wherein first resolution is greater than second resolution, owing to processing during data genaration the first graph data to be shown with second resolution, therefore the process complexity of operating system nucleus data can be reduced, when substantially not influential system performance, reduce Overall Power Consumption.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments of the invention are applied to the control of the display data on the screen of display device, this display device is at least supported in the process that can realize the data to two or more resolution in operating system nucleus (kernel), wherein this operating system can be IOS (iPhone Operating System, Apple Macintosh operating system), Android (Android), shown in reference Fig. 1 that the operating systems such as Windows Phone (Microsoft's mobile phone operating system) are concrete, embodiments of the invention provide a kind of method showing data on screen, the resolution of screen is first resolution, comprise the following steps:
101, display control unit is according to data genaration first graph data to be shown, and the resolution of described first graph data is second resolution.
Optionally, the application software that directly can control upper strata according to prior art IOS kernel exports or input data at hardware, the data of such as IOS kernel application programs are carried out processing and directly to be shown on screen, when adopting Android operation system because Android operation system kernel controls upper application software by application framework layer, therefore in the present invention in step 101 according to after data genaration first graph data to be shown, the application framework layer of Android operation system is also needed to switch to second resolution from first resolution.
On hardware, operating system nucleus is by depending on CPU (Central ProcessingUnit, central processing unit) or CPU associating GPU (Graphic Processing Unit, graphic process unit) realize, in concrete step 101, display control unit is according to data genaration first graph data to be shown, can be understood as CPU (central processing unit) by contents processing corresponding to the data (document of such as office software) of application program process and the interface of application program is data to be displayed, CPU separately or CPU combine the graph data that data to be displayed is converted into applicable screen display by GPU.
102, the conversion of resolution of described first graph data is described first resolution by display control unit, and exports described screen to and show, and wherein said first resolution is greater than described second resolution.
Here be that the concrete mode of first resolution can adopt pixel aspect ratio image magnification method, image sequence method of adjustment or pixel interpolation algorithm by the conversion of resolution of the first graph data, for pixel interpolation algorithm: take first resolution as 1080P, second resolution is 720P, because first resolution is greater than second resolution, display control unit makes on the pixel of the correspondence position of the fills of the pixel in 720P image in 1080P image after the position relationship of the pixel of the image of 720P is carried out the process of preset ratio Linear Amplifer, the pixel quantity in 1080P image is less than due to the pixel quantity in 720P image, therefore the pixel of not filling content is comprised in 1080P image, the content of the pixel be not filled in 1080P image is calculated by interpolation algorithm constructor, here interpolation algorithm is not limited to Lagrange's interpolation algorithm, Newton Interpolation Algorithm, Ha Er meter Te interpolation algorithm.
The method showing data on the screen that resolution is first resolution that embodiments of the invention provide, according to the first graph data of data genaration second resolution to be shown; Be output to screen after first resolution to show by the conversion of resolution of the first graph data, wherein first resolution is greater than second resolution, owing to processing during data genaration the first graph data to be shown with second resolution, therefore the process complexity of operating system nucleus data can be reduced, when substantially not influential system performance, reduce Overall Power Consumption, in addition because the resolution reduction of kernel processes data also can reduce the bandwidth usage of each assembly of kernel.
With reference to shown in Fig. 2, the method showing data on screen that embodiments of the invention provide, the resolution of screen is first resolution, comprises the following steps:
201, display control unit judges whether the terminal residing for described screen is in low-power consumption mode.
202, when described terminal is in described low-power consumption mode, display control unit is according to data genaration first graph data to be shown.
Wherein, the resolution of the first graph data is second resolution; Certain pattern that this low-power consumption mode can provide for terminal, as battery saving mode, offline mode etc., the concrete grammar of step 202 repeats no more with reference to the description of embodiment corresponding to Fig. 1.
203, the conversion of resolution of described first graph data is described first resolution by display control unit, and exports described screen to and show, and wherein said first resolution is greater than described second resolution.
The concrete grammar of step 203 repeats no more with reference to the description of embodiment corresponding to Fig. 1.
204, when described terminal is in non-low-power consumption mode, display control unit according to data genaration second graph data to be shown, and exports described second graph data to described screen and shows.
Wherein, the resolution of described second graph data is described first resolution.Here repeat no more according to the method for data genaration first graph data to be shown with reference in embodiment corresponding to Fig. 1 according to data genaration second graph data concrete grammar to be shown in step 204.
In the embodiment that above Fig. 2 is corresponding, display control unit pattern residing for terminal determines data to be shown to be converted to the first graph data of second resolution or the second graph data of first resolution, the process complexity of operating system nucleus data can be reduced when terminal is in low-power consumption mode, when substantially not influential system performance, reduce Overall Power Consumption.
With reference to shown in Fig. 3, the method showing data on screen that embodiments of the invention provide, the resolution of screen is first resolution, comprises the following steps:
301, display control unit judges whether the power consumption of the one or more devices processing image display is more than or equal to preset value.
When terminal shows mainly through GPU process image, the device processing image display here can be CPU; When terminal shows mainly through GPU process image, the device of this process image display can be GPU; The device of certain process image display also can comprise CPU, GPU simultaneously and other show relevant device to image procossing.
302, when the power consumption of the one or more devices processing image display is more than or equal to described preset value, display control unit is according to data genaration first graph data to be shown.
Wherein, the resolution of the first graph data is second resolution, and the concrete grammar of step 302 repeats no more with reference to the description of embodiment corresponding to Fig. 1.
303, the conversion of resolution of described first graph data is described first resolution by display control unit, and exports described screen to and show, and wherein said first resolution is greater than described second resolution.The concrete grammar of step 303 repeats no more with reference to the description of embodiment corresponding to Fig. 1.
304, when the power consumption of one or more devices processing image display is less than described preset value, display control unit according to data genaration second graph data to be shown by described, and export described second graph data to described screen and shows.
Wherein, the resolution of described second graph data is described first resolution.Here repeat no more according to the method for data genaration first graph data to be shown with reference in embodiment corresponding to Fig. 1 according to data genaration second graph data concrete grammar to be shown in step 304.
In the embodiment that above Fig. 3 is corresponding, the power consumption of one or more devices that display control unit shows according to terminal processes image determines data to be shown to be converted to the first graph data of second resolution or the second graph data of first resolution, the process complexity of operating system nucleus data can be reduced when the power consumption of the device of terminal processes image display is excessive, when substantially not influential system performance, reduce Overall Power Consumption.
The method showing data on the screen that resolution is first resolution that embodiments of the invention provide, according to the first graph data of data genaration second resolution to be shown; Be output to screen after first resolution to show by the conversion of resolution of the first graph data, wherein first resolution is greater than second resolution, owing to processing during data genaration the first graph data to be shown with second resolution, therefore the process complexity of operating system nucleus data can be reduced, when substantially not influential system performance, reduce Overall Power Consumption, in addition because the resolution reduction of kernel processes data also can reduce the bandwidth usage of each assembly of kernel.
Embodiments of the invention provide a kind of display control unit for realizing the above-mentioned method showing data on screen, with reference to shown in Fig. 4, this device can embed or inherently micro-process computer, such as: multi-purpose computer, customization machine, the portable equipment such as mobile phone terminal or purl machine, specifically comprise: communication interface 41, processor 42, amplify processing module 43, storer 44 and bus 45, wherein, described communication interface 41, described processor 42 and described storer 44 are interconnected by described bus 45, described storer 44 is for storing described processor 42, amplify the data that processing module 43 processes.
This bus 45 can be ISA (Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral Component, peripheral component interconnect) bus or EISA (Extended Industry Standard Architecture, extended industry-standard architecture) bus etc.This bus 45 can be divided into address bus, data bus, control bus etc.For ease of representing, only representing with a thick line in Fig. 4, but not representing the bus only having a bus or a type.Wherein:
Storer 44 is for stores executable programs code, and this program code comprises computer-managed instruction.Storer 44 may comprise high-speed RAM storer, still may comprise nonvolatile memory (non-volatile memory), such as at least one magnetic disk memory.
Processor 42 may be CPU, GPU, other specific integrated circuit (ApplicationSpecific Integrated Circuit, referred to as ASIC), or is configured to the combination of the one or more integrated circuit implementing the embodiment of the present invention.
Described processor 42, for according to data genaration first graph data to be shown, the resolution of described first graph data is second resolution;
Described amplification processing module 43 is described first resolution for the conversion of resolution of the first graph data generated by described processor 42, and export described screen to by described communication interface 41 and show, wherein said first resolution is greater than described second resolution.
Optionally, processor comprises: one or more the combination in central processor CPU, graphic process unit GPU, other specific integrated circuit ASIC.It should be noted that, amplifying processing module 43 can be processor 42, CPU and/or GPU is adopted for processor 42, now amplifying processing module 43 is described first resolution by the conversion of resolution of described first graph data, can be that the image processing software by running at CPU and/or GPU realizes; Or amplify the display control circuit that processing module 43 also can be screen driver circuit or screen, wherein screen driver circuit can be the combination comprising screen drive software and screen drive software operation hardware (screen driver circuit).
Optionally, described processor 42 is also for judging whether the terminal residing for described screen is in low-power consumption mode; When described terminal is in described low-power consumption mode, according to data genaration first graph data to be shown.
Further, described processor 42, also for when described terminal is in non-low-power consumption mode, according to data genaration second graph data to be shown, and exports described second graph data to described screen by described communication interface 41 and shows; The resolution of described second graph data is described first resolution.
Optionally, described processor 42 is also for judging whether the power consumption of the one or more devices processing image display is more than or equal to preset value; When the power consumption of the one or more devices processing image display is more than or equal to described preset value, according to data genaration first graph data to be shown.
Further, described processor 42 is also for when the power consumption of the one or more devices processing image display is less than described preset value, by described according to data genaration second graph data to be shown, and export described second graph data to described screen by communication interface 41 and show; The resolution of described second graph data is described first resolution.
The display control unit that embodiments of the invention provide, according to the first graph data of data genaration second resolution to be shown; Be output to screen after first resolution to show by the conversion of resolution of the first graph data, wherein first resolution is greater than second resolution, owing to processing during data genaration the first graph data to be shown with second resolution, therefore the process complexity of operating system nucleus data can be reduced, when substantially not influential system performance, reduce Overall Power Consumption, in addition because the resolution reduction of kernel processes data also can reduce the bandwidth usage of each assembly of kernel.
For under mobile phone Android (Android) operating system, the display control unit provided in conjunction with above-described embodiment is described the method showing data on screen that embodiments of the invention provide, be wherein 1080P with first resolution, second resolution for 720P be example, current state screen is that 1080P shows data with first resolution.
With reference to shown in Fig. 5,6, Android operation system comprises: be Applications (application program) layer, Framework (application framework) layer, Libraries (system cloud gray model storehouse) layer and Kernel (kernel) layer respectively from upper strata to lower floor.
Wherein Kernel layer switching resolution is: current state operating system instruction CPU (or CPU and GPU) generates graph data with 1080P resolution, and CPU (or CPU and GPU) switches to 720P resolution image data generating by arranging application by operating system; LCD (Liquid Crystal Display is all adopted with sub-screen, liquid crystal display) explanation, concrete can write windowmanager service (window management service) by the AM interface of the framework of Android system (framework) layer by control command, this control command is the instruction that can switch to application low resolution, the instruction switching to low resolution process data to be displayed can be set to, as the instruction of play low resolution, ultra low power etc. according to this control command of different application scenarioss.Certainly by mobile phone operating system, this handoff procedure can judge whether mobile phone is in low-power consumption mode and triggers, or by operating system, this handoff procedure also can judge that the power consumption of the device of process image display triggers, such as, operating system is shown by CPU and GPU Combined Treatment image, power consumption data to be displayed being generated the graph data of 1080P as CPU and GPU is more than or equal to preset value and automatically triggers handoff procedure, CPU (or CPU and GPU) resolution is switched to 720P by operating system, and namely data to be displayed is generated the graph data of 720P by CPU and GPU; Above process mainly occurs in the kernel kernel layer of operating system.Framework layer switches resolution, system bottom resolution is set to 720P by operating system, then by Surfaceflinger (Android shows delivery module), the picture frame of the graph data of 720P is delivered to framebuffer (frame buffer) with predetermined resolution, show on the display screen after resolution is set in frame buffer, in order to not affect display effect in invention, when picture frame is in frame buffer, screen driver module carries out amplifying from 720P to 1080P (resolution being about to display data is transformed into 1080p from 720p) to picture frame, output on 1080P screen, substantially do not affect user and show experience (if screen driver module is not supported to amplify, can amplify with the image multiplication method software simulating run in CPU and/or GPU, or by providing the display control circuit of the display of screen to realize amplifying).With reference to shown in Fig. 6, The embodiment provides a kind of mode interrupting showing on screen data by kernel, operating system drives call frame cache interface to arrange different resolution at Kernel (kernel) layer on hardware by frame buffer, the parameter handed down by upper application software carries out resolution switching, concrete upper application software switches resolution function, and by the int_check () function in the driving of call frame buffer memory, to LCD, (the present embodiment is described for LCD, be appreciated that, the present invention also can adopt the display screen of other types) status checking, judge whether LCD supports that resolution switches, preserve frame buffer information and define a zone bit and be used for marking whether that can perform resolution switches, as shown in Figure 6, can by LDI (the Layered DriverInterface between picture frame, Layered driver routine interface) frame end interrupts triggering the switching of resolution, when screen driver module detects that LDI frame end interrupts, call interrupt processing function and obtain information in zone bit, if the information instruction in zone bit can perform resolution and switch, LDI parameter is then set and (comprises the resolution parameter of operating system instruction processing, as 1080P or 720P etc.), screen drive module setting EDC (Enhanced display Controller simultaneously, strengthen display controller) after display and control parameter switching to second resolution, the Surfaceflinger of Android imports to EDC the graph data of 720P respectively from internal memory, G2D (Graphic of 2D, two dimension diagram), G3D (Graphic of 3D, three-dimensional diagram) module carries out Graphics Processing, Graphics Processing completes and outputs to Frame buffer, screen driver module will complete the graph data of the 720P of Graphics Processing by DSI (Display Serial Interface, display serial line interface) export LCD to, the data buffer storage of the concrete 720P owing to completing Graphics Processing is in Frame buffer, the LDI of screen driver module needs to drive by frame buffer the graph data completing the 720P of Graphics Processing read in Frame buffer, and export LCD to by DSI, the graph data of 720P can be realized to be enlarged into by the display control circuit of LCD the graph data of 1080P for the graph data graph data of 720P being converted to 1080P.
Optionally, because screen driver module is by EDC, G2D, G3D carries out Graphics Processing to the graph data of 720P, therefore the graph data graph data of 720P being converted to 1080P also can be directly to carry out the graph data of 720P completing in the process of Graphics Processing by EDC, G2D, G3D.
Or the graph data of 720P carries out amplifying the graph data that process generates 1080P by the image multiplication method software run by CPU and/or GPU, then the graph data of 1080P is imported to EDC respectively, and G2D, G3D module carries out Graphics Processing.
Here owing to carrying out resolution amplification to second resolution 720P graph data, the effect of full screen display can be ensured, thus ensure that Consumer's Experience.
One of ordinary skill in the art will appreciate that the possible implementation of various aspects of the present invention or various aspects can be embodied as system, method or computer program.Therefore, the possible implementation of each aspect of the present invention or various aspects can adopt complete hardware embodiment, completely software implementation (comprising firmware, resident software etc.), or the form of the embodiment of integration software and hardware aspect, is all referred to as " circuit ", " module " or " system " here.In addition, the possible implementation of each aspect of the present invention or various aspects can adopt the form of computer program, and computer program refers to the computer readable program code be stored in computer-readable medium.
Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Computer-readable recording medium is including but not limited to electronics, magnetic, optics, electromagnetism, infrared or semiconductor system, equipment or device, or aforesaid appropriately combined arbitrarily, as random access memory (RAM), ROM (read-only memory) (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), optical fiber, portable ROM (read-only memory) (CD-ROM).
Processor in computing machine reads the computer readable program code be stored in computer-readable medium, makes processor can perform the function action specified in the combination of each step or each step in flow charts; Generate the device implementing the function action specified in the combination of each block of block diagram or each piece.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.