Layer synthesis method and terminal equipment

By transferring layer synthesis operations from high-power processing units to low-power processing units, the problems of high power consumption and poor battery life of terminal equipment are solved, achieving more efficient power consumption management and improving battery life.

CN118860118APending Publication Date: 2024-10-29HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310478477.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The terminal device deploys the load related to the user interface display to the high-power application processor, resulting in high power consumption and poor battery life.

Method used

By transferring the layer composition operation from the high-power processing unit to the low-power processing unit, the load on the high-power processing unit is reduced, and the sleep probability of the high-power processing unit is increased, thereby reducing the power consumption of the terminal device and improving Battery life.

Benefits of technology

It effectively reduces the power consumption of terminal equipment, improves battery life, reduces the load on high-power processing units, and improves the operating efficiency of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860118A_ABST
    Figure CN118860118A_ABST
Patent Text Reader

Abstract

The invention discloses a layer synthesis method and terminal equipment, relates to the technical field of terminals, and can reduce related loads displayed by a UI (User Interface) on an AP (Access Point), reduce the power consumption of the terminal equipment and improve the cruising ability of the terminal equipment. The method is applied to terminal equipment comprising a first processing unit and a second processing unit, and comprises the following steps: obtaining a synthesis request of a first layer which is a layer rendered by adopting the first processing unit; in response to a synthesis request of the first image layer, synthesizing the first image layer into an image by adopting a second processing unit; wherein the first processing unit is a high-power-consumption processing unit, and the second processing unit is a low-power-consumption processing unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a layer synthesis method and a terminal device. Background Art

[0002] Currently, in order to effectively reduce the power consumption of terminal devices, terminal devices usually adopt a heterogeneous architecture, which includes an application processor (AP) with strong computing power and a coprocessor (CP) with low power consumption.

[0003] Although the terminal device has adopted a heterogeneous architecture, the terminal device system will deploy the relevant loads of the user interface (UI) display to the AP, which makes the power consumption of the terminal device still high and the battery life poor. Summary of the invention

[0004] The present application provides a layer synthesis method and a terminal device, which can reduce the related load of UI display on AP, reduce the power consumption of terminal devices, and improve the battery life of terminal devices.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, a layer synthesis method is provided, which is applied to a terminal device including a first processing unit and a second processing unit, and the method includes: obtaining a synthesis request for a first layer, where the first layer is a layer rendered by the first processing unit; in response to the synthesis request for the first layer, synthesizing the first layer into an image by using the second processing unit; wherein the first processing unit is a high-power processing unit, and the second processing unit is a low-power processing unit.

[0007] Based on the above technical solution, after the terminal device obtains the synthesis request of the layer rendered by the high-power processing unit, such as AP, etc., it uses the low-power processing unit, such as CP, etc., to synthesize the layer into an image, that is, the high-power processing unit no longer performs the layer synthesis operation. In this way, there is no load for performing the layer synthesis operation on the high-power processing unit, that is, the relevant load of the UI display on the high-power processing unit is reduced. Compared with using a high-power processing unit to synthesize the layer into an image, the power consumption of the low-power processing unit is lower. And after the layer synthesis operation is transferred to the low-power processing unit for execution, the probability of the high-power processing unit sleeping can be increased, thereby reducing the power consumption of the terminal device and improving the battery life of the terminal device.

[0008] In one possible design, the synthesis request of the first layer instructs the terminal device to use the first processing unit to synthesize the first layer into an image. Based on this design, after the terminal device obtains the request instructing to use the high processing unit to perform the layer synthesis operation, it uses the low processing unit to perform the layer synthesis operation, which is equivalent to transferring the layer synthesis operation on the high-power processing unit to the low-power processing unit for execution. That is, the relevant load of the UI display deployed on the high-power processing unit is deployed on the low-power processing unit, that is, the relevant load of the UI display on the high-power processing unit is reduced. Compared with using a high-power processing unit to perform a layer synthesis operation, the power consumption of the low-power processing unit is lower. And after the layer synthesis operation is transferred to the low-power processing unit for execution, the probability of the high-power processing unit sleeping can be increased, thereby reducing the power consumption of the terminal device and improving the battery life of the terminal device.

[0009] In a possible design, before the second processing unit is used to synthesize the first layer into an image, the method further includes: the second processing unit receives the first layer from the first processing unit. Since the first layer is rendered by the high-power processing unit, based on this design, the low-power processing unit can obtain the rendered first layer from the high-power processing unit, so as to subsequently perform a synthesis operation on the first layer.

[0010] In a possible design, the method further includes: if the display right belongs to the first processing unit, the display right is switched to the second processing unit, and the display right is the right to control the display subsystem DSS. It can be understood that only with the display right can the synthesized image be sent to the display screen for display. Based on this design, the display right of the high-power processing unit is switched to the low-power processing unit, and the low-power processing unit can directly send the synthesized image to the display screen for display, which can reduce the power consumption of the terminal device.

[0011] In one possible design, the display right is switched to the second processing unit, including: the first processing unit performs an operation of powering off the DSS; the first processing unit sends a first message to the second processing unit; in response to the first message, the second processing unit performs an operation of powering on the DSS. It can be understood that by establishing a connection between the DSS driver and the DSS, the DSS can be powered on. By disconnecting the connection between the DSS driver and the DSS, the DSS can be powered off. Since the high-power processing unit and the low-power processing unit may use different DSS drivers. In this way, the high-power processing unit powers off the DSS, and the low-power processing unit powers on the DSS, so that the low-power processing unit can use its own DSS driver to drive the DSS.

[0012] In a possible design, after the second processing unit is used to synthesize the first layer into an image, the method further includes: the second processing unit sends a status synchronization message to the first processing unit, and the status synchronization message is used to indicate that the second processing unit has synthesized the first layer into an image. Based on this design, after the low-power processing unit completes the synthesis operation, it notifies the high-power processing unit that the synthesis operation has been completed. In this way, it is convenient for the high-power processing unit to prepare (or send to the low-power processing unit) the data to be synthesized for the next frame of the image.

[0013] In one possible design, the method further includes: the second processing unit obtains a vertical synchronization VSYNC signal; the second processing unit sends a VSYNC signal to the first processing unit, and the VSYNC signal is used to instruct the first processing unit to render the layer included in the next frame of the image. Based on this design, when the low-power processing unit performs a layer synthesis operation, the VSYNC signal may be obtained by the low-power processing unit. The low-power processing unit can send the VSYNC signal to the high-power processing unit so that the high-power processing unit can perform a rendering operation.

[0014] In one possible design, the terminal device further includes a third processing unit; the method further includes: obtaining a synthesis request for the second layer; if the synthesis request for the second layer indicates that the terminal device uses the third processing unit to synthesize the second layer into an image, then in response to the synthesis request for the second layer, the terminal device uses the third processing unit to synthesize the second layer into an image. Based on this design, after the terminal device receives a request for the third processing unit to perform a synthesis operation, the third processing unit is used to perform the synthesis operation. In other words, the synthesis operation performed by the third processing unit is not transferred to the low-power processing unit for execution. The third processing unit may perform some layer synthesis operations that the low-power processing unit cannot perform, or layer synthesis operations that require higher performance. In this way, the execution of these layer synthesis operations can be facilitated.

[0015] In one possible design, the method further includes: if the display right belongs to the second processing unit, the display right is switched to the first processing unit. Based on this design, if there is a layer synthesis operation performed by the low-power processing unit in the previous frame of image, the display right belongs to the low-power processing unit. However, when the layer synthesis operation needs to be performed by the third processing unit in the next frame of image, the display right of the low-power processing unit needs to be switched to the AP so that the third processing unit can complete the layer synthesis and display operation.

[0016] In a possible design, switching the display right to the first processing unit includes: the first processing unit sends a second message to the second processing unit; in response to the second message, the second processing unit performs an operation of powering off the DSS; the second processing unit sends a third message to the third processing unit; in response to the third message, the first processing unit performs an operation of powering on the DSS. Based on this design, the low-power processing unit powers off the DSS, and the high-power processing unit powers on the DSS, so that the high-power processing unit can use its own DSS driver to drive the DSS.

[0017] In one possible design, the first processing unit includes an application processor AP, and / or the second processing unit includes a coprocessor CP, and / or the third processing unit includes a graphics processor GPU.

[0018] In a second aspect, a terminal device is provided, which has the function of implementing the method described in the first aspect and any one of the designs thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0019] In a third aspect, a terminal device is provided, comprising a processor and a memory, wherein the memory is coupled to the processor, the memory is used to store computer program code, the computer program code comprises computer instructions, and the processor reads the computer instructions from the memory so that the terminal device executes the method described in the first aspect and any one of the designs thereof.

[0020] In one possible design, the processor includes a first processor and a second processor, the first processor is a high-power processor, and the second processor is a low-power processor. The first processor is used to execute the method performed by the first processing unit as described in the first aspect and any design thereof, and the second processor is used to execute the method performed by the second processing unit as described in the first aspect and any design thereof. Exemplarily, the first processor may include an AP, and the second processor may include a CP, etc.

[0021] In a possible design, the processor may further include a third processor. The third processor is used to execute the method executed by the third processing unit as described in the first aspect and any design thereof.

[0022] In one possible design, the terminal device further includes a communication interface, which can be used for the terminal device to communicate with other devices (such as: terminal device). Exemplarily, the communication interface can be a transceiver, an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit, etc.

[0023] In one possible design, the terminal device may further include a display screen, which may be used for the terminal device to perform display operations, such as displaying a synthesized image.

[0024] In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising a computer program or instructions, which, when the computer program or instructions are run on a terminal device, enables the terminal device to execute the method described in the first aspect and any one of the designs thereof.

[0025] In a fifth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer can execute the method described in the first aspect and any one of the designs thereof.

[0026] According to a sixth aspect, a circuit system is provided, the circuit system comprising a processing circuit, wherein the processing circuit is configured to execute the method described in any one of the designs of the first aspect.

[0027] In the seventh aspect, a chip system is provided, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to at least one processor, and when the at least one processor executes the instructions, the at least one processor executes the method described in the first aspect and any one of the designs thereof.

[0028] It should be noted that the technical effects brought about by any design in the above-mentioned second to seventh aspects can refer to the technical effects brought about by the corresponding design in the first or second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of an interface provided in an embodiment of the present application;

[0030] Figure 2 A schematic diagram of an architecture for deploying a load in a terminal device provided in an embodiment of the present application;

[0031] Figure 3 A schematic diagram of a UI display load provided in an embodiment of the present application;

[0032] Figure 4 A flowchart of an existing layer synthesis method is shown;

[0033] Figure 5 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0034] Figure 6 A schematic diagram of the structure of another terminal device provided in an embodiment of the present application;

[0035] Figure 7A schematic diagram of the software structure of a terminal device provided in an embodiment of the present application;

[0036] Figure 8 A schematic diagram of a process of layer synthesis method provided in an embodiment of the present application;

[0037] Fig. 9 A schematic flow chart of a method for a terminal device to determine whether a current CP synthesis scene is provided in an embodiment of the present application;

[0038] Fig.10 A schematic diagram of a VSYNC signal transmission process provided in an embodiment of the present application;

[0039] Fig.11 A schematic diagram of a process of switching the display right of an AP to a CP provided in an embodiment of the present application;

[0040] Fig.12 A schematic diagram of a process of synchronizing data to be synthesized from an AP to a CP provided in an embodiment of the present application;

[0041] Fig.13 A schematic diagram of a process flow of another layer synthesis method provided in an embodiment of the present application;

[0042] Fig.14 A schematic diagram of a process flow of another layer synthesis method provided in an embodiment of the present application;

[0043] Fig.15 A schematic diagram of a benefit effect provided by an embodiment of the present application;

[0044] Fig.16 A schematic diagram of the structure of another terminal device provided in an embodiment of the present application;

[0045] Fig.17 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In the description of this application, unless otherwise specified, " / " indicates that the objects associated with each other are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship between associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.

[0047] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, a and b and c, where a, b, and c can be single or multiple.

[0048] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.

[0049] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0050] The features, structures or characteristics in this application may be combined in one or more embodiments in any suitable manner. In various embodiments of this application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0051] Some optional features in the embodiments of the present application may be implemented independently in some scenarios without relying on other features to solve corresponding technical problems and achieve corresponding effects. They may also be combined with other features in some scenarios as needed.

[0052] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In each embodiment of this application, if there is no special description and logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships. The implementation methods of this application do not constitute a limitation on the scope of protection of this application.

[0053] In addition, the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0054] To facilitate understanding, the technical terms and related concepts that may be involved in the embodiments of the present application are first introduced below.

[0055] 1. Heterogeneous architecture

[0056] Heterogeneous architecture is an architectural model that describes the hardware composition of a device. In some scenarios, heterogeneous architecture can refer to the inclusion of different computing units (or computing modules, or processing units, etc.) in a device. For example, computing units can include but are not limited to application processors (AP), coprocessors (CP), graphics processing units (GPU), etc. Different operating systems (OS) can be deployed in these computing units, for example: Embedded real-time operating systems such as Huawei LiteOS can be deployed on CP, and binary operating systems can be deployed on GPU.

[0057] In some embodiments, a device using a heterogeneous architecture requires different computing units to communicate or synchronize status, data, etc. when completing a certain function. This execution logic that requires cooperation between different computing units can be called heterogeneous collaboration.

[0058] 2. Synthesis

[0059] The process of merging different layers into one frame by sorting, cropping the display area, calculating the overlay area, etc. is called synthesis. Figure 1 As shown, the mobile phone displays interface 100, which is a frame of image. The layers in the interface 100 include status bar 101, navigation bar 102, wallpaper 103, etc. The process of merging the status bar 101, navigation bar 102, wallpaper 103, etc. into the interface 100 is called synthesis.

[0060] In some embodiments, the synthesis method may include offline synthesis and online synthesis. Offline synthesis refers to drawing all layers to be displayed on a final layer, and then sending the final layer to the display screen for display. Online synthesis refers to sending all layers to be synthesized directly to the display screen, which uses dedicated hardware to synthesize and display the layers to be displayed. Compared with the offline synthesis method, online synthesis can save device power consumption because it saves the step of reading the final layer.

[0061] In some embodiments, online synthesis may include but is not limited to layer synthesis using a GPU, a hardware composer (HWC), etc.

[0062] 3. Display Rights

[0063] The display subsystem (DSS) is a general term for display-related hardware, which is responsible for extracting pixel data from the memory and sending the pixel data to the display screen. The DSS can be controlled by the operating system in the computing unit. At the same time, the DSS can only be controlled by one computing unit. The right of this computing unit to control the DSS can be called the display right.

[0064] For example, a device adopts a heterogeneous architecture, and the computing units included in the heterogeneous architecture include AP and CP. In some embodiments, when the device is in a high-performance mode, the DSS can be controlled by the AP, and when the device is in a low-power mode, the DSS can be switched to CP control, and the process of switching the display right between the two computing units can be called display right switching.

[0065] In some scenarios, when the terminal device adopts a heterogeneous architecture, the heterogeneous architecture usually includes AP and CP. The terminal device system will deploy the relevant load of UI display to the AP. For example, Figure 2 A schematic diagram of an architecture for deploying a load in a terminal device provided in an embodiment of the present application is shown. It can be understood that in the embodiment of the present application, various operations performed by the terminal device that require consumption of power of the terminal device are referred to as loads.

[0066] like Figure 2 As shown, the terminal device includes an AP and a CP. Specifically, the AP may include an AP OS and an AP core, and the CP may include a CP OS and a CP core. It can be understood that "core" is also called a kernel, a core, etc., which refers to a chip on a computing unit that can process data, and computing commands, receiving commands, storing commands, processing data, etc. can be executed by the kernel of the computing unit.

[0067] For example, touch interaction loads, such as clicks and slides, and UI display loads are deployed on the AP. It is understandable that when the terminal device receives various operations such as clicks and slides, the image displayed by the terminal device may change. During this process, the terminal device will perform operations related to image display. In the embodiment of the present application, these operations related to image display are referred to as UI display loads.

[0068] For example, Figure 3 Some examples of UI display loads provided by embodiments of the present application are shown. For example, Figure 3 As shown, the UI display load includes UI thread, rendering thread, synthesis and display thread. Among them, the UI thread is mainly used to complete the drawing of each layer. Specifically, the UI thread can complete the drawing operation by processing UI events, animation, measurement, layout, drawing, etc. Among them, when a UI element, such as a view (control), is operated by the user in a specific way, the terminal device will generate an event corresponding to the UI element, referred to as a UI event. Animation can be used to achieve UI animation effects. Measurement and layout can be used to determine the size and position of each view (control) included in the layer that needs to be drawn, and drawing is used to complete the drawing of the view, etc.

[0069] The rendering thread is mainly used to complete the rendering of each layer. Specifically, the rendering thread can complete the rendering operation by synchronizing the vertical synchronization (VSYNC) signal, updating the rendering cache, etc. In some embodiments, the VSYNC signal can be used to trigger the drawing, rendering and synthesis process of the next frame of the image. Updating the rendering cache can be used to store the rendered layer in the cache. Optionally, the rendering thread can also be used to select the synthesis method of the layer. Exemplarily, the synthesis method of the layer can include but is not limited to using GPU, HWC, etc. to synthesize the layer.

[0070] The synthesis and display threads are mainly used to complete layer synthesis, image sending and display, etc. Layer synthesis can be used to synthesize one or more rendered layers into a frame of image, and the synthesized image can be stored in the cache. Image sending can be used to send the synthesized image to DSS. Optionally, DSS can process the image and send the processed image to the display. Image display can be used to display the image on the display.

[0071] Since the terminal device often needs to execute the UI display load, but as mentioned above, the terminal device deploys the UI display load on the AP with higher power consumption, which makes the terminal device have higher power consumption and poorer battery life.

[0072] Based on this, a solution is proposed in the related art, such as Figure 4 As shown, the solution includes the following steps:

[0073] S401: AP determines whether it is a specific scenario.

[0074] For example, specific scenarios include a scenario where a mobile phone is on standby and the screen is turned off, and a scenario where a watch turns on the screen when the wrist is raised after the screen is turned off.

[0075] If it is a specific scene, then execute steps S402 to S404. If it is not a specific scene, then execute steps S405 to S407 and step S404.

[0076] S402, CP processes the prefabricated layer.

[0077] The prefabricated layer refers to a pre-drawn and rendered layer. Specifically, the CP may calculate the display position of the prefabricated layer, determine the prefabricated layer to be displayed, and the like.

[0078] S403, CP sends the prefabricated layer to the display screen for display.

[0079] S404: The display screen displays an image.

[0080] S405, AP performs layer drawing.

[0081] S406: AP performs layer rendering.

[0082] S407, AP performs layer synthesis.

[0083] In the above solution, the layers for specific scenes need to be drawn in advance, but the scenes in which the terminal device displays images are diverse. It is difficult to draw the layers for various scenes in advance. Therefore, the above solution is only applicable to individual specific scenes and cannot effectively reduce the power consumption of the terminal device and improve the endurance of the terminal device.

[0084] Based on this, an embodiment of the present application provides a layer synthesis method, which is applied to a terminal device including a first processing unit and a second processing unit. The terminal device transfers the layer synthesis operation performed by the first processing unit to the second processing unit for execution. It can be understood that in the embodiment of the present application, the layer synthesis operation may refer to the operation of synthesizing one or more layers into a frame of image. The first processing unit may be a processing unit with high power consumption, such as AP, and the second processing unit may be a processing unit with low power consumption, such as CP. In this way, the terminal device transfers the layer synthesis operation performed by AP to CP for execution, that is, deploys the relevant load of UI display on AP to CP, thereby reducing the relevant load of UI display on AP. The power consumption of CP to perform layer synthesis operation is lower than that of AP, and after transferring the layer synthesis operation to CP for execution, the probability of AP sleep can be increased, thereby reducing the power consumption of the terminal device and improving the battery life of the terminal device.

[0085] The technical solution provided in the embodiment of the present application can be applied to the terminal device 100, or to a system including the terminal device 100.

[0086] For example, the terminal device 100 may be a mobile phone, a tablet computer, a handheld computer, a netbook, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, or a wearable device, wherein the wearable device includes but is not limited to a smart watch, a smart bracelet, a smart anklet, etc. The operating system installed on the terminal device 100 may include but is not limited to: Or other operating systems. This application does not limit the specific type of the terminal device 100 or the installed operating system.

[0087] For example, taking the terminal device 100 as a mobile phone, Figure 5 A schematic structural diagram of a mobile phone provided in an embodiment of the present application is shown.

[0088] like Figure 5As shown, the mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a subscriber identification module (SIM) card interface 195 and a DSS 196, etc.

[0089] The processor 110 may include a plurality of different processing units, for example, the processor 110 may include an AP, a CP, a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. The different processing units may be independent devices or may be integrated into one or more processors.

[0090] In some embodiments of the present application, the processor 110 may include one or more processing units with high power consumption, such as AP, and one or more processing units with low power consumption, such as CP. In some examples, if the power consumption of a processing unit is greater than or equal to a power consumption threshold, the processing unit is a processing unit with high power consumption. If the power consumption of a processing unit is less than the power consumption threshold, the processing unit is a processing unit with low power consumption. Optionally, the power consumption threshold can be set by the developer according to actual needs.

[0091] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0092] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0093] In some embodiments, processor 110 may include one or more interfaces.

[0094] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.

[0095] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.

[0096] The wireless communication function of the mobile phone can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.

[0097] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0098] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to mobile phones. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.

[0099] The wireless communication module 160 can provide wireless communication solutions for use on mobile phones, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0100] In some embodiments, the mobile phone's antenna 1 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone can communicate with the network and other devices through wireless communication technology.

[0101] The mobile phone implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information. In some embodiments of the present application, the GPU may also be used to perform layer synthesis operations.

[0102] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). In some embodiments, the mobile phone can include 1 or N display screens 194, where N is a positive integer greater than 1. In some embodiments of the present application, the display screen can be used to display an image synthesized from one or more layers.

[0103] The DSS 196 is used to extract pixel data from the buffer and send the pixel data to the display screen. In some embodiments of the present application, the DSS can be used to obtain an image synthesized by one or more layers from the buffer. The DSS can process the synthesized image, such as performing color conversion and image rotation on the image, and send the processed image to the display screen 194 for display.

[0104] The camera 193 is used to capture static images or videos. In some embodiments, the mobile phone may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0105] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.

[0106] The internal memory 121 may be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area.

[0107] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The mobile phone can use the audio module 170, such as music playback, recording, etc. The audio module 170 may include a speaker, a receiver, a microphone, an earphone interface, and an application processor to implement audio functions.

[0108] Optionally, the sensor module 180 may also include one or more of a touch sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0109] The buttons 190 include a power button, a volume button, etc. The buttons 190 may be mechanical buttons or touch buttons.

[0110] Motor 191 can generate vibration prompts.

[0111] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0112] The SIM card interface 195 is used to connect a SIM card.

[0113] For example, the above only uses a mobile phone as an example to illustrate the structure of the terminal device 100 in the embodiment of the present application, but does not constitute a limitation on the structure and form of the terminal device 100. The embodiment of the present application does not limit the structure and form of the terminal device 100. For example, Figure 6 Another exemplary structure of the terminal device 100 is shown. Figure 6 As shown, the terminal device 100 includes: a processor 601, a processor 602, a memory 603, and a display screen 604. The implementation of the processor 601, the processor 602, the memory 603, and the display screen 604 can be found in Figure 5 The implementation of the processor, memory, and display shown.

[0114] It is understandable that the structure shown in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include Figure 5 , Figure 6 More or fewer components are shown, or some components are combined, or some components are separated, or different component arrangements are arranged. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.

[0115] Exemplarily, the software architecture of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Exemplarily, taking the processing unit installed in the terminal device 100 including an AP and a CP as an example, Figure 7 A schematic diagram of the software architecture of a terminal device 100 provided in an embodiment of the present application is shown.

[0116] like Figure 7 As shown, the terminal device 100 includes an AP, a CP and a display module 708.

[0117] The AP includes a drawing module 701 , a rendering module 702 , a synthesis scene judgment module 703 , a collaborative display switching module 704 , a data collaborative processing module 705 , a synthesis module 706 , and a driving module 707 .

[0118] The CP includes a collaborative display switching module 709 , a data collaborative processing module 710 , a synthesis module 711 , and a driving module 712 .

[0119] For example, the drawing module 701 can be used to perform drawing operations. Figure 3 The UI thread shown in FIG. 700 completes the drawing of the layer. The rendering module 702 can be used to perform rendering operations. For example, the rendering module 702 can be used to perform rendering operations. Figure 3 The rendering thread shown in completes the rendering of the layer. The rendering module 702 can also be used to select a synthesis method for the layer, such as: including but not limited to using GPU, HWC, etc. to synthesize the layer. The synthesis scene judgment module 703 can be used to determine whether the current scene is a GPU synthesis scene or a CP synthesis scene according to the synthesis method of the layer selected by the rendering module 702. For example: if the GPU is selected to synthesize the layer, the synthesis scene judgment module 703 can determine that the current scene is a GPU synthesis scene. For another example: if the AP is selected to synthesize the layer, the synthesis scene judgment module 703 can determine that the current scene is a CP synthesis scene.

[0120] It can be understood that in the embodiment of the present application, the GPU synthesis scene may refer to a scene in which the GPU performs a layer synthesis operation, and the GPU can synthesize one or more layers into a frame of image. In this scene, the display right needs to belong to the AP. The CP synthesis scene may refer to a scene in which the CP performs a layer synthesis operation, and the CP can synthesize one or more layers into a frame of image. In this scene, the display right needs to belong to the CP.

[0121] Understandably, Figure 7 In the illustrated architecture, the synthetic scene determination module 703 is introduced as being located in the AP. The synthetic scene determination module 703 may also be located at other locations in the terminal device 100, and this application does not impose any limitation on this.

[0122] The collaborative display switching module 704 on the AP side can be used to interact with the collaborative display switching module 709 on the CP side to implement the switching of display rights, such as switching the display rights to the CP when the display rights belong to the AP.

[0123] The data collaborative processing module 705 on the AP side can be used to send the data to be synthesized, such as one or more layers rendered by the AP side, to the CP side. Correspondingly, the data collaborative processing module 710 on the CP side can receive the data to be synthesized from the AP.

[0124] The synthesis module 706 on the AP side and the synthesis module 711 on the CP side can be used to synthesize one or more layers that have been rendered into a frame of image. Exemplarily, the synthesis module 706 and the synthesis module 711 can use HWC to perform synthesis operations. In some embodiments, the synthesis module 706 and the synthesis module 711 can share one HWC, that is, the AP and the CP can share one HWC.

[0125] The driver module 707 on the AP side and the driver module 712 on the CP side can both be used to start the DSS, and the DSS can be used to process the synthesized image, such as: color conversion of the image, image rotation, etc. The DSS module can also send the processed image to the display module 708 for display. In some embodiments, the driver module 707 and the driver module 712 can share one DSS, that is, the AP and the CP can share one DSS.

[0126] The display module 708 may be configured to display one or more synthesized images.

[0127] Understandably, Figure 7 The software modules included in the terminal device 100 are only used as a possible division method. In actual applications, the terminal device 100 may include more or fewer modules, or there may be other module division methods, and this application does not limit this.

[0128] The technical solutions involved in the following embodiments can all be implemented in Figure 5 , Figure 6 , Figure 7 The invention is implemented in the device of the structure shown.

[0129] It is understandable that in the embodiment of the present application, the terminal device can perform some or all of the steps in the embodiment of the present application, and these steps or operations are only examples. The embodiment of the present application can also perform other operations or variations of various operations. In addition, the various steps can be performed in different orders presented in the embodiment of the present application, and it is possible that not all operations in the embodiment of the present application need to be performed.

[0130] The technical solutions involved in the following embodiments are all described with the first processing unit being the AP and the second processing unit being the CP.

[0131] For example, Figure 8 A schematic diagram of a process of a layer synthesis method provided in an embodiment of the present application is shown, and the method comprises the following steps:

[0132] S801. The terminal device determines whether the current scene is a CP synthesis scene.

[0133] If yes, execute step S802, if no, execute step S803.

[0134] In some embodiments, the layer synthesis method may include but is not limited to using a GPU for layer synthesis and / or using an AP for layer synthesis. The terminal device may determine whether the current scene is a CP synthesis scene based on the layer synthesis method.

[0135] As a possible implementation, Fig. 9 A schematic flow chart of a method provided by an embodiment of the present application for a terminal device to determine whether a current CP synthesis scene is in progress is shown. The method comprises the following steps:

[0136] S901. The terminal device determines whether to use a GPU to synthesize the layers according to the synthesis method of the layers.

[0137] If yes, execute step S902, if no, execute step S903.

[0138] Optionally, in step S901, the layer may be synthesized by Figure 3 Shown is the rendering thread selected.

[0139] S902: The terminal device determines that it is not a CP synthesis scenario.

[0140] In this step, after the terminal device determines that it is not a CP synthesis scene, the terminal device can use the GPU to synthesize one or more layers into a frame of image.

[0141] S903: The terminal device determines whether to use the AP to perform layer synthesis.

[0142] If yes, execute step S904, if no, end.

[0143] In some embodiments, if the layer synthesis method only includes two methods: using a GPU to perform layer synthesis and using an AP to perform layer synthesis, the terminal device may not execute step S903 and directly execute step S904.

[0144] S904: The terminal device determines that it is a CP synthesis scenario.

[0145] Understandably, Fig. 9 The method shown may also include more or fewer steps, and the execution order of some steps may also be changed. For example, the terminal device may directly execute step S903, if yes, execute step S904, if not, execute step S902, etc.

[0146] S802: The terminal device uses CP to perform layer synthesis operation.

[0147] In some embodiments, when the terminal device uses CP to perform a layer synthesis operation, the layer synthesis operation can be specifically completed using HWC.

[0148] Exemplarily, the CP may receive a VSYNC signal from the HWC and perform a layer synthesis operation according to the signal. Optionally, the VSYNC signal may be used to trigger the CP to perform a layer synthesis operation for the next frame of image.

[0149] Optionally, the CP may also synchronize (or send) the VSYNC signal to the AP, so that the AP can perform preparation operations for the next frame of image data according to the VSYNC signal, such as drawing and rendering the layers included in the next frame of image, etc. Optionally, the CP may synchronize the VSYNC signal to the AP during the execution of step S802, or may synchronize the VSYNC signal to the AP after the execution of step S802 is completed.

[0150] For example, Fig.10 FIG. 2 shows a schematic diagram of a VSYNC signal transmission process provided by an embodiment of the present application. Fig.10 As shown, the AP side and the CP side share a HWC, such as HWC 1009, which can generate a VSYNC signal.

[0151] When the CP performs the layer synthesis operation, the transmission process of the VSYNC signal is shown in path 1. The VSYNC signal is transmitted upward to the synthesis display driver 1008 on the CP side, and then passed through the synthesis service hardware abstract layer (HAL) 1007 to the VSYNC signal synchronization module 1005 on the CP side. The VSYNC signal synchronization module 1005 transmits the VSYNC signal to the display synchronization module 1006. Finally, the CP side sends the VSYNC signal to the display synchronization module 1002 on the AP side through the display synchronization module 1006. Correspondingly, the AP side receives the VSYNC signal from the CP through the display synchronization module 1002. Further, the display synchronization module 1002 can send the VSYNC signal to the VSYNC signal synchronization module 1001.

[0152] When the AP performs the layer synthesis operation, the transmission process of the VSYNC signal is shown in path 2. The VSYNC signal is transmitted upward to the synthesis display driver 1004 on the AP side, and then transmitted to the VSYNC signal synchronization module 1001 through the synthesis service HAL 1003.

[0153] The VSYNC signal synchronization module 1001 and the VSYNC signal synchronization module 1005 can be used to perform such as Figure 3In the rendering thread shown, the VSYNC signal is synchronized. Composition service HAL 1003 and composition service HAL 1007 can be used to perform layer composition operations. Composition display driver 1004 and composition display driver 1008 can be used to drive HWC 1009.

[0154] Optional, Fig.10 The display synchronization module 1006 shown can be used with Figure 7 The data coordination processing module 710 shown in the figure may be integrated with the data coordination processing module 710, or may be integrated with other modules, or may be an independent module. Figure 7 The data collaborative processing module 705 shown is integrated together, or integrated with other modules, or can also be an independent module.

[0155] S803: The terminal device uses a GPU to perform a layer synthesis operation.

[0156] Understandably, Figure 8 The method shown is based on the example that the layer synthesis method includes two methods, namely, using GPU to synthesize the layer and using AP to synthesize the layer. When the layer synthesis method includes using AP to synthesize the layer and using other methods to synthesize the layer, the above step S803 can also be specifically implemented as using the other method to perform the layer synthesis operation. When there are multiple other methods, the terminal device can select the method according to, for example, Figure 3 The layer synthesis mode selected by the rendering thread shown performs the layer synthesis operation in a corresponding manner.

[0157] Based on the above technical solution, when the terminal device determines that the method of using AP for layer synthesis is a CP synthesis scenario, CP is used to perform layer synthesis operations. In other words, the terminal device transfers the layer synthesis operation performed by AP to CP, that is, the relevant load of the UI display on AP (such as layer synthesis operation) is deployed on CP, reducing the relevant load of the UI display deployed on AP. The power consumption of CP performing layer synthesis operations is lower than that of AP, and after transferring the layer synthesis operation to CP for execution, the probability of AP sleep can be increased, thereby reducing the power consumption of the terminal device and improving the battery life of the terminal device.

[0158] In some embodiments, when the terminal device determines that the current scene is a CP synthesis scene, the display right may still belong to the AP. Figure 8 The method may further include step S804.

[0159] S804: The terminal device switches the display right of the AP to the CP.

[0160] It is understood that the present application does not limit the execution order of step S802 and step S804, which can be executed simultaneously or sequentially. When executed sequentially, the present application does not limit the sequential order.

[0161] For example, Fig.11 A schematic diagram of a process of switching the display right of an AP to a CP provided by an embodiment of the present application is shown. In some embodiments, since the CP and the AP share a DSS, but the CP and the AP have different DSS drivers, it is necessary to power on (or power on) and power off (or power off) the DSS so that the CP or the AP can drive the DSS through their respective DSS drivers, thereby enabling the CP or the AP to have the display right. When the display right belongs to the AP, the DSS on the AP side is in a powered-on state. In the process of switching the display right of the AP to the CP, as shown in FIG. Fig.11 As shown, the AP first executes the DSS power-off process, such as AP disconnecting the communication connection between its own DSS driver and DSS. Then, the AP notifies the CP to execute the DSS power-on process. Correspondingly, after receiving the notification from the AP, the CP executes the DSS power-on process, such as CP establishing a communication connection between its own DSS driver and DSS, and the display right belongs to the CP at this time. Thus, the process of switching the display right of the AP to the CP is completed.

[0162] In some embodiments, after the AP executes the DSS power-off process, the terminal device can lock the display screen to avoid a black screen.

[0163] Optionally, in the embodiment of the present application, the communication method adopted between the AP and the CP may include but is not limited to inter-process communication (IPC) and the like.

[0164] Based on this solution, the display right of the AP is switched to the CP, so that the CP can subsequently send the synthesized image to the display screen for display.

[0165] In some embodiments, one or more layers of a frame of image synthesized by the CP are rendered by the AP. For example, the AP may use a Figure 3 The rendering thread shown completes the rendering operation of the layers included in a frame of image. Figure 8 Before step S802 shown, Figure 8 The method shown may further include step S805.

[0166] S805: The terminal device synchronizes the data to be synthesized from the AP to the CP.

[0167] Exemplarily, the data to be synthesized may refer to one or more layers used to synthesize a frame of image.

[0168] For example, Fig.12 FIG. 2 shows a schematic diagram of a process of synchronizing the data to be synthesized from the AP to the CP provided by an embodiment of the present application. Fig.12 As shown, the AP prepares the data to be synthesized, such as performing operations such as drawing and rendering to generate the data to be synthesized. Then, the data to be synthesized is sent to the CP. Correspondingly, the CP receives the data to be synthesized from the AP.

[0169] It is understood that the present application does not limit the execution order of step S805 and step S804, which can be executed simultaneously or sequentially. When executed sequentially, the present application does not limit the sequential order.

[0170] As a specific example, Fig.13 A schematic diagram of another layer synthesis method provided in an embodiment of the present application is shown. Fig.13 As shown, the method comprises the following steps:

[0171] S1301: The AP determines whether the current scene is a CP synthesis scene.

[0172] If yes, then execute steps S1302 to S1307. If no, then execute step S1308.

[0173] For example, AP can Figure 7 The synthesis scene determination module 703 shown determines whether the current scene is a CP synthesis scene.

[0174] For the specific implementation of this step, please refer to Figure 8 The relevant implementation of step S801 is shown.

[0175] S1302: The AP executes the DSS power-off process.

[0176] S1303: AP notifies CP to execute the DSS power-on process. Correspondingly, CP receives a notification message for executing DSS power-on from AP.

[0177] In some embodiments, the CP may use thread A to receive the notification message.

[0178] S1304. The CP executes the DSS power-on process.

[0179] S1305: The AP sends the data to be synthesized to the CP. Correspondingly, the CP receives the data to be synthesized from the AP.

[0180] In some embodiments, after the AP executes step S1305, the composition thread of the AP enters a blocked state. It can be understood that the composition thread refers to a thread used by the AP to perform layer composition operations. After the composition thread of the AP enters a blocked state, the AP stops performing layer composition operations.

[0181] In some embodiments, the CP may use thread B to receive the data to be synthesized. It is understood that in this embodiment, the CP uses two different threads to receive the notification message described in step S1303 and the data to be synthesized described in step S1305, respectively. The CP may also use the same thread to receive the notification message and the data to be synthesized, such as the CP uses thread C to first receive the notification message described in step S1303, and after receiving the notification message, continue to use thread C to receive the data to be synthesized described in step S1305.

[0182] Optionally, the execution order of the above steps S1302, S1303, S1304, and S1305 may also be changed. For example: the AP may first execute step S1305, and then execute step S1302 and step S1303, or step S1302 and / or step S1303 may be executed synchronously with step S1305, etc. For another example: the CP may first execute step S1305, and then execute step S1303 and step S1304, or step S1303 and / or step S1304 may be executed synchronously with step S1305. In other words, this application does not limit the execution order of steps S1302, S1303, and S1305 by the AP, nor does it limit the execution order of steps S1303, S1304, and S1305 by the CP.

[0183] S1306. CP performs synthesis and display operations.

[0184] The CP may synthesize the data to be synthesized into a frame of image and then send the image to the DSS. Correspondingly, the DSS may process the image and then send it to the display screen for display.

[0185] In some embodiments, Fig.13 The method shown may further include step S1307.

[0186] S1307: The CP sends a state synchronization message to the AP. Correspondingly, the AP receives the state synchronization message from the CP.

[0187] Among them, the status synchronization message can be used to instruct the AP to prepare (or send) the data to be synthesized for the next frame of image, etc., or to indicate that the CP has completed the synthesis and display operation of the xth frame of image, etc., where x is an integer greater than or equal to 0.

[0188] In some embodiments, when the CP uses different threads to respectively receive the notification message described in step S1303 and the data to be synthesized described in step S1305, the CP may execute step S1307 after both threads are finished.

[0189] In some embodiments, after the CP executes step S1307, or before executing step S1307, the CP may also send a VSYNC signal to the AP, or step S1307 and the operation of sending the VSYNC signal may also be performed synchronously. The specific transmission process of the VSYNC signal may refer to Fig.10 The related implementation described.

[0190] In some embodiments, after the AP receives the state synchronization message, the synthesis thread described in step 1305 is unblocked and the synthesis thread execution ends.

[0191] S1308, AP performs the process of synthesizing and displaying the original layers.

[0192] For example, the process of raw synthesis and display may refer to the process of using a GPU to perform layer synthesis and display.

[0193] In some embodiments, there may be a scenario where the display right of the CP needs to be switched to the AP. For example, in the process of displaying multiple frames of images, if the previous frame of the image is a layer synthesis operation performed by the CP, the display right belongs to the CP. However, when the next frame of the image needs to be synthesized by the GPU, the display right of the CP needs to be switched to the AP so that the GPU can complete the layer synthesis and display operation.

[0194] As a specific example, Fig.14 FIG. 2 is a flow chart of another layer synthesis method provided by an embodiment of the present application. Fig.14 As shown, the method comprises the following steps:

[0195] S1401: The AP determines whether the current scene is a CP synthesis scene.

[0196] If not, then execute step S1402 to step S1406. If yes, then execute step S1407.

[0197] In some embodiments, this step may also be implemented as follows: the AP determines whether the current scene is a GPU synthesis scene, and if so, executes steps S1402 to S1406, and if not, executes step S1407.

[0198] In some embodiments, before executing step S1401, the AP Fig.13 In step S1307 shown, the AP has learned which frame of image data to be synthesized needs to be accurately (or sent) at present.

[0199] In other embodiments, if Fig.13The method shown does not include step S1307. In this embodiment, the CP may send a state synchronization message to the AP. For an introduction to the state synchronization message, please refer to the above description. In this embodiment, the present application does not limit the timing of the CP sending the state synchronization message to the AP. For example, it may be sent before step S1401 or after step S1401. Optionally, the CP may also instruct the AP not to send the data to be synthesized to the CP.

[0200] S1402: The AP notifies the CP to execute the DSS power-off process. Correspondingly, the CP receives a notification message for executing the DSS power-off from the AP.

[0201] In some embodiments, after the AP executes step S1402, the synthesis thread of the AP enters a blocked state. For an introduction to the synthesis thread, refer to the corresponding introduction to step S1305.

[0202] S1403: The CP executes the DSS power-off process.

[0203] Optionally, before the CP executes step S1403, if the CP has a VSYNC signal, the CP may also first send the VSYNC signal to the AP so that the AP can perform subsequent layer synthesis and display operations. Of course, the CP may also send the VSYNC signal at other times, and the present application does not limit the timing of sending the VSYNC signal.

[0204] Optionally, after executing step S1403, the CP may also notify the AP to execute a DSS power-on process, or notify the AP that the DSS has been successfully powered off.

[0205] S1404: The CP sends an unblocking message to the AP. Correspondingly, the AP receives the unblocking message from the CP.

[0206] The unblocking message may be used to instruct the AP to unblock the synthesis thread described in step S1402.

[0207] S1405. The AP executes the DSS power-on process.

[0208] S1406. AP performs layer synthesis and display operation.

[0209] For example, the AP can cooperate with the GPU to complete the operation of layer synthesis and display. For example, the AP can send various instructions and data to be synthesized to the GPU. Accordingly, the GPU can synthesize the data to be synthesized into a frame of image. Then the AP can send the image to the DSS. Accordingly, the DSS can send the image to the display screen for display after processing it.

[0210] S1407: The AP sends the data to be synthesized to the CP. Correspondingly, the CP receives the data to be synthesized.

[0211] The data to be synthesized can be used by the CP to perform layer synthesis and display operations. Fig.13 Step 1305 and subsequent related steps shown.

[0212] Of course, in other embodiments, the above display right switching operation may not be performed (such as switching the display right of the AP to the CP, or switching the display right of the CP to the AP, etc.). For example, when the display right belongs to the AP and the CP performs the synthesis operation, the CP can send the synthesized image to the AP, and the AP completes the display sending process. For another example: when the display right belongs to the CP and the GPU performs the synthesis operation, the GPU can also send the synthesized image to the CP, and the CP completes the display sending process, etc.

[0213] For example, Fig.15 A schematic diagram showing a benefit effect provided by an embodiment of the present application is shown. It can be understood that Fig.15 The scenario in which the terminal device displays 30 frames of images is taken as an example. In this scenario, the technical solution provided by the embodiment of the present application can reduce the load of the AP by about 15% to 20%, and reduce the power consumption of the terminal device by about 7 mA.

[0214] like Fig.15 As shown in (1), (a) is the load benefit of the AP when the AP performs the layer synthesis operation, such as 0%. (b) is the load benefit of the AP corresponding to the technical solution provided in the embodiment of the present application, such as reducing the load of the AP by 20.91%.

[0215] like Fig.15 As shown in (2), (c) is the current consumption of the terminal device when the AP performs the layer synthesis operation, such as the current consumption of the terminal device from 486 seconds to 1802 seconds is 272.37 mA. (d) is the current consumption of the terminal device corresponding to the technical solution provided in the embodiment of the present application, such as the current consumption of the terminal device from 558 seconds to 1800 seconds is 264.47 mA, which is about 7 mA lower.

[0216] For the scenario where the terminal device displays 60 frames of images, the technical solution provided by the embodiment of the present application can reduce the load of the AP by about 23% to 28%, and reduce the power consumption of the terminal device by about 11 mA.

[0217] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. It is understandable that in order to realize the above functions, the terminal device includes a hardware structure and / or software module corresponding to each function. In combination with the units and algorithm steps of each example described in the embodiment disclosed in this application, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in hardware or computer-driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present application.

[0218] The present application is an embodiment that can divide the functional modules of the terminal device according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0219] like Fig.16 1600 is a schematic diagram of the structure of another terminal device provided in an embodiment of the present application. The terminal device 1600 can be used to implement the methods described in the above method embodiments. Exemplarily, the terminal device 1600 may specifically include: a processing module 1601 and an acquisition module 1602.

[0220] The processing module 1601 is used to execute the support terminal device 1600 to execute Figures 1 to 15 The processing function of any one of the items.

[0221] The acquisition module 1602 is used to execute the support terminal device 1600 to execute Figures 1 to 15 The acquisition function of any one of the items.

[0222] Optional, Fig.16 The terminal device 1600 shown may also include a display module 1603. The display module 1603 may be used to display the synthesized image, etc. And / or, the display module 1603 may also be used to support the terminal device 1600 to perform other display operations performed by the terminal device in the embodiment of the present application.

[0223] Optional, Fig.16 The terminal device 1600 shown may also include a communication module ( Fig.16 (not shown), the communication module is used to support the terminal device 1600 to execute the steps of communication between the terminal device and other devices in the embodiment of the present application.

[0224] Optional, Fig.16 The terminal device 1600 shown may also include a storage module ( Fig.16 (not shown in the figure), the storage module stores a program or instruction. When the processing module 1601 executes the program or instruction, Fig.16 The terminal device 1600 shown can execute the method shown in the above method embodiment.

[0225] Fig.16 The technical effects of the terminal device 1600 shown can refer to the technical effects of the method described in the above method embodiment, and will not be repeated here. Fig.16 The processing module 1601 involved in the terminal device 1600 shown can be implemented by a processor or a processor-related circuit component, which can be a processor or a processing module. The communication module can be implemented by a transceiver or a transceiver-related circuit component, which can be a transceiver or a transceiver module. The display module 1603 can be implemented by display screen-related components.

[0226] The present application also provides a chip system, such as Fig.17 As shown, the chip system includes at least one processor 1701 and at least one interface circuit 1702. The processor 1701 and the interface circuit 1702 can be interconnected via lines. For example, the interface circuit 1702 can be used to receive signals from other devices. For another example, the interface circuit 1702 can be used to send signals to other devices (such as processor 1701). Exemplarily, the interface circuit 1702 can read instructions stored in the memory and send the instructions to the processor 1701. When the instructions are executed by the processor 1701, the terminal device can execute the various steps performed by the terminal device in the above embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.

[0227] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0228] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be separately provided with the processor, which is not limited in the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be provided on different chips. The present application does not specifically limit the type of memory and the arrangement of the memory and the processor.

[0229] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0230] It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0231] An embodiment of the present application also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on a terminal device, the terminal device executes the method described in the above method embodiment.

[0232] An embodiment of the present application provides a computer program product, which includes: a computer program or instructions, when the computer program or instructions are executed on a computer, the computer executes the method described in the above method embodiment.

[0233] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the device executes the methods in the above-mentioned method embodiments.

[0234] Among them, the terminal device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0235] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0236] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The various embodiments can be combined with each other or referenced to each other without conflict. The device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0237] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0238] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0239] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0240] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A layer synthesis method, characterized in that: Applied to a terminal device including a first processing unit and a second processing unit, the method includes: Obtaining a composition request for a first layer, where the first layer is a layer rendered by the first processing unit; In response to a synthesis request of the first layer, synthesizing the first layer into an image using the second processing unit; The first processing unit is a high power consumption processing unit, and the second processing unit is a low power consumption processing unit.

2. The method according to claim 1, characterized in that: The synthesis request of the first layer instructs the terminal device to use the first processing unit to synthesize the first layer into an image.

3. The method according to claim 1 or 2, characterized in that: Before synthesizing the first layer into an image using the second processing unit, the method further includes: The second processing unit receives the first layer from the first processing unit.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: If the display right belongs to the first processing unit, the display right is switched to the second processing unit, and the display right is the right to control the display subsystem DSS.

5. The method according to claim 4, characterized in that The switching the display right to the second processing unit includes: The first processing unit performs an operation of powering off the DSS; The first processing unit sends a first message to the second processing unit; In response to the first message, the second processing unit performs an operation of powering on the DSS.

6. The method according to any one of claims 1 to 5, characterized in that: After synthesizing the first layer into an image using the second processing unit, the method further includes: The second processing unit sends a status synchronization message to the first processing unit, where the status synchronization message is used to indicate that the second processing unit has synthesized the first layer into an image.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The second processing unit obtains a vertical synchronization VSYNC signal; The second processing unit sends the VSYNC signal to the first processing unit, where the VSYNC signal is used to instruct the first processing unit to render a layer included in a next frame of image.

8. The method according to any one of claims 4 to 7, characterized in that: The terminal device further includes a third processing unit; and the method further includes: Get the composition request of the second layer; If the synthesis request of the second layer indicates that the terminal device uses the third processing unit to synthesize the second layer into an image, then in response to the synthesis request of the second layer, the terminal device uses the third processing unit to synthesize the second layer into an image.

9. The method according to claim 8, characterized in that The method further comprises: If the display right belongs to the second processing unit, the display right is switched to the first processing unit.

10. The method according to claim 9, characterized in that The step of switching the display right to the first processing unit includes: The first processing unit sends a second message to the second processing unit; In response to the second message, the second processing unit performs an operation of powering off the DSS; The second processing unit sends a third message to the third processing unit; In response to the third message, the first processing unit performs an operation of powering on the DSS.

11. The method according to any one of claims 8 to 10, characterized in that: The first processing unit includes an application processor AP, and / or the second processing unit includes a coprocessor CP, and / or the third processing unit includes a graphics processor GPU.

12. A terminal device, characterized in that: The terminal device comprises a processor and a memory, wherein the memory is coupled to the processor, the memory is used to store computer program code, the computer program code comprises computer instructions, and the processor reads the computer instructions from the memory so that the terminal device executes the method as described in any one of claims 1 to 11.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and when the computer program is executed on a terminal device, the terminal device is caused to execute the method according to any one of claims 1 to 11.

Citation Information

Cited By

  • Layer composition method and terminal device

    EP4513301A1

  • Layer composition method and terminal device

    WO2024221893A1