Multi-screen synthesis sending and displaying method, device and equipment based on OpenHarmony system and storage medium

By increasing and decreasing work threads according to the number of display nodes in the OpenHarmony system, the synthesized display task is processed in parallel when displaying multiple screens, which solves the problem of low frame rate during displaying multiple screens, and improves the picture frame rate and user experience.

CN119917044AActive Publication Date: 2025-05-02HONGHU WANLIAN (JIANGSU) TECH DEV CO LTD +1
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202510302756.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-13
Publication Date
2025-05-02
Estimated Expiration
2045-03-13

AI Technical Summary

Technical Problem

In OpenHarmony system, the frame rate of multi-screen display is low, resulting in the user clearly perceived the frame rate of the screen decreases, affecting the user's user experience when switching from single-screen display to multi-screen display.

Method used

When receiving the synthesis and display task, the worker thread is increased or decreased according to the number of currently connected display nodes, and at least one new layer synthesis thread is obtained, with the number greater than 1; the synthesis and display task is sent to the original layer synthesis thread or the new layer synthesis thread is processed to obtain the synthesis result; the synthesis result is sent to the display node corresponding to the synthesis and display task for display.

Benefits of technology

It realizes the complete parallel processing of the synthetic display task, adapting to the changes in the number of display nodes, ensuring that each display node has a worker thread to process its synthetic display task, improving the frame rate of the screen when displaying multiple screens, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917044A_ABST
    Figure CN119917044A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a multi-screen synthesis sending and displaying method and device based on an OpenHarmony system, equipment and a storage medium. The method comprises the steps that under the condition that a synthesis sending display task is received, working threads are increased or decreased according to the number of currently-connected display nodes, at least one newly-added layer synthesis thread is obtained, and the number is larger than 1; sending the synthesis sending display task to an original layer synthesis thread or a newly added layer synthesis thread for processing to obtain a synthesis result; and sending the synthesis result to a display node corresponding to the synthesis sending display task for display. The working threads are increased or decreased according to the number of the display nodes, so that the number of the display nodes and the number of the working threads can be kept consistent, complete parallel processing of synthesis sending and displaying tasks can be achieved, and when the display nodes are increased or decreased, the number of the working threads can be adaptively adjusted; each display node is ensured to have one working thread to process the synthesis sending display task, the picture frame rate during multi-screen display is improved, and the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of display screen synthesis and rendering, and in particular to a multi-screen synthesis display method, device, equipment and storage medium based on an OpenHarmony system. Background Art

[0002] In the OpenHarmony system, when performing multi-screen display, for example, connecting more than two monitors, each monitor displays the same picture, that is, multi-screen simultaneous display, connecting more than two monitors, each monitor displays a different picture, that is, multi-screen different display, the display frame rate is lower.

[0003] This will result in users noticing a significant drop in picture frame rate when switching from single-screen display to multi-screen display, affecting their experience. Summary of the invention

[0004] The embodiments of the present application provide a multi-screen synthesis display method, device, equipment and storage medium based on the OpenHarmony system to increase the picture frame rate during multi-screen display and enhance the user experience.

[0005] In a first aspect, an embodiment of the present application provides a multi-screen synthesis display method based on an OpenHarmony system, the method comprising:

[0006] When receiving a synthesis and display sending task, increase or decrease the working threads according to the number of currently connected display nodes, and obtain at least one new layer synthesis thread, the number of which is greater than 1;

[0007] Send the synthesis display task to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain the synthesis result;

[0008] The synthesis result is sent to the display node corresponding to the synthesis display task for display.

[0009] In a second aspect, an embodiment of the present application provides a multi-screen synthesis display device based on an OpenHarmony system, comprising:

[0010] A thread adjustment module is used to increase or decrease the working threads according to the number of currently connected display nodes when receiving a synthesis and display sending task, so as to obtain at least one new layer synthesis thread, the number of which is greater than 1;

[0011] The layer synthesis module is used to send the synthesis display task to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain the synthesis result;

[0012] The display sending module is used to send the synthesis result to the display node corresponding to the synthesis display sending task for display.

[0013] In a third aspect, the embodiment of the present application further provides a multi-screen synthesis display device based on the OpenHarmony system, and the multi-screen synthesis display device based on the OpenHarmony system includes:

[0014] one or more processors;

[0015] a storage device for storing one or more programs,

[0016] When one or more programs are executed by one or more processors, the one or more processors implement a multi-screen synthesis display method based on the OpenHarmony system as provided in any embodiment of the present application.

[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, a multi-screen synthesis display method based on the OpenHarmony system as provided in any embodiment of the present application is implemented.

[0018] The technical solution of the embodiment of the present application, when receiving a synthesis and display task, increases or decreases the working threads according to the number of currently connected display nodes, obtains at least one new layer synthesis thread, the number of which is greater than 1; sends the synthesis and display task to the original layer synthesis thread or the new layer synthesis thread for processing, obtains the synthesis result; sends the synthesis result to the display node corresponding to the synthesis and display task for display. Based on this, the present application will increase or decrease the working threads according to the number of display nodes, so that the number of display nodes and the number of working threads can be consistent, so that the synthesis and display tasks can be processed completely in parallel, and when the display nodes increase or decrease, the number of working threads can be adjusted to ensure that each display node will have a working thread to process its synthesis and display task, improve the picture frame rate during multi-screen display, and enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of the process of a multi-screen synthesis and display method based on the OpenHarmony system provided in Example 1 of the present application;

[0020] Figure 2 A schematic diagram of the structure of a multi-screen synthesis display device based on the OpenHarmony system provided in Example 2 of the present application;

[0021] Figure 3 A schematic diagram of the structure of a multi-screen synthesis display device based on the OpenHarmony system provided in Example 3 of the present application. DETAILED DESCRIPTION

[0022] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0023] Embodiment 1

[0024] Figure 1 A flowchart of a multi-screen synthesis display method based on the OpenHarmony system provided in the first embodiment of the present application is shown in FIG. Figure 1 As shown, the multi-screen synthesis and display method based on the OpenHarmony system provided in this embodiment can be implemented based on a multi-screen synthesis and display device based on the OpenHarmony system equipped with a video acquisition terminal, and specifically may include the following steps:

[0025] Step 101: When a synthesis and display task is received, increase or decrease the number of working threads according to the number of currently connected display nodes to obtain at least one new layer synthesis thread, the number of which is greater than 1.

[0026] In this embodiment, the synthesis and display task refers to the task of synthesizing the layers drawn on a certain display interface and then sending them to the display driver of the display node for display. Among them, a certain display interface is usually composed of multiple layers, such as a status bar, a display area, a title area, a desktop, etc. The process of generating layers is usually a canvas rendering process, which can refer to the relevant technology and will not be repeated here.

[0027] It should be noted that the synthesis and display task received in this step includes multiple layer information and bound display node identification information. After receiving the synthesis and display task, the number of working threads can be increased or decreased first.

[0028] Specifically, the number of currently connected display nodes may be obtained first, and the thread pool may be started when the number meets the preset thread pool start condition; then the number of working threads in the thread pool may be adjusted according to the number to obtain at least one new layer synthesis thread.

[0029] Among them, the display node is a display. When the system is connected to one display, there is one corresponding display node. When two displays are connected, there are two corresponding display nodes. Each display node corresponds to a display one by one, that is, each time a new display is connected, a new display node will be added.

[0030] In addition, in the OpenHarmony system, each time a display is connected, a display node is added in the form of a display node tree. All the connected display nodes constitute a display node tree. By traversing the nodes in the display node tree and counting them, the number of current display nodes can be obtained.

[0031] Therefore, when obtaining the number of display nodes, the display node tree can be traversed and the nodes in the display node tree can be counted. After the traversal is completed, the number of currently connected display nodes can be obtained. In a specific example, there are 5 nodes in the display node tree. After traversal, the count is accumulated by 1 for each traversal of a node. After the traversal is completed, the final count value is the number of currently connected display nodes.

[0032] It should be noted that since the display node tree is usually real-time, it will perform hardware (i.e., display) identification and refresh based on a certain refresh rate, and can characterize the status of the currently actually connected display in real time. Therefore, based on the display node tree, the number of display nodes obtained is most consistent with the number of actually connected displays, which can make the solution of the present application more accurately executed.

[0033] In addition, the preset thread pool opening condition is that the number of display nodes is greater than 1. It should be noted that this embodiment is for each display node's synthesis and display tasks to be processed in parallel with other display nodes' synthesis and display tasks. Therefore, the preset thread pool opening condition may be that the number of display nodes is greater than 1.

[0034] If the number of display nodes is greater than 1, it means that the number of displays connected to the current system is greater than 1. The serial synthesis and display transmission method in the prior art will prolong the waiting time of each display, thereby affecting its display frame rate. In this embodiment, as long as the number of displays is greater than 1, the thread pool is started and the number of working threads in the thread pool is adjusted. This can ensure that the synthesis and display transmission tasks of each display are executed in parallel, shorten the waiting time of each display, and help improve the frame rate.

[0035] When adjusting the number of worker threads in the thread pool according to the quantity, since there may be many worker threads in the thread pool before, this adjustment is to make the number of worker threads in the thread pool match the number of display nodes.

[0036] Therefore, the number of threads currently required in the thread pool can be determined according to the number of display nodes; according to the number of threads and the number of existing working threads in the thread pool, the working threads in the thread pool are increased or decreased to obtain at least one new layer synthesis thread.

[0037] Specifically, since the system itself comes with an original layer synthesis thread, the number of working threads in the thread pool can be the difference between the number of display nodes and 1. Each working thread in the adjusted thread pool is a newly added layer synthesis thread.

[0038] It should be noted that if the number of working threads in the previous thread pool is greater than the difference, some working threads are closed to reduce their number to the difference; if the number of working threads in the previous thread pool is less than the difference, some working threads are opened to increase their number to the difference.

[0039] In order to further reduce the consumption of thread resources, the preset thread pool start condition can also be set to display nodes with a number greater than 1 and multiple display nodes whose frequency of synthetic display tasks is greater than a preset frequency value.

[0040] The frequency of synthetic display tasks refers to the number of synthetic display tasks that need to be processed per unit time. The higher the frequency, the higher the demand for refreshing the page of the display node. For multi-screen display scenarios, the display corresponding to the display node is usually the main display used by the user. The lower the frequency, the lower the demand for refreshing the page of the display node, and the user rarely uses the display corresponding to the display node.

[0041] In this embodiment, the preset frequency value can be set according to the customer application scenario. When adjusting the number of working threads in the thread pool, the number of working threads can be adjusted to the number of display nodes whose frequency of synthetic display tasks is greater than the preset frequency value.

[0042] It should be noted that the number of working threads in the thread pool here is the difference between the number of display nodes whose frequency of synthetic display sending tasks is greater than the preset frequency value minus 1.

[0043] It should be noted that if you need to close a thread, you need to wait for the processing task of the thread to be completed and delivered before closing it. Of course, when closing the entire thread pool, you also need to wait for the processing tasks of each thread in the thread pool to be completed and delivered before closing it.

[0044] Step 102: Send the synthesis and display task to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain the synthesis result.

[0045] In this step, it can be determined whether the display node corresponding to the synthesis and display task is the first node in the display node tree; if so, the synthesis and display task is sent to the original layer synthesis thread for processing to obtain the synthesis result; if not, the synthesis and display task is sent to the newly added layer synthesis thread for processing to obtain the synthesis result.

[0046] It should be noted that in the display node tree, the first node is usually the default display of the system, which is also usually the display most used by users. In order to improve the user experience, this embodiment allocates the original layer synthesis thread in the system specifically to this display for use.

[0047] Therefore, when sending a synthetic display task, you can first determine whether the display node corresponding to the synthetic display task is the first node in the display node tree. Each display node has its own identifier, which is also reflected in the display node tree. Therefore, you can first obtain the identifier of the first node in the display node tree, and then compare it with the identifier of the display node carried in the synthetic display task. If they are consistent, it can be determined that it is the synthetic display task of the first node.

[0048] Step 103: Send the synthesis result to the display node corresponding to the synthesis display task for display.

[0049] In this step, after obtaining the synthesis result, the process of this step can be implemented with the help of the synthesis result buffer mechanism (wherein the synthesis result buffer is a mechanism for temporarily storing and transmitting the synthesis result to ensure that the display can be refreshed smoothly). Specifically, a synthesis completion signal can be sent to the main thread, and the main thread obtains the synthesis result of the corresponding thread according to the completion signal; the synthesis result is sent to the display node corresponding to the synthesis display task for display.

[0050] It should be noted that a main thread is provided in this embodiment. The main thread is the core thread responsible for generating the entire interface. After obtaining the synthesis result, the working thread in the thread pool will send a synthesis completion signal to the main thread. The synthesis completion signal may include a thread identifier and a display node identifier.

[0051] The main thread may obtain the synthesis result of the corresponding thread based on the thread identifier, and send the synthesis result to the corresponding display node for display according to the display node identifier.

[0052] In this embodiment, when a synthesis and display sending task is received, the working threads are increased or decreased according to the number of currently connected display nodes, and at least one newly added layer synthesis thread is obtained, the number of which is greater than 1; the synthesis and display sending task is sent to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain a synthesis result; the synthesis result is sent to the display node corresponding to the synthesis and display sending task for display. Based on this, the present application will increase or decrease the working threads according to the number of display nodes, so that the number of display nodes and the number of working threads can be kept consistent, so that the synthesis and display sending tasks can be processed completely in parallel, and when the display nodes increase or decrease, the number of working threads can be adjusted to ensure that each display node will have a working thread to process its synthesis and display sending task, thereby improving the picture frame rate during multi-screen display. For the 1080P dual display scenario, the solution of this embodiment is used to increase the average frame rate to about 13 frames, thereby improving the user experience.

[0053] Embodiment 2

[0054] Figure 2 This is a schematic diagram of the structure of a multi-screen synthesis and display device based on the OpenHarmony system provided in the second embodiment of the present application. The multi-screen synthesis and display device based on the OpenHarmony system provided in the embodiment of the present application can execute the multi-screen synthesis and display method based on the OpenHarmony system provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. The device can be implemented in software and / or hardware, such as Figure 2 As shown, the device comprises:

[0055] The thread adjustment module 201 is used to increase or decrease the working threads according to the number of currently connected display nodes when receiving the synthesis and display sending task, so as to obtain at least one new layer synthesis thread, the number of which is greater than 1;

[0056] The layer synthesis module 202 is used to send the synthesis display task to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain the synthesis result;

[0057] The display sending module 203 is used to send the synthesis result to the display node corresponding to the synthesis display sending task for display.

[0058] Furthermore, the thread adjustment module is specifically used for:

[0059] Get the number of currently connected display nodes, and start the thread pool if the number meets the preset thread pool start condition;

[0060] The number of working threads in the thread pool is adjusted according to the quantity to obtain at least one new layer synthesis thread.

[0061] Furthermore, the preset thread pool start condition is that the number of display nodes is greater than 1.

[0062] Furthermore, the thread adjustment module is specifically used for:

[0063] Determine the number of threads currently required in the thread pool based on the number of display nodes;

[0064] According to the number of threads and the number of existing working threads in the thread pool, the working threads in the thread pool are increased or decreased to obtain at least one new layer synthesis thread.

[0065] Furthermore, the layer synthesis module is specifically used for:

[0066] Determine whether the display node corresponding to the synthesis display sending task is the first node in the display node tree;

[0067] If yes, send the synthesis display task to the original layer synthesis thread for processing to obtain the synthesis result;

[0068] If not, the synthesis display task is sent to the newly added layer synthesis thread for processing to obtain the synthesis result.

[0069] Furthermore, the thread adjustment module is specifically used for:

[0070] The display node tree is traversed and the nodes in the display node tree are counted. After the traversal is completed, the number of currently connected display nodes is obtained.

[0071] Furthermore, the display module is specifically used for:

[0072] After obtaining the synthesis result, a synthesis completion signal is sent to the main thread, and the main thread obtains the synthesis result of the corresponding thread according to the completion signal;

[0073] The synthesis result is sent to the display node corresponding to the synthesis display task for display.

[0074] Embodiment 3

[0075] Figure 3 A schematic diagram of the structure of a multi-screen synthesis display device based on the OpenHarmony system provided in the fourth embodiment of the present application is shown in FIG. Figure 3 As shown, the multi-screen synthesis display device based on the OpenHarmony system also includes a processor 310, a memory 320, an input device 330 and an output device 340; the number of the processor 310 in the multi-screen synthesis display device based on the OpenHarmony system can be one or more. Figure 3A processor 310 is taken as an example; the processor 310, the memory 320, the input device 330 and the output device 340 in the multi-screen synthesis display device based on the OpenHarmony system can be connected through a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0076] The memory 320, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the multi-screen synthesis and display method based on the OpenHarmony system in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the multi-screen synthesis and display device based on the OpenHarmony system by running the software programs, instructions and modules stored in the memory 320, that is, to implement the above-mentioned multi-screen synthesis and display method based on the OpenHarmony system:

[0077] When receiving a synthesis and display sending task, increase or decrease the working threads according to the number of currently connected display nodes, and obtain at least one new layer synthesis thread, the number of which is greater than 1;

[0078] Send the synthesis display task to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain the synthesis result;

[0079] The synthesis result is sent to the display node corresponding to the synthesis display task for display.

[0080] Furthermore, the working threads are increased or decreased according to the number of currently connected display nodes to obtain at least one newly added layer synthesis thread, including:

[0081] Get the number of currently connected display nodes, and start the thread pool if the number meets the preset thread pool start condition;

[0082] The number of working threads in the thread pool is adjusted according to the quantity to obtain at least one new layer synthesis thread.

[0083] Furthermore, the preset thread pool start condition is that the number of display nodes is greater than 1.

[0084] Further, the number of working threads in the thread pool is adjusted according to the number to obtain at least one new layer synthesis thread, including:

[0085] Determine the number of threads currently required in the thread pool based on the number of display nodes;

[0086] According to the number of threads and the number of existing working threads in the thread pool, the working threads in the thread pool are increased or decreased to obtain at least one new layer synthesis thread.

[0087] Furthermore, the synthesis display task is sent to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain the synthesis result, including:

[0088] Determine whether the display node corresponding to the synthesis display sending task is the first node in the display node tree;

[0089] If yes, send the synthesis display task to the original layer synthesis thread for processing to obtain the synthesis result;

[0090] If not, the synthesis display task is sent to the newly added layer synthesis thread for processing to obtain the synthesis result.

[0091] Furthermore, the number of currently connected display nodes is obtained, including:

[0092] The display node tree is traversed and the nodes in the display node tree are counted. After the traversal is completed, the number of currently connected display nodes is obtained.

[0093] Further, the synthesis result is sent to the display node corresponding to the synthesis display task for display, including:

[0094] After obtaining the synthesis result, a synthesis completion signal is sent to the main thread, and the main thread obtains the synthesis result of the corresponding thread according to the completion signal;

[0095] The synthesis result is sent to the display node corresponding to the synthesis display task for display.

[0096] The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 320 may further include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to a multi-screen synthesis display device based on the OpenHarmony system via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0097] Embodiment 4

[0098] Embodiment 4 of the present application further provides a storage medium including computer executable instructions, which are used to execute a multi-screen synthesis display method based on the OpenHarmony system when executed by a computer processor, the method comprising:

[0099] When receiving a synthesis and display sending task, increase or decrease the working threads according to the number of currently connected display nodes, and obtain at least one new layer synthesis thread, the number of which is greater than 1;

[0100] Send the synthesis display task to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain the synthesis result;

[0101] The synthesis result is sent to the display node corresponding to the synthesis display task for display.

[0102] Furthermore, the working threads are increased or decreased according to the number of currently connected display nodes to obtain at least one newly added layer synthesis thread, including:

[0103] Get the number of currently connected display nodes, and start the thread pool if the number meets the preset thread pool start condition;

[0104] The number of working threads in the thread pool is adjusted according to the quantity to obtain at least one new layer synthesis thread.

[0105] Furthermore, the preset thread pool start condition is that the number of display nodes is greater than 1.

[0106] Further, the number of working threads in the thread pool is adjusted according to the number to obtain at least one new layer synthesis thread, including:

[0107] Determine the number of threads currently required in the thread pool based on the number of display nodes;

[0108] According to the number of threads and the number of existing working threads in the thread pool, the working threads in the thread pool are increased or decreased to obtain at least one new layer synthesis thread.

[0109] Furthermore, the synthesis display task is sent to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain the synthesis result, including:

[0110] Determine whether the display node corresponding to the synthesis display sending task is the first node in the display node tree;

[0111] If yes, send the synthesis display task to the original layer synthesis thread for processing to obtain the synthesis result;

[0112] If not, the synthesis display task is sent to the newly added layer synthesis thread for processing to obtain the synthesis result.

[0113] Furthermore, the number of currently connected display nodes is obtained, including:

[0114] The display node tree is traversed and the nodes in the display node tree are counted. After the traversal is completed, the number of currently connected display nodes is obtained.

[0115] Further, the synthesis result is sent to the display node corresponding to the synthesis display task for display, including:

[0116] After obtaining the synthesis result, a synthesis completion signal is sent to the main thread, and the main thread obtains the synthesis result of the corresponding thread according to the completion signal;

[0117] The synthesis result is sent to the display node corresponding to the synthesis display task for display.

[0118] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the above method operations, and the computer executable instructions can also execute related operations in the multi-screen synthesis display method based on the OpenHarmony system provided in any embodiment of the present application.

[0119] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0120] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0121] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A multi-screen synthesis display method based on the OpenHarmony system, characterized in that: The method comprises: When receiving a synthesis and display sending task, increase or decrease the working threads according to the number of currently connected display nodes to obtain at least one newly added layer synthesis thread, the number of which is greater than 1; Sending the synthesis and display task to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain a synthesis result; The synthesis result is sent to the display node corresponding to the synthesis display task for display.

2. The method according to claim 1, characterized in that The step of increasing or decreasing working threads according to the number of currently connected display nodes to obtain at least one newly added layer synthesis thread includes: Obtain the number of currently connected display nodes, and start the thread pool if the number meets the preset thread pool start condition; The number of working threads in the thread pool is adjusted according to the number to obtain at least one newly added layer synthesis thread.

3. The method according to claim 2, characterized in that The preset thread pool start condition is that the number of display nodes is greater than 1.

4. The method according to claim 2, characterized in that: The step of adjusting the number of working threads in the thread pool according to the number to obtain at least one newly added layer synthesis thread includes: Determine the number of threads currently required in the thread pool according to the number of display nodes; According to the number of threads and the number of existing working threads in the thread pool, the working threads in the thread pool are increased or decreased to obtain at least one newly added layer synthesis thread.

5. The method according to claim 1, characterized in that The step of sending the synthesis and display task to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain a synthesis result includes: Determine whether the display node corresponding to the synthetic display sending task is the first node in the display node tree; If yes, the synthesis display task is sent to the original layer synthesis thread for processing to obtain the synthesis result; If not, the synthesis and display task is sent to the newly added layer synthesis thread for processing to obtain the synthesis result.

6. The method according to claim 2, characterized in that Get the number of currently connected display nodes, including: The display node tree is traversed, and the nodes in the display node tree are counted. After the traversal is completed, the number of currently connected display nodes is obtained.

7. The method according to claim 1, characterized in that The step of sending the synthesis result to a display node corresponding to the synthesis display task for display includes: After obtaining the synthesis result, sending a synthesis completion signal to the main thread, and the main thread obtains the synthesis result of the corresponding thread according to the completion signal; The synthesis result is sent to the display node corresponding to the synthesis display task for display.

8. A multi-screen synthesis display device based on the OpenHarmony system, characterized in that: include: A thread adjustment module, for, upon receiving a synthesis and display sending task, increasing or decreasing working threads according to the number of currently connected display nodes, to obtain at least one newly added layer synthesis thread, the number of which is greater than 1; A layer synthesis module, used for sending the synthesis and display task to the original layer synthesis thread or the newly added layer synthesis thread for processing to obtain a synthesis result; The display sending module is used to send the synthesis result to the display node corresponding to the synthesis display sending task for display.

9. A multi-screen synthesis display device based on the OpenHarmony system, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the multi-screen synthesis display method based on the OpenHarmony system as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a multi-screen synthesis display method based on the OpenHarmony system as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Data calling system and method between related systems

    CN108429780A

  • Method and system for virtually transmitting Linux virtual machine screen picture based on AMD display card

    CN111240631A

  • Image display scheduling method applied to Android system, terminal and storage medium

    CN113064727A

  • Multi-screen management method and device, electronic equipment and storage medium

    CN113377315A

  • Task processing method and device, storage medium and electronic equipment

    CN114661473A