CN110413245A - Image composition method, device, electronic equipment and storage medium - Google Patents
Image composition method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110413245A CN110413245A CN201910647109.7A CN201910647109A CN110413245A CN 110413245 A CN110413245 A CN 110413245A CN 201910647109 A CN201910647109 A CN 201910647109A CN 110413245 A CN110413245 A CN 110413245A
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- layer
- power consumption
- image
- current power
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3212—Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3265—Power saving in display device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Controls And Circuits For Display Device (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
This application discloses a kind of image composition method, device, electronic equipment and storage mediums.The described method includes: obtaining the current power consumption of electronic equipment and multiple figure layers of image to be displayed;Judge whether the current power consumption is higher than preset threshold;If so, the multiple figure layer is synthesized and is shown using multimedia display processor, if it is not, then the multiple figure layer is synthesized and shown using graphics processor.Different figure layer synthesis modes is selected according to the current power consumption of electronic equipment, in the higher situation of powder consumption of electronic equipment, select the low synthesis mode that consumes energy, with the power consumption of balance electronic equipment, in the lower situation of powder consumption of electronic equipment, the higher synthesis mode of synthesis capability is selected, to promote image procossing performance.
Description
Technical field
This application involves technical field of image processing, set more particularly, to a kind of image composition method, device, electronics
Standby and storage medium.
Background technique
With the development of electronic technology, the electronic equipment (such as mobile phone or tablet computer) with image display function is more next
More, the display interface of electronic equipment usually has multiple show layers, is shown in electricity by carrying out synthesis to multiple show layers
In sub- equipment.
In general, electronic equipment is when synthesizing figure layer, it is difficult to the figure layer synthesis capability of electronic equipment and the function of electronic equipment
Consumption is taken into account, and the usage experience of electronic equipment is influenced.
Summary of the invention
Present applicant proposes a kind of image composition method, device, electronic equipment and storage mediums, to solve in image synthesis
Figure layer synthesis capability and the power consumption of electronic equipment are difficult to the problem of taking into account.
In a first aspect, the embodiment of the present application provides a kind of image composition method, this method comprises: obtaining electronic equipment
Multiple figure layers of current power consumption and image to be displayed;Judge whether the current power consumption is higher than preset threshold;If so, utilizing
Multimedia display processor (MDP, Multimedia Display Processor) is synthesized and is shown to the multiple figure layer
Show, if it is not, then being synthesized using graphics processor (GPU, Graphics Processing Unit) to the multiple figure layer
And it shows.
Second aspect, the embodiment of the present application provide a kind of device of image synthesis, which includes: acquisition module, is used
In the multiple figure layers for the current power consumption and image to be displayed for obtaining electronic equipment;Judgment module, for judging the current function
Whether consumption is higher than preset threshold;Synthesis module, for if so, utilizing multimedia display processor (MDP, Multimedia
Display Processor) the multiple figure layer is synthesized and is shown, if it is not, then using graphics processor (GPU,
Graphics Processing Unit) the multiple figure layer is synthesized and shown.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, which includes one or more processing
Device;Memory;One or more application program, wherein one or more of application programs are stored in the memory simultaneously
It is configured as being executed by one or more of processors, one or more of programs are configured to carry out to be applied to as above-mentioned
The method of electronic equipment.
Fourth aspect, the application implementation column provide a kind of computer readable storage medium, the computer-readable storage medium
Program code is stored in matter, wherein execute above-mentioned method in said program code operation.
Compared with the existing technology, image composition method provided by the embodiments of the present application, device, electronic equipment and storage are situated between
Matter, by obtaining the current power consumption of electronic equipment and multiple figure layers of image to be displayed;Judge whether the current power consumption is high
In preset threshold;If so, using multimedia display processor (MDP, Multimedia Display Processor) to institute
It states multiple figure layers to be synthesized and shown, if it is not, then utilizing graphics processor (GPU, Graphics Processing Unit)
The multiple figure layer is synthesized and shown.Different figure layer synthesis modes, In are selected according to the current power consumption of electronic equipment
In the higher situation of powder consumption of electronic equipment, the low synthesis mode that consumes energy is selected, with the power consumption of balance electronic equipment, in electronic equipment
In the lower situation of power consumption, the stronger synthesis mode of figure layer synthesis capability is selected, to take into account figure layer synthesis capability and electronics is set
Standby power consumption.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 shows the logical framework figure of image procossing provided by the embodiments of the present application.
Fig. 2 shows the schematic diagrames of desktop display interface provided by the embodiments of the present application.
Fig. 3 shows the schematic diagram of each figure layer of desktop display interface provided by the embodiments of the present application.
Fig. 4 shows the flow chart of the image composition method of the application one embodiment offer.
Fig. 5 shows the flow chart of the image composition method of another embodiment of the application offer.
Fig. 6 shows the flow chart of the image composition method of another embodiment of the application offer.
Fig. 7 shows the flow chart of the image composition method of the application further embodiment offer.
Fig. 8 shows the functional block diagram of the image synthesizer of the application one embodiment offer.
Fig. 9 shows the electricity for being used to execute the image composition method according to the embodiment of the present application of the embodiment of the present application proposition
The structural block diagram of sub- equipment.
Figure 10 shows provided by the embodiments of the present application for saving or carrying the figure realized according to the embodiment of the present application
As the storage medium of the program code of synthetic method.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
Application program (application) can create window by window manager (Windows manager)
(window), window manager is that each window creation Surface is used in the various need elements to be shown of painted on top, often
The corresponding figure layer of a surface, it can draw a figure layer in each surface.
It may include multiple figure layers, such as navigation bar, status bar, program interface in display interface (such as Activity).
Each figure layer is drawn in corresponding surface, i.e., the drafting of corresponding figure layer is carried out in each surface, specifically can be with
Painting canvas (cavas) by hardware-accelerated renderer (HWUI) and/or Skia shape library etc. in surface carries out figure layer drafting.
System (System) reuses figure layer transfer module (Surface Flinger) service and carries out each surface
Synthesis, i.e., synthesize each figure layer.Wherein, SurfaceFlinger service operation is used to unified pipe in system process
The frame buffer zone of reason system, SurfaceFlinger obtain all figure layers, and image processor (GPU, Graphics can be used
Processing Unit) all or part of figure layer is synthesized, the result of synthesis is saved in frame buffer
(FrameBuffer).Hardware figure layer mixer (HWC, Hardware composer) can pass through SurfaceFlinger
The result of GPU synthesis synthesizes together with other figure layers, specifically, as shown in Figure 1, HWC can call multimedia display processor
(MDP, Multimedia Display Processor) carries out the synthesis of figure layer, ultimately forms one in BufferQueue
Buffer, then under the action of showing driving, the image synthesized in Buffer is used to show.Wherein, GPU and HWC difference
It, can be determines according to actual conditions to the specific synthetic strategy which part figure layer is synthesized.
The display screen of electronic equipment can carry out the display of display interface, may include multiple figure layers in display interface,
I.e. display interface is synthesized by multiple figure layers.Wherein, each figure layer is made of many pixels, and each figure layer passes through superposition
Mode form whole image, form the display interface of electronic equipment.Element on the page can be accurately positioned by figure layer, figure layer
In text, picture, table, plug-in unit can be added, can also inside nested figure layer again.The figure synthesized for figure layer and figure layer
Picture can be generically interpreted as, and figure layer is like the film containing the elements such as text or figure, and a sheet by a sheet figure layer is suitable by what is specified
Sequence is stacked together, and the final image effect combined to form is exactly combined the image formed, such as electronic equipment by figure layer
Display interface.It is, of course, understood that figure layer is not genuine film, foregoing description is only to facilitate the ratio understood
Analogy.Such as the desktop display interface 100 of electronic equipment shown in Fig. 2, including multiple figure layers, respectively status bar 101, navigation
Column 102, wallpaper 103 and icon layer 104.
In order to show that display interface in display screen, need to synthesize each figure layer of display interface.Such as
Status bar 101 shown in Fig. 3, navigation bar 102, wallpaper 103 and icon layer 104 are synthesized into display interface shown in Fig. 2
100.Common, system can use the synthesis that GPU carries out image layer, and synthesis mode can be, be existed according to each figure layer
Position in display interface determines the positional relationship between each figure layer, and the content of each figure layer is rendered into temporary delay with GPU
It rushes in area, makes in the buffer, the positional relationship between each figure layer is the positional relationship in display interface, finally will be temporary slow
It rushes area and is transmitted to viewing hardware, make each figure layer in display screen display, the display position of figure layer is it in display interface
Position.However when carrying out the processing of image layer using GPU, for GPU when synthesizing to figure layer, synthesis capability is stronger, i.e.,
To the quantity of synthesis figure layer, there is no limit but can generate biggish power consumption simultaneously, shorten the standby time of electronic equipment, thus shadow
Ring the usage experience of user.
Inventor has found that multimedia display processor (MDP, Multimedia Display can also be passed through
Processor hardware synthesis mechanism) synthesizes figure layer.MDP hardware synthesis mechanism is to call MDP hardware mould by HWC
Block is synthesized, and this synthesis mode is low in energy consumption, and speed is fast, but restricted to the layer count of processing.It is super in the quantity of figure layer
When crossing the quantity that it can be handled, the task of figure layer synthesis cannot be completed, to influence display on a display screen.
That is, if figure layer synthesis is carried out by GPU image, although the processing relative to MDP synthesis mode, to figure layer
There is no limit for quantity, but power consumption is higher, to influence the speed of service and stand-by time of electronic equipment etc.;If by MDP into
The synthesis of row figure layer, although power consumption is lower, the layer count that can be handled is limited, cannot process the scene of multi-layer image, then can not
Disposable figure layer of completing synthesizes task, and the figure layer by a display interface is needed to be performed in multiple times synthesis, influences whole synthesis speed
Degree.Therefore, image composition method in the application, device, electronic equipment and storage medium are inventors herein proposed as a kind of synthesis
Strategy selects the device for carrying out figure layer synthesis according to the height of electronic equipment current power consumption.If the current power consumption of electronic equipment is high
In preset threshold, then figure layer synthesis is carried out by MDP;If the current power consumption of electronic equipment is less than or equal to preset threshold, lead to
It crosses GPU and carries out figure layer synthesis.Different figure layer synthesis modes is selected according to the current power consumption of electronic equipment, in powder consumption of electronic equipment
In higher situation, the low synthesis mode that consumes energy is selected, with the power consumption of balance electronic equipment, in the lower feelings of powder consumption of electronic equipment
Under condition, the stronger synthesis mode of figure layer synthesis capability is selected, to take into account the power consumption of figure layer synthesis capability and electronic equipment.
The embodiment of the present application will be described in detail below.
Referring to Fig. 4, the embodiment of the present application provides a kind of image composition method, the process flow of the present embodiment description
Executing subject can be electronic equipment, can be the processor in electronic equipment.Specifically this method may include:
Step S110 obtains the current power consumption of electronic equipment and multiple figure layers of image to be displayed.
Electronic equipment can all generate power consumption in the process of running.Wherein, power consumption is one that all electronic equipments have
Index refers to the quantity of the consumed energy in the unit time, unit W.If the power consumption of electronic equipment is excessively high, it is easy
The problems such as generation is generated heat, the speed of service is slack-off and the remaining capacity of storage quickly reduces.
In addition, electronic equipment carries out the display of display interface during display, in display screen.The display that display screen is shown
Interface is as image to be displayed, including multiple figure layers.Before display, need first to obtain each figure layer of image to be displayed, with
For being synthesized to each figure layer.It should be understood that image to be displayed is the image for being shown in display screen in the program, specifically
It can be the display interface for being shown in display screen.
Since power consumption can be generated in figure layer synthesis process, in the embodiment of the present application, available electronic equipment
Current power consumption.Specifically, the power consumption of electronic equipment can be mainly divided into four bulks if electronic equipment is mobile terminal,
CPU/GPU, screen, honeycomb/WiFi/ data and sensor etc..The performance of the power consumption of electronic equipment can be electronic equipment
The variation degree of remaining capacity or GPU load factor etc..The current power consumption for obtaining electronic equipment as a result, can be acquisition electronics and set
The load etc. of standby remaining capacity variation degree or the CPU for obtaining electronic equipment.
Step S120, judges whether the current power consumption is higher than preset threshold.
Wherein, it is previously provided with preset threshold, the preset threshold can be the critical value of powder consumption of electronic equipment, be greater than
When the critical value, electronic equipment can be decreased obviously the processing capacity of data, easily cause the bad phenomenons such as Caton, work as described
Phenomena such as when preceding power consumption is less than or equal to critical value, electronic equipment is in normal data processing level, not will cause Caton.When
So, which is also possible to the value more smaller than the critical value, does not limit in the embodiment of the present application.
Since the parameter of the power consumption of characterization of electronic equipment is more, which can carry out according to specific parameter
Setting.For example, can be set corresponding if the parameter of the power consumption of characterization of electronic equipment is the variable quantity of the electricity of electronic equipment
Electric quantity change threshold value is as the preset threshold, if the parameter of the power consumption of characterization of electronic equipment is electronic equipment GPU load factor,
Corresponding load factor can be set as the preset threshold.It so, then can be according to working as when getting the current power consumption
The size relation of preceding power consumption and preset threshold, judges whether the current power consumption is higher than preset threshold.
Step S130, if so, utilizing multimedia display processor (MDP, Multimedia Display
Processor) the multiple figure layer is synthesized and shown, if it is not, then utilizing graphics processor (GPU, Graphics
Processing Unit) the multiple figure layer is synthesized and shown.
In the electronic device, multiple figure layers can be synthesized and is shown there are many mode, for example, using
In the electronic equipment of android system, to the synthesis of image can there are two types of mode, one is using graphics processor (GPU,
Graphics Processing Unit) the multiple figure layer is synthesized and shown, i.e. GPU synthesis mode;Another kind is
Figure layer is synthesized and shown using multimedia display processor (MDP, Multimedia Display Processor), i.e.,
MDP synthesis mode.
If the synthesis of GPU progress image layer is used for a long time in electronic equipment, it will usually cause the task of GPU heavy, produce
Raw higher power consumption;If electronic equipment uses always MDP to carry out the synthesis of image layer, due to its layer count to processing
It is restricted, when comprising scene compared with multi-layer image, then figure layer synthesis task cannot be disposably completed, aggregate velocity is influenced.
Specifically, GPU is a general graphics processor, and it is stronger than MDP function in graphics process, in addition to 2 can be done
Tie up image procossing, moreover it is possible to do 3 d image processing, special efficacy etc., can disposably be superimposed multiple figure layers, but power consumption is relatively high.
And MDP is a dedicated display image processing unit, can do 2 conventional dimension image procossings, is mainly used for doing multiple figure layers
Synthesis superposition.The major advantage of MDP is low in energy consumption, but the layer count of performance synthesis is limited.Wherein, MDP is primary
The layer count of performance synthesis is corresponding with fifo channel quantity in MDP, and the figure layer that MDP can be disposably superimposed is more, in it
Portion needs more fifo channels, this is all more expensive circuit, and therefore, the layer count that MDP can be synthesized is more, cost
It is higher.In the higher-end platform of certain manufacturers, MDP also at most only has 8 fifo channels, is disposably at best able to synthesis superposition 8
A figure layer, and in low and middle-end platform, a MDP may only have 4 fifo channels, disposably at most be merely able to 4 figure layers of superposition.
Therefore, in the electronic device, the MDP layer count that disposably most multipotency synthesizes is limited, when display interface includes multiple figure layers,
If being synthesized using MDP, although power consumption is lower, possibly once All Layers can not be synthesized, it may be necessary to point
Multi-stage synthesis synthesizes jointly by other synthesis modes, influences the speed of synthesis.
Thus, it is possible to the advantage and disadvantage of figure layer and MDP synthesis figure layer are synthesized in conjunction with GPU, it is high in the power consumption of the electronic equipment
When preset threshold, show that the power consumption of current electronic equipment is higher, in order to reduce power consumption, it is excessively high to electronic equipment to reduce power consumption
The influence of the speed of service and electricity can then select the i.e. MDP mode of the lower synthesis mode of power consumption to synthesize figure layer, with
The power consumption of balance electronic equipment;When the power consumption of the electronic equipment is less than or equal to the preset threshold, show Current electronic
The power consumption of equipment is not high, and the i.e. GPU mode of the stronger synthesis mode of figure layer synthesis capability can be selected to synthesize figure layer, thus
Take into account the power consumption of figure layer synthesis capability and electronic equipment.
The application propose image composition method, by obtain electronic equipment current power consumption and image to be displayed it is more
A figure layer;Judge whether the current power consumption is higher than preset threshold;If so, using multimedia display processor (MDP,
Multimedia Display Processor) the multiple figure layer is synthesized and shown, if it is not, then utilizing image procossing
Device (GPU, Graphics Processing Unit) is synthesized and is shown to the multiple figure layer.According to working as electronic equipment
Preceding power consumption selects different figure layer synthesis modes, in the higher situation of powder consumption of electronic equipment, selects synthesis mode low in energy consumption,
With the power consumption of balance electronic equipment, in the lower situation of powder consumption of electronic equipment, the stronger synthesis side of figure layer synthesis capability is selected
Formula, to take into account the power consumption of figure layer synthesis capability and electronic equipment.
Referring to Fig. 5, another embodiment of the application provides a kind of image composition method, the present embodiment is in previous embodiment
On the basis of, emphasis is described before figure layer synthesis, the reply processing mode different from device resolution for figure layer resolution ratio,
This method may include:
Step S210 obtains the current screen resolution of electronic equipment.
Wherein, screen resolution refers to the number for the pixel that display can be shown, when screen size is the same, resolution ratio is got over
Height, display effect are finer and fine and smooth.In general, the screen resolution of electronic equipment can be changed, user can be according to itself
Demand change screen resolution, electronic equipment in response to user change resolution ratio operation, screen resolution is set as using
The selected resolution ratio in family.
In the resolution ratio discomfort timing of the screen resolution and image to be displayed, image to be displayed cannot then be set in electronics
It is normally shown for upper, it, can as a result, in order to avoid image to be displayed with screen resolution due to not being adapted to and abnormal show
To obtain the current screen resolution of electronic equipment, the resolution ratio of image to be displayed is adjusted to be adapted to screen resolution.
Wherein, the screen resolution of the electronic equipment of acquisition is the currently selected resolution ratio of electronic equipment.For example, electronic equipment is current
Resolution ratio can choose 2160x1080 and 1440x720, if the selected resolution ratio of user be 2160x1080, then obtaining
Getting the current screen resolution of electronic equipment is then 2160x1080.
Step S220 obtains the current power consumption of electronic equipment and multiple figure layers of image to be displayed.
Step S220 can refer to previous embodiment corresponding part, and details are not described herein.
Step S230 carries out resolution ratio tune to each figure layer of the multiple figure layer respectively according to the screen resolution
It is whole.
In the screen resolution for getting display interface, continue the resolution ratio for obtaining image to be displayed, and described in determination
Multiple figure layers of image to be displayed.
After determining the multiple figure layers of the image to be displayed, then each figure layer can be divided according to the screen resolution
Resolution is adjusted.Specifically, the resolution ratio that can be to maintain the figure layer that resolution ratio is adapted to the screen resolution is constant, it will
The resolution adjustment for the figure layer that resolution ratio is not adapted to the screen resolution is adapted to the screen resolution, to reduce
Data processing amount.For example, image to be displayed is a Desktop-scene, the figure layer obtained after progress is image layered is wallpaper respectively
Layer, status bar layer, navigation bar layer and icon layer, specifically can refer to Fig. 2 and Fig. 3.If the resolution ratio of current wallpaper layer with it is described
Screen resolution adaptation, then the resolution ratio of keeping wall paper layer is constant, if status bar layer, the resolution ratio of navigation bar layer and icon layer
It is not all adapted to, is then needed the image progress resolution ratio of status bar layer, navigation bar layer and icon layer with the screen resolution
Conversion, the conversion of resolution is adapted to the screen resolution.
Specifically, the corresponding screen resolution of the display screen of electronic equipment, refers to the pixel number on screen transverse and longitudinal,
Unit is px, 1px=1 pixel, for example, having 1960 on longitudinal direction if indicating screen resolution with longitudinal pixel * horizontal pixel
The resolution ratio for having the screen of 1080 pixels on a pixel, transverse direction is 1960*1080.In the embodiment of the present application, in order to just
In understanding, image resolution ratio is defined to correspond to the representation of screen resolution, that is, defines the pixel that image resolution ratio is image
The pixel number of size, i.e. image on transverse and longitudinal, unit are px, 1px=1 pixel, such as with longitudinal pixel * horizontal pixel
Indicate image resolution ratio, having 1960 pixels, the resolution ratio for having the image of 1080 pixels in transverse direction on longitudinal direction is 1960*
1080.It is not adapted in the screen resolution of electronic equipment with the image resolution ratio of image, then show then can be abnormal for image, specifically may be used
The actual displayed physical size that can show as image is different from physical size when designing the image.Wherein, the physics ruler of image
It is very little to be defined, screen resolution and image resolution by equipment independent pixel (dp, device independent pixels)
Rate is adapted for making the dp of image to remain unchanged.
When whether the resolution ratio for determining each figure layer is adapted to screen resolution, it can be and judge picture in each figure layer
Resolution ratio whether be adapted to screen resolution, that is, judge under the screen resolution, picture is in the case where current resolution
Whether can be shown with picture dp to display.In conjunction with foregoing description, which for example be can be, and obtain picture
Dp numerical value determines screen density according to screen resolution, determines the dp numerical value of the picture corresponding resolution ratio under the screen density
Whether consistent with the currently practical resolution ratio of picture, if inconsistent, the resolution ratio of picture is not adapted to screen resolution.If no
The true resolution of picture is then adjusted to the dp numerical value of the picture corresponding resolution ratio under the screen density by adaptation.
The case where adjusting the screen resolution of display screen for user is adapted to display screen in picture for same display screen
In the case where resolution ratio, when screen resolution is raised, the pixel density (dpi, dots per inch) of screen increases, to
Image adaptation keeps the dp of image constant in the resolution ratio of screen, then the Pixel Dimensions of image, i.e. resolution ratio, should be with corresponding screen
The increased multiple of curtain density increases;For same display screen, in the case where picture is adapted to display resolution, when screen is differentiated
Rate is turned down, and the pixel density (dpi, dots per inch) of screen reduces, and to image adaptation in the resolution ratio of screen, is protected
The dp for holding image is constant, then the Pixel Dimensions of image, i.e. resolution ratio, is reduced with corresponding to the multiple of screen density reduction, then can be with
It is adapted to the resolution ratio of each figure layer with the screen resolution.
Step S240, judges whether the current power consumption is higher than preset threshold.
The current power consumption of electronic equipment is obtained, the power consumption can be the power consumption parameter value that can reflect electronic equipment, such as
The changing value of the electricity of electronic equipment or GPU load factor etc..So corresponding preset threshold then can be the default change of electricity
Change threshold value or the default load factor of CPU.If the changing value of electricity is greater than the default change threshold, described work as can be determined that
Preceding power consumption is higher than preset threshold;If GPU load factor is greater than default load factor, it can be determined that the current power consumption is higher than default threshold
Value.
Step S250, if so, utilizing multimedia display processor (MDP, Multimedia Display
Processor) the multiple figure layer is synthesized and shown, if it is not, then utilizing image processor (GPU, Graphics
Processing Unit) the multiple figure layer is synthesized and shown.
When determining that the current power consumption is higher than preset threshold, show that the power consumption of current electronic device is higher, in order to balance
The power consumption of electronic equipment can then synthesize the figure layer of image using MDP synthesis mode, if the current power consumption be lower than or
Equal to preset threshold, show that the power consumption of current electronic device is lower, data processing performance is preferable, then the synthesis side GPU can be used
Formula synthesizes the figure layer of image.
Wherein when the figure layer to described image carries out synthesis processing, the resolution ratio of each figure layer got and display circle
The screen resolution in face is adapted to, and can directly the figure layer be synthesized and be shown.Each figure layer can draw corresponding
Window, available the multiple figure layer corresponding window in the display interface, by the multiple figure layer according to corresponding window
It is shown on the display interface of electronic equipment.For example, being status bar, navigation bar, wall respectively there are four figure layer under Desktop-scene
Paper and icon.System can provide corresponding window to each figure layer, which has determined the display position of figure layer on a display screen
It sets, then corresponding figure layer is shown in corresponding window, then can be appreciated that corresponding table on the display interface of electronic equipment
Face scene.
The image composition method that the application proposes, by obtaining the current screen resolution of electronic equipment, if figure to be shown
The resolution ratio of picture is different from the screen resolution, carries out resolution adjustment to the image of the multiple figure layer respectively, makes each
The resolution ratio of figure layer is adapted to the screen resolution of the display interface, if getting multiple resolution ratio and the screen resolution
The figure layer of adaptation then keeps the resolution ratio, and the mode of different synthesis is selected further according to power consumption, thus to synthesis capability and electricity
The low-power consumption of sub- equipment is taken into account and is balanced.
Referring to Fig. 6, the another embodiment of the application provides a kind of image composition method, the present embodiment is in previous embodiment
On the basis of, in the case that emphasis is described with electricity measurement power consumption, judge whether the power consumption is higher than the process of preset threshold,
This method may include:
Step S310, obtain the remaining capacity of the electronic equipment within a preset period of time of electronic equipment change value and to
Show multiple figure layers of image.
Step S320, judges whether the change value of the remaining capacity of electronic equipment within a preset period of time is greater than default variation
Threshold value.
In the embodiment of the present application, multiple figure layers of image to be displayed corresponding part with reference to the foregoing embodiments, herein no longer
It repeats.
Since power consumption is higher, power consumption is bigger, in this embodiment it is possible to pass through electronic equipment within a preset period of time
The change value of remaining capacity characterizes power consumption.The current power consumption for obtaining electronic equipment can be the parameter value for obtaining characterization power consumption, In
In the embodiment, the change value for obtaining the remaining capacity of electronic equipment can be, if the power consumption of electronic equipment is larger, then in phase
In the same period, the consumption of electricity can be higher than in normal situation, then the change value of remaining capacity can compare normal condition
Under it is bigger.In the case where electronic equipment is not charged, then the change value of the remaining capacity of available electronic equipment is come
Determine whether the power consumption of electronic equipment is greater than preset threshold.Specifically, a default change threshold can be preset, this change
Change the change value that threshold value is electronic equipment remaining capacity within a preset period of time, within a preset period of time, if electronic equipment is surplus
The change value of remaining electricity is greater than default change threshold, then it is believed that powder consumption of electronic equipment is higher than preset threshold.
Wherein, the change value for obtaining remaining capacity within a preset period of time can be at interval of a preset time, obtain
The remaining capacity of primary electron equipment, for the remaining capacity obtained every time, if the difference with remaining capacity acquired in last time
Greater than the default change threshold, then it can determine that current power consumption is higher than preset threshold.For example, preset time period is 30s, presets and become
Changing threshold value is 1%, obtains the residue of electronic equipment after being 78%, 30s in the remaining capacity for the electronic equipment that first time obtains again
Electricity is 76%, then the difference for the remaining capacity that the remaining capacity of the secondary acquisition and last preset time obtain is 78%-76%
=2%, it is greater than default change threshold 1%, then it is believed that the current power consumption is greater than preset threshold.
Wherein, the method that electronic equipment obtains remaining capacity does not limit in the embodiment of the present application, such as can be logical
The various information that exectorial method obtains battery in electronic equipment are crossed, just include battery in the various information got
Remaining capacity, thus the available remaining capacity to its battery of electronic equipment.
Step S330, if so, utilizing multimedia display processor (MDP, Multimedia Display
Processor) the multiple figure layer is synthesized and shown, if it is not, then utilizing graphics processor (GPU, Graphics
Processing Unit) the multiple figure layer is synthesized and shown.
When the changing value of the remaining capacity of electronic equipment is greater than preset threshold, it may be considered that the current function of electronic equipment
Consumption is greater than preset threshold, shows that the current power consumption of electronic equipment is higher, then can be using the lesser synthesis mode of power consumption to acquisition
To multiple figure layers synthesized.So when the changing value of the electric quantity for electronic equipment is greater than preset threshold, then MDP pairs is utilized
The multiple figure layer is synthesized and is shown, with the power consumption of balance electronic equipment.
If the changing value of the remaining capacity of electronic equipment is less than or equal to default change threshold, it may be considered that electronics is set
Standby current power consumption is less than or equal to preset threshold, shows that the current power consumption of electronic equipment is lower, can be using figure layer synthesis speed
Faster synthesis mode is spent to synthesize the multiple figure layers got.It is so small in the changing value of the electricity of the electronic equipment
When preset threshold, then the multiple figure layer is synthesized and shown using GPU synthesis mode, thus to synthesis energy
The low-power consumption of power and electronic equipment is taken into account and is balanced.
In addition, selecting synthesis mode according to the change value of remaining capacity and the size relation of the default change threshold
When, it is possible to the change value for electronic equipment remaining capacity occur fluctuates above and below default change threshold, leads to continuous switching and merging
The case where mode, then can generate bigger power consumption because of synthesis mode is toggled.For example, the change value in remaining capacity is less than
When default load factor, GPU synthesis mode is selected to synthesize image, at this moment, electronic equipment is surplus within a preset period of time
The change value of remaining electricity may be greater than the default change threshold since GPU synthesis power consumption is higher, and electronic equipment can then switch
Synthesis mode is MDP synthesis mode, after being switched to MDP synthesis mode, the remaining capacity of electronic equipment within a preset period of time
Change value be less than default change threshold since MDP synthesis power consumption is lower again, electronic equipment then can again cut synthesis mode
It is changed to GPU synthesis mode, synthesis mode is toggled as a result, and generates bigger power consumption.
Accordingly it is also possible to preset a predeterminated frequency, wherein predeterminated frequency can be defined as figure layer synthesis mode
Switching times;If the frequency that the change value of the remaining capacity fluctuates above and below default change threshold within a preset time is greater than pre-
If frequency, then it can determine that the current power consumption is higher than preset threshold, then the lower synthesis mode of power consumption selected to close figure layer
At i.e. selection MDP synthesis mode synthesizes figure layer and maintains certain time.
For example, preset time is 2 minutes, presetting change threshold is 1%, predeterminated frequency 2, if electronic equipment is being preset
The change value of remaining capacity fluctuates about 1% in period, that is, the change value for getting remaining capacity is followed successively by 0.5%,
1.5%, 0.8%, 2%, 0.5%, 2%, it can be seen that the frequency that the change value of remaining capacity fluctuates above and below default change threshold
Rate is 5, i.e., the switching times of figure layer synthesis mode are 5 times, are greater than predeterminated frequency, indicates that current power consumption is higher than preset threshold, then
MDP mode can be selected to synthesize figure layer.When being greater than default change threshold 1% due to the change value in remaining capacity, use
MDP synthesis mode synthesizes figure layer, when the change value of remaining capacity is less than or equal to default change threshold 1%, uses
GPU synthesis mode synthesizes figure layer, since GPU synthesis mode power consumption is higher, consumes biggish electricity, then will lead to residue
The change value of electricity increases, then can continuous switching and merging mode, high-frequency switching and merging mode also can band within a certain period of time
Carry out additional power consumption, it is possible thereby to determine that the current power consumption is higher than preset threshold, then MDP synthesis mode can be selected to figure layer
Certain time is synthesized and is maintained, to reduce the power consumption of electronic equipment, wherein certain time is maintained to can be in 10 minutes
All figure layer is synthesized using MDP, the specific length for maintaining certain time can be configured according to the actual needs, herein
Without limitation.
The application propose image composition method, by obtain electronic equipment current power consumption and image to be displayed it is more
A figure layer, judges whether the change value of the remaining capacity of electronic equipment within a preset period of time is greater than default change threshold, if so,
Then the multiple figure layer is synthesized and shown using GPU, if it is not, then being synthesized simultaneously using MDP to the multiple figure layer
Display.The power consumption that electronic equipment is determined by the electricity of electronic equipment, when the power consumption of electronic equipment is higher select power consumption compared with
Low synthesis mode, when the power consumption of electronic equipment is lower, selects figure layer synthesis capability stronger with the power consumption of balance electronic equipment
Synthesis mode, to promote image procossing performance, thus to the figure layer synthesis capability of electronic equipment and the low-power consumption of electronic equipment
It is taken into account and is balanced.
Referring to Fig. 7, the application another embodiment provides a kind of image composition method, the present embodiment is in previous embodiment
On the basis of, in the case that emphasis is described with GPU load factor measurement power consumption, judge whether the power is higher than preset threshold
Process, this method may include:
Step S410 obtains multiple figure layers of the current GPU load factor of electronic equipment and image to be displayed.
Step S420, judges whether the current GPU load factor of electronic equipment is greater than default load factor.
The concrete mode for obtaining multiple figure layers of image to be displayed is referred to foregoing description, and details are not described herein.
In addition, the purpose for obtaining the power consumption of electronic equipment is to judge the current function of electronic equipment in the embodiment of the present application
It whether excessively high consumes.Wherein, the direct parameter values except through the performance power consumption such as electricity carry out the judgement of power consumption height, can also lead to
The parameter value of power consumption height can be mapped by crossing other, as the electronic equipment got power consumption and for judge power consumption whether mistake
It is high.Wherein it is possible to which the parameter value for mapping power consumption height does not limit in the embodiment of the present application, specifically it can be, when the parameter
When being worth excessively high, the power consumption of usual electronic equipment is also excessively high, such as GPU load factor, cpu load rate etc., and wherein the load factor of GPU is
The task quantity of current GPU processing is characterized, the load factor of GPU is higher, shows that the task of GPU processing is more.The embodiment of the present application
It is specifically described by taking the power consumption of GPU load factor mapping electronic equipment as an example.
That is, obtaining the current power consumption of electronic equipment, the parameter value for obtaining characterization of electronic equipment power consumption can be, i.e.,
The current GPU load factor of available electronic equipment, the overall power of current electronic device is characterized according to GPU load factor.Its
In, the main modular for influencing powder consumption of electronic equipment has GPU/CPU and screen.Usually when GPU carries out image procossing, need
The close fit of CPU carries out the work such as the preparation of data, can generate biggish power consumption, and screen can be lighted to carry out the aobvious of content
Show, can also generate biggish power consumption.Therefore when the load factor of GPU is higher, it is believed that current electronic device is carrying out more
Complicated content is shown, for example, electronic equipment when carrying out battle game, needs to carry out the brush of interface with higher frame per second
New display, entire electronic equipment can then generate biggish power consumption., be as a result, can by the load factor of the GPU of electronic equipment come
The power consumption height for characterizing entire electronic equipment can be shown that the power consumption of electronic equipment if the GPU load factor of current electronic device is high
Height can be shown that the low in energy consumption of electronic equipment if the GPU load factor of current electronic device is low.
Specifically, a default load factor can be preset, this default load factor, which can be, influences GPU processing speed
Critical value, that is, GPU load factor be less than the critical value when, then show that figure layer data handled by GPU are less, currently
The power consumption of electronic equipment is lower, then determines that the current power consumption is less than or equal to preset threshold.If GPU load factor is greater than described pre-
If load factor, shows that the figure layer data of current CPU processing are more, generate higher power consumption, then can determine that the current power consumption is high
In preset threshold.
Wherein, the method that electronic equipment obtains current GPU load factor does not limit in the embodiment of the present application, such as can be with
It is the parameter of GPU to be got from the performance file, wherein just include by accessing GPU performance file in the parameter
Current GPU load factor, so that electronic equipment is available to arrive current GPU load factor.
Step S430, if so, utilizing multimedia display processor (MDP, Multimedia Display
Processor) the multiple figure layer is synthesized and shown, if it is not, then utilizing graphics processor (GPU, Graphics
Processing Unit) the multiple figure layer is synthesized and shown.
When the GPU load factor of electronic equipment is greater than default load factor, it may be considered that the current power consumption of electronic equipment is big
In preset threshold, show that the current power consumption of electronic equipment is higher, then it can be using the lesser synthesis mode of power consumption to getting
Multiple figure layers are synthesized.So when the GPU load factor of the electronic equipment is greater than default load factor, then it can use MDP
The multiple figure layer is synthesized and shown, with the power consumption of balance electronic equipment.
If the GPU load factor of electronic equipment is less than or equal to default load factor, it may be considered that electronic equipment is current
Power consumption is less than or equal to preset threshold, shows that the current power consumption of electronic equipment is lower, can be faster using figure layer aggregate velocity
Synthesis mode synthesizes the multiple figure layers got.So it is less than or equal in the GPU load factor of the electronic equipment pre-
If when load factor, then the multiple figure layer being synthesized and being shown using GPU synthesis mode, to improve the synthesis energy of figure layer
Power.
In addition, when selecting synthesis mode according to the load factor of GPU and the size relation of the default load factor, it is possible to
The case where GPU load factor for electronic equipment occur fluctuates above and below default load factor, leads to continuous switching and merging mode, then can be because
Bigger power consumption is generated to toggle synthesis mode.For example, having selected GPU when the load factor of GPU is less than default load factor
Synthesis mode synthesizes image, and at this moment, the GPU load factor of electronic equipment is likely larger than the default load factor, and electronics is set
It is standby then can switching and merging mode be MDP synthesis mode, after being switched to MDP synthesis mode, the load factor of GPU is less than default load
Synthesis mode then can be switched to GPU synthesis mode again by rate, electronic equipment, and it is bigger to toggle synthesis mode generation as a result,
Power consumption.
Accordingly it is also possible to preset a predeterminated frequency, wherein predeterminated frequency can be defined as figure layer synthesis mode
Switching times;If the frequency that the load factor of the GPU fluctuates above and below default load factor within a preset time is greater than predeterminated frequency,
It then can determine that the current power consumption is higher than preset threshold, then select the lower synthesis mode of power consumption to synthesize figure layer, that is, select
Figure layer is synthesized with MDP synthesis mode and maintains certain time.
For example, preset time is 2 minutes, presetting load factor is 70%, predeterminated frequency 2, if the GPU's of electronic equipment is negative
Load rate fluctuates about 70%, i.e., the GPU load factor got in two minutes is followed successively by 68%, 72%, 69%, 71%,
66%, 71%, it can be seen that the frequency that GPU load factor fluctuates up and down is 5, i.e. the number of switching figure layer synthesis mode is greater than default
Frequency, indicates that current power consumption is higher than preset threshold, then MDP mode can be selected and synthesize to figure layer.Due to the load factor in GPU
When greater than default load factor 70%, figure layer is synthesized using MDP synthesis mode, is less than or equal in the load factor of GPU pre-
If when load factor 70%, being synthesized using GPU synthesis mode to figure layer, if the load factor of GPU is in default load factor at this time
Fluctuate, then can continuous switching and merging mode, within a certain period of time high-frequency switching and merging mode also brings along additional function
Consumption then can select MDP synthesis mode to synthesize simultaneously figure layer it is possible thereby to determine that the current power consumption is higher than preset threshold
Certain time is maintained, to reduce the power consumption of electronic equipment, wherein certain time is maintained to can be in 10 minutes all using MDP pairs
Figure layer is synthesized, and the specific length for maintaining certain time can be configured according to the actual needs, it is not limited here.
The application propose image composition method, by obtain electronic equipment current power consumption and image to be displayed it is more
A figure layer judges whether be greater than default load factor in the GPU load factor of electronic equipment, if so, using GPU to the multiple figure
Layer is synthesized and is shown, if it is not, then the multiple figure layer is synthesized and shown using MDP.Pass through the GPU of electronic equipment
Load factor determines the power consumption of electronic equipment, selects the lower synthesis mode of power consumption, balance when the power consumption of electronic equipment is higher
The power consumption of electronic equipment selects the stronger synthesis mode of figure layer synthesis capability, when the power consumption of electronic equipment is lower to promote figure
As process performance, so that the low-power consumption of the figure layer synthesis capability and electronic equipment of electronic equipment is taken into account and be balanced.
Referring to Fig. 8, described device 500 is wrapped it illustrates a kind of image synthesizer 500 provided by the embodiments of the present application
It includes and obtains module 510, judgment module 520, synthesis module 530.
Module 510 is obtained, for obtaining the current power consumption of electronic equipment and multiple figure layers of image to be displayed;Judge mould
Block 520, for judging whether the current power consumption is higher than preset threshold;Synthesis module 530, for if so, utilizing multimedia
Video-stream processor (MDP, Multimedia Display Processor) is synthesized and is shown to the multiple figure layer, if
It is no, then the multiple figure layer is synthesized and shown using graphics processor (GPU, Graphics Processing Unit)
Show.
Further, the acquisition module 510 is also used to obtain the current screen resolution of electronic equipment;In the acquisition
After the current power consumption of electronic equipment and multiple figure layers of image to be displayed, it is right respectively according to the screen resolution to be also used to
Each figure layer of the multiple figure layer carries out resolution adjustment.
Further, the figure layer that the acquisition module 510 is also used to that resolution ratio is kept to be adapted to the screen resolution
Resolution ratio is constant, the resolution adjustment of the figure layer that resolution ratio and the screen resolution are not adapted to the screen resolution
Adaptation.
Further, the judgment module 520 is also used to judge the remaining capacity of electronic equipment within a preset period of time
Whether change value is greater than default change threshold, if more than then determining that the current power consumption is higher than preset threshold.
Further, the judgment module 520 is also used to obtain the surplus of primary electron equipment at interval of a preset time
Remaining electricity;For the remaining capacity obtained every time, if being greater than with the difference of remaining capacity acquired in last preset time described
Default change threshold then determines that the current power consumption is higher than preset threshold.
Further, the judgment module 520 is also used to judge whether the current GPU load factor of the electronic equipment is greater than
Default load factor;If more than, then determine the current power consumption be higher than preset threshold.
Further, the synthesis module 530 is also used to obtain the multiple figure layer corresponding window in the display interface,
The multiple figure layer is shown on the display interface of electronic equipment according to corresponding window.
It should be noted that it is apparent to those skilled in the art that, for convenience and simplicity of description, on
The specific work process for stating description device and module, can refer to corresponding processes in the foregoing method embodiment, no longer superfluous herein
It states.
In conclusion image composition method provided by the present application, by obtaining the current power consumption of electronic equipment and to aobvious
Multiple figure layers of diagram picture;Judge whether the current power consumption is higher than preset threshold;If so, utilizing multimedia display processor
(MDP, Multimedia Display Processor) is synthesized and is shown to the multiple figure layer, if it is not, then utilizing figure
Shape processor (GPU, Graphics Processing Unit) is synthesized and is shown to the multiple figure layer.It is set according to electronics
Standby current power consumption selects different figure layer synthesis modes, in the higher situation of powder consumption of electronic equipment, selects low conjunction of consuming energy
At mode, with the power consumption of balance electronic equipment, in the lower situation of powder consumption of electronic equipment, the higher synthesis of synthesis capability is selected
Mode, to promote image procossing performance.
In several embodiments provided herein, the mutual coupling of shown or discussed module or direct coupling
It closes or communication connection can be through some interfaces, the indirect coupling or communication connection of device or module can be electrical property, mechanical
Or other forms.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.
Referring to FIG. 9, it illustrates the structural block diagrams of a kind of electronic equipment provided by the embodiments of the present application.The electronic equipment
600, which can be smart phone, tablet computer, e-book etc., can run the electronic equipment of application program.Electronics in the application
Equipment 600 may include one or more such as lower component: processor 610, memory 620 and one or more application program,
Wherein one or more application programs can be stored in memory 620 and be configured as by one or more processors 610
It executes, one or more programs are configured to carry out the method as described in preceding method embodiment.
Processor 610 may include one or more processing core.Processor 610 is whole using various interfaces and connection
Various pieces in a electronic equipment 600, by run or execute the instruction being stored in memory 620, program, code set or
Instruction set, and the data being stored in memory 620 are called, execute the various functions and processing data of electronic equipment 600.It can
Selection of land, processor 610 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmable
Gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic
Array, PLA) at least one of example, in hardware realize.Processor 610 can integrating central processor (Central
Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc.
One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for
Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem
It can not be integrated into processor 610, be realized separately through one piece of communication chip.
Memory 620 may include random access memory (Random Access Memory, RAM), also may include read-only
Memory (Read-Only Memory).Memory 620 can be used for store instruction, program, code, code set or instruction set.It deposits
Reservoir 620 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system
Enable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for
Realize the instruction etc. of following each embodiments of the method.Storage data area can also store electronic equipment 600 and be created in use
Data (such as phone directory, audio, video data, chat record data) etc..
Referring to FIG. 10, it illustrates a kind of structural frames of computer readable storage medium provided by the embodiments of the present application
Figure.Program code is stored in the computer readable storage medium 700, said program code can call execution above-mentioned by processor
Method described in embodiment of the method.
Computer readable storage medium 700 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory),
The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 700 includes non-transient meter
Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage
Medium 700 has the memory space for the program code 710 for executing any method and step in the above method.These program codes can
With from reading or be written in one or more computer program product in this one or more computer program product.
Program code 710 can for example be compressed in a suitable form.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although
The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with
It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And
These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and
Range.
Claims (10)
1. a kind of image composition method, which is characterized in that the described method includes:
Obtain the current power consumption of electronic equipment and multiple figure layers of image to be displayed;
Judge whether the current power consumption is higher than preset threshold;
If so, the multiple figure layer is synthesized and shown using multimedia display processor,
If it is not, then the multiple figure layer is synthesized and is shown using graphics processor.
2. the method according to claim 1, wherein the method also includes:
Obtain the current screen resolution of electronic equipment;
After the current power consumption for obtaining electronic equipment and multiple figure layers of image to be displayed, further includes:
Resolution adjustment is carried out to each figure layer of the multiple figure layer respectively according to the screen resolution.
3. according to the method described in claim 2, it is characterized in that, it is described according to the screen resolution respectively to the multiple
Each figure layer of figure layer carries out resolution adjustment, comprising:
The resolution ratio for the figure layer for keeping resolution ratio to be adapted to the screen resolution is constant,
The resolution adjustment for the figure layer that resolution ratio and the screen resolution are not adapted to is adapted to the screen resolution.
4. judging whether the current power consumption is higher than default threshold the method according to claim 1, wherein described
Value, comprising:
Judge whether the change value of the remaining capacity of electronic equipment within a preset period of time is greater than default change threshold;
If more than, then determine the current power consumption be higher than preset threshold.
5. according to the method described in claim 4, it is characterized in that, the residue for judging electronic equipment within a preset period of time
Whether the change value of electricity is greater than default change threshold, comprising:
At interval of a preset time, the remaining capacity of primary electron equipment is obtained;
For the remaining capacity obtained every time, if the difference with remaining capacity acquired in last preset time is greater than described preset
Change threshold then determines that the change value of remaining capacity is greater than default change threshold.
6. judging whether the current power consumption is higher than default threshold the method according to claim 1, wherein described
Value, comprising:
Judge whether the current Graphics processor load rate of the electronic equipment is greater than default load factor;
If more than, then determine the current power consumption be higher than preset threshold.
7. method according to claim 1-6, which is characterized in that the multiple figure layer is synthesized and shown
Show, comprising:
Obtain the corresponding window of the multiple figure layer in the display interface;
The multiple figure layer is shown on the display interface of electronic equipment according to corresponding window.
8. a kind of image synthesizer, which is characterized in that described device includes:
Module is obtained, for obtaining the current power consumption of electronic equipment and multiple figure layers of image to be displayed;
Judgment module, for judging whether the current power consumption is higher than preset threshold;
Synthesis module, for if so, the multiple figure layer is synthesized and is shown using multimedia display processor,
If it is not, then the multiple figure layer is synthesized and is shown using graphics processor.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
One or more processors;
Memory is electrically connected with one or more of processors;
One or more application program, wherein one or more of application programs are stored in the memory and are configured
To be executed by one or more of processors, one or more of application programs are configured to carry out such as claim 1 to 7
Described in any item methods.
10. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium
Sequence code, said program code can be called by processor and execute method as described in any one of claim 1 to 7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910647109.7A CN110413245A (en) | 2019-07-17 | 2019-07-17 | Image composition method, device, electronic equipment and storage medium |
PCT/CN2020/100978 WO2021008427A1 (en) | 2019-07-17 | 2020-07-09 | Image synthesis method and apparatus, electronic device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910647109.7A CN110413245A (en) | 2019-07-17 | 2019-07-17 | Image composition method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110413245A true CN110413245A (en) | 2019-11-05 |
Family
ID=68361800
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910647109.7A Pending CN110413245A (en) | 2019-07-17 | 2019-07-17 | Image composition method, device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110413245A (en) |
WO (1) | WO2021008427A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110377257A (en) * | 2019-07-17 | 2019-10-25 | Oppo广东移动通信有限公司 | Layer composition, device, electronic equipment and storage medium |
WO2021008427A1 (en) * | 2019-07-17 | 2021-01-21 | Oppo广东移动通信有限公司 | Image synthesis method and apparatus, electronic device, and storage medium |
CN113625983A (en) * | 2021-08-10 | 2021-11-09 | Oppo广东移动通信有限公司 | Image display method, image display device, computer equipment and storage medium |
CN114691069A (en) * | 2022-03-30 | 2022-07-01 | Oppo广东移动通信有限公司 | Image display adjustment method and device and electronic equipment |
EP4135333A1 (en) * | 2021-08-10 | 2023-02-15 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Image display method and apparatus, electronic device, and medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113961160A (en) * | 2021-10-14 | 2022-01-21 | 维沃移动通信有限公司 | Screen adjusting method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103593155A (en) * | 2013-11-06 | 2014-02-19 | 华为终端有限公司 | Display frame generation method and terminal equipment |
US20160246356A1 (en) * | 2015-02-24 | 2016-08-25 | Qualcomm Incorporated | Circuits and methods providing state information preservation during power saving operations |
CN106331831A (en) * | 2016-09-07 | 2017-01-11 | 珠海市魅族科技有限公司 | Method and device for image processing |
CN109379627A (en) * | 2018-11-27 | 2019-02-22 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8692833B2 (en) * | 2011-08-09 | 2014-04-08 | Apple Inc. | Low-power GPU states for reducing power consumption |
CN106407003A (en) * | 2016-08-29 | 2017-02-15 | 广州视睿电子科技有限公司 | Screen interface display method and system |
CN107680029A (en) * | 2017-08-31 | 2018-02-09 | 深圳天珑无线科技有限公司 | Image processing method, electronic equipment and the device with store function |
CN109871192B (en) * | 2019-03-04 | 2021-12-31 | 京东方科技集团股份有限公司 | Display method, display device, electronic equipment and computer readable storage medium |
CN110413245A (en) * | 2019-07-17 | 2019-11-05 | Oppo广东移动通信有限公司 | Image composition method, device, electronic equipment and storage medium |
-
2019
- 2019-07-17 CN CN201910647109.7A patent/CN110413245A/en active Pending
-
2020
- 2020-07-09 WO PCT/CN2020/100978 patent/WO2021008427A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103593155A (en) * | 2013-11-06 | 2014-02-19 | 华为终端有限公司 | Display frame generation method and terminal equipment |
US20160246356A1 (en) * | 2015-02-24 | 2016-08-25 | Qualcomm Incorporated | Circuits and methods providing state information preservation during power saving operations |
CN106331831A (en) * | 2016-09-07 | 2017-01-11 | 珠海市魅族科技有限公司 | Method and device for image processing |
CN109379627A (en) * | 2018-11-27 | 2019-02-22 | Oppo广东移动通信有限公司 | Method for processing video frequency, device, electronic equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
李建芳、陈优广、高爽: "《PhotoshopCS平面设计第3版》", 31 January 2017 * |
高磊: "《Android应用开发精解》", 30 September 2012 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110377257A (en) * | 2019-07-17 | 2019-10-25 | Oppo广东移动通信有限公司 | Layer composition, device, electronic equipment and storage medium |
WO2021008427A1 (en) * | 2019-07-17 | 2021-01-21 | Oppo广东移动通信有限公司 | Image synthesis method and apparatus, electronic device, and storage medium |
CN113625983A (en) * | 2021-08-10 | 2021-11-09 | Oppo广东移动通信有限公司 | Image display method, image display device, computer equipment and storage medium |
EP4135333A1 (en) * | 2021-08-10 | 2023-02-15 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Image display method and apparatus, electronic device, and medium |
WO2023016191A1 (en) * | 2021-08-10 | 2023-02-16 | Oppo广东移动通信有限公司 | Image display method and apparatus, computer device, and storage medium |
CN113625983B (en) * | 2021-08-10 | 2024-08-27 | Oppo广东移动通信有限公司 | Image display method, device, computer equipment and storage medium |
CN114691069A (en) * | 2022-03-30 | 2022-07-01 | Oppo广东移动通信有限公司 | Image display adjustment method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2021008427A1 (en) | 2021-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110413245A (en) | Image composition method, device, electronic equipment and storage medium | |
CN110377257A (en) | Layer composition, device, electronic equipment and storage medium | |
CN110377264A (en) | Layer composition, device, electronic equipment and storage medium | |
CN110363831A (en) | Layer composition, device, electronic equipment and storage medium | |
CN100576893C (en) | A kind of graphic OSD controller that is integrated in video frequency processing chip | |
CN109992347B (en) | Interface display method, device, terminal and storage medium | |
CN110377263A (en) | Image composition method, device, electronic equipment and storage medium | |
CN110362186A (en) | Figure layer process method, apparatus, electronic equipment and computer-readable medium | |
CN110427094A (en) | Display methods, device, electronic equipment and computer-readable medium | |
CN108765531A (en) | Image rendering method, device, storage medium and intelligent terminal | |
KR101345379B1 (en) | Method and apparatus for rendering three dimensional graphics data | |
CN109460364A (en) | Application program detection method, device, storage medium and mobile terminal | |
US20080158248A1 (en) | Rendering device and rendering method | |
CN105959799A (en) | Video compression method and device and electronic equipment | |
CN104267801A (en) | Power consumption and bandwidth reducing method and system | |
CN102866765A (en) | Graphics processing unit and management method thereof | |
CN103425444A (en) | Display control method, display control system and display equipment | |
CN106020632A (en) | Self-adaptive display method and self-adaptive display device for pages | |
CN108519808A (en) | Frame per second method of adjustment, device, terminal device and storage medium | |
CN108811055A (en) | Frame per second method of adjustment, device, terminal device and storage medium | |
CN108628429A (en) | Frame per second method of adjustment, device, terminal device and storage medium | |
CN102479387A (en) | Method for generating multimedia animation and playing multimedia animation and apparatus thereof | |
CN103179284B (en) | Terminal and terminal power-economizing method | |
CN101789228A (en) | video scaler | |
CN108510441B (en) | Image multi-resolution display method based on staggered grids |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191105 |