Configuration method of layer synthesis mode and electronic device
By obtaining the attribute information of the split-screen window and configuring the appropriate layer composition method, the problem of power consumption waste in layer composition configuration is solved, and the power consumption optimization and power saving of the display interface are realized.
Patent Information
- Application Number
- CN202110282299.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-16
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-03-16
AI Technical Summary
Existing layer composition configuration methods do not take layer characteristics into account, resulting in a waste of power consumption through GPU composition when playing layers that occupy larger resources.
When displaying multiple split-screen windows, obtain the attribute information of each split-screen window, including content category, refresh rate, and area, and configure different layer composition methods based on this information to reduce power consumption.
By intelligently configuring the layer synthesis method, the power consumption of the display interface is reduced, avoiding power consumption waste, and the layer refresh frequency and screen brightness are dynamically adjusted according to the human eye gaze area to further reduce power consumption.
Smart Images

Figure CN113012263B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of layer processing, and specifically relates to a configuration method and electronic device for a layer synthesis mode. Background Art
[0002] Layer synthesis methods generally include software synthesis methods and hardware synthesis methods. For example, the software synthesis method may be a GPU (Graphics Processing Unit) synthesis method, and the hardware synthesis method may be a HWC (Hardware Composer) synthesis method. Among them, the software synthesis method requires copying the layer to the GPU, synthesizing the layer through the GPU, and then transmitting it to the screen. This will consume additional GPU bandwidth and cause high power consumption. The hardware synthesis method can directly synthesize the layer and display it on the screen, which does not occupy additional GPU bandwidth, so the power consumption is relatively low.
[0003] In electronic devices, if different layer synthesis methods are configured, the related art usually adopts the layer synthesis method according to the application order of the layers. However, this configuration method does not take into account the characteristics of the layers, and may cause the layers that occupy more resources, such as playing videos, to be synthesized by the GPU, wasting a lot of power. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a configuration method and electronic device for a layer synthesis mode, which can solve the problem of wasteful power consumption in the layer synthesis configuration method in the related art.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for configuring a layer synthesis mode, the method comprising: when at least two split-screen windows are displayed, obtaining attribute information of each split-screen window, wherein the attribute information comprises at least one of the following: a content category of content displayed in the split-screen window, a content refresh rate of content displayed in the split-screen window, and an area of the split-screen window; according to the attribute information, respectively configuring a corresponding layer synthesis mode for each split-screen window using a target layer synthesis strategy, wherein different layer synthesis modes have different power consumption.
[0007] In a second aspect, an embodiment of the present application provides a device for configuring a layer synthesis method, the device comprising: an acquisition module, used to obtain attribute information of each split-screen window when at least two split-screen windows are displayed, wherein the attribute information includes at least one of the following: a content category of content displayed in the split-screen window, a content refresh rate of content displayed in the split-screen window, and an area of the split-screen window; a configuration module, used to configure a corresponding layer synthesis method for each split-screen window according to the attribute information and using a target layer synthesis strategy, wherein different layer synthesis methods have different power consumption.
[0008] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for configuring the layer synthesis method as described in the first aspect.
[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the configuration method of the layer synthesis method described in the first aspect are implemented.
[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the configuration method of the layer synthesis method as described in the first aspect.
[0011] In an embodiment of the present application, when at least two split-screen windows are displayed, the attribute information of each split-screen window is obtained, which may include information on at least one attribute such as the content category of the split-screen window, the content refresh rate of the split-screen window, and the area of the split-screen window. Then, the layer synthesis mode corresponding to each split-screen window is configured according to the attribute information, and different layer synthesis modes have different power consumption. Since the different power consumption of different layer synthesis modes is taken into account when configuring the layer synthesis mode, the configuration goal can be to reduce the power consumption consumed by the display interface, and the layer synthesis modes of different split-screen windows can be allocated according to the attribute information, so as to achieve the effect of reducing the power consumption of the display interface and prevent power consumption waste. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a flowchart of an example of a configuration method of a layer synthesis mode provided in an embodiment of the present application;
[0013] Figure 2 It is a schematic diagram of a split-screen interface of an example of a configuration method of a layer synthesis mode provided in an embodiment of the present application;
[0014] Figure 3This is a schematic diagram of an application architecture of an example of a configuration method for a layer synthesis mode provided in an embodiment of the present application;
[0015] Figure 4 is a flowchart of another example of a method for configuring a layer synthesis mode provided in an embodiment of the present application;
[0016] Figure 5 It is a schematic diagram of a framework of an example of a configuration device of a layer synthesis method provided in an embodiment of the present application;
[0017] Figure 6 It is a structural diagram of an example of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0019] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0020] The following is a detailed description of the configuration method of the layer synthesis method provided in the embodiment of the present application through specific embodiments and their application scenarios in combination with the accompanying drawings.
[0021] like Figure 1 As shown, the configuration method of the layer synthesis mode provided in the embodiment of the present application includes the following steps 201 and 202:
[0022] Step 201, when at least two split-screen windows are displayed, obtain attribute information of each split-screen window.
[0023] The split screen window is two windows after the screen is split, and each window is used to display at least one layer of an application. The size of the window is the maximum area that the system allows to display all layers in the window. The area displayed by each layer of the window in the display interface is less than or equal to the size of the window, and the layers in the window are superimposed. Each layer is composed of many pixels, and different layers are superimposed up and down to form the entire image. It should be noted that a layer may also be composed of multiple layers superimposed.
[0024] The split screen window can be regarded as a layer. In addition to the split screen window, the display interface layer can also include the status bar layer or fringe layer at the top, the navigation key or navigation layer at the bottom, the split screen frame layer in the middle, etc. For example, Figure 2 As shown, the display interface includes two split-screen windows and a dividing line layer 23, wherein the first split-screen window 21 displayed in the upper part of the display interface includes several layers of application 1, and the second split-screen window 22 displayed in the lower part includes several layers of application 2; the size of the split-screen windows in the upper and lower parts can be adjusted by dragging the dividing line layer 23 in the middle. Figure 2 In the two split-screen windows shown in FIG, the first split-screen window 21 is used to display video applications, and the second split-screen window 22 is used to display instant messaging applications.
[0025] Understandably, except for Figure 2 In addition to the split-screen method shown, there may also be split-screen methods in the form of picture-in-picture, or a larger number of split-screen windows, etc., which will not be described in detail here.
[0026] After displaying at least two split-screen windows, attribute information of each split-screen window can be obtained, wherein the attribute information includes at least one of the following: content category of the content displayed in the split-screen window, content refresh rate of the content displayed in the split-screen window, and area of the split-screen window.
[0027] The content category of the content displayed in the split-screen window can be determined according to the category of the application displayed in the split-screen window. For example, the application categories supported by the split-screen window may include video, e-book, social, news, office, etc. The content refresh rate of the split-screen window can be determined according to the content category of the split-screen window or the category of the application displayed in the split-screen window, or the split-screen window can directly provide data, for example, the application displayed in the split-screen window feeds back the refresh rate of the application to the bottom layer of the system through an interface.
[0028] Step 202: According to the attribute information, a target layer synthesis strategy is adopted to configure a corresponding layer synthesis method for each split-screen window.
[0029] The electronic device that executes the method provided in the embodiment of the present application supports at least two layer synthesis methods. Exemplarily, the first layer synthesis method may be a hardware synthesis method, for example, a specific implementation method may be an HWC (Hardware Composer) synthesis method; the second layer synthesis method may be a software synthesis method, for example, a specific implementation method may be a GPU (Graphics Processing Unit) synthesis method. Among them, the software synthesis method requires copying the layer to the GPU, synthesizing the layer through the GPU, and then transmitting it to the screen. This will consume additional GPU bandwidth and cause high power consumption. The hardware synthesis method can directly synthesize the layer and display it on the screen without occupying additional GPU bandwidth, so the power consumption is relatively small. Power consumption is a general term for system resource usage. For example, one measure of power consumption may be power consumption, which can be characterized by detecting the current of the battery per unit time.
[0030] The target layer synthesis strategy is used to indicate the adopted layer synthesis strategy, and the layer synthesis strategy is used to characterize the configuration method of the layer synthesis method for each split-screen window according to the attribute information. Since different layer synthesis methods have different power consumption, the layer synthesis strategy can be configured with the goal of reducing the power consumption of the display interface as the configuration target, and configure the corresponding layer synthesis method according to the attribute information of each split-screen window.
[0031] In an optional example, the layer synthesis strategy used in step 202 may be a first layer synthesis strategy. Specifically, in the case of including a first split-screen window and a second split-screen window, the first split-screen window may be configured as a first layer synthesis mode and the second split-screen window may be configured as a second layer synthesis mode by using the first layer synthesis strategy when the attribute information of the first split-screen window meets a preset condition. The power consumption of the second layer synthesis mode is greater than that of the first layer synthesis mode.
[0032] The above-mentioned preset conditions include at least one of the following: a content refresh rate of the content displayed in the first split-screen window is higher than a content refresh rate of the content displayed in the second split-screen window; an area of the first split-screen window is larger than an area of the second split-screen window; the first split-screen window is an eye gaze area; the content category of the content displayed in the first split-screen window includes a target category and the content category of the content displayed in the second split-screen window does not include the target category.
[0033] The content refresh rate mentioned above refers to the frequency of content refresh. For example, for a video, the content refresh rate may refer to the frame rate of the video; or the content refresh rate may refer to the refresh rate of a mobile phone APP, etc. The target category mentioned above may be multimedia, such as video media stream, etc. The target category is the default category that the user may be more interested in or has a higher refresh rate.
[0034] In one example, if both the first split-screen window and the second split-screen window include the target category or neither includes the target category, it can be further determined whether other preset conditions are met, or other layer synthesis strategy configurations can be adopted. For example, if both the first split-screen window and the second split-screen window include the target category, it is determined whether the area of the first split-screen window is larger than the area of the second split-screen window. If so, the first layer configuration strategy is still adopted. Otherwise, other layer configuration strategies can be adopted, for example, the first split-screen window is configured as the second layer synthesis mode, and the second split-screen window is configured as the first layer synthesis mode. Alternatively, if neither the first split-screen window nor the second split-screen window includes the target category, the first split-screen window and the second split-screen window can both adopt the second layer synthesis mode with relatively high power consumption. Of course, it can also be further determined whether the area of the first split-screen window / the content refresh rate of the content displayed in the first split-screen window / the human eye gaze area meet the preset conditions.
[0035] The above-mentioned human eye gaze area can be determined based on human eye recognition and tracking information collected in real time. In an optional example, detecting whether the first split-screen window is the human eye gaze area also includes a prerequisite of determining that the time period during which the split-screen situation of the display interface remains unchanged exceeds a preset threshold. In this case, the split-screen situation has been maintained for a certain period of time. In order to prevent the user from doing other things and not paying attention to the screen, or the user's attention is switched from other split-screen windows to the first split-screen window, the human eye gaze area can be monitored at this time. If it is detected that the human eye annotation area is the first split-screen window, the first layer synthesis strategy configuration is adopted.
[0036] The configuration method of the layer synthesis mode provided in the embodiment of the present application obtains the attribute information of each split-screen window when displaying at least two split-screen windows, which may include information of at least one attribute such as the content category of the split-screen window, the content refresh rate of the split-screen window, and the area of the split-screen window. Then, the layer synthesis mode corresponding to each split-screen window is configured according to the attribute information, and different layer synthesis modes have different power consumption. Since the different power consumption of different layer synthesis modes is taken into account when configuring the layer synthesis mode, the configuration goal can be to reduce the power consumption consumed by the display interface, and the layer synthesis modes of different split-screen windows can be allocated according to the attribute information, so as to achieve the effect of reducing the power consumption of the display interface and prevent power consumption waste.
[0037] In one example, the system may be pre-configured with N candidate layer synthesis strategies, where N is a positive integer greater than 1. Thus, after executing step 202, if an input for adjusting the split screen situation of the display interface is received, thereby adjusting the number of split screens of the display interface and / or the attribute information of each split screen window, then, after receiving the target input for adjusting the split screen situation, different layer synthesis strategies may be attempted to configure the layer synthesis mode of each split screen window, and the second layer synthesis strategy with the lowest power consumption may be selected as the final selected configuration, and the layer synthesis mode of each split screen window may be configured according to the second layer synthesis strategy.
[0038] Regarding how to determine the second layer synthesis strategy with the minimum power consumption, an example implementation method is: first, obtain the first power consumption information collected after adjusting the split-screen situation; second, change the first layer synthesis strategy to N different layer synthesis strategies, and obtain the N changed second power consumption information respectively; then, determine the minimum second power consumption information among the N second power consumption information, and when it is determined that the second power consumption information of the second layer synthesis strategy is less than the first power consumption information, determine that the layer synthesis strategy corresponding to the minimum second power consumption information is the second layer synthesis strategy; then, configure the layer synthesis method of each split-screen window according to the second layer synthesis strategy.
[0039] The second layer synthesis strategy is a strategy different from the first layer synthesis strategy. An example is that the second layer synthesis strategy may include: when the attribute information of the first split-screen window meets the preset conditions, the second layer synthesis mode is configured for the first split-screen window, and the first layer synthesis mode is configured for the second split-screen window; otherwise, the first layer synthesis mode is configured for the first split-screen window, and the second layer synthesis mode is configured for the second split-screen window.
[0040] Through this implementation, when the split-screen window changes (for example, the number, area, content, etc. of the split-screen window changes), the layer synthesis strategy can be readjusted to obtain the configuration strategy with the lowest power consumption through experiments.
[0041] The above-mentioned power consumption information can be collected by the power consumption information collection module of the electronic device (for example, it can be a current measurement module). The power consumption information collection module increases the load of the electronic device when collecting power consumption information. In order to prevent the load of the electronic device from being too large, before obtaining the first power consumption information collected in real time after adjusting the split screen situation, it is also possible to detect whether the processor of the electronic device displaying the display interface has a new load task. If no new load task is added, the current load state of the electronic device can be regarded as relatively stable. At this time, the power consumption information collection module can be controlled to collect the first power consumption information. Otherwise, the collection of power consumption information can be abandoned, and it can be collected after a period of time, or it can be determined that no new load task is added when the next polling reaches this step before collecting. In this way, a sudden increase in load can be prevented and the stability of the electronic device can be ensured.
[0042] Since people's attention is usually not able to focus on the contents of two windows for a long time, after configuring the layer synthesis method, if the split-screen situation of the display interface remains unchanged for a period of time, the user's attention area can be determined based on the human eye recognition and tracking method, and the power consumption of the split-screen window that the user does not pay attention to can be further reduced. For example, the power consumption of the split-screen window on the electronic device can be reduced by reducing the refresh rate of the window content or the refresh rate / brightness of the screen.
[0043] Specifically, after executing step 202, if it is determined that the split screen state of the display interface remains unchanged for a period of time exceeding a preset threshold, the real-time collected human eye recognition and tracking information is obtained, and then the human eye gaze area is determined according to the human eye recognition and tracking information. Then, according to the human eye gaze area, power consumption reduction processing is performed on at least one of the at least two split screen windows.
[0044] Exemplarily, after the first split-screen window and the second split-screen window are configured using the above-mentioned first layer synthesis strategy, the first split-screen window is configured with a layer synthesis method with lower power consumption. If the human eye gaze area is in the first split-screen window, the current configuration can be kept unchanged, but the layer refresh rate, frame rate, etc. of the second split-screen window can be further reduced. If the human eye gaze area is in the second split-screen window, then the layer refresh rate, frame rate, etc. of the first split-screen window can be gradually reduced. If the human eye gaze area is outside the display interface, the layer refresh rate and frame rate of the two split-screen windows can be gradually reduced, or it can be combined with a reduction in screen brightness until the screen is turned off. In this way, combined with the analysis of the human eye gaze area, power consumption can be reduced as much as possible without the user being able to detect it.
[0045] Combine the following Figure 3 and Figure 4 The implementation method of the layer synthesis mode of the embodiment of the present application is described in a specific application scenario.
[0046] Figure 3is a schematic diagram of an application architecture of an example of a configuration method of a layer synthesis mode provided in an embodiment of the present application, such as Figure 3 As shown in the figure, the functions and implementation methods of each module are introduced as follows:
[0047] Split-screen image drawing module: After the user triggers the split-screen state, the system of the electronic device receives the input of image drawing data in the split-screen window from each application, and obtains the original image drawing data of each layer before layer synthesis is performed.
[0048] Layer management module: Based on the attribute information of the split-screen window, power consumption (current), human eye recognition and tracking information, etc., a layer synthesis strategy is selected from multiple preset candidate layer synthesis strategies, and then the specific layer synthesis method corresponding to each split-screen window is determined based on the selected layer synthesis strategy. In addition, the refresh frequency of the layer can also be managed. The screen backlight brightness level, screen refresh frequency, etc. can affect the setting of the power consumption of the electronic device.
[0049] Current measurement module: The power meter of the electronic device can be used to collect the power consumption current of the electronic device.
[0050] Human eye recognition module: can detect whether the human eye is looking at the screen, track the viewing angle of the human eye, and determine the specific area of the screen that the human eye is looking at.
[0051] Among them, after the attribute information of the split-screen window such as the layer content or the split-screen window size changes, the layer management module can try to switch the layer synthesis strategy of the split-screen window when it determines that the processor CPU detects no new task load, and collects the current power consumption before and after the switch by the current measurement module, and compares the current size to determine whether the current layer synthesis strategy achieves the optimal power consumption. The layer management module can also configure the layer synthesis method in combination with the data provided by the human eye recognition module when the user does not operate the electronic device.
[0052] Layer synthesis module: a module that specifically performs layer synthesis operations. For Android phones, the layer synthesis methods can include the two methods mentioned above. The first layer synthesis method does not need to copy the layer data to the memory, does not consume additional CPU bandwidth, and directly synthesizes the layer content and displays it on the screen interface, which is more power-saving; the second layer synthesis method copies the layer data to the GPU to perform synthesis and then transmits it to the screen to display the image, which consumes GPU bandwidth and generates additional power consumption.
[0053] Screen display module: displays the final composite image obtained by the layer synthesis module on the screen of the electronic device.
[0054] Next, combine Figure 4 Description based on Figure 3The application architecture shown implements the configuration method of the layer synthesis mode provided in the embodiment of the present application. Figure 4 As shown, the following steps 101 to 114 are included:
[0055] Step 101, split screen starts, and the ways to trigger split screen include user active split screen trigger and message split screen trigger. After entering split screen, two applications that support split screen can be divided into left and right windows or upper and lower windows by the split line of the split screen window, and the size of the split screen window can be adjusted by dragging the split line. Applications that support split screen currently generally include but are not limited to video, social, news, office, online shopping and other applications.
[0056] Step 102: After entering the split screen interface, the layer management module is responsible for the resource allocation strategy of the entire interface layer, rather than randomly allocating according to the order of layer drawing application. The entire layer of the electronic device display interface may include the top fringe layer or status bar layer, the bottom navigation key layer or navigation gesture layer. For such relatively static refresh layers, the layer management module may allocate the second layer synthesis mode (GPU synthesis) all the time.
[0057] Layer synthesis strategy 1 (first layer synthesis strategy) may be the system default management strategy. Specifically, the first layer synthesis strategy may be: for split-screen windows of multimedia applications with relatively large window areas and frequent dynamic refreshes such as video, the HWC synthesis mode (first layer synthesis mode) is preferentially allocated. Among them, different attribute information of the split-screen windows may also have priority. For example, when the area of other split-screen windows does not exceed the preset area size, the split-screen windows with high dynamic refresh frequency may be configured with the first layer synthesis mode with lower power consumption. When the area of a certain split-screen window exceeds the preset area size, the first layer synthesis mode with lower power consumption is allocated to the split-screen window. Optionally, due to the limitation of the number of layers and hardware resources, other split-screen windows with relatively small window areas may use GPU synthesis when the HWC hardware is limited, effectively reducing power consumption.
[0058] Step 103, detecting changes in layer content and window size. After the split screen, the user may alternately operate the applications of the split screen window, and may change the content and quantity of the application layer or move the dividing line to change the size of the window. For example, the video application window on one side of the split screen is larger than the document application window on the other side to meet the global needs of watching videos; or the split screen social chat interface split screen window is larger than the video application window interface to meet the needs of social chatting; real-time monitoring of whether the layer application content, quantity and window size of the split screen interface have changed, if so, proceed to step 108, otherwise proceed to step 104.
[0059] Step 104: Without changing the content, quantity, and window size of the layers in the split-screen interface, start timing. If the cumulative time t of the user is within the preset time threshold T, i.e., t < T, then maintain the configuration of Layer Composition Policy 1. Thus, since the split-screen window has not changed, the layer composition method of the split-screen window also remains unchanged; otherwise, when t ≥ T, proceed to Step 105.
[0060] Step 105: Start eye recognition and tracking. Capture and detect the dynamic of the eyes through the high-definition front camera to determine whether the eyes are looking at the screen, track the viewing angle of the eyes, and judge the area range of the eyes looking at the screen.
[0061] Step 106: Determine whether the detected eyes are within the effective range of looking at the screen. If so, proceed to Layer Composition Policy 2 in Step 107a; otherwise, proceed to Layer Composition Policy 3 in Step 107b.
[0062] Step 107a: Layer Composition Policy 2: When it is detected that the eye fixation area is within the effective range of looking at the screen, first determine the area of the eyes looking at the screen, calculate the window range of the eyes looking at the screen, and compare it with the position of the split-screen window dividing line to determine whether the eyes are looking at Split-screen Window 1 (the first split-screen window) or Split-screen Window 2 (the second split-screen window) of the screen; if the eyes are looking at Split-screen Window 1 at this time, and Split-screen Window 2 is not within the viewing range of the eyes, if the user does not actively operate the application in Window 2, the layer management module can reduce the power consumption by reducing the layer refresh frequency of Split-screen Window 2, reducing the screen frame rate, or one or more of these methods, without affecting the user's use and experience. If the user switches the window being viewed by the eyes, such as the eyes are looking at Split-screen Window 2, and Split-screen Window 1 is not within the viewing range of the eyes, then correspondingly, if the user does not actively operate the application in Split-screen Window 1, the layer management module can reduce the local layer refresh frequency of Split-screen Window 1, reduce the screen frame rate, or one or more of these methods.
[0063] Step 107b: Layer Composition Policy 3: When it is detected that the eye fixation area is outside the effective range of looking at the screen, it means that the user is not looking at the screen, and at this time, the electronic device is running split-screen tasks, which consumes a high amount of power for the electronic device. The layer management module can reduce the power consumption by reducing the global layer refresh frequency, reducing the screen frame rate, or one or more of these methods. Further, when the cumulative time that the detected eye fixation area is outside the effective range of looking at the screen is greater than the duration of T2, the screen backlight level can be gradually reduced until the screen is the darkest or even the screen backlight is turned off, and even the electronic device can be controlled to enter the sleep state to reduce power consumption. If it is detected that the user starts looking at the screen again or an operation on the electronic device is received, the electronic device can be run in the layer composition situation before Step 107b.
[0064] Step 108: After the user operates the electronic device in the split screen interface in step 103, it is determined that the layer content, quantity and window size of the split screen have changed. At this time, the CPU detects whether there are new tasks. If there are no new load tasks, it is considered that the current power consumption state is stable and the current of the electronic device can be measured, and the process goes to step 109; if the CPU detects that there are new tasks, it means that the current system load is unstable and is not conducive to current power consumption measurement, then the previous default layer synthesis strategy 1 is maintained, and the following state polling is performed again.
[0065] Step 109, reading the current I1 of the electronic device collected by the current measurement module, can be specifically implemented by a fuel gauge module, mainly by sampling the current of the electronic device battery and measuring the precision resistor. Usually, electronic devices are equipped with a fuel gauge module.
[0066] Step 110, switch the layer synthesis strategy. After reading the current I1 of the electronic device, try to switch the layer synthesis strategy, switch the split-screen window originally configured for HWC synthesis to GPU synthesis, and switch the split-screen window originally configured for GPU synthesis to HWC synthesis. The reason for trying to switch the layer synthesis strategy is that when the layer content, number and window size of the split-screen window change, it cannot be switched only because of the change in the attribute information of one aspect. This may cause the window with frequent dynamic refresh but small window area to adopt the HWC method, but the window with relatively low layer refresh frequency but large window area to sample the GPU synthesis method. The power consumption of this configuration of synthesis may be relatively large; therefore, the actual power consumption can be tested by trying to switch the layer synthesis strategy.
[0067] Step 111: After the layer synthesis strategy is switched and the layer synthesis is displayed on the screen, the power consumption current I2 of the electronic device is read.
[0068] Step 112, determine the size of I1 and I2. If I1>I2, it means that less power is consumed after switching the layer synthesis strategy, which is more power-saving; go to step 113; on the contrary, if I1≤I2, it means that there is no power saving or more power consumption after switching, then execute step 113b to maintain the default layer synthesis strategy 1 before switching.
[0069] Step 113a, layer synthesis strategy 4: switch the synthesis mode to the opposite mode of the split screen window of layer synthesis strategy 1. If split screen window 1 in layer synthesis strategy 1 is the HWC synthesis mode and split screen window 2 is the GPU synthesis mode, then layer synthesis strategy 4 is: split screen window 1 is switched to the GPU synthesis mode and split screen window 2 is the HWC synthesis mode.
[0070] Step 114: perform layer synthesis according to different layer synthesis methods and display it on the screen.
[0071] The configuration method of the layer synthesis mode provided in the embodiment of the present application achieves less memory bandwidth consumption by intelligently managing the split-screen windows of the electronic device and adopting a matching layer synthesis mode; in addition, the window range viewed by the human eye can be determined based on human eye detection and tracking, so as to dynamically adjust the layer refresh frequency of different split-screen windows and the refresh frame rate of the local screen, thereby reducing power consumption.
[0072] The embodiment of the present application also provides a configuration device for a layer synthesis mode. It should be noted that the execution subject of the configuration method for the layer synthesis mode provided in the embodiment of the present application can be the configuration device for the layer synthesis mode, or a control module in the configuration device for the layer synthesis mode for executing the configuration method for loading the layer synthesis mode. In the embodiment of the present application, the configuration method for the layer synthesis mode provided in the embodiment of the present application is explained by taking the configuration device for the layer synthesis mode executing the configuration method for loading the layer synthesis mode as an example.
[0073] The following is a detailed description of the configuration device of the layer synthesis method provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings. For the contents not described in detail in the configuration device of the layer synthesis method provided by the embodiment of the present application, reference can be made to the configuration method of the layer synthesis method provided by the embodiment of the present application, and no further description will be given here.
[0074] like Figure 5 As shown, the configuration 500 of the layer synthesis method provided in the embodiment of the present application includes an acquisition module 501 and a configuration module 502.
[0075] Among them, the acquisition module 501 is used to obtain the attribute information of each split-screen window when at least two split-screen windows are displayed, wherein the attribute information includes at least one of the following: the content category of the content displayed in the split-screen window, the content refresh rate of the content displayed in the split-screen window, and the area of the split-screen window; the configuration module 502 is used to configure the corresponding layer synthesis method for each split-screen window according to the attribute information and the target layer synthesis strategy, wherein different layer synthesis methods have different power consumption.
[0076] The configuration of the layer synthesis mode provided in the embodiment of the present application, when displaying at least two split-screen windows, obtains the attribute information of each split-screen window, which may include information of at least one attribute such as the content category of the split-screen window, the content refresh rate of the split-screen window, and the area of the split-screen window, and then configures the layer synthesis mode corresponding to each split-screen window according to the attribute information, and different layer synthesis modes have different power consumption. Since the different power consumption of different layer synthesis modes is taken into account when configuring the layer synthesis mode, the configuration goal can be to reduce the power consumption consumed by the display interface, and the layer synthesis modes of different split-screen windows can be allocated according to the attribute information, so as to achieve the effect of reducing the power consumption of the display interface and prevent power consumption waste.
[0077] As an optional example, at least two split-screen windows include a first split-screen window and a second split-screen window. The configuration module 502 can be specifically used to configure the first split-screen window as a first layer synthesis mode and the second split-screen window as a second layer synthesis mode using a first layer synthesis strategy when the attribute information of the first split-screen window meets a preset condition; wherein the power consumption of the second layer synthesis mode is greater than that of the first layer synthesis mode; the preset condition includes at least one of the following: a content refresh rate of the content displayed in the first split-screen window is higher than a content refresh rate of the content displayed in the second split-screen window; an area of the first split-screen window is larger than an area of the second split-screen window; the first split-screen window is an eye gaze area; the content category of the content displayed in the first split-screen window includes a target category and the content category of the content displayed in the second split-screen window does not include the target category.
[0078] As an optional example, the device may also include: a receiving module, used to receive a target input after configuring a corresponding layer synthesis method for each split-screen window according to the attribute information using a target layer synthesis strategy; an adjustment module, used to adjust the split-screen situation of the display interface in response to the target input, wherein the split-screen situation includes the number of split screens and / or the attribute information of each split-screen window; a determination module, used to configure the layer synthesis method corresponding to each split-screen window using N different layer synthesis strategies, and determine a second layer synthesis strategy with the lowest power consumption; a configuration module, further used to configure the layer synthesis method of each split-screen window according to the second layer synthesis strategy; wherein N is a positive integer greater than 1.
[0079] As an optional example, the determination module may include: an acquisition unit, used to acquire first power consumption information, the first power consumption information being the power consumption information after adjusting the split-screen situation; an execution unit, used to change the first layer synthesis strategy to N different layer synthesis strategies, and respectively acquire the changed N second power consumption information; a determination unit, used to determine the layer synthesis strategy corresponding to the smallest second power consumption information among the N second power consumption information as the second layer synthesis strategy; wherein the second power consumption information of the second layer synthesis strategy is less than the first power consumption information.
[0080] As an optional example, the device may also include: a detection module, used to detect the load condition of the electronic device before obtaining the first power consumption information; a configuration module, also used to use N different layer synthesis strategies to respectively configure the layer synthesis mode corresponding to each split-screen window when no new load tasks are added; or, the configuration module, also used to keep using the first layer synthesis strategy to configure the layer synthesis mode corresponding to each split-screen window when a new load task is added.
[0081] The configuration device 500 of the layer synthesis method in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0082] The configuration device of the layer synthesis method in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0083] The configuration device of the layer synthesis method provided in the embodiment of the present application can realize Figures 1 to 4 In order to avoid repetition, the various processes implemented by the configuration device of the layer synthesis method in the method embodiment will not be repeated here.
[0084] An embodiment of the present application also provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, each process of the configuration method embodiment of the above-mentioned layer synthesis method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0085] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0086] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0087] The electronic device 600 includes but is not limited to: a radio frequency module 601, a network module 602, an audio output module 603, an input module 604, a sensor 605, a display module 606, a user input module 607, an interface module 608, a memory 609, and a processor 610 and other components.
[0088] Those skilled in the art will appreciate that the electronic device 600 may also include a power supply (such as a battery) for supplying power to each component, and the power supply may be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. The input module 604 may include a graphics processor, a microphone, etc. The display component 606 may include a display panel. The user input module 607 may include a touch panel and other input devices, etc. The memory 609 may store applications and operating systems, etc. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0089] Among them, the processor 610 is also used to execute, when at least two split-screen windows are displayed, obtaining attribute information of each split-screen window, wherein the attribute information includes at least one of the following: content category of content displayed in the split-screen window, content refresh rate of content displayed in the split-screen window, and area of the split-screen window; according to the attribute information, a target layer synthesis strategy is adopted to configure a corresponding layer synthesis method for each split-screen window, wherein different layer synthesis methods have different power consumption.
[0090] Optionally, at least two split-screen windows include a first split-screen window and a second split-screen window. When the processor 610 configures the layer synthesis mode corresponding to each split-screen window according to the attribute information and adopts the target layer synthesis strategy, it can be achieved by executing the following steps: when the attribute information of the first split-screen window meets the preset conditions, the first split-screen window is configured as the first layer synthesis mode and the second split-screen window is configured as the second layer synthesis mode using the first layer synthesis strategy.
[0091] Among them, the power consumption of the second layer synthesis method is greater than that of the first layer synthesis method; the preset conditions include at least one of the following: a content refresh rate of the content displayed in the first split-screen window is higher than a content refresh rate of the content displayed in the second split-screen window; an area of the first split-screen window is larger than an area of the second split-screen window; the first split-screen window is an eye gaze area; the content category of the content displayed in the first split-screen window includes a target category and the content category of the content displayed in the second split-screen window does not include the target category.
[0092] Optionally, the processor 610 is also used to receive a target input after configuring a corresponding layer synthesis method for each split-screen window according to the attribute information using a target layer synthesis strategy; adjust the split-screen situation of the display interface in response to the target input, wherein the split-screen situation includes the number of split screens and / or the attribute information of each split-screen window; configure the layer synthesis method corresponding to each split-screen window using N different layer synthesis strategies, and determine a second layer synthesis strategy with the lowest power consumption; configure the layer synthesis method of each split-screen window according to the second layer synthesis strategy; wherein N is a positive integer greater than 1.
[0093] Optionally, when the processor 610 executes N different layer synthesis strategies to respectively configure the layer synthesis mode corresponding to each split-screen window and determines the second layer synthesis strategy with the smallest power consumption, it can be achieved by executing the following steps: obtaining first power consumption information, where the first power consumption information is the power consumption information after adjusting the split-screen situation; changing the first layer synthesis strategy to N different layer synthesis strategies, and respectively obtaining the N changed second power consumption information; determining the layer synthesis strategy corresponding to the smallest second power consumption information among the N second power consumption information as the second layer synthesis strategy; wherein the second power consumption information of the second layer synthesis strategy is less than the first power consumption information.
[0094] Optionally, before executing the acquisition of the first power consumption information, the processor 610 may also perform the following steps: detecting the load condition of the electronic device; when no new load tasks are added, using N different layer synthesis strategies to respectively configure the layer synthesis method corresponding to each split-screen window; or, when a new load task is added, continuing to use the first layer synthesis strategy to configure the layer synthesis method corresponding to each split-screen window.
[0095] The electronic device provided by the embodiment of the present application obtains the attribute information of each split-screen window when displaying at least two split-screen windows, which may include information of at least one attribute such as the content category of the split-screen window, the content refresh rate of the split-screen window, and the area of the split-screen window. Then, the layer synthesis mode corresponding to each split-screen window is configured according to the attribute information, and different layer synthesis modes have different power consumption. Since the different power consumption of different layer synthesis modes is taken into account when configuring the layer synthesis mode, the configuration goal can be to reduce the power consumption consumed by the display interface, and the layer synthesis modes of different split-screen windows can be allocated according to the attribute information, so as to achieve the effect of reducing the power consumption of the display interface and prevent power consumption waste.
[0096] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the configuration method embodiment of the above-mentioned layer synthesis method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0097] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, and the computer-readable storage medium may include a non-volatile memory, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0098] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the configuration method embodiment of the above-mentioned layer synthesis method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0099] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0100] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0101] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0103] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for configuring a layer synthesis mode, characterized in that: The method comprises: In the case where at least two split-screen windows are displayed, acquiring attribute information of each split-screen window, wherein the attribute information includes at least one of the following: a content category of content displayed in the split-screen window, a content refresh rate of content displayed in the split-screen window, and an area of the split-screen window; According to the attribute information, a target layer synthesis strategy is adopted to configure a corresponding layer synthesis mode for each split-screen window, wherein different layer synthesis modes have different power consumptions; Receive target input; In response to the target input, adjusting the split screen situation of the display interface, wherein the split screen situation includes the number of split screens and / or attribute information of each split screen window; N different layer synthesis strategies are used to configure the layer synthesis mode corresponding to each split-screen window, and the second layer synthesis strategy with the minimum power consumption is determined; According to the second layer synthesis strategy, configure the layer synthesis mode of each split-screen window; Wherein, N is a positive integer greater than 1.
2. The method for configuring a layer synthesis mode according to claim 1, characterized in that: The at least two split-screen windows include a first split-screen window and a second split-screen window, The step of configuring the layer synthesis mode corresponding to each split-screen window respectively by adopting the target layer synthesis strategy according to the attribute information includes: When the attribute information of the first split-screen window meets a preset condition, the first split-screen window is configured as a first layer synthesis mode and the second split-screen window is configured as a second layer synthesis mode by adopting a first layer synthesis strategy; Among them, the power consumption of the second layer synthesis method is greater than that of the first layer synthesis method; the preset conditions include at least one of the following: a content refresh rate of the content displayed in the first split-screen window is higher than a content refresh rate of the content displayed in the second split-screen window; an area of the first split-screen window is larger than an area of the second split-screen window; the first split-screen window is an eye gaze area; the content category of the content displayed in the first split-screen window includes a target category and the content category of the content displayed in the second split-screen window does not include the target category.
3. The method for configuring a layer synthesis mode according to claim 2, characterized in that: The adopting of N different layer synthesis strategies to respectively configure the layer synthesis mode corresponding to each split-screen window and determining the second layer synthesis strategy with the minimum power consumption includes: Acquire first power consumption information, where the first power consumption information is power consumption information after adjusting the split screen situation; Changing the first layer synthesis strategy to N different layer synthesis strategies, and respectively obtaining the changed N second power consumption information; Determining the layer synthesis strategy corresponding to the smallest second power consumption information among the N second power consumption information as the second layer synthesis strategy; The second power consumption information of the second layer synthesis strategy is less than the first power consumption information.
4. The method for configuring a layer synthesis mode according to claim 3, characterized in that: Before acquiring the first power consumption information, the method further includes: Detect the load condition of electronic equipment; In the absence of new load tasks, N different layer synthesis strategies are used to configure the layer synthesis method corresponding to each split-screen window; Alternatively, in the case of a new load task, the first layer synthesis strategy is continued to be used to configure the layer synthesis method corresponding to each split-screen window.
5. A configuration device for layer synthesis, characterized in that: The device comprises: an acquisition module, configured to acquire attribute information of each split-screen window when at least two split-screen windows are displayed, wherein the attribute information includes at least one of the following: a content category of content displayed in the split-screen window, a content refresh rate of content displayed in the split-screen window, and an area of the split-screen window; A configuration module, configured to configure a corresponding layer synthesis mode for each split-screen window using a target layer synthesis strategy according to the attribute information, wherein different layer synthesis modes have different power consumptions; A receiving module, used for receiving target input; An adjustment module, configured to adjust the split-screen status of the display interface in response to the target input, wherein the split-screen status includes the number of split-screens and / or attribute information of each split-screen window; A determination module, used to respectively configure the layer synthesis mode corresponding to each split-screen window by using N different layer synthesis strategies, and determine the second layer synthesis strategy with the minimum power consumption; The configuration module is further used to configure the layer synthesis mode of each split-screen window according to the second layer synthesis strategy; Wherein, N is a positive integer greater than 1.
6. The layer synthesis configuration device according to claim 5, characterized in that: The at least two split-screen windows include a first split-screen window and a second split-screen window, The configuration module is specifically used to configure the first split-screen window to a first layer synthesis mode and the second split-screen window to a second layer synthesis mode by adopting a first layer synthesis strategy when the attribute information of the first split-screen window meets a preset condition; Among them, the power consumption of the second layer synthesis method is greater than that of the first layer synthesis method; the preset conditions include at least one of the following: a content refresh rate of the content displayed in the first split-screen window is higher than a content refresh rate of the content displayed in the second split-screen window; an area of the first split-screen window is larger than an area of the second split-screen window; the first split-screen window is an eye gaze area; the content category of the content displayed in the first split-screen window includes a target category and the content category of the content displayed in the second split-screen window does not include the target category.
7. The layer synthesis configuration device according to claim 6, characterized in that: The determination module comprises: An acquiring unit, configured to acquire first power consumption information, where the first power consumption information is power consumption information after adjusting the split screen condition; An execution unit, configured to change the first layer synthesis strategy to N different layer synthesis strategies, and respectively obtain N changed second power consumption information; a determining unit, configured to determine the layer synthesis strategy corresponding to the smallest second power consumption information among the N second power consumption information as the second layer synthesis strategy; The second power consumption information of the second layer synthesis strategy is less than the first power consumption information.
8. The layer synthesis configuration device according to claim 7, characterized in that: The device also includes: A detection module, used for detecting a load condition of the electronic device before acquiring the first power consumption information; The configuration module is further used to respectively configure the layer synthesis mode corresponding to each split-screen window by using N different layer synthesis strategies when no new load task is added; or The configuration module is also used to maintain the use of the first layer synthesis strategy to configure the layer synthesis method corresponding to each split-screen window when a new load task is added.
Citation Information
Patent Citations
Display method, device and terminal equipment
CN106527656A
Layer processing method, layer processing device, electronic equipment and computer readable medium
CN110362186A
Image synthesis method and device, electronic equipment and storage medium
CN110377263A
Method for displaying multiple windows and electronic equipment
CN114040238A
Display method and apparatus, electronic device, and computer-readable medium
WO2021008373A1
