Display method and related device

By dividing the display screen into static and dynamic parts and combining them for display, the problems of screen stuttering and high power consumption in high-resolution displays are solved, achieving smooth and clear high-resolution displays and improving the user experience.

CN115373777BActive Publication Date: 2026-11-24HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110742507.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-05-19
Filing Date
2021-06-30
Publication Date
2026-11-24
Estimated Expiration
2041-06-30

AI Technical Summary

Technical Problem

High-resolution displays suffer from issues such as screen stuttering, blurred image details, and high power consumption, which negatively impact the user experience.

Method used

The display screen is divided into a static background image and a dynamic user interface image. The terminal device stores the high-resolution background image, only draws the low-resolution dynamic interface elements, and then combines them with the high-resolution background image for display. This reduces the layer drawing size to reduce hardware load and power consumption.

Benefits of technology

It achieves smooth display of high-resolution interfaces, reduces the performance requirements of processors and memory, reduces power consumption for real-time interface display, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115373777B_ABST
    Figure CN115373777B_ABST
Patent Text Reader

Abstract

The application discloses a display method and related device. In the display method, in response to a first instruction, a first user interface image of a first display picture corresponding to a first resolution is drawn, and a first under drawing of the first display picture of a second resolution is obtained. The first instruction is used to instruct a terminal device to draw the first display picture of the second resolution. The first user interface image includes dynamic interface elements in the first display picture, and the first under drawing includes static interface elements in the first display picture. The terminal device stores an under drawing of at least one display picture that has been drawn. The second resolution is greater than the first resolution. Based on the first user interface image of the first resolution and the first under drawing of the second resolution, the first display picture of the second resolution is synthesized. The first display picture is displayed through a display screen. The application can realize smooth and clear high-resolution display, reduce power consumption of high-resolution display, and effectively improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic technology, and in particular to display methods and related devices. Background Technology

[0002] With the popularization and development of smart terminal devices, the required display resolutions for these devices are increasing, gradually moving towards 2K, 3K, 4K, and 8K resolutions. The higher the display resolution of a smart terminal device, the more detailed the image quality, and the more realistic the visual effects in applications such as videos and games.

[0003] Currently, high-resolution interface displays suffer from issues such as screen stuttering, blurred image details, and high power consumption. Summary of the Invention

[0004] This application provides a display method and related apparatus, which realizes smooth and clear high-resolution display, reduces the power consumption of high-resolution display, and effectively improves user experience.

[0005] In a first aspect, this application provides a display method applied to a terminal device, the terminal device including a display screen, comprising: responding to a first instruction to draw a first user interface image of a first resolution corresponding to a first display screen, and acquiring a first base map of a second resolution of the first display screen; wherein the first instruction is used to instruct the terminal device to draw the first display screen of the second resolution, the first user interface image includes dynamic interface elements in the first display screen, the first base map includes static interface elements in the first display screen, the terminal device stores base maps of at least one drawn display screen, and the second resolution is greater than the first resolution; synthesizing the first display screen of the second resolution based on the first user interface image of the first resolution and the first base map of the second resolution; and displaying the first display screen through the display screen.

[0006] Implementing the embodiments of this application, the display screen is divided into a static base map and a dynamic user interface image. The base map includes static interface elements in the display screen, and the dynamic user interface image only contains dynamic interface elements from all user interfaces in the display screen. The terminal device stores a pre-drawn high-resolution base map. In response to a first instruction, the terminal device draws only a low-resolution user interface image containing dynamic interface elements, and then sends the composite image of the low-resolution user interface image and the high-resolution base map to the display screen for display. Implementing the embodiments of this application enables high-resolution interface display, effectively improving the user experience. Furthermore, it significantly reduces the load and performance requirements on hardware such as the processor and / or memory, effectively reducing the power consumption of real-time interface display.

[0007] In one implementation, the first display screen includes at least one user interface, and drawing the first user interface image corresponding to the first display screen at a first resolution includes: drawing a first layer corresponding to the dynamic interface elements of the first user interface, wherein the first user interface is any one of the at least one user interface, and the resolution of the first layer is less than or equal to the first resolution; and combining the layers corresponding to the dynamic interface elements of each user interface in the first display screen into a first user interface image at the first resolution.

[0008] In one implementation, the first layer corresponding to the dynamic interface elements of the first user interface includes: based on the interface layout of the first user interface, determining the size of the first layer in the first user interface image of the first resolution as a first size, the position of the first layer as a first position, the position of the first dynamic interface element in the first layer of the first size as a second position, and the size of the first dynamic interface element as a second size, wherein the first dynamic interface element is any dynamic interface element of the first user interface in the first layer; based on the second position and the second size of the first dynamic interface element, drawing the first dynamic interface element on the canvas of the first size, thereby generating the first layer of the first size corresponding to the dynamic interface elements of the first user interface.

[0009] In one implementation, the above-mentioned compositing of the layers corresponding to the dynamic interface elements of each user interface in the first display screen into a first user interface image of a first resolution includes: compositing the layers corresponding to the dynamic interface elements of each user interface into a first user interface image of a first resolution based on the first position and first size of the first layer in the first user interface image of the first resolution.

[0010] In one implementation, the above-mentioned synthesis of a first display screen with a second resolution based on a first user interface image with a first resolution and a first base image with a second resolution includes: enlarging the first user interface image with the first resolution to a first user interface image with a second resolution; and synthesizing the first user interface image with the second resolution and the first base image with the second resolution into a first display screen with a second resolution.

[0011] In one implementation, the first layer corresponding to the dynamic interface element of the first user interface is drawn as follows: based on the interface layout of the first user interface, the position of the first dynamic interface element in the first layer of the first user interface image at the second resolution is determined as the third position and the size of the first dynamic interface element is determined as the third size; based on the third size of the first dynamic interface element, the first dynamic interface element is drawn on a canvas of a fourth size to generate the first layer, wherein there is no overlap between the dynamic interface elements in the first layer, and the position of the first dynamic interface element in the first layer is the fourth position.

[0012] In one implementation, the dynamic interface elements of the first user interface in the first layer are arranged sequentially in a first preset order.

[0013] In one implementation, the above-mentioned compositing of the layers corresponding to the dynamic interface elements of each user interface in the first display screen into a first user interface image of a first resolution includes: determining the position of the first dynamic interface element in the first user interface image of the first resolution as a fifth position based on the third size and fourth position of the first dynamic interface element in the first layer; and compositing the first user interface image of the first resolution based on the third size and fifth position of the first dynamic interface element in the first layer.

[0014] In one implementation, dynamic interface elements of multiple layers in a first user interface image are arranged sequentially in a second preset order in the first user interface image.

[0015] In one implementation, the above-mentioned synthesis of a first user interface image with a first resolution based on the third size and fifth position of the first dynamic interface element in the first layer in the first user interface image includes: obtaining image data of a first region where the first dynamic interface element is located in the first layer, wherein the size of the first region is the third size and the position of the first region is the fourth position; and determining image data of a second region where the first dynamic interface element is located in the first user interface image, wherein the image data of the first region is the first region, wherein the size of the second region is the third size and the position of the second region is the fifth position.

[0016] In one implementation, the above-mentioned synthesis of a first display screen with a second resolution based on a first user interface image with a first resolution and a first base image with a second resolution includes: acquiring image data of a second region in the first user interface image where a first dynamic interface element is located, wherein the size of the second region is a third dimension and the position of the second region is a fifth position; acquiring image data of a third region in the first base image, wherein the size of the third region is a third dimension and the position of the third region is a third position of the first dynamic interface element; and synthesizing the image data of the second region and the image data of the third region into image data of the third region of the first display screen to generate the first display screen; wherein the size of the third region is a third dimension and the position of the third region is a third position.

[0017] In one implementation, when the terminal device runs the first display screen, the interface elements whose displayed content is immutable are static interface elements, and the interface elements whose displayed content is mutable are dynamic interface elements; or, when the terminal device runs the first display screen, the interface elements whose displayed content has a change probability lower than a preset value are static interface elements, and the interface elements whose displayed content has a change probability greater than or equal to the preset value are dynamic interface elements.

[0018] In one implementation, the above-mentioned drawing the first user interface image at a first resolution corresponding to the first display screen and obtaining the first base image at a second resolution of the first display screen includes: drawing the first user interface image at a first resolution corresponding to the first display screen at a first frame rate, and obtaining the first base image at a second resolution of the first display screen at a second frame rate; the first frame rate is greater than the second frame rate; the above-mentioned synthesizing the first display screen at a second resolution includes: synthesizing the first display screen at a second resolution at the first frame rate.

[0019] In one implementation, the fourth dimension is smaller than the first dimension, which is the size of the first layer in the first user interface image at the first resolution.

[0020] Compared to traditional layer drawing, the real-time implementation of this application further reduces the performance requirements and power consumption for drawing user interface images by reducing the size of the drawn layers.

[0021] In one implementation, the fourth size is larger than the sum of the sizes of all dynamic interface elements of the first user interface in the first user interface image at the second resolution.

[0022] In one implementation, the fourth dimension is determined by the terminal device based on the sum of the aforementioned dimensions.

[0023] In one implementation, the first dynamic interface element is a single dynamic interface element or a composite dynamic interface element composed of multiple dynamic interface elements.

[0024] In real-time embodiments of this application, drawing and compositing can be performed at the granularity of composite dynamic interface elements. This allows for a larger unit granularity in drawing and compositing, thereby improving the efficiency of drawing and compositing the displayed image.

[0025] Secondly, this application provides a terminal device including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, including computer instructions. When the one or more processors execute the computer instructions, the terminal device performs a display method according to any possible implementation of any of the above aspects.

[0026] Thirdly, embodiments of this application provide a computer storage medium including computer instructions, which, when executed on a terminal device, cause the terminal device to perform the display method in any of the possible implementations of any of the above aspects.

[0027] Fourthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to execute the display method in any of the possible implementations of any of the above aspects. Attached Figure Description

[0028] Figures 1A to 1C A user interface diagram illustrating an application scenario provided in this application embodiment;

[0029] Figure 2A This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application;

[0030] Figure 2B A schematic diagram of base map storage provided in an embodiment of this application;

[0031] Figure 3 A schematic diagram of a software system architecture provided for an embodiment of this application;

[0032] Figure 4 This is a schematic diagram illustrating the internal implementation of a display method provided in an embodiment of this application;

[0033] Figure 5A This is a schematic diagram illustrating the internal implementation of another display method provided in an embodiment of this application;

[0034] Figure 5B A flowchart illustrating another display method provided in an embodiment of this application;

[0035] Figure 6A A schematic diagram of the layers corresponding to the dynamic part of a user interface provided in an embodiment of this application;

[0036] Figure 6B A schematic diagram of the layers corresponding to the dynamic part of another user interface provided in an embodiment of this application;

[0037] Figure 6C An enlarged schematic diagram of a layer provided in an embodiment of this application;

[0038] Figure 6D This is a schematic diagram of the composite of a layer and a base map provided in an embodiment of this application;

[0039] Figure 7A This is a schematic diagram illustrating the internal implementation of another display method provided in an embodiment of this application;

[0040] Figure 7B A flowchart illustrating another display method provided in an embodiment of this application;

[0041] Figure 8A A schematic diagram of the layers corresponding to the dynamic part of another user interface provided in an embodiment of this application;

[0042] Figure 8B A schematic diagram of the layers corresponding to the dynamic part of another user interface provided in an embodiment of this application;

[0043] Figure 8C A schematic diagram illustrating the composition of another layer and base map provided in an embodiment of this application;

[0044] Figure 9A A schematic diagram of a composite dynamic interface element provided in an embodiment of this application;

[0045] Figure 9B A schematic diagram of the layers corresponding to the dynamic part of another user interface provided in an embodiment of this application;

[0046] Figure 9C A schematic diagram of the layers corresponding to the dynamic part of another user interface provided in an embodiment of this application;

[0047] Figure 9D This is a schematic diagram of another composite dynamic interface element provided in an embodiment of this application. Detailed Implementation

[0048] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0049] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0050] First, the technical concepts involved in the embodiments of this application will be introduced.

[0051] Display resolution: refers to the physical resolution of the display screen itself, usually expressed in the form of "horizontal pixels x vertical pixels" on the display panel. For example, a resolution of 800×600 means that each row can display 800 pixels horizontally and each column can display 600 pixels vertically on the display screen.

[0052] Image resolution refers to the amount of information stored in an image. There are several methods for measuring image resolution. In method 1, image resolution is measured by the number of pixels in the image, expressed as "horizontal pixels x vertical pixels". In method 2, image resolution is measured by pixels per inch (PPI) or pixels per centimeter (PPC). This application embodiment uses method 1 as an example for explanation. It can be understood that in method 1, the image resolution can also correspond to the image size, i.e., the horizontal pixel count is the width of the image, and the vertical pixel count is the height of the image.

[0053] It should be noted that the nK resolutions, such as 2K, 3K, 4K, and 8K resolutions, mentioned in this application refer to resolutions where the number of pixels per row in the horizontal direction is approximately n times 1024, or the total number of pixels is close to the preset number of pixels in an nK resolution image. For example, a resolution with a total number of pixels close to the 8,847,360 pixels of a 4K image can also be called a 4K resolution. Therefore, nK resolutions can have various specifications. For example, existing 4K resolutions include 4096×2160, 3656*2664, and 3840*2160. In subsequent embodiments, the 4K resolution used is 4096×2560, and the 2K resolution is 2560x1440. This application does not impose any limitations on these specifications.

[0054] A user interface (UI) is the medium through which an application or operating system interacts and exchanges information with a user. It converts the internal form of information into a form that the user can understand. The user interface is written in specific computer languages ​​such as Java or Extensible Markup Language (XML). This source code is parsed and rendered on electronic devices, ultimately presenting content that the user can recognize.

[0055] A control is a basic interface element of a user interface. A control can encapsulate data and methods, and it can have its own properties and methods. For example, control types can include, but are not limited to: user interface controls (used to develop and build user interfaces), chart controls (used to develop charts, enabling data visualization, etc.), report controls (used to develop reports, enabling functions such as browsing, designing, editing, and printing), table controls (used to develop tables (cells), enabling data processing and manipulation within a grid), and composite controls composed of multiple controls.

[0056] In this embodiment of the application, the controls may include, but are not limited to, visible interface elements such as windows, scrollbars, table views, buttons, menu bars, text boxes, navigation bars, toolbars, images, static text, and widgets.

[0057] Optionally, in response to user input applied to a control, the terminal device can execute the response event corresponding to that control. For example, if the main interface of the terminal device displays an icon 1 for a video application, in response to user input applied to icon 1, the terminal device can switch from the current user interface to the user interface of the video application.

[0058] Application window: An application window can be an application window in the Android system, an application window in the iOS system, or an application window in other operating systems; no specific limitation is made here. In this embodiment, the application window can be simply referred to as a window. An application includes multiple application windows, and one application window corresponds to one or more user interfaces.

[0059] Layers: Typically, the terminal device 100 displays three main types of layers: the status bar, the navigation bar, and the user interface corresponding to the application window. In this embodiment, the status bar and navigation bar can each be used as a user interface for a desktop application. The terminal device 100 can draw and render at least one layer corresponding to the application window running in the foreground, and then composite the at least one layer and display it on the screen.

[0060] Layer size: refers to the size of the area occupied by the layer when it is displayed on the screen. It is usually characterized by two parameters: the width (such as the number of horizontal pixels) and the height (such as the number of vertical pixels).

[0061] Layer position: This refers to the layer's display location on the screen, typically represented by the coordinates of its top-left or bottom-left corner. These coordinates are usually pixel coordinates; for example, the top-left corner of the layer might be (50, 100). In essence, the layer's display area on the screen can be determined based on its size and position.

[0062] Layer transparency: This refers to the degree of transparency of a layer, affecting the visual effect of the layer overlapping with other layers. It is usually represented by the parameter Alpha. In one implementation, the Alpha value ranges from 0 to 100%. When the Alpha value is 0, the layer is completely transparent (i.e., visually invisible), while when the Alpha value is 100%, the layer is opaque.

[0063] Layer order: The order of layers is usually represented by the Z-order. The Z-axis is a reference axis perpendicular to the plane of the display screen. The display order of different layers is determined by their coordinates on the Z-axis; this order is called the Z-order. In one implementation, the smaller the Z-order of a layer, the higher it is displayed. In applications with multiple windows displayed simultaneously, if the Z-order of the layer corresponding to window 1 is smaller than that of the layer corresponding to window 2, when the display areas of window 1 and window 2 overlap, the layer of window 1 will be on top of the layer of window 2. If the layer of window 1 is opaque, it will obscure the layer of window 2. In another implementation, the larger the Z-order of a layer, the higher it is displayed.

[0064] In this embodiment, the size, position, and transparency of user interface elements can be referred to the relevant descriptions of the size, position, and transparency of layers, which will not be repeated here.

[0065] Frame rate: The number of frames that can be rendered per second, depending on the rendering capability of the terminal device 100 hardware. Screen refresh rate refers to the number of times the display screen refreshes its display per second. When the frame rate of the terminal device 100 exceeds the screen refresh rate, it may cause image abnormalities. Vertical synchronization technology can ensure that the actual frame rate does not exceed the screen refresh rate. Specifically, after the vertical synchronization (VSYNC) signal arrives, the CPU and / or GPU draw, composite, and render the content displayed in the user interface, and submit the rendering results to the frame buffer. When the next VSYNC signal arrives, the terminal device 100 reads the data in the frame buffer line by line according to the VSYNC signal and passes it to the display screen for display.

[0066] The following is through Figure 1A and Figure 1B The application scenarios of the display method provided in this application are illustrated by example.

[0067] For example, Figure 1A and Figure 1B The terminal device 100 shown has a 4K resolution display screen.

[0068] like Figure 1A The image shown is an exemplary display screen 11 provided in an embodiment of this application. The display screen 11 may include a status bar 101 and a user interface 1 for a desktop application. The user interface 1 includes a background image 102, a wired input source icon 103, a screen mirroring icon 104, and a settings icon 105. Wherein:

[0069] The status bar 101 may include: screen mirroring device text 101A, screen mirroring device name 101B, and one or more signal strength indicators 101C for wireless fidelity (Wi-Fi) signals.

[0070] The wired input source icon 103 can receive input operations (such as touch operations or selection commands sent via remote control), and in response to the detected input operation, the terminal device 100 can display a selection control for multiple wired input sources.

[0071] The screen mirroring icon 104 can receive input operations (such as touch operations or selection commands sent via remote control). In response to the detected input operation, the electronic device 100 can display a tutorial on the wireless screen mirroring function.

[0072] The settings icon 105 can receive input operations (such as touch operations or selection commands sent via remote control), and in response to the detected input operation, the electronic device 100 can display the screen projection settings interface.

[0073] For example, when terminal device 100 detects an input operation applied to the display area of ​​wired input source icon 103, in response to the input operation, terminal device 100 displays the following on display screen 11: Figure 1B The wired input source selection indicator 107 and the input source switching interface 12 shown may include the text 108 for switching input sources, the input source 1 icon 109, the input source 2 icon 110, the input source 2 selection indicator 111, the input source 3 icon 112, and the background 113.

[0074] The selection indicator box 111 indicates that the input source 2 icon 110 is selected. The selection of the input source 2 icon 110 signifies that the terminal device has selected a USB-C connected device (e.g., "HUAWEI P40") as the screen projection input. For example, the selection indicator box 111 of input source 2 can receive user confirmation (e.g., touch operation, confirmation command sent via remote control). In response to the detected confirmation operation, the terminal device 100 can display... Figure 1C The screen mirroring content of the USB-C connected device shown (i.e. Figure 1CThe user interface shown is 2), and the content of the screen-casting device name 101B is changed to "HUAWEI P40". The screen-casting content is not limited to user interface 2; other user interfaces can also be used, and no specific limitations are made here.

[0075] It should be noted that, Figure 1A and Figure 1B This is an exemplary user interface provided in the embodiments of this application, and does not constitute a limitation on the embodiments of this application. Figure 1A and Figure 1B The user interface shown may include fewer or more controls. Optional, Figure 1A and Figure 1B The user interface shown may also exclude the status bar. The screen projection device text 101A, screen projection device name 101B, and signal strength indicator 101C are controls in user interface 1.

[0076] See Figure 1A and Figure 1B If terminal device 100 renders and displays the image to be displayed at 4K resolution, it will experience high power consumption, stuttering of the displayed image, and an inability to quickly respond to user input. Figure 1B The user interface issues shown above can severely impact the display performance of terminal device 100 when the processor and / or memory performance of terminal device 100 is insufficient to support the smooth display of a 4K resolution interface. If terminal device 100 uses existing hardware upscaling solutions, i.e., first rendering the image to be displayed at a low resolution (e.g., 2K resolution) and then upscaling the 2K resolution image to 4K resolution before displaying it, it will result in visually blurred image details and poor display quality.

[0077] The display method provided in this application reduces the hardware performance requirements and power consumption of the processor (e.g., CPU and GPU), while achieving high-resolution interface display and improving the fineness of the interface display. It can support the frame rate required for smooth display (e.g., 60 frames per second (fps)) and quickly respond to user input operations to update the display interface, thereby effectively improving the user's visual experience and usage experience.

[0078] The specific implementation methods of the embodiments of this application will be described in detail below.

[0079] For example, Figure 2A This is a schematic diagram of the structure of a terminal device 100 provided in an embodiment of this application.

[0080] Terminal device 100 may be a terminal device running iOS, Android, Microsoft, or other operating systems. For example, terminal device 100 may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as a screen projection device, cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device (e.g., smart TV), and / or smart city device. This application embodiment does not impose any special limitations on the specific type of electronic device.

[0081] Terminal device 100 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 speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0082] Some of the components shown in the diagram (such as processor 110 and internal memory 121) can be integrated into a system-on-a-chip (SOC).

[0083] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0084] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, central processing unit (CPU), graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0085] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0086] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0087] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0088] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the terminal device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0089] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0090] The wireless communication function of the terminal device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0091] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0092] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0093] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0094] The wireless communication module 160 can provide solutions for wireless communication applications on the terminal device 100, 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 (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, frequency modulate and amplify them, and then convert them into electromagnetic waves for radiation via antenna 2.

[0095] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling terminal device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0096] Terminal device 100 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0097] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, terminal device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0098] Terminal device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0099] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0100] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the terminal device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0101] A digital signal processor (DSP) is used to process digital signals. Besides digital image signals, it can also process other digital signals. For example, when terminal device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0102] Video codecs are used to compress or decompress digital video. Terminal device 100 may support one or more video codecs. Thus, terminal device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.

[0103] NPU stands for Neural Network (NN) Computing Processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in terminal devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0104] Internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0105] Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), and double data rate synchronous dynamic random access memory (DDR SDRAM, such as fifth-generation DDR SDRAM, which is generally called DDR5 SDRAM). Non-volatile memory can include disk storage devices and flash memory.

[0106] Flash memory can be classified according to its operating principle, including NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.; according to the level of the storage cell, including single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc.; and according to the storage specification, including universal flash storage (UFS) and embedded multimedia card (eMMC), etc.

[0107] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.

[0108] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.

[0109] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.

[0110] Terminal device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0111] The audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal.

[0112] The loudspeaker 170A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.

[0113] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.

[0114] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.

[0115] Button 190 includes the power button, volume buttons, etc. Button 190 can be a mechanical button or a touch button.

[0116] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback.

[0117] In some embodiments, the internal memory 121 of the terminal device 100 (e.g., non-volatile memory) is also used to store a pre-drawn image of a preset resolution corresponding to at least one display screen of the terminal device 100 (for ease of description, this image is referred to as a background image in this embodiment). The display screen includes at least one user interface. When the display screen includes at least two user interfaces, any two user interfaces may not overlap or may partially overlap. The terminal device 100 divides the interface elements in the user interface into static and dynamic elements. The interface elements displayed in the background image include the static interface elements of the visible area of ​​the at least one user interface. Furthermore, the preset resolution is less than or equal to the display screen resolution of the terminal device 100.

[0118] In this embodiment of the application, static interface elements refer to interface elements whose displayed content is unlikely to change (or are immutable) during user interface runtime, such as background (e.g., ...). Figure 1A Backgrounds 102 and 113 shown), fixed text (such as...) Figure 1A The text 101A shown), icons, etc. (such as) Figure 1A Icon 103 shown Figure 1B Icon 109 shown); Dynamic interface elements refer to interface elements whose displayed content is highly likely to change (or variable) during user interface runtime, such as selection indicator boxes (selection indicator boxes 107 and 111 shown in Figure 1B), and controls with variable display icons (such as...). Figure 1A The indicator shown is 101C), and the variable input text (such as...) Figure 1B The screen projection device name shown is 101B, etc.

[0119] For example, such as Figure 2B As shown, in Figure 1A and Figure 1B In the application scenario shown, the internal memory 121 of the terminal device 100 stores pre-drawn 4K resolution base map 1 and base map 2. Base map 1 includes... Figure 1A The static interface elements visible in the display screen 11 shown, including the base image 2. Figure 1B The visible static interface elements shown in the display screen. Optional, such as... Figure 2BAs shown, the internal memory 121 also stores images of pre-drawn dynamic interface elements (such as indicator 101C and selection indicator box 107). Using the display method provided in this embodiment, the terminal device 100 displays... Figure 1A Before displaying screen 11, a 4K resolution background image 1 is retrieved from internal memory 121, and then a 4K resolution display screen 11 is synthesized based on the 4K resolution background image 1 and displayed. In response to an input operation targeting the display area of ​​the wired input source icon 103, terminal device 100 retrieves a 4K resolution background image 2 from internal memory 121, and then synthesizes a display screen based on the 4K resolution background image 2. Figure 1B The image shown is a 4K resolution display.

[0120] The software system architecture of the terminal device 100 involved in the embodiments of this application is illustrated below.

[0121] The software system of terminal device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to exemplify the software structure of terminal device 100.

[0122] See Figure 3 , Figure 3 An exemplary software structure block diagram of a terminal device 100 provided in an embodiment of this application is shown.

[0123] like Figure 3 As shown, the layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided from top to bottom into the application layer, application framework layer, hardware abstraction layer (HAL) layer, and kernel layer. Wherein:

[0124] The application layer comprises a series of application packages. For example... Figure 3 As shown, the application package can include desktop applications, video applications, screen mirroring applications, and other applications. It can also include applications such as camera, gallery, call, and music applications, which will not be elaborated here.

[0125] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications within the application layer. The application framework layer includes predefined functions. It may include window management modules, application management modules, input management modules, media frames, and graphics frames.

[0126] The application management module can be used to obtain the application windows running in the foreground and background. In some embodiments, the application management module includes an Activity Management Service (AMS), which is a system service of the Android system used to control the reasonable scheduling and operation of different applications in the system and manage the Activity task stack. The main responsibilities of AMS include uniformly scheduling the Activities of various applications, managing application processes, managing memory, scheduling services and tasks, querying the current running status of the system, etc. An Activity is the interface between the user and the application. Each Activity component is associated with a Window object to describe a specific application window. The application management module can determine the application windows running in the foreground and background by calling AMS.

[0127] The input management module manages input events and event distribution for the entire system. In some embodiments, the input management module includes an Input Management Service (IMS), which is responsible for input event management. IMS listens to all input device nodes, processes the data when a node has data, finds the appropriate application window, and distributes the input event to that window through the window management module. IMS can determine the foreground activity by calling the Application Management Service (AMS), and then, based on the interface layout of the application window corresponding to that foreground activity, determine the specific application window of the specified application corresponding to the aforementioned input event.

[0128] The window management module manages application windows. It can obtain the screen resolution and determine if a status bar is present. These application windows can be from Android, iOS, or other operating systems; no specific limitations are specified here. In some embodiments, the window management module may include a Window Manager Service (WMS), a system service in Android that controls the creation, display, and hiding of all windows. WMS assigns layers (Surfaces) to all windows, manages the display order, size, and position of these layers, controls window animations, and serves as a crucial intermediary for the input system.

[0129] After receiving an input event distributed by the input management module, the window management module sends an instruction to the designated application corresponding to the input event, instructing the application to draw the user interface of the designated application window corresponding to the input event. The application layer can draw and render the layers corresponding to the user interface according to the instructions sent by the window management module, as well as call system processes to draw and render the layers corresponding to the status bar and navigation bar.

[0130] The media framework includes a media player, video decoder, image player, and image decoder, while the graphics framework includes an interface composition module.

[0131] After the application layer acquires video data, it can use a media player to call a video decoder to decode the video data. Similarly, after the application layer acquires image data, it can use a media player to call an image decoder to decode the image data. It should be noted that the video and image data acquired by the application layer are usually compressed.

[0132] The interface compositing module is used to composite at least one layer into a user interface image. In one implementation, the interface compositing module is SurfaceFlinger. SurfaceFlinger determines the display area and content of each layer in the composite image based on parameters such as the size, position, Z-order, and transparency of each layer. Then, SurfaceFlinger calls the Hardware Composer (HWC) to generate display buffer data for the composite image based on the display area and content of each layer in the composite image. The compositing of the user interface image is not limited to calling the Hardware Composer (HWC); in this embodiment, the compositing of the user interface image can also be achieved by calling the GPU.

[0133] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0134] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0135] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0136] The Hardware Abstraction Layer (HAL) is an interface layer located between the kernel and the hardware circuitry, providing... Figure 3 The software system shown provides a virtual hardware platform. The HAL layer may include: Video Processing Module (VP) HAL, HWC HAL, and Frame Buffer (FB) HAL.

[0137] The kernel layer is the layer between hardware and software. It can contain drivers for video output (FB), video object (VO) drivers, and input systems. It can also include sensor drivers, touch IC drivers, and audio drivers, among others. The HAL layer and kernel layer respond to function calls from the application framework layer, performing corresponding operations.

[0138] In this embodiment, the FB driver can send the display buffer data of the user interface image to the VO driver. The VO driver calls the image amplifier and / or synthesizer to synthesize the user interface image and the image output by the media frame to generate a display screen, and can send the display screen 194 to display the image.

[0139] In some embodiments, the kernel layer includes a display driver. The image output by the media frame can be sent to the graphics frame, where the interface composition module of the graphics frame combines the image output by the media frame and the layer output by the application layer into a display screen. Then, the interface composition module calls the display driver through the hardware abstraction layer to send the user interface image to the display screen for display.

[0140] In some embodiments, the application framework layer may further include a base map storage module. The terminal device 100 pre-draws the base maps for each display screen and stores them in the base map storage module. For example, the base map storage module stores... Figure 2B The pre-drawn base map 1 and base map 2 are shown. Figure 1A The background image of the display screen of the terminal device 100 shown is background image 1. Figure 1B The background image of the display screen of the terminal device 100 shown is background image 2.

[0141] In some embodiments, when the application layer responds to instructions sent by the window management module to draw and render the user interface and generate the layer corresponding to the user interface, it only needs to draw and render the dynamic interface elements in the user interface. The application layer can determine the background of the screen to be displayed based on the instructions sent by the window management module. Figure 3 Then retrieve the base map from the base map storage module. Figure 3 The stored data is sent to the image processor; the image processor calls the image decoder to decode the image based on the stored data. Figure 3 and the bottom Figure 3 Send to the VO driver via VOHAL. The VO driver can invoke the compositor to process user interface images and backgrounds containing only dynamic interface elements. Figure 3 The images are then composited to generate the image to be displayed. For ease of description, the image to be displayed in subsequent embodiments may be referred to simply as the first display image.

[0142] In this embodiment, the base image stored in the base image storage module can be in a compressed image format (e.g., JPEG format). The image decoder can decode the base image into YUV format. YUV format refers to a pixel format where luminance and chrominance parameters are represented separately. "Y" represents luminance (Luminance or Luma), which is the grayscale value, and "U" and "V" represent chrominance (Chrominance or Chroma). Compared to RGBA format, storing images in YUV format typically occupies less storage space.

[0143] In one implementation, the user interface image drawn by the terminal device 100 is in RGBA format. The synthesizer provided in this application embodiment can support the synthesis of RGBA format user interface images and YUV format video images output by the software system, and send the synthesized image to the display screen 194 for display.

[0144] Based on the above hardware structure and software system architecture, the specific implementation of the display method provided in the embodiments of this application will be described below.

[0145] Figure 4 This is a schematic diagram illustrating the implementation of a display method provided in an embodiment of this application.

[0146] like Figure 4As shown, in response to instructions sent by the window management module, the application layer draws and renders the layers corresponding to the user interface running in the foreground, and sends the layer data of the aforementioned layers to the interface compositing module of the graphics frame. The interface compositing module composites a user interface image at resolution 1 based on the layer data of at least one layer sent by the application layer, and sends the image cache data of the user interface image at resolution 1 to the image amplifier. The image amplifier enlarges the user interface image at resolution 1 to a user interface image at resolution 2, and sends the user interface image at resolution 2 to the compositor. In response to instructions sent by the window management module, the application layer also obtains a video source at resolution 2, and sends each frame of the video image at resolution 2 to the video decoder of the media frame. The video decoder decodes the dynamic video image at resolution 2 based on the aforementioned video data, and sends the dynamic video image at resolution 2 to the compositor. The compositor generates a composite image based on the user interface image at resolution 2 and the dynamic video image at resolution 2, and displays the composite image on the display screen 194.

[0147] It is understandable that resolution 2 is greater than resolution 1. For example, resolution 1 is 2K resolution, and resolution 2 is 4K resolution.

[0148] The display method provided in this application supports independent output of the user interface and video. The terminal device 100 renders a low-resolution (e.g., resolution 1) user interface image, enlarges it to a high-resolution (e.g., resolution 2) user interface image, and then displays it. The high-resolution (e.g., resolution 2) video source is decoded into a high-resolution video image and then displayed. Thus, for terminal devices 100 with high-resolution displays but insufficient processor and / or memory performance, but possessing strong video decoding capabilities, the display method provided in this application can achieve high-resolution image display, solving the problem of insufficient hardware (processor and / or memory, etc.) performance in current high-resolution video playback scenarios in the industry.

[0149] However, in the above display method, the high-resolution user interface image displayed by the terminal device 100 is obtained by magnifying the low-resolution user interface image, which results in blurry details of the user interface in the displayed image and poor visual effect.

[0150] This application embodiment also provides another display method. In this method, the terminal device 100 can divide the display screen into a static background image and a dynamic user interface image. The background image includes visible static interface elements in the display screen, and the dynamic user interface image only contains dynamic interface elements in all user interfaces in the display screen. The terminal device 100 stores a pre-drawn high-resolution background image. The terminal device 100 draws a low-resolution user interface image containing only dynamic interface elements, and then sends the composite image of the low-resolution user interface image and the high-resolution background image to the display screen 194 for display. Implementing the display method provided by this application embodiment can achieve high-resolution interface display. Since this application embodiment has low requirements for hardware performance such as processor (e.g., GPU, CPU) and / or memory, this application embodiment can achieve high-resolution interface display while supporting the frame rate required for smooth display and quickly responding to user input operations to update the display interface. In addition, using a pre-drawn background image also effectively reduces the power consumption of high-resolution interface display. For the above display method, this application embodiment provides two implementation schemes (i.e., Scheme 1 and Scheme 2 below), which are described in detail below.

[0151] For example, Figure 5A This is a schematic diagram of the internal implementation of Scheme 1 provided in the embodiments of this application. Figure 5B This is a schematic flowchart of the method of Scheme 1 provided in the embodiments of this application. The method includes, but is not limited to, steps S101 to S111.

[0152] S101. In response to the instruction sent by the window management module, based on the interface layout of the first user interface in the first display screen, the application layer determines the position and size 1 of the layer of the first user interface in the user interface image at resolution 1, and the position and size of the first dynamic interface element in the layer of the first user interface, and then draws and renders the layer of size 1 corresponding to the dynamic part of the first user interface.

[0153] Wherein, the first user interface is any of the user interface images mentioned above, and the first dynamic interface element is any of the dynamic interface elements of the first user interface.

[0154] It should be noted that the terminal device 100 stores the interface layout of the first user interface. The interface layout information of the first user interface includes the size (hereinafter referred to as size 1), position (hereinafter referred to as position 1), transparency, and z-order of the layer of the first user interface in the user interface image at resolution 1, as well as the position (hereinafter referred to as position 2), size (hereinafter referred to as size 2), and transparency of the first dynamic interface element of the first user interface in the above layer. When the terminal device 100 draws the layer of the first user interface, it can determine the position and size of each dynamic interface element of the first user interface in the layer based on the interface layout information of the user interface, and then draw each dynamic interface element of the first user interface on the canvas of size 1, generating a layer of size 1 corresponding to the dynamic part of the first user interface.

[0155] For example, the following are examples Figure 1A and Figure 1B The application scenarios shown are illustrated by example.

[0156] The display screen 194 of terminal device 100 shows Figure 1A As shown in display screen 11, the input device (e.g., touch sensor 180K) of terminal device 100 detects touch operation 1. Relevant information about touch operation 1 (e.g., touch coordinates, touch duration, etc.) is sent to the input system. The input system processes the input operation 1 into a raw input event, which is stored in the kernel layer. The input management module retrieves the raw input event from the kernel layer. The input management module then calls the application management module to determine the user interface of the foreground application window and the interface layout information of that user interface (e.g., user interface 1 of the desktop application). Based on this interface layout information, it determines that the raw input event is a click event acting on the display area of ​​the wired input source icon 103. The event management module sends this input event to the window management module. The window management module sends instruction 1 to the application layer, instructing the application layer to update the display screen. Figure 1B The application layer determines the background image of the updated display as background image 2, and the user interface images corresponding to the dynamic interface elements in the updated display, and calls the graphics framework to draw the aforementioned user interface images. Figure 1B The displayed screen includes a status bar 101, a desktop application user interface 1, and an input source switching interface 12.

[0157] Optionally, the static interface elements of the status bar 101 may include text 101A, and the dynamic interface elements of the status bar 101 may include the projection device name 101B and an indicator 101C. The static interface elements of the user interface 1 may include a background 102, a wired input source icon 103, a projection icon 104, and a settings icon 105. The dynamic interface elements of the user interface 1 may include a wired input source selected indicator box 107, a projection unselected indicator box 201, and a settings unselected indicator box 202. The static interface elements of the input source switching interface 12 may include text 108, an input source 1 icon 109, an input source 2 icon 110, and an input source 3 icon 112. The dynamic interface elements of the input source switching interface 12 may include an input source 1 unselected indicator box 203, an input source 1 selected indicator box 111, and an input source 1 unselected indicator box 204. It should be noted that in one implementation, the selected indicator boxes 107 and 111 are visible, while the unselected indicator boxes 201, 202, 203, and 204 are invisible.

[0158] In response to instruction 1 sent by the window management module, the application layer calls the system process to draw layer 1 corresponding to the dynamic part of the status bar. In response to the above instruction 1, the screen casting application in the application layer draws layer 2 corresponding to the dynamic part of the screen casting application's user interface 1, and layer 3 corresponding to the dynamic part of the input source switching interface 12.

[0159] In one implementation, layers 1, 2, and 3 are all identical in size and position, with their size equal to the resolution of the user interface image to be composited in the interface compositing module. For example, the resolution of the user interface image to be composited is 1. Figure 6A The dimensions of layers 1, 2, and 3 shown are all equal to the dimensions corresponding to resolution 1, and the positions (e.g., top left corner) of layers 1, 2, and 3 in the user interface image to be composited are all (0, 0). In another implementation, the dimensions and positions of layers 1, 2, and 3 may be different. For example, the resolution of the user interface image to be composited is resolution 1. Figure 6B The dimensions of Layer 1, Layer 2 and Layer 3 shown are different, and all are less than or equal to the dimensions corresponding to resolution 1. Among them, the position of Layer 2 in the user interface image to be composited is (0, 0), while the positions of Layer 1 and Layer 3 in the user interface image to be composited are not (0, 0).

[0160] like Figure 6A and Figure 6BAs shown, the interface elements with dashed lines in layers 2 and 3 (such as unselected indicator boxes 201 and 203) indicate that the interface elements are not visible in the screen displayed by the terminal device 100. When drawing layers 2 and 3, the terminal device 100 may choose not to draw the interface elements with dashed lines, or it may draw the interface elements but set the transparency of the interface elements to 100%.

[0161] In one implementation, the terminal device displays... Figure 1A When displaying screen 1 as shown, layer 1 and layer 2 have already been drawn, and image cache data for layer 1 and layer 2 has been stored. In response to user input, terminal device 100... Figure 1A When the input source switching interface 12 is overlaid on the display screen shown, in response to the above instruction 1, the application layer only needs to draw the layer 3 corresponding to the input source switching interface 12, and can directly obtain the image cache data of the already drawn layer 1 and layer 2.

[0162] S102, the application layer sends the layer data of the layers corresponding to the dynamic parts of each user interface in the first display screen to the interface composition module of the graphics frame.

[0163] S103, The interface composition module synthesizes a user interface image 1 with a resolution of 1 based on the layer data of at least one layer sent by the application layer.

[0164] It is understood that the above user interface image 1 only contains dynamic interface elements.

[0165] In some embodiments, the layer data of a layer may include information such as the layer's size, position, transparency, and Z-order. When the compositor receives the layer data of at least one layer, the compositor will composite the at least two layers into a user interface image 1 with a resolution of 1 on a canvas based on the size, position, transparency, and Z-order of the at least one layer.

[0166] For example, the application layer sends the layer data of layer 1, layer 2, and layer 3 to the interface composition module of the graphics framework. Figure 6A and Figure 6B As shown, the interface composition module can determine the display area of ​​each layer on the canvas of resolution 1 based on the size and position of the above layers 1, 2 and 3, and composite the above layers 1, 2 and 3 on the canvas of resolution 1 in Z-order order to form a user interface image 1 of resolution 1.

[0167] In this embodiment, the transparency of the areas outside the effective display area of ​​the dynamic interface elements in the layers corresponding to the dynamic parts of each user interface is set to completely transparent or a preset transparency.

[0168] S104, The interface composition module sends the image cache data of the user interface image 1 at the above resolution 1 to the image amplifier.

[0169] S105, The image amplifier enlarges the user interface image 1 at resolution 1 to a user interface image 1 at resolution 2, where resolution 2 is greater than resolution 1.

[0170] In this context, the ratio of the horizontal pixel count of resolution 2 to that of resolution 1 is A, and the ratio of the vertical pixel count of resolution 2 to that of resolution 1 is B. Resolution 1 is less than the resolution of the display screen 194, and resolution 2 can be equal to or less than the resolution of the display screen 194; no specific limitation is made here.

[0171] In one implementation, A equals B, and the image magnifier proportionally enlarges the user interface image 1 at resolution 1 to the user interface image 1 at resolution 2. For example, ... Figure 6C As shown, the user interface image 1 at resolution 1 is scaled up to the user interface image 1 at resolution 2.

[0172] S106, The image amplifier sends the image cache data of the user interface image 1 at resolution 2 to the compositor.

[0173] S107. In response to instruction 1 sent by the window management module, the application layer further determines the background image of the first display screen as the background. Figure 3 And obtain the base map at resolution 2 from the base map storage module. Figure 3 The stored data.

[0174] S108, Application Layer will be at the bottom Figure 3 The stored data is sent to the image decoder of the media frame.

[0175] It should be noted that the implementation order of steps S108 and S101 is not specifically limited in this embodiment.

[0176] S109, The image decoder decodes the image at resolution 2 based on the aforementioned stored data. Figure 3 .

[0177] S110, the image decoder will reduce the resolution to 2. Figure 3 Image cache data is sent to the compositor.

[0178] S111, the synthesizer is based on the user interface image 1 at the aforementioned resolution 2 and the background image at the aforementioned resolution 2. Figure 3 A composite image is generated and displayed on the display screen 194, with the user interface image 1 located at the bottom. Figure 3 The upper level.

[0179] Specifically, the synthesizer determines the final composite of the user interface image 1 at resolution 2. Figure 3 The original and target positions are both (0,0), and the composite is completed. Figure 3 The original size and target size are both the size corresponding to resolution 1; the compositor composites the user interface image 1 to the final image based on the original position, target position, original size, and target size. Figure 3 Above.

[0180] It should be noted that when the compositor composites images, the user interface image 1 is located at the bottom. Figure 3 The upper layer, because the transparency of the area outside the effective display area of ​​the dynamic interface elements in the user interface image is set to completely transparent or preset transparency, the area outside the effective display area of ​​the dynamic interface elements in the image synthesized by the compositor can display the display content of the base image.

[0181] For example, such as Figure 6D As shown, the compositor combines the user interface image 1 at resolution 2 and the background image at resolution 2. Figure 3 Synthesized Figure 1B The displayed screen is then sent to display screen 194 for display. See also... Figure 2B Base diagram 3 can be stored in internal memory. Figure 2B The base map shown is 2.

[0182] For example, Figure 7A This is a schematic diagram of the internal implementation of Scheme 2 provided in the embodiments of this application. Figure 7B This is a schematic flowchart of the method of Scheme 2 provided in the embodiments of this application. The method includes, but is not limited to, steps S201 to S209.

[0183] S201. In response to instruction 1 sent by the window management module, the application layer determines the position 3 and size 3 of the first dynamic interface element in the layer of the first user interface in the user interface image at resolution 2 based on the interface layout of the first user interface in the first display screen. Then, based on the size 3 of the first dynamic interface element, it draws and renders the layer corresponding to the dynamic part of the first user interface. The position 3 is the target position of the first dynamic interface element in the user interface image and the first display screen.

[0184] The first user interface is any one of the user interface images mentioned above, and the first dynamic interface element is any dynamic interface element within the first user interface. The size of the layer of the first user interface is smaller than the size corresponding to a resolution of 2.

[0185] Unlike Figure 5BIn the display method shown in this embodiment, when the terminal device 100 draws the layer corresponding to the dynamic part of the first user interface, it first determines the size of each dynamic interface element of the first user interface in the user interface image at resolution 2 based on the interface layout information of the first user interface. For ease of description, in this embodiment, the position of the first dynamic interface element of the first user interface in the user interface image at resolution 2 can be simply referred to as position 3, and the size of the first dynamic interface element of the first user interface in the user interface image at resolution 2 can be simply referred to as size 3. Then, the application layer can draw the first dynamic interface element of size 3 on the canvas of the specified resolution (or specified size), thereby obtaining the layer of the first user interface at the specified resolution (or specified size). Unlike Figure 5B Schemes 1 and 2 do not specifically limit the position of dynamic interface elements in the layer, as long as the dynamic interface elements do not overlap in the layer. For ease of description, in this embodiment, the actual position of the first dynamic interface element of the first user interface in the layer at the specified resolution can be simply referred to as position 4.

[0186] In one implementation, the dynamic interface elements are distributed non-overlappingly in the top left corner of the layer, from left to right.

[0187] It should be noted that in this embodiment of the application, the target display resolution of the terminal device 100 is resolution 2. Therefore, the position 3 of the first dynamic interface element of the first user interface in the layer of resolution 2 is the target position of the first dynamic interface element in the first display screen.

[0188] In one implementation, the specified resolution of the layers corresponding to the dynamic parts of each user interface in the first display screen is the resolution of the user interface image to be composited, i.e., resolution 3. Resolution 3 can be a resolution preset by the terminal device 100 that is smaller than resolution 2; or, resolution 3 can be determined by the terminal device 100 based on the size of all dynamic interface elements in the first display screen (e.g., the size 3 of the first dynamic interface element), as long as the layer corresponding to each user interface can accommodate all the dynamic interface elements of that user interface. In this way, the terminal device 100 can realize the drawing of the first dynamic interface element of size 3 corresponding to the high-resolution (e.g., resolution 2) user interface image on a low-resolution (e.g., resolution 3) canvas.

[0189] For example, the following are examples Figure 1A and Figure 1B The application scenarios shown are illustrated by example.

[0190] In response to instruction 1 sent by the window management module, the application layer determines the size of all dynamic interface elements in the status bar, user interface 1, and input source switching interface 12 (e.g., the size 3 of the first dynamic interface element), and then determines the resolution 3 based on the size of all dynamic interface elements; then it calls the system process to draw the dynamic interface elements of the status bar on the canvas of resolution 3, generating the corresponding resolution 3 layer 4 of the status bar; similarly, the screen casting application in the application layer responds to the above instruction 1, draws the resolution 3 layer 5 corresponding to the dynamic part of the screen casting application's user interface 1, and the resolution 3 layer 6 corresponding to the dynamic part of the input source switching interface 12.

[0191] For example, the user interface image to be synthesized has a resolution of 3. Figure 8A Layers 4, 5, and 6 shown all have a resolution of 3. Taking layer 4 and the aforementioned layer 1 as an example, a comparison is made. Figure 8A and Figure 6A It can be seen that the size of the dynamic interface elements in layer 4 (e.g., the size 3 of the first dynamic interface element) is larger than the size of the corresponding dynamic interface elements in layer 1 (e.g., the size 2 of the first dynamic interface element). The position of each dynamic interface element in layer 4 is not specifically limited (e.g., each dynamic interface element in layer 4 can be distributed in the upper left corner of the layer in a non-overlapping order from left to right), while the position of each dynamic interface element in layer 1 is determined based on the interface layout information of the first user interface.

[0192] In one implementation, the resolution of the layers corresponding to the dynamic parts of each user interface in the first display screen can be different, and the layers corresponding to the dynamic parts of each user interface only need to accommodate all dynamic interface elements in the user interface (e.g., the first dynamic interface element of size 3). For example, the resolution of the layer of the dynamic part of the first user interface can be preset by the terminal device 100, or it can be determined by the terminal device 100 based on the size of the dynamic interface elements in the first user interface (e.g., the size 3 of the first dynamic interface element). For example, the user interface image to be synthesized has a resolution of 3. Figure 8B The resolutions of layers 4, 5, and 6 shown are all less than or equal to a resolution of 3.

[0193] Similar to Scheme 1, the interface elements with dashed lines in layers 5 and 6 indicate that the interface elements are not visible in the screen displayed by the terminal device 100. When drawing layers 5 and 6, the terminal device 100 may choose not to draw the interface elements with dashed lines, or it may draw the interface elements but set the transparency of the interface elements to 100%.

[0194] S202, the application layer sends the layer data of the layers corresponding to the dynamic parts of each user interface in the first display screen to the interface composition module of the graphics frame. The layer data corresponding to the first user interface includes the position 4 and size 3 of the first dynamic interface element in the layer, as well as the target position (i.e., position 3) of the first dynamic interface element.

[0195] For example, the application layer sends the layer data of layers 4, 5, and 6 to the interface composition module of the graphics frame.

[0196] S203. After receiving the layer data of at least one layer sent by the application layer, the interface composition module combines the at least one layer into a user interface image 2 based on the position 4 and size 3 of the first dynamic interface element in the layer. The actual position of each dynamic interface element in the user interface image 2 is position 3, and there is no overlap between the dynamic interface elements in the user interface image 2.

[0197] In some embodiments, after receiving layer data of at least one layer sent by the application layer, the interface composition module determines the position 5 of the first dynamic interface element in the user interface image 2 based on the size 3 and position 4 of the first dynamic interface element in the layer of the first user interface; then, based on the size and position of each dynamic interface element in the user interface image 2 (e.g., the size 3 and position 5 of the first dynamic interface element), it composites all dynamic interface elements of each layer onto a canvas of resolution 3 to generate a user interface image 2 of resolution 3. In this embodiment, the position of each dynamic interface element in the user interface image 2 is not specifically limited, as long as the dynamic interface elements do not overlap.

[0198] In one implementation, the dynamic interface elements in each layer are distributed from left to right on a 3-resolution canvas, and then the dynamic interface elements of each layer are distributed from top to bottom on the 3-resolution canvas, layer by layer.

[0199] For example, such as Figure 8A and Figure 8B As shown, the interface composition module synthesizes a user interface image 2 with a resolution of 3 based on the layer data of layers 3, 4, and 5. The dynamic interface elements of layer 4 (or layer 5, layer 6) in user interface image 2 are distributed in the user interface image 2 in a left-to-right order, and the dynamic interface elements of each layer in user interface image 2 are distributed in the user interface image 2 in the order of layer 4, layer 5, and layer 6 from top to bottom.

[0200] S204. The interface compositing module sends the image cache data of the user interface image 2 with the resolution 3 to the compositor. The image cache data includes the size 3 and position 5 of the first dynamic interface element in the user interface image 2, as well as the target position (i.e., position 3) of the first dynamic interface element.

[0201] S205. In response to instruction 1 sent by the window management module, the application layer further determines the background image of the first display screen as the background. Figure 3 And obtain the base map at resolution 2 from the base map storage module. Figure 3 The stored data.

[0202] It should be noted that the implementation order of steps S205 and S201 is not specifically limited in this embodiment.

[0203] S206, Application Layer will be at the bottom Figure 3 The stored data is sent to the image decoder of the media frame.

[0204] S207, The image decoder decodes the image at resolution 2 based on the aforementioned stored data. Figure 3 .

[0205] S208, the image decoder will reduce the resolution to 2. Figure 3 Image cache data is sent to the compositor.

[0206] S209, The synthesizer combines the image of the display area of ​​each dynamic interface element in the user interface image 2 at resolution 3 with the background image. Figure 3 The image of the target area of ​​the interface element is synthesized into a new image of the target area, thereby generating a composite image with a resolution of 2 (i.e., the first display screen), and the composite image is sent to the display screen 194.

[0207] Specifically, the compositor determines the display area of ​​the first dynamic interface element in the user interface image 2 based on the position 5 and size 3 of the first dynamic interface element in the user interface image 2 at resolution 3, and obtains the image cache data 1 of the display area; the compositor also determines the display area of ​​the first dynamic interface element in the background image based on the target position (i.e., position 3) and size 3 of the first dynamic interface element in the background image. Figure 3 The target region is selected, and image cache data 2 of that target region is obtained; then, the aforementioned image cache data 1 and image cache data 2 are combined to form new image cache data for the target region. Thus, the bottom... Figure 3 After being composited with all dynamic interface elements in user interface image 2, a composite image to be displayed is generated.

[0208] For example, such as Figure 8C As shown, the compositor combines the user interface image 2 at resolution 3 and the background image at resolution 2. Figure 3 Synthesized Figure 1B The display screen shown is sent to the display screen 194 for display. Specifically, taking the selection indicator box 111 of input source 2 as an example, the compositor determines the region 1 corresponding to the selection indicator box 111 based on the position 5 and size 3 of the button 111, and obtains the image cache data of the selection indicator box 111 in region 1; the compositor also determines the target region of the selection indicator box in the background image as region 2 based on the position 3 and size 3 of the selection indicator box 111, and obtains the image cache data of region 2, which includes the input source 2 icon 110; then the image cache data of region 1 and region 2 are combined into the image cache data of the composite image of region 2, which includes the input source 2 icon 110 and the selection indicator box 111. In this way, the display screen 194 can display the input source 2 icon 110 and the selection indicator box 111 in region 2 according to the composite image cache data of region 2.

[0209] In some embodiments, in Scheme 2, the dynamic interface elements of the first user interface can also be grouped into a composite control and processed as a whole dynamic interface element. For ease of description, this will be referred to as a composite dynamic interface element below. In one implementation, the terminal device 100 can store interface layout information about the composite dynamic interface element, and the terminal device 100 can directly obtain the position and size of the composite dynamic interface element. In another implementation, the terminal device 100 does not store interface layout information about the composite dynamic interface element, and the terminal device 100 can indirectly obtain the position and size of the composite dynamic interface element based on the position and size of each dynamic interface element contained within it.

[0210] The following explanation uses the example of switching input source interface 12.

[0211] For example, refer to Figure 9A The dynamic interface elements in the switching input source interface 12 (i.e., the unselected indicator box 203, the selected indicator box 111, and the unselected indicator box 204) form a composite dynamic interface element 301. The interface layout information of the switching input source interface 12 does not include the position and size of the composite dynamic interface element 301. The terminal device 100 can determine the position of the composite dynamic interface element 301 as the upper left corner position of the upper left corner interface element in the composite dynamic interface element 301, i.e., the upper left corner position (a1, b1) of the unselected indicator box 203; and determine the size of the composite dynamic interface element 301 based on the upper left corner position (a1, b1) and the lower right corner position of the lower right corner interface element in the composite dynamic interface element 301 (i.e., the lower right corner position (a2, b2)) of the unselected indicator box 204, i.e., (a2-a1)×(b2-b1). It can be understood that the relative positional relationship of each dynamic interface element in the composite dynamic interface element 301 is determined based on the interface layout information of the switching input source interface 12.

[0212] Specifically, in step 201, when the terminal device 100 draws the layer 3 corresponding to the dynamic part of the input source switching interface 12, it first determines the position 3 and size 3 of the composite dynamic interface element 301 in the user interface image at resolution 2 based on the interface layout information of the input source switching interface 12. Then, the application layer can draw the composite dynamic interface element 301 of size 3 on the canvas of the specified resolution, thereby obtaining the layer 3 of the input source switching interface 12 at the specified resolution. The actual position of the composite dynamic interface element 301 in layer 3 is the position 4 of the composite dynamic interface element 301.

[0213] For example, refer to Figure 9B Layers 1, 2, and 3 all have the same resolution. The dynamic part of the input source interface 12 is drawn as a composite dynamic interface element 301 in the upper left corner of layer 3.

[0214] For example, refer to Figure 9C The resolutions of layers 1, 2, and 3 can be different. The dynamic part of the input source interface 12 is drawn as a composite dynamic interface element 301 in layer 3. The size of layer 3 can be equal to the size of the composite dynamic interface element 301.

[0215] In step 202, after receiving the layer data of layer 3 sent by the application layer, the interface composition module determines the position 5 of the composite dynamic interface element 301 in the user interface image 2 based on the position 4 and size 3 of the composite dynamic interface element 301 in layer 3; then, based on the position 5 and size 3 of the composite dynamic interface element 301 in the user interface image 2, it composites the composite dynamic interface element 301 as a whole into a canvas of resolution 3, generating a user interface image 2 of resolution 3. For example, refer to... Figure 9B and Figure 9C The user interface image shown is a composite.

[0216] See Figure 9B and Figure 9C ,compared to Figure 8A and Figure 8B The user interface image synthesis implementation provided in the related embodiments can have a larger synthesis granularity in this embodiment. Figure 8A and Figure 8B Layer 3, as shown, is composited at the granularity of individual dynamic interface elements, while Figure 9B and Figure 9C Layer 3 shown is composited at the granularity of composite dynamic interface elements.

[0217] It should be noted that, Figures 9A to 9CThe example given is the switching input source interface 12. This does not limit the scope of the embodiments in this application. Other user interfaces in the screen to be displayed can also be drawn with composite dynamic interface elements as the granularity and composite user interface images.

[0218] In some embodiments, Figure 1A and Figure 1B In the application scenario shown, when the terminal device 100 detects an input operation applied to the display area of ​​the wired input source icon 103, in response to the input operation, the terminal device 100 displays the following on the display screen 11: Figure 1B The button 107 for the wired input source and the input source switching interface 12 are shown. In some embodiments, in response to the above input operation, the background image on the display screen remains unchanged, i.e. Figure 1B The background image displayed on the screen and Figure 1A The background images displayed are the same, all being background image 1. The terminal device 100 combines all the interface elements of the newly added input source switching interface 12 in the display screen into a composite control, that is, the input source switching interface 12 as a whole is processed as a composite dynamic interface element 302. Figure 9D The above-described composite dynamic interface element 302 is illustrated. Besides buttons 203, 111, and 204, composite dynamic interface element 302 also includes text 108 for switching input sources, an input source 1 icon 109, an input source 2 icon 110, an input source 3 icon 112, and a background 113. The drawing and composition of layer 3 corresponding to the input source switching interface 12 can be referenced... Figure 9A to Figure 9C The description of the relevant embodiments is omitted here.

[0219] In Schemes 1 and 2 of this application, the terminal device 100 converts the static parts of the user interface into a base map, pre-draws and stores a high-resolution base map, and the terminal device 100 only needs to draw the dynamic parts of the low-resolution user interface. This greatly reduces the load and performance requirements on hardware such as the CPU, GPU, and memory for high-resolution interface refresh.

[0220] In this embodiment, in schemes 1 and 2, in response to instruction 1, the application layer can draw a low-resolution layer corresponding to the dynamic part of the user interface based on a preset frame rate 1, and obtain the background image required for the screen to be displayed from the background image storage module based on a preset frame rate 2; then the compositor can synthesize a high-resolution display screen based on frame rate 1. Here, frame rate 2 is less than frame rate 1. In this way, the application layer obtains the background image from the background image storage module at a low frame rate, avoiding the power consumption and load caused by frequent image decoding, and instead further improving the screen refresh rate; on this basis, the application layer draws the layer corresponding to the dynamic part at a high frame rate, and the compositor synthesizes the display screen at a high frame rate, ensuring that the terminal device 100 can quickly respond to user interaction operations and update the interface.

[0221] This application provides a display method applied to a terminal device 100, which includes, but is not limited to, steps S301 to S303.

[0222] S301. In response to the first instruction, draw a first user interface image with a first resolution corresponding to the first display screen, and obtain a first base map with a second resolution of the first display screen; wherein, the first instruction is used to instruct the terminal device to draw the first display screen with a second resolution, the first user interface image includes dynamic interface elements in the first display screen, the first base map includes static interface elements in the first display screen, the terminal device stores base maps of at least one display screen that has been drawn, and the second resolution is greater than the first resolution.

[0223] S302: Based on the first user interface image at the first resolution and the first base image at the second resolution, synthesize the first display screen at the second resolution;

[0224] S303, The first display screen is displayed on the display screen.

[0225] Implementing the embodiments of this application, the display screen is divided into a static base map and a dynamic user interface image. The base map includes static interface elements in the display screen, and the dynamic user interface image only contains dynamic interface elements from all user interfaces in the display screen. The terminal device stores a pre-drawn high-resolution base map. In response to a first instruction, the terminal device draws only a low-resolution user interface image containing dynamic interface elements, and then sends the composite image of the low-resolution user interface image and the high-resolution base map to the display screen for display. Implementing the embodiments of this application enables high-resolution interface display, effectively improving the user experience. Furthermore, it significantly reduces the load and performance requirements on hardware such as the processor and / or memory, effectively reducing the power consumption of real-time interface display.

[0226] In some embodiments, the first display screen includes at least one user interface, and drawing the first user interface image corresponding to the first display screen at a first resolution includes: drawing a first layer corresponding to the dynamic interface elements of the first user interface, wherein the first user interface is any one of the at least one user interface, and the resolution of the first layer is less than or equal to the first resolution; and combining the layers corresponding to the dynamic interface elements of each user interface in the first display screen into a first user interface image at the first resolution.

[0227] In this embodiment of the application, for example, the first instruction may be the aforementioned instruction 1. (See reference...) Figure 1A The first instruction can be applied to Figure 1A The input operation is shown in the wired input source icon 103. The first resolution can be the aforementioned resolution 1, the second resolution can be the aforementioned resolution 2, and the first display screen can be... Figure 6D The first user interface image shown in the resolution 2 display can be... Figures 6A to 6C The user interface image 1 shown at resolution 1, the first base image can be Figure 6D The resolution 2 shown is the bottom Figure 3 .

[0228] In this embodiment of the application, for example, the first user interface may be: Figure 1B and Figure 6D The described status bar 101, user interface 1, or input source switching interface 12 may have the following first layers: the first layer may be layer 1 corresponding to the dynamic interface elements of the status bar 101; the first layer may be layer 2 corresponding to the dynamic interface elements of the user interface 1; or the first layer may be layer 3 corresponding to the dynamic interface elements of the input source switching interface 12. (See reference) Figure 6A and Figure 6B The resolution of Layer 1, Layer 2, and Layer 3 is less than or equal to resolution 1.

[0229] In some embodiments, the first layer corresponding to the dynamic interface elements of the first user interface described above includes: based on the interface layout of the first user interface, determining that the size of the first layer in the first user interface image at a first resolution is a first size, the position of the first layer is a first position, the position of the first dynamic interface element in the first layer of the first size is a second position, and the size of the first dynamic interface element is a second size, wherein the first dynamic interface element is any dynamic interface element of the first user interface in the first layer; based on the second position and the second size of the first dynamic interface element, drawing the first dynamic interface element on the canvas of the first size, thereby generating the first layer of the first size corresponding to the dynamic interface elements of the first user interface.

[0230] In this embodiment of the application, for example, the first layer can be the layer of the aforementioned first user interface, the first position of the first layer can be the aforementioned position 1, and the first size of the first layer can be the aforementioned size 1. The second position of the first dynamic interface element can be the aforementioned position 2, and the second size of the first dynamic interface element can be the aforementioned size 2.

[0231] In some embodiments, the above-described method of compositing the layers corresponding to the dynamic interface elements of each user interface in the first display screen into a first user interface image of a first resolution includes: compositing the layers corresponding to the dynamic interface elements of each user interface into a first user interface image of a first resolution based on the first position and first size of the first layer in the first user interface image of the first resolution.

[0232] In some embodiments, the above-mentioned synthesis of a first display screen with a second resolution based on a first user interface image with a first resolution and a first base image with a second resolution includes: enlarging the first user interface image with the first resolution to a first user interface image with a second resolution; and synthesizing the first user interface image with the second resolution and the first base image with the second resolution into a first display screen with a second resolution.

[0233] In this application embodiment, for example, see [link to example]. Figure 6C and Figure 6D The terminal device 100 enlarges the user interface image 1 at resolution 1 to a user interface image 1 at resolution 2, and then compares the user interface image 1 at resolution 2 with the background image at resolution 2. Figure 3 Synthesized Figure 6D The screen shown is shown.

[0234] In some embodiments, the first layer corresponding to the dynamic interface element of the first user interface is drawn as follows: based on the interface layout of the first user interface, the position of the first dynamic interface element in the first layer of the first user interface image at the second resolution is determined as the third position and the size of the first dynamic interface element is determined as the third size; based on the third size of the first dynamic interface element, the first dynamic interface element is drawn on a canvas of a fourth size to generate the first layer, wherein there is no overlap between the dynamic interface elements in the first layer and the position of the first dynamic interface element in the first layer is the fourth position.

[0235] In this embodiment of the application, for example, the first instruction may be the aforementioned instruction 1. (See reference...) Figure 1A The first instruction can be applied to Figure 1A The input operation is shown in the wired input source icon 103. The first resolution can be the aforementioned resolution 3, the second resolution can be the aforementioned resolution 2, and the first display screen can be... Figure 8C The first user interface image shown in the resolution 2 display can be... Figures 8A to 8C The user interface image 2 shown at resolution 3, the first base image can be Figure 8C The resolution 2 shown is the bottom Figure 3 .

[0236] In this embodiment of the application, for example, the first user interface may be: Figure 1B and Figure 8C The described status bar 101, user interface 1, and input source switching interface 12 can all have the following first layers: the first layer can be layer 4 corresponding to the dynamic interface elements of the status bar 101; the first layer can be layer 5 corresponding to the dynamic interface elements of the user interface 1; and the first layer can be layer 6 corresponding to the dynamic interface elements of the input source switching interface 12. (See reference) Figure 8A and Figure 8B The resolution of Layer 1, Layer 2, and Layer 3 is less than or equal to resolution 3.

[0237] In this embodiment, the third position of the first dynamic interface element can be the aforementioned position 3, the third size of the first dynamic interface element can be the aforementioned size 3, and the actual position of the first dynamic interface element in the first layer can be the aforementioned fourth position. The fourth size can be... Figure 8A or Figure 8B The dimensions of the layer shown (layer 4, layer 5, or layer 6) are the dimensions corresponding to the specified dimensions or resolutions mentioned above.

[0238] In some embodiments, the dynamic interface elements of the first user interface in the first layer are arranged sequentially in the first layer according to a first preset order.

[0239] For example, refer to Figure 8A and Figure 8B The dynamic interface elements in the layer are distributed in a non-overlapping order from left to right in the upper left corner of the layer.

[0240] In some embodiments, the above-described method of compositing the layers corresponding to the dynamic interface elements of each user interface in the first display screen into a first user interface image of a first resolution includes: determining the position of the first dynamic interface element in the first user interface image of the first resolution as a fifth position based on the third size and fourth position of the first dynamic interface element in the first layer; and compositing the first user interface image of the first resolution based on the third size and fifth position of the first dynamic interface element in the first layer.

[0241] For example, the fifth position of the first dynamic interface element can be the aforementioned position 5. (See reference...) Figure 8A and Figure 8B The dynamic interface elements of each layer are composited into the user interface image 2.

[0242] In some embodiments, dynamic interface elements of multiple layers in a first user interface image are arranged sequentially in a second preset order in the first user interface image.

[0243] For example, refer to Figure 8A and Figure 8B The dynamic interface elements of each layer are distributed in the user interface image 2 in a top-to-bottom order, with each layer as the unit.

[0244] In some embodiments, the above-described synthesis of a first user interface image with a first resolution based on the third size and fifth position of the first dynamic interface element in the first layer in the first user interface image includes: obtaining image data of a first region where the first dynamic interface element is located in the first layer, wherein the size of the first region is the third size and the position of the first region is the fourth position; and determining image data of a second region where the first dynamic interface element is located in the first user interface image, wherein the image data of the first region is the first region, wherein the size of the second region is the third size and the position of the second region is the fifth position.

[0245] In some embodiments, the above-mentioned synthesis of a first display screen with a second resolution based on a first user interface image with a first resolution and a first base image with a second resolution includes: acquiring image data of a second region in the first user interface image where a first dynamic interface element is located, wherein the size of the second region is a third size and the position of the second region is a fifth position; acquiring image data of a third region in the first base image, wherein the size of the third region is a third size and the position of the third region is a third position of the first dynamic interface element; and synthesizing the image data of the second region and the image data of the third region into image data of the third region of the first display screen to generate the first display screen; wherein the size of the third region is a third size and the position of the third region is a third position.

[0246] For example, the second region can be region 1 in the aforementioned user interface image 2, and the third region can be region 2 in the aforementioned base image.

[0247] In some embodiments, when the terminal device runs the first display screen, the interface elements whose displayed content is immutable in the first display screen are static interface elements, and the interface elements whose displayed content is mutable are dynamic interface elements; or, when the terminal device runs the first display screen, the interface elements whose displayed content has a change probability lower than a preset value are static interface elements, and the interface elements whose displayed content has a change probability greater than or equal to the preset value are dynamic interface elements.

[0248] In some embodiments, the above-described drawing of the first user interface image at a first resolution corresponding to the first display screen and obtaining the first base image at a second resolution of the first display screen includes: drawing the first user interface image at a first resolution corresponding to the first display screen at a first frame rate and obtaining the first base image at a second resolution of the first display screen at a second frame rate; the first frame rate is greater than the second frame rate; the above-described synthesis of the first display screen at a second resolution includes: synthesizing the first display screen at a second resolution at the first frame rate.

[0249] For example, the first frame rate can be the aforementioned frame rate 1, and the second frame rate can be the aforementioned frame rate 2.

[0250] In some embodiments, the fourth size is smaller than the first size, where the first size is the size of the first layer in a first user interface image at a first resolution. For example, a comparison... Figure 8A and Figure 6A (or comparison) Figure 8B and Figure 6B As can be seen, the fourth dimension (e.g., the dimension of layer 4 corresponding to status bar 101) is smaller than the first dimension (e.g., the dimension of layer 1 corresponding to status bar 101).

[0251] Compared to traditional layer drawing, the real-time implementation of this application further reduces the performance requirements and power consumption for drawing user interface images by reducing the size of the drawn layers.

[0252] In some embodiments, the fourth size is larger than the sum of the sizes of all dynamic interface elements of the first user interface in the first user interface image at the second resolution.

[0253] In some embodiments, the fourth dimension is determined by the terminal device based on the sum of the dimensions described above.

[0254] In some embodiments, the first dynamic interface element is a single dynamic interface element or a composite dynamic interface element composed of multiple dynamic interface elements.

[0255] In real-time embodiments of this application, drawing and compositing can be performed at the granularity of composite dynamic interface elements. This allows for a larger unit granularity in drawing and compositing, thereby improving the efficiency of drawing and compositing the displayed image.

[0256] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.

[0257] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0258] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0259] In summary, the above description is merely an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made according to the disclosure of the present invention should be included within the scope of protection of the present invention.

Claims

1. A display method, characterized in that, Applied to a terminal device, the terminal device including a display screen, the method includes: In response to a first instruction, a first user interface image at a first resolution corresponding to a first display screen is drawn, and a first base image at a second resolution of the first display screen is obtained; wherein, the first instruction is used to instruct the terminal device to draw the first display screen at the second resolution, the first user interface image includes dynamic interface elements in the first display screen, the first base image includes static interface elements in the first display screen, the terminal device stores base images of at least one drawn display screen, and the second resolution is greater than the first resolution; Based on the first user interface image at the first resolution and the first base image at the second resolution, the first display screen at the second resolution is synthesized; The first display screen is displayed on the screen.

2. The method according to claim 1, characterized in that, The first display screen includes at least one user interface, and drawing the first user interface image at a first resolution corresponding to the first display screen includes: A first layer corresponding to the dynamic interface elements of the first user interface is drawn, wherein the first user interface is any one of the at least one user interface, and the resolution of the first layer is less than or equal to the first resolution. The layers corresponding to the dynamic interface elements of each user interface in the first display screen are combined into the first user interface image at the first resolution.

3. The method according to claim 2, characterized in that, The first layer corresponding to the dynamic interface elements of the first user interface includes: Based on the interface layout of the first user interface, the size of the first layer in the first user interface image at the first resolution is determined to be a first size, the position of the first layer is determined to be a first position, the position of the first dynamic interface element in the first layer at the first size is determined to be a second position, and the size of the first dynamic interface element is determined to be a second size. The first dynamic interface element is any dynamic interface element of the first user interface in the first layer. Based on the second position and second size of the first dynamic interface element, the first dynamic interface element is drawn on the canvas of the first size, and the first layer of the first size corresponding to the dynamic interface element of the first user interface is generated.

4. The method according to claim 3, characterized in that, The step of compositing the layers corresponding to the dynamic interface elements of each user interface in the first display screen into the first user interface image at the first resolution includes: Based on the first position and first size of the first layer in the first user interface image at the first resolution, the layers corresponding to the dynamic interface elements of each user interface are combined into the first user interface image at the first resolution.

5. The method according to claim 4, characterized in that, The process of synthesizing the first display screen at the second resolution based on the first user interface image at the first resolution and the first base image at the second resolution includes: Enlarge the first user interface image at the first resolution to the first user interface image at the second resolution; The first user interface image at the second resolution and the first base image at the second resolution are combined to form the first display screen at the second resolution.

6. The method according to claim 2, characterized in that, The first layer corresponding to the dynamic interface elements of the first user interface includes: Based on the interface layout of the first user interface, the position of the first dynamic interface element in the first layer of the first user interface image at the second resolution is determined as the third position and the size of the first dynamic interface element is determined as the third size; based on the third size of the first dynamic interface element, the first dynamic interface element is drawn on a canvas of the fourth size to generate the first layer, wherein there is no overlap between the dynamic interface elements in the first layer, and the position of the first dynamic interface element in the first layer is the fourth position.

7. The method according to claim 6, characterized in that, In the first layer, each dynamic interface element of the first user interface is arranged in the first layer in a first preset order.

8. The method according to claim 6, characterized in that, The step of compositing the layers corresponding to the dynamic interface elements of each user interface in the first display screen into the first user interface image at the first resolution includes: Based on the third size and the fourth position of the first dynamic interface element in the first layer, the position of the first dynamic interface element in the first user interface image at the first resolution is determined to be the fifth position. The first user interface image at the first resolution is synthesized based on the third size and fifth position of the first dynamic interface element in the first layer within the first user interface image.

9. The method according to claim 8, characterized in that, The dynamic interface elements of multiple layers in the first user interface image are arranged sequentially in the first user interface image according to a second preset order.

10. The method according to claim 8, characterized in that, The process of synthesizing the first user interface image at the first resolution based on the third size and fifth position of the first dynamic interface element in the first layer within the first user interface image includes: Obtain the image data of the first region where the first dynamic interface element is located in the first layer, wherein the size of the first region is the third size and the position of the first region is the fourth position; The image data of the second region where the first dynamic interface element is located in the first user interface image is determined as the image data of the first region, the size of the second region is the third size, and the position of the second region is the fifth position.

11. The method according to claim 8, characterized in that, The process of synthesizing the first display screen at the second resolution based on the first user interface image at the first resolution and the first base image at the second resolution includes: Obtain image data of the second region where the first dynamic interface element is located in the first user interface image, wherein the size of the second region is the third size and the position of the second region is the fifth position; Obtain image data of the third region in the first base image, wherein the size of the third region is the third size, and the position of the third region is the third position of the first dynamic interface element; The image data of the second region and the image data of the third region are combined to form the image data of the third region of the first display screen, thereby generating the first display screen; the size of the third region is the third size, and the position of the third region is the third position.

12. The method according to claim 1, characterized in that, When the terminal device runs the first display screen, the interface elements whose displayed content cannot be changed in the first display screen are the static interface elements, and the interface elements whose displayed content can be changed are the dynamic interface elements; or, when the terminal device runs the first display screen, the interface elements whose displayed content has a change probability lower than a preset value are the static interface elements, and the interface elements whose displayed content has a change probability greater than or equal to the preset value are the dynamic interface elements.

13. The method according to any one of claims 1 to 11, characterized in that, The step of drawing a first user interface image at a first resolution corresponding to a first display screen and obtaining a first base image at a second resolution of the first display screen includes: The first user interface image at the first resolution corresponding to the first display screen is drawn at a first frame rate, and the first base image at the second resolution of the first display screen is obtained at a second frame rate; the first frame rate is greater than the second frame rate. The process of synthesizing the first display image at the second resolution includes: synthesizing the first display image at the second resolution using the first frame rate.

14. The method according to claim 6, characterized in that, The fourth size is smaller than the first size, where the first size is the size of the first layer in the first user interface image at the first resolution.

15. The method according to claim 6, characterized in that, The fourth size is greater than the sum of the sizes of all dynamic interface elements of the first user interface in the first user interface image at the second resolution.

16. The method according to claim 15, characterized in that, The fourth dimension is determined by the terminal device based on the sum of the dimensions.

17. The method according to claim 3 or 6, characterized in that, The first dynamic interface element is a single dynamic interface element or a composite dynamic interface element composed of multiple dynamic interface elements.

18. A terminal device, comprising a touchscreen, a memory, one or more processors, multiple applications, and one or more programs; wherein, The one or more programs are stored in the memory; characterized in that, when the one or more processors execute the one or more programs, the terminal device causes the terminal device to implement the method as described in any one of claims 1 to 17.

19. A computer storage medium, characterized in that, Includes computer instructions that, when executed on a terminal device, cause the electronic device to perform the method as described in any one of claims 1 to 17.

20. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 17.

Citation Information

Patent Citations

  • Two dimension situation map forming method and electronic equipment

    CN106780659A

  • Virtual picture processing method and virtual picture processing device

    CN110860084A