A display method, device, equipment and medium for spliced ​​screen

Through multi-threading and shared context texture technology, the synchronization problem of multi-screen splicing display is solved, stable and efficient display of large splicing screens is achieved, screen tearing is avoided, and business expansion capabilities are enhanced.

CN118349206BActive Publication Date: 2024-08-27CHENGDU YINYUE CHUANGXIANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410781371.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-08-27
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

Existing technology is difficult to realize multi-screen splicing display and cannot adapt to the video signal segmentation and synthesis requirements of large splicing screens, resulting in screen tearing and synchronization problems.

Method used

By creating multi-threads and sharing context textures, MGLSurfaceView and Qt off-screen rendering technology are used to handle the rendering of video and GUI components respectively, achieving synchronous display of multiple screens and ensuring the overall splicing of video images, text and animations.

Benefits of technology

It achieves simultaneous display of multiple screens, avoids screen tearing, enhances business expansion capabilities, and adapts to the display needs of large splicing screens.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118349206B
    Figure CN118349206B
Patent Text Reader

Abstract

The present invention relates to the field of screen display technology, and in particular to a display method, device, equipment and medium for a spliced ​​screen. The method comprises: obtaining N screens, determining a main screen and N-1 secondary screens; creating a first thread, and creating an MGLSurfaceView corresponding to each screen respectively, and adding the MGLSurfaceView to the first thread; when accessing video resources, forming a first layer of pictures on the N screens based on the first thread; creating a second thread and a main.qml file; creating any one or more components of text, buttons and animations in the main.qml file through a Qt GUI framework, and forming a second layer of pictures on the N screens based on the second thread; superimposing the second layer of pictures on the first layer of pictures to form a target picture, and rewriting the source code of the picture display so that the picture can adapt to the display of the spliced ​​screen, will not be torn, and has stronger business expansion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of screen display technology, and in particular to a display method, device, equipment and medium for a spliced ​​screen. Background Art

[0002] With the continuous development of multimedia technology, users are no longer satisfied with single-screen, low-resolution digital multimedia scenes, but have a growing demand for large-screen, spliced ​​screens, and other scenes, such as display screens used in large-scale performances or in KTV scenes. At present, the mainstream way of set-top boxes is to use a single screen to achieve spliced ​​screen fusion display through split chips, that is, to split the output signal of the set-top box into N-way signal output according to a specific algorithm.

[0003] However, this method only splits the video signal for display on a single screen and cannot adapt to multi-screen display.

[0004] Therefore, how to realize the display of spliced ​​screens is a technical problem that needs to be solved urgently. Summary of the invention

[0005] In view of the above problems, the present invention provides a display method, device, equipment and medium for a spliced ​​screen that overcomes the above problems or at least partially solves the above problems.

[0006] In a first aspect, the present invention provides a display method of a spliced ​​screen, which is applied to the spliced ​​display of N screens, comprising:

[0007] Obtain the N screens, and determine a main screen and N-1 secondary screens;

[0008] Create a first thread and create an MGLSurfaceView for each screen;

[0009] Add the MGLSurfaceView to the first thread;

[0010] Creating a first context and a first texture through the main screen, and the N screens share the first context and the first texture;

[0011] When accessing the video resource, based on the first thread, forming a first layer of images on the N screens;

[0012] Create a second thread and main.qml file;

[0013] The main screen creates the main.qml file as a second context and a second texture through Qt off-screen rendering;

[0014] Sharing the second context and the second texture among the N screens;

[0015] adding the second context and the second texture to the second thread;

[0016] Create any one or more components among text, button and animation in the main.qml file by using the Qt GUI framework, and form a second layer screen on the N screens based on the second thread;

[0017] The second layer image is superimposed on the first layer image to form a target image, so that the N screens synchronously display the target image, and the target image includes any one or more components of video images, texts, buttons and animations.

[0018] Preferably, when accessing the video resource, forming a first layer picture on the N screens based on the first thread includes:

[0019] When accessing the video resource, based on the first thread, the player calls the decoding library to decode the video resource to form the first layer picture on each screen.

[0020] Preferably, when accessing the video resource, forming a first layer picture on the N screens based on the first thread, further includes:

[0021] Creating a first vertex shader for each screen and a first fragment shader for the first screen;

[0022] According to the order in which the MGLSurfaceView joins the first thread, based on the first vertex shader, the first fragment shader and OpenGL, calculate the first vertex coordinates of each screen and the first fragment coordinates of the first picture;

[0023] Based on the first vertex coordinates and the first fragment coordinates, a first layer picture on each screen is rendered, and the first layer picture is the first picture before being rendered.

[0024] Preferably, when accessing the video resource, after forming the first layer picture on the N screens based on the first thread, the method further includes:

[0025] According to the first preset cycle, the order in which the MGLSurfaceView joins the first thread is cyclically executed, based on the first vertex shader, the first fragment shader and OpenGL, the first vertex coordinates of each screen and the first fragment coordinates of the first picture are calculated, and based on the first vertex coordinates and the first fragment coordinates, the steps of rendering to form the first layer pictures on N screens are performed to form a video picture.

[0026] Preferably, any one or more components among text, button and animation are created in the main.qml file through the Qt GUI framework, and a second layer screen is formed on the N screens based on the second thread, including:

[0027] Create any one or more components of text, button and animation in the main.qml file through the Qt GUI framework;

[0028] Create a second vertex shader and a second fragment shader for each screen;

[0029] Calculate the second vertex coordinates of each screen and the second fragment coordinates of the second screen based on the second vertex shader and the second fragment shader and OpenGL;

[0030] Based on the second vertex coordinates and the second fragment coordinates, and any one or more components of the text, button and animation, a second layer picture is formed on each screen by executing the second thread, and the second layer picture is the second picture before rendering.

[0031] Preferably, after creating any one or more components of text, button and animation in the main.qml file through the Qt GUI framework, and forming the second layer screen on the N screens based on the second thread, the method further includes:

[0032] According to the second preset cycle, the second vertex shader, the second fragment shader and OpenGL are used to calculate the second vertex coordinates and the second fragment coordinates of each screen, and the second layer coordinates of the second screen are formed on each screen based on the second thread based on the second vertex coordinates and the second fragment coordinates, and any one or more components of the text, button and animation, and the display is performed as required.

[0033] Preferably, after the second layer image is superimposed on the first layer image to form a target image, so that the N screens synchronously display the target image, and the target image includes any one or more components of a video image, text, button and animation, the method further includes:

[0034] By modifying the properties of any one or more components in the text, buttons, and animations in the main.qml file, the combination of components, and changing video resources, you can achieve different target screen display effects.

[0035] In a second aspect, the present invention further provides a display device of a spliced ​​screen, which is applied to the spliced ​​display of N screens, comprising:

[0036] An acquisition module, used to acquire the N screens, and determine a main screen and N-1 secondary screens;

[0037] The first creation module is used to create a first thread and create an MGLSurfaceView corresponding to each screen;

[0038] A first adding module, used for adding the MGLSurfaceView to the first thread;

[0039] A second creation module is configured to create a first context and a first texture through the main screen, wherein the N screens share the first context and the first texture.

[0040] A first forming module, configured to form a first layer of images on the N screens based on the first thread when accessing a video resource;

[0041] The third creation module is used to create a second thread and a main.qml file;

[0042] A fourth creation module is used for the main screen to create the main.qml file as a second context and a second texture through Qt off-screen rendering, and the N screens share the second context and the second texture;

[0043] A sharing module, configured to share the second context and the second texture among the N screens;

[0044] A second adding module, used for adding the second context and the second texture to the second thread;

[0045] A second forming module is used to create any one or more components of text, button and animation in the main.qml file through the Qt GUI framework, and form a second layer screen on the N screens based on the second thread;

[0046] The third forming module is used to superimpose the second layer picture on the first layer picture to form a target picture, so that the N screens synchronously display the target picture, and the target picture includes any one or more components of video pictures, texts, buttons and animations.

[0047] In a third aspect, the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the program.

[0048] In a fourth aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect.

[0049] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:

[0050] The present invention provides a display method of a spliced ​​screen, which is applied to the spliced ​​display of N screens, including: obtaining N screens, determining a main screen and N-1 secondary screens; creating a first thread, and creating MGLSurfaceView corresponding to each screen respectively, and adding MGLSurfaceView to the first thread; creating a first context and a first texture through the main screen, and the N screens share the first context and the first texture; when accessing video resources, based on the first thread, forming a first layer screen on the N screens; creating a second thread and a main.qml file; the main screen creates the main.qml file as a second context and a second texture through Qt off-screen rendering; adding the second context and the second texture to the second thread; through Qt The GUI framework creates any one or more components including text, buttons and animation in the main.qml file, and forms a second layer of screens on N screens based on the second thread; the second layer of screen is superimposed on the first layer of screen to form a target screen, so that the N screens display the target screen synchronously, and the target screen includes any one or more components including video screen, text, buttons and animation. By rewriting the source code of the screen display, the screen can adapt to the display of the spliced ​​screen, will not be torn, and the business expansion is stronger. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Also, throughout the accompanying drawings, the same reference figures are used to represent the same components. In the drawings:

[0052] Figure 1 A schematic diagram showing the steps of a display method for a spliced ​​screen in an embodiment of the present invention is shown;

[0053] Figure 2 A schematic diagram of a spliced ​​screen formed by splicing four screens in an embodiment of the present invention is shown;

[0054] Figure 3 A schematic diagram of the structure of a display device of a spliced ​​screen in an embodiment of the present invention is shown;

[0055] Figure 4 A schematic diagram of the structure of a computer device for implementing a display method of a spliced ​​screen in an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0056] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0057] Embodiment 1

[0058] An embodiment of the present invention provides a display method of a spliced ​​screen, such as Figure 1 As shown, including:

[0059] S101, obtain N screens, determine a main screen and N-1 secondary screens;

[0060] S102, creating a first thread, and creating an MGLSurfaceView for each screen respectively;

[0061] S103, adding MGLSurfaceView to the first thread;

[0062] S104, creating a first context and a first texture through the main screen, and N screens share the first context and the first texture;

[0063] S105, when accessing the video resource, forming a first layer of images on N screens based on the first thread;

[0064] S106, creating a second thread and a main.qml file;

[0065] S107, the main screen creates the main.qml file as a second context and a second texture through Qt off-screen rendering;

[0066] S108, sharing the second context and the second texture among the N screens;

[0067] S109, adding the second context and the second texture to the second thread;

[0068] S110, creating any one or more components of text, button and animation in the main.qml file through the Qt GUI framework, and forming a second layer screen on N screens based on the second thread;

[0069] S111, superimposing the second layer picture on the first layer picture to form a target picture, so that N screens synchronously display the target picture, and the target picture includes any one or more components of text, button and animation.

[0070] In a specific implementation, the technical solution of the present invention is applicable to the field of VOD entertainment. For example, in a KTV scene, the first layer of the screen refers to the MV screen of the actual song, and the second layer of the screen is the prompt information or blessing words fixed or scrolled on the MV screen. In order to realize the display of the overall screen of the spliced ​​screen, it is specifically displayed in the following manner:

[0071] S101, obtaining N screens, for example, a spliced ​​screen formed by splicing 4 screens, placing each of the 4 screens of the same size vertically, and arranging the 4 screens horizontally, to form a spliced ​​screen as shown in FIG. Figure 2 The layout shown.

[0072] Next, S102, a first thread is created, and an MGLSurfaceView is created for each screen respectively.

[0073] Among them, MGLSurfaceView is a reconstructed GLSurfaceView. SurfaceView refers to a canvas provided by Android, on which users can draw any pattern. GLSurfaceView is an OpenGL and Surface collection encapsulated by Android, mainly used for OpenGL rendering layers.

[0074] Then, execute S103 to add MGLSurfaceView to the first thread.

[0075] The first thread (MGLThread, reconstructing GLThread to achieve one thread corresponding to multiple MGLSurfaceView) is responsible for the creation, rendering and release of MGLSurfaceView.

[0076] Therefore, according to the application scenario, dynamic joining to the first thread during use is supported.

[0077] Next, S104 is executed to create a first context and a first texture through the main screen, and the N screens share the first context and the first texture.

[0078] The first context is a huge state machine that saves various states in OpenGL, which is also the basis for the execution of OpenGL instructions. The first texture is the entire picture.

[0079] By sharing the first context and the first texture among N screens, the N screens can present a picture together.

[0080] Next, S105 is executed to form a first layer of images on N screens based on the first thread when the video resource is accessed.

[0081] Specifically, when accessing the video resource, based on the first thread, the player calls the decoder to decode the video resource to form the first layer picture on each screen.

[0082] For each screen, create the first vertex shader of each screen and the first fragment shader of the first picture; in the order in which MGLSurfaceView joins the first thread, calculate the first vertex coordinates of each screen and the first fragment coordinates of the first picture based on the first vertex shader, the first fragment shader and OpenGL; based on the first vertex coordinates and the first fragment coordinates, render to form the first layer picture on each screen, and the first layer picture is the first picture before rendering.

[0083] The above is a description of how to render the first layer of images on N screens. By creating only one first thread, the first images generated on N screens can be displayed synchronously, avoiding the situation where some screens display fast and some screens display slow due to asynchronous rendering, that is, the screen tearing problem, which makes it impossible to present a complete picture.

[0084] Since the video resource is a multi-frame image, after the first layer of images is formed on N screens, the following steps are also included:

[0085] According to the first preset cycle, the order in which MGLSurfaceView joins the first thread is cyclically executed, based on the first vertex shader, the first fragment shader and OpenGL, the first vertex coordinates of each screen and the first fragment coordinates of the first picture are calculated, and based on the first vertex coordinates and the first fragment coordinates, the steps of rendering to form the first layer pictures on N screens are performed, thereby forming a video picture.

[0086] In the specific implementation principle, through the reconstructed MGLThread, one MGLThread manages multiple MGLSurfaceViews.

[0087] The above is the process of displaying the first layer of the screen. Next, the second layer of the screen display is described:

[0088] S106, create a second thread and a main.qml file; wherein the main.qml file is the main canvas of the business presentation layer, which is used to expand the business.

[0089] Next, S107 is executed, and the main screen creates the main.qml file as a second context and a second texture through Qt off-screen rendering.

[0090] Among them, in Qt, off-screen rendering is a common optimization technology, which allows complex drawing operations to be performed in an off-screen context, and then the results are drawn to the screen, which can significantly improve drawing performance.

[0091] In the present invention, the created second context and second texture are created by using the main.qml file through an off-screen rendering mechanism.

[0092] Then, S108 is executed to share the second context and the second texture with the N screens. Similarly, S109 is executed next to add the second context and the second texture to the second thread. When executing the second thread, the content of the main.qml file is executed.

[0093] Next, for subsequent function development, S110 is executed to create any one or more components of text, button and animation in the main.qml file through the Qt GUI framework, and form a second layer screen on the N screens based on the second thread.

[0094] S110 specifically includes:

[0095] Use the Qt GUI framework to create any one or more components including text, buttons and animations in the main.qml file;

[0096] Create a second vertex shader and a second fragment shader for each screen;

[0097] Calculate the second vertex coordinates of each screen and the second fragment coordinates of the second screen based on the second vertex shader and the second fragment shader and OpenGL;

[0098] Based on the second vertex coordinates and the second fragment coordinates, and any one or more components of the text, button and animation, a second layer picture is formed on each screen by executing the second thread. The second layer picture is the second picture before rendering.

[0099] In S110, various components are created in the main.qml file through the Qt GUI framework. These components can be in the form of text, buttons or animations, and of course, can also be a combination of multiple components. The main.qml file has also been created as a second context and a second texture. Then, when the second thread is executed, a second layer screen will be formed on each screen, and the second layer screen is the second screen before rendering.

[0100] Similarly, after forming the second layer of the picture, it also includes:

[0101] According to the second preset cycle, the second vertex shader, the second fragment shader and OpenGL are used to calculate the second vertex coordinates and the second fragment coordinates of each screen, and the second layer coordinates of the second picture are formed on each screen based on the second thread based on the second vertex coordinates and the second fragment coordinates, as well as any one or more components such as text, buttons and animations, and the second layer picture is displayed on each screen as required.

[0102] The second preset period can be set flexibly. For example, if 30 frames of images are required per second, then the period is 1000 / 30=33.3ms.

[0103] By creating any one or more components such as text, buttons and animations in the main.qml file, developers no longer need to consider the underlying split-screen and rendering logic. They can treat the main.qml file as the entire canvas and add any one or more components to the preset positions of the preset screens based on product requirements, that is, the need to display content. For example, by adding a text component, the text content can be directly displayed on N screens by setting the text content.

[0104] The rendering method used to render the second layer of the screen is the same as that used to render the first layer of the screen. However, the first layer of the screen is a video image, and the second layer of the screen is any one or more components of text, buttons and animations on the upper layer of the video image.

[0105] Therefore, finally, S111 is executed to superimpose the second layer image on top of the first layer image to form a target image, so that N screens synchronously display the target image, and the target image includes any one or more components of video images, texts, buttons and animations.

[0106] The second layer screen is superimposed on the first layer screen so that the two will not interfere with each other when executing their respective threads, thereby superimposing to form a target screen.

[0107] After forming the target picture, it also includes:

[0108] By modifying the properties of any one or more components in the text, buttons, and animations in the main.qml file, the combination of components, and changing video resources, you can achieve different target screen display effects.

[0109] In the later development and application, you can meet the needs of different users according to product requirements by simply modifying the corresponding content. For different components displayed on the video screen, you only need to add GUI controls according to the needs, which is convenient to operate and has obvious effects. For changes to the video screen, you can directly replace the video resources.

[0110] One or more technical solutions in the embodiments of the present invention have at least the following technical effects or advantages:

[0111] The present invention provides a display method of a spliced ​​screen, which is applied to the spliced ​​display of N screens, including: obtaining N screens, determining a main screen and N-1 secondary screens; creating a first thread, and creating MGLSurfaceView corresponding to each screen respectively, and adding MGLSurfaceView to the first thread; creating a first context and a first texture through the main screen, and the N screens share the first context and the first texture; when accessing video resources, based on the first thread, forming a first layer screen on the N screens; creating a second thread and a main.qml file; the main screen creates the main.qml file as a second context and a second texture through Qt off-screen rendering; adding the second context and the second texture to the second thread; through Qt The GUI framework creates any one or more components including text, buttons and animation in the main.qml file, and forms a second layer of screens on N screens based on the second thread; the second layer of screen is superimposed on the first layer of screen to form a target screen, so that the N screens display the target screen synchronously, and the target screen includes any one or more components including video screen, text, buttons and animation. By rewriting the source code of the screen display, the screen can adapt to the display of the spliced ​​screen, will not be torn, and the business expansion is stronger.

[0112] Embodiment 2

[0113] Based on the same inventive concept, an embodiment of the present invention further provides a display device of a spliced ​​screen, such as Figure 3 As shown, including:

[0114] An acquisition module 301 is used to acquire the N screens and determine a main screen and N-1 secondary screens;

[0115] A first creation module 302 is used to create a first thread and create an MGLSurfaceView corresponding to each screen;

[0116] A first adding module 303, used for adding the MGLSurfaceView to the first thread;

[0117] The second creation module 304 is configured to create a first context and a first texture through the main screen, and the N screens share the first context and the first texture.

[0118] A first forming module 305 is used to form a first layer picture on the N screens based on the first thread when accessing the video resource;

[0119] The third creation module 306 is used to create a second thread and a main.qml file;

[0120] A fourth creation module 307 is used for the main screen to create the main.qml file as a second context and a second texture through Qt off-screen rendering, and the N screens share the second context and the second texture;

[0121] A sharing module 308, configured to share the second context and the second texture among the N screens;

[0122] A second adding module 309, configured to add the second context and the second texture to the second thread;

[0123] A second forming module 310 is used to create any one or more components of text, button and animation in the main.qml file through the Qt GUI framework, and form a second layer screen on the N screens based on the second thread;

[0124] The third forming module 311 is used to superimpose the second layer image on the first layer image to form a target image, so that the N screens synchronously display the target image, and the target image includes any one or more components of video images, texts, buttons and animations.

[0125] In an optional implementation, the first forming module 305 is used to:

[0126] When accessing the video resource, based on the first thread, the player calls the decoding library to decode the video resource to form the first layer picture on each screen.

[0127] In an optional implementation, the first forming module 305 is further used for:

[0128] Creating a first vertex shader for each screen and a first fragment shader for the first screen;

[0129] According to the order in which the MGLSurfaceView joins the first thread, based on the first vertex shader, the first fragment shader and OpenGL, calculate the first vertex coordinates of each screen and the first fragment coordinates of the first picture;

[0130] Based on the first vertex coordinates and the first fragment coordinates, a first layer picture on each screen is rendered, and the first layer picture is the first picture before being rendered.

[0131] In an optional embodiment, the method further includes: a first circulation module, configured to:

[0132] According to the first preset cycle, the order in which the MGLSurfaceView joins the first thread is cyclically executed, based on the first vertex shader, the first fragment shader and OpenGL, the first vertex coordinates of each screen and the first fragment coordinates of the first picture are calculated, and based on the first vertex coordinates and the first fragment coordinates, the steps of rendering to form the first layer pictures on N screens are performed to form a video picture.

[0133] In an optional embodiment, the second forming module 310 is used to:

[0134] Create any one or more components of text, button and animation in the main.qml file through the Qt GUI framework;

[0135] Create a second vertex shader and a second fragment shader for each screen;

[0136] Calculate the second vertex coordinates of each screen and the second fragment coordinates of the second screen based on the second vertex shader and the second fragment shader and OpenGL;

[0137] Based on the second vertex coordinates and the second fragment coordinates, and any one or more components of the text, button and animation, a second layer picture is formed on each screen by executing the second thread, and the second layer picture is the second picture before rendering.

[0138] In an optional embodiment, the method further includes: a second circulation module, configured to:

[0139] According to the second preset cycle, the second vertex shader, the second fragment shader and OpenGL are used to calculate the second vertex coordinates and the second fragment coordinates of each screen, and the second layer coordinates of the second screen are formed on each screen based on the second thread based on the second vertex coordinates and the second fragment coordinates, and any one or more components of the text, button and animation, and the display is performed as required.

[0140] In an optional implementation, the method further includes: a modification module, configured to:

[0141] By modifying the properties of any one or more components in the text, buttons, and animations in the main.qml file, the combination of components, and changing video resources, you can achieve different target screen display effects.

[0142] Embodiment 3

[0143] Based on the same inventive concept, an embodiment of the present invention provides a computer device, such as Figure 4As shown, it includes a memory 404, a processor 402, and a computer program stored in the memory 404 and executable on the processor 402. When the processor 402 executes the program, the steps of the display method of the spliced ​​screen are implemented.

[0144] Among them, Figure 4 In the embodiment of the present invention, a bus architecture (represented by bus 400) is shown, and bus 400 may include any number of interconnected buses and bridges, and bus 400 links various circuits including one or more processors represented by processor 402 and memory represented by memory 404. Bus 400 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 406 provides an interface between bus 400 and receiver 401 and transmitter 403. Receiver 401 and transmitter 403 may be the same element, i.e., a transceiver, providing a unit for communicating with various other devices on a transmission medium. Processor 402 is responsible for managing bus 400 and general processing, while memory 404 may be used to store data used by processor 402 when performing operations.

[0145] Embodiment 4

[0146] Based on the same inventive concept, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the display method of the spliced ​​screen are implemented.

[0147] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description of the above specific languages ​​is for disclosing the best mode of the present invention.

[0148] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0149] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recorded in each embodiment. More specifically, as reflected in each embodiment, the inventive aspects lie in less than all the features of the single embodiment disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0150] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device so disclosed may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.

[0151] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in a specific embodiment, any one of the claimed embodiments may be used in any combination.

[0152] The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components of a display device or a computer device of a spliced ​​screen according to an embodiment of the present invention. The present invention may also be implemented as a device or device program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program for implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0153] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc., does not indicate any order. These words may be interpreted as names.

Claims

1. A display method of a spliced ​​screen, applied to the splicing display of N screens, characterized in that: include: Obtain the N screens, and determine a main screen and N-1 secondary screens; Create a first thread and create an MGLSurfaceView for each screen; Add the MGLSurfaceView to the first thread; Creating a first context and a first texture through the main screen, and the N screens share the first context and the first texture; When accessing the video resource, based on the first thread, forming a first layer picture on the N screens, including: Creating a first vertex shader for each screen and a first fragment shader for the first screen; According to the order in which the MGLSurfaceView joins the first thread, based on the first vertex shader, the first fragment shader and OpenGL, calculate the first vertex coordinates of each screen and the first fragment coordinates of the first picture; Based on the first vertex coordinates and the first fragment coordinates, rendering forms a first layer picture on each screen, where the first layer picture is the first picture before being rendered; According to a first preset cycle, the steps of calculating the first vertex coordinates of each screen and the first fragment coordinates of the first picture based on the first vertex shader, the first fragment shader and OpenGL in the order in which the MGLSurfaceView joins the first thread are cyclically executed, and rendering the first layer pictures on the N screens based on the first vertex coordinates and the first fragment coordinates to form a video picture; Create a second thread and main.qml file; The main screen creates the main.qml file as a second context and a second texture through Qt off-screen rendering; Sharing the second context and the second texture among the N screens; adding the second context and the second texture to the second thread; Creating any one or more components of text, button and animation in the main.qml file through the Qt GUI framework, and forming a second layer screen on the N screens based on the second thread, including: Create any one or more components of text, button and animation in the main.qml file through the Qt GUI framework; Create a second vertex shader and a second fragment shader for each screen; Calculate the second vertex coordinates of each screen and the second fragment coordinates of the second screen based on the second vertex shader and the second fragment shader and OpenGL; Based on the second vertex coordinates and the second fragment coordinates, and any one or more components of the text, button, and animation, a second layer picture is formed on each screen by executing a second thread, and the second layer picture is the second picture before being rendered; According to a second preset cycle, the steps of calculating the second vertex coordinates of each screen and the second fragment coordinates of the second picture based on the second vertex shader, the second fragment shader and OpenGL are cyclically executed, and forming a second layer picture on each screen based on the second thread based on the second vertex coordinates and the second fragment coordinates, and any one or more components of the text, button and animation, and displaying the second layer picture as required are performed; The second layer image is superimposed on the first layer image to form a target image, so that the N screens synchronously display the target image, and the target image includes any one or more components of video images, texts, buttons and animations.

2. The method according to claim 1, characterized in that When accessing the video resource, forming a first layer picture on the N screens based on the first thread includes: When accessing the video resource, based on the first thread, the player calls the decoding library to decode the video resource to form the first layer picture on each screen.

3. The method according to claim 1, characterized in that After the second layer image is superimposed on the first layer image to form a target image, so that the N screens synchronously display the target image, and the target image includes any one or more components of a video image, text, button, and animation, the method further includes: By modifying the properties of any one or more components in the text, buttons, and animations in the main.qml file, the combination of components, and changing video resources, you can achieve different target screen display effects.

4. A display device of a spliced ​​screen, applied to the splicing display of N screens, characterized in that: include: An acquisition module, used to acquire the N screens, and determine a main screen and N-1 secondary screens; The first creation module is used to create a first thread and create an MGLSurfaceView corresponding to each screen; A first adding module, used for adding the MGLSurfaceView to the first thread; A second creation module is configured to create a first context and a first texture through the main screen, wherein the N screens share the first context and the first texture. A first forming module is used to form a first layer picture on the N screens based on the first thread when accessing the video resource, and the first forming module is used to: Creating a first vertex shader for each screen and a first fragment shader for the first screen; According to the order in which the MGLSurfaceView joins the first thread, based on the first vertex shader, the first fragment shader and OpenGL, calculate the first vertex coordinates of each screen and the first fragment coordinates of the first picture; Based on the first vertex coordinates and the first fragment coordinates, rendering forms a first layer picture on each screen, where the first layer picture is the first picture before being rendered; According to a first preset cycle, the steps of calculating the first vertex coordinates of each screen and the first fragment coordinates of the first picture based on the first vertex shader, the first fragment shader and OpenGL in the order in which the MGLSurfaceView joins the first thread are cyclically executed, and rendering the first layer pictures on the N screens based on the first vertex coordinates and the first fragment coordinates to form a video picture; The third creation module is used to create a second thread and a main.qml file; A fourth creation module is used for the main screen to create the main.qml file as a second context and a second texture through Qt off-screen rendering, and the N screens share the second context and the second texture; A sharing module, configured to share the second context and the second texture among the N screens; A second adding module, used for adding the second context and the second texture to the second thread; The second forming module is used to create any one or more components of text, button and animation in the main.qml file through the Qt GUI framework, and form a second layer screen on the N screens based on the second thread. The second forming module is used to: Create any one or more components of text, button and animation in the main.qml file through the Qt GUI framework; Create a second vertex shader and a second fragment shader for each screen; Calculate the second vertex coordinates of each screen and the second fragment coordinates of the second screen based on the second vertex shader and the second fragment shader and OpenGL; Based on the second vertex coordinates and the second fragment coordinates, and any one or more components of the text, button, and animation, a second layer picture is formed on each screen by executing a second thread, and the second layer picture is the second picture before being rendered; According to a second preset cycle, the steps of calculating the second vertex coordinates of each screen and the second fragment coordinates of the second picture based on the second vertex shader, the second fragment shader and OpenGL are cyclically executed, and forming a second layer picture on each screen based on the second thread based on the second vertex coordinates and the second fragment coordinates, and any one or more components of the text, button and animation, and displaying the second layer picture as required are performed; The third forming module is used to superimpose the second layer picture on the first layer picture to form a target picture, so that the N screens synchronously display the target picture, and the target picture includes any one or more components of video pictures, texts, buttons and animations.

5. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.