Transplanting application program image rendering method, device and equipment based on smart television GPU (Graphics Processing Unit)

By building a multi-artboard and multi-threaded rendering mechanism on the GPU of the smart TV, the problem of insufficient rendering computing power when running high-quality APPs on the smart TV is solved, and the smooth operation and efficient rendering of the application on the TV side is achieved.

CN119653149AActive Publication Date: 2025-03-18北京视游互动科技有限公司

Patent Information

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

AI Technical Summary

Technical Problem

When porting mobile or cloud applications to smart TVs, the hardware of some TV devices cannot fully run high-quality APPs, resulting in problems such as screen frizz, screen defects or black screens in the display effect, and a lot of debugging and redesign is required to be compatible with the operating environment of the TV device.

Method used

By pre-built at least two artboards on the GPU of the smart TV and splitting the original main rendering thread into two threads, one of which is responsible for loading the resources to be rendered and cleaning up the content of the displayed artboards, the other thread focuses on filling the resources to be rendered on each artboard, dynamically adjusting the depth value of the artboard to change the hierarchy relationship, and realizing the rendering processing of multi-threaded parallel collaboration and rotation artboards.

Benefits of technology

It reduces the rendering computing power demand for the graphics image processor of TV devices, effectively avoids the abnormal display of pictures, and enables high-quality portable applications to run smoothly on the TV side, reduces memory data and converts it into video memory data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119653149A_ABST
    Figure CN119653149A_ABST
Patent Text Reader

Abstract

The invention discloses a transplantation application program image rendering method, device and equipment based on a smart television GPU (Graphics Processing Unit), and relates to the technical field of transplantation application program operation of smart televisions. Specifically, two drawing boards are constructed in advance, an original main rendering thread is divided into two threads, one thread is responsible for loading resources to be rendered and cleaning the displayed drawing boards, the other thread focuses on filling the drawing boards with the resources to be rendered in sequence, and in the process, the depth value of each drawing board is dynamically adjusted to change the hierarchical relation, so that the rendering efficiency is improved. And enabling the rendered content to be displayed on the upper drawing board, and drawing the next content on the lower drawing board, so that loading, drawing and cleaning tasks are circularly executed, and image rendering processing of the transplanted application program is completed. According to the method, through multi-thread parallel cooperation and alternate drawing board levels, the requirement for rendering computing power of a graphic image processor of television equipment is lowered, the situation of abnormal picture display is effectively avoided, and therefore a high-quality transplanted application program can be smoothly operated at a television end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart televisions running transplanted applications, and in particular to a transplanted application image rendering method, device and equipment based on a smart television GPU. Background Art

[0002] With the rapid development of mobile and cloud application industries, the demand for porting high-quality content to Android smart TV devices has also increased. However, even for mobile phones and TVs that use the same Android smart system, the hardware configurations vary greatly, resulting in the inability of some TV device hardware to fully run the ported high-quality APPs (which are complex to process, rich in resources, and require high computing power). For example, there may be problems such as insufficient device rendering memory and insufficient rendering computing power, resulting in the display effect presented to users being distorted, incomplete, or even black.

[0003] Therefore, when applications such as mobile APPs or cloud games are ported to smart TVs, a lot of debugging is required for the compatibility of the TV device's operating environment, and additional redesign may be required, such as but not limited to lowering the color value of the overall resources of the ported APP, reducing the size, or preparing multiple sets of resources, resulting in huge R&D time and labor costs. Summary of the invention

[0004] In view of the above, the present invention aims to provide a method, device and equipment for image rendering of transplanted applications based on the GPU of smart TVs, so as to solve the high cost problem of transplanting mobile phone or cloud applications to smart TVs, and to improve the success rate of running transplanted applications on smart TV models.

[0005] The technical solution adopted by the present invention is as follows:

[0006] In a first aspect, the present invention provides a method for rendering an image of a transplanted application based on a smart TV GPU, comprising:

[0007] Pre-create the same second artboard based on the original first artboard, and split the original single rendering thread into a first thread and a second thread;

[0008] The second thread loads the current resource to be rendered, and the first thread draws on the blank first drawing board;

[0009] The first thread upgrades the level of the first drawing board after drawing to output and display;

[0010] The first thread draws the next resource to be rendered loaded by the second thread on a blank second drawing board, and the second thread clears the first drawing board to make it blank;

[0011] The first thread upgrades the level of the second drawing board that has been drawn to output and display it, and draws the first drawing board that has been cleared to a blank state based on the next resource to be rendered loaded by the second thread;

[0012] The first thread and the second thread use the first drawing board and the second drawing board alternately and cyclically perform loading, drawing, and clearing tasks according to the above steps to complete the image rendering processing of the transplanted application.

[0013] In at least one possible implementation manner, the method of creating the second artboard includes: copying a preconfigured first artboard to obtain the second artboard, and both artboards include a depth value for changing the artboard level.

[0014] In at least one possible implementation, the dynamic adjustment method of the artboard level includes: assigning a depth value of the currently drawn artboard by accumulating numerical values.

[0015] In at least one possible implementation, the dynamic adjustment method of the artboard level further includes: by resetting the value, while or after clearing the artboard, restoring the depth value of the cleaned artboard to the initial value.

[0016] In at least one possible implementation, the second thread loads the current resource to be rendered, and the first thread draws it on a blank first drawing board, specifically including: based on the transplanted application instructions, the second thread loads the current resource to be rendered from the running memory of the TV in advance, and then the first thread draws the current resource to be rendered on the first drawing board according to the application instructions.

[0017] In at least one possible implementation manner, the image rendering method further includes:

[0018] Based on different resources to be rendered, while the second thread is loading the current resource to be rendered, setting a corresponding drawing duration threshold;

[0019] When the first thread draws the current resource to be rendered, if the drawing is not completed before the drawing time threshold is reached, the second thread clears the current output display board and forces its depth value to remain unchanged until the first thread completes the current drawing task.

[0020] In a second aspect, the present invention provides a transplanted application image rendering device based on a smart TV GPU, comprising:

[0021] A GPU pre-configuration module, used for pre-creating an identical second artboard based on the original first artboard, and splitting an original single rendering thread into a first thread and a second thread;

[0022] The multi-threaded multi-artboard alternating rendering module is used to perform the following:

[0023] The second thread loads the current resource to be rendered, and the first thread draws on the blank first drawing board;

[0024] The first thread upgrades the level of the first drawing board after drawing to output and display;

[0025] The first thread draws the next resource to be rendered loaded by the second thread on a blank second drawing board, and the second thread clears the first drawing board to make it blank;

[0026] The first thread upgrades the level of the second drawing board that has been drawn to output and display it, and draws the first drawing board that has been cleared to a blank state based on the next resource to be rendered loaded by the second thread;

[0027] The first thread and the second thread use the first drawing board and the second drawing board alternately and cyclically perform loading, drawing, and clearing tasks according to the above steps to complete the image rendering processing of the transplanted application.

[0028] In a third aspect, the present invention provides an electronic device, comprising: one or more processors, a memory and one or more computer programs, wherein the memory may adopt a non-volatile storage medium, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the device, the electronic device performs the method as described in the first aspect or any possible implementation manner of the first aspect.

[0029] In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, which, when executed on a computer, enables the computer to execute the method as described in the first aspect or any possible implementation of the first aspect.

[0030] In a fifth aspect, the present invention further provides a computer program product, which, when executed by a computer, is used to execute the method in the first aspect or any possible implementation of the first aspect. In a possible design of the fifth aspect, the relevant programs involved in the product may be stored in whole or in part on a memory packaged with the processor, or may be stored in whole or in part on a storage medium not packaged with the processor.

[0031] It should be understood that the second to fifth aspects of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.

[0032] The main design concept of the present invention is to provide an optimization solution for the problem that high-quality applications on mobile phones and the cloud cannot run smoothly on TV devices due to their large resources, resulting in high rendering computing power required during operation. Specifically, at least two drawing boards are pre-built and the original main rendering thread is split into at least two threads, one of which is responsible for loading the resources to be rendered and cleaning the contents of the displayed drawing board, and the other thread is focused on filling the resources to be rendered on each drawing board in order. In this process, the depth value of each drawing board is dynamically adjusted to change the hierarchical relationship, so that the upper drawing board displays the completed content, and the lower drawing board draws the next content, thereby cyclically executing the loading, drawing, and cleaning tasks to complete the image rendering processing of the transplanted application. The mechanism of the present invention is to reduce memory data and convert it into video memory data, and then through multi-threaded parallel collaboration and rotating drawing board levels, reduce the rendering computing power requirements of the graphics image processor of the TV device, effectively avoid the situation of abnormal display of the picture, thereby allowing high-quality transplanted applications to run smoothly on the TV side. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described below with reference to the accompanying drawings, in which:

[0034] Figure 1 A schematic diagram of a process flow of a method for rendering an image of a transplanted application based on a smart TV GPU provided by an embodiment of the present invention;

[0035] Figure 2 A schematic diagram of a transplanted application image rendering device based on a smart TV GPU provided by an embodiment of the present invention.

[0036] Figure 3 A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.

[0038] The present invention proposes an embodiment of a transplant application image rendering method based on a smart TV GPU. Specifically, Figure 1 shown, including:

[0039] Step S1: pre-create the same second drawing board based on the original first drawing board, and split the original single rendering thread into a first thread and a second thread;

[0040] Specifically speaking, on the one hand, an identical drawing board (i.e., the second drawing board, also called the second canvas) can be additionally created for at least one drawing board (i.e., the first drawing board, also called the first canvas) pre-configured in the graphics image processor GPU by means of copying and cloning, and depth value parameters for changing the hierarchical relationship of the drawing boards can be set in both drawing boards; on the other hand, the main rendering thread of the GPU is disassembled and divided into at least two sub-threads (i.e., the first thread and the second thread), each of which performs its own function.

[0041] Step S2: the second thread loads the current resource to be rendered, and the first thread draws on the blank first drawing board;

[0042] The specific links involved in this step can be referred to as follows: based on the transplanted application instructions, the second thread loads a frame of the program to be rendered at least one frame in advance (which can be understood as a preset time unit in advance) from the running memory of the TV device, and the first thread draws the frame of image on the first drawing board (since the first drawing board is exactly the same as the second drawing board, the first drawing board is mentioned here only to represent that one of the two drawing boards can be selected). Of course, those skilled in the art can understand that when initially rendering the first frame of the picture, they can choose any one. If it is not the first frame rendering, it is drawn on the current blank drawing board, which will be explained later.

[0043] Step S3, the first thread upgrades the level of the first drawing board that has been drawn to output and display it;

[0044] In combination with the previous embodiments, the purpose of raising the level of the artboard is to make it visible to the user as an output display screen, and the way to raise the level can be achieved by adjusting the above-mentioned artboard depth value. For example, by accumulating the depth value, assuming that the currently drawn artboard is assigned 1, and then the next drawn artboard is +1, the level of the next artboard will be raised to the artboard assigned 1, and the effect of alternating output display screens can be achieved. Of course, in addition to the method of superimposing and accumulating depth values, in other embodiments of the present invention, a depth value modulation mechanism of clearing and resetting can also be used, which will be explained below.

[0045] Step S4: the first thread draws the next resource to be rendered loaded by the second thread on a blank second drawing board, and the second thread clears the first drawing board to make it blank;

[0046] It can be seen that the aforementioned first thread and second thread have a clear division of labor. In this embodiment, the first thread is only responsible for drawing the picture to be rendered on a blank canvas and upgrading the completed canvas to display it in front of the user; the responsibility of the second thread is to load the picture resources to be rendered from the running memory according to the program design and to clear and reset the canvas after rendering and display.

[0047] As for resetting, the present invention proposes, based on this concept, that in other embodiments, a depth value modulation mechanism of clearing and resetting can also be adopted: the second thread "cleans" the depth value of the drawing board while performing the drawing board clearing task, that is, the action of clearing the drawing board includes resetting the depth value of the drawing board to the initial value (such as 0). Since the depth value of this drawing board is restored to the initial value, this drawing board will be dropped from the upper layer to the lower layer and will no longer be output and displayed to the user. This state can be understood as the cleared blank drawing board is currently under the drawing board that is output and displayed in the upper layer, and is ready for the first thread to draw the next frame. For example, the first thread no longer performs the task of raising the drawing board level by superimposing the value, but is similar to setting the depth value of the completed drawing board from 0 to 1; while the second thread sets the depth value of the cleared drawing board from 1 to 0 when clearing the drawing board.

[0048] It can be seen that in the embodiment of the reset mechanism, the responsibility of the second thread can be considered to be an additional task compared to the embodiment mentioned above, namely, resetting the depth value; and in actual operation, this additional task can be included in "clearing the drawing board".

[0049] Step S5, the first thread upgrades the level of the second drawing board that has been drawn to output and display it, and draws the first drawing board that has been cleared to a blank state based on the next resource to be rendered loaded by the second thread;

[0050] The first thread and the second thread use the first drawing board and the second drawing board alternately and cyclically perform loading, drawing, and clearing tasks according to the above steps to complete the image rendering processing of the transplanted application.

[0051] Finally, it can be added that in addition to alternately and cyclically executing the loading, drawing, and clearing tasks, the dynamic adjustment of the depth value of each artboard is also a key task proposed by the present invention, because the adjustment of the depth value is directly related to the picture effect presented to the user. Therefore, in other preferred embodiments of the present invention, the following measures are also included:

[0052] Based on different resources to be rendered, while the second thread is loading the current resource to be rendered, setting a corresponding drawing duration threshold;

[0053] When the first thread is drawing the current resource to be rendered, if the drawing is not completed after reaching the drawing time threshold, the second thread will clear the current output display board and force its depth value to remain unchanged until the first thread completes the current drawing task. This is because in real scenes, the processing time of the above process and the drawing time threshold are relatively short compared to the recognition ability of the human eye. It is difficult for the human eye to capture that the upper display board is cleared to a blank state during this process. The process of clearing first and then descending can reserve more drawing filling time for the first thread.

[0054] In summary, the main design concept of the present invention is to provide an optimization solution for the problem that high-quality applications on mobile phones and the cloud cannot run smoothly on TV devices due to their large resources, resulting in high rendering computing power required during operation. Specifically, at least two drawing boards are pre-built and the original main rendering thread is split into at least two threads, one of which is responsible for loading the resources to be rendered and cleaning the contents of the displayed drawing board, and the other thread is focused on filling the resources to be rendered on each drawing board in order. In this process, the depth value of each drawing board is dynamically adjusted to change the hierarchical relationship, so that the upper drawing board displays the completed content, and the lower drawing board draws the next content, thereby cyclically executing the loading, drawing, and cleaning tasks to complete the image rendering processing of the transplanted application. The mechanism of the present invention is to reduce memory data and convert it into video memory data, and then rotate the drawing board through multi-threaded parallel collaboration, reduce the rendering computing power requirements of the graphics image processor of the TV device, and effectively avoid the situation of abnormal display of the picture, so that high-quality transplanted applications can run smoothly on the TV side.

[0055] Corresponding to the above embodiments and preferred solutions, the present invention also provides an embodiment of a transplant application image rendering device based on a smart TV GPU, such as Figure 2 As shown, it may specifically include the following components:

[0056] A GPU pre-configuration module 201, configured to pre-create an identical second drawing board based on the original first drawing board, and split the original single rendering thread into a first thread and a second thread;

[0057] The multi-threaded multi-drawing board alternating rendering module 202 is used to perform the following:

[0058] The second thread loads the current resource to be rendered, and the first thread draws on the blank first drawing board;

[0059] The first thread upgrades the level of the first drawing board after drawing to output and display;

[0060] The first thread draws the next resource to be rendered loaded by the second thread on a blank second drawing board, and the second thread clears the first drawing board to make it blank;

[0061] The first thread upgrades the level of the second drawing board that has been drawn to output and display it, and draws the first drawing board that has been cleared to a blank state based on the next resource to be rendered loaded by the second thread;

[0062] The first thread and the second thread use the first drawing board and the second drawing board alternately and cyclically perform loading, drawing, and clearing tasks according to the above steps to complete the image rendering processing of the transplanted application.

[0063] It should be understood that the above Figure 2 The division of the various components in the transplanted application image rendering device based on the GPU of a smart TV shown is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these components can all be implemented in the form of software calling through processing elements; some components can also be implemented in the form of software calling through processing elements, and some components can be implemented in the form of hardware. For example, one of the above modules can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other components is similar. In addition, all or part of these components can be integrated together, or they can be implemented independently. In the implementation process, each step of the above method or the above components can be completed by an integrated logic circuit of hardware in the processor element or instructions in software form.

[0064] For example, the above components may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, these components may be integrated together to be implemented in the form of a system-on-a-chip (SOC).

[0065] Based on the above embodiments and their preferred solutions, those skilled in the art can understand that, in actual operation, the technical concept involved in the present invention can be applied to a variety of implementations. The present invention uses the following carrier as a schematic illustration:

[0066] (1) An electronic device. The device may specifically include: one or more processors, a memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the device, the device performs the steps / functions of the aforementioned embodiment or equivalent implementation.

[0067] The electronic device may specifically be an electronic device related to a computer, such as but not limited to various computing terminals and electronic products, etc. Preferably, the electronic device includes a smart battery, such as an Android TV, etc.

[0068] Specifically, the processor, communication interface, and memory can all communicate with each other through a communication bus. Among them, the processor may be a central processing unit CPU, DSP, microcontroller or digital signal processor, and may also include GPU, embedded neural network processor (Neural-network Process Units; hereinafter referred to as: NPU) and image signal processor (Image Signal Processor; hereinafter referred to as: ISP). The processor may also include a specific integrated circuit ASIC, or one or more integrated circuits configured to implement the embodiment of the present invention, etc. In addition, the processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium such as a memory; and the aforementioned memory / storage medium may include: non-volatile memory (Non-Volatile Memory), such as a non-removable disk, U disk, mobile hard disk, optical disk, etc., as well as read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (RandomAccess Memory; hereinafter referred to as: RAM), etc.

[0069] Although the present invention does not limit the specific form of the electronic device, for the purpose of illustrative introduction, Figure 3 As shown, the present invention provides a schematic diagram of the structure of an embodiment of an electronic device. Specifically, the electronic device 900 includes a processor 910 and a memory 930. The processor 910 and the memory 930 can communicate with each other through an internal connection path to transmit control and / or data signals. The memory 930 is used to store a computer program, and the processor 910 is used to call and run the computer program from the memory 930. The above-mentioned processor 910 and the memory 930 can be combined into a processing device, and more commonly, they are independent components from each other. The processor 910 is used to execute the program code stored in the memory 930 to implement the above-mentioned functions. In specific implementation, the memory 930 can also be integrated in the processor 910, or, independent of the processor 910.

[0070] In addition, in order to make the functions of the electronic device 900 more complete, the electronic device 900 may further include one or more of an input unit 960, a display unit 970, an audio circuit 980, a camera 990, and a sensor 901, and the audio circuit may further include a speaker 982, a microphone 984, etc. The display unit 970 may include a display screen.

[0071] Furthermore, the electronic device 900 may also include a power supply 950 for providing electrical energy to various devices or circuits in the electronic device 900 .

[0072] It should be understood that Figure 3 The electronic device 900 shown can implement each process of the method provided in the aforementioned embodiment. The operation and / or function of each component in the electronic device 900 can be respectively to implement the corresponding process in the aforementioned method embodiment. For details, please refer to the description of the embodiments of the method, device, etc. in the previous text. To avoid repetition, the detailed description is appropriately omitted here.

[0073] It should be understood that Figure 3 The processor 910 in the electronic device 900 shown may be a system on chip SOC, which may include a central processing unit (CPU) and may further include other types of processors, such as a graphics processing unit (GPU), etc., which will be described in detail below.

[0074] In summary, the various processors or processing units within the processor 910 can work together to implement the previous method flow, and the corresponding software programs of the various processors or processing units can be stored in the memory 930.

[0075] (2) A computer data storage medium on which a computer program or the above-mentioned device is stored, which, when the computer program or the above-mentioned device is executed, enables a computer to execute the steps / functions of the aforementioned embodiment or equivalent implementation.

[0076] In several embodiments provided by the present invention, any function, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer data storage medium. Based on this understanding, some technical solutions of the present invention are essentially or part of the technical solution that contributes to the prior art or part of the technical solution can be embodied in the form of the software product described below.

[0077] It should be particularly pointed out that the storage medium may refer to a server or a similar computer device, specifically, a storage device in a server or a similar computer device storing the aforementioned computer program or the aforementioned apparatus.

[0078] (3) A computer program product (which may include the above-mentioned apparatus), which, when running on a terminal device, enables the terminal device to execute the transplanted application image rendering method based on the smart TV GPU of the above-mentioned embodiment or an equivalent implementation.

[0079] It can be seen from the above description of the implementation method that those skilled in the art can clearly understand that all or part of the steps in the above implementation method can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the above computer program product may include but is not limited to APP, program package, computing power optimization library and other forms.

[0080] In the embodiments of the present invention, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. A and B may be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c may represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c may be single or multiple.

[0081] Those skilled in the art will appreciate that the various modules, units, and method steps described in the embodiments disclosed in this specification can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0082] In addition, each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. In particular, for embodiments such as devices and equipment, since they are basically similar to method embodiments, the relevant parts can refer to the partial description of the method embodiments. The embodiments of the devices and equipment described above are merely schematic, wherein the modules, units, etc. described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed in multiple places, such as nodes of a system network. Specifically, some or all of the modules and units may be selected according to actual needs to achieve the purpose of the above-mentioned embodiment scheme. Those skilled in the art can understand and implement it without paying creative labor.

[0083] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings, but the above is only a preferred embodiment of the present invention. It should be noted that the technical features involved in the above embodiments and their preferred methods can be reasonably combined and matched into a variety of equivalent schemes by those skilled in the art without departing from or changing the design ideas and technical effects of the present invention; therefore, the present invention is not limited to the scope of implementation shown in the drawings, and all changes made in accordance with the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the specification and drawings, should be within the protection scope of the present invention.

Claims

1. A method for rendering an image of a transplanted application based on a smart TV GPU, characterized in that: include: Pre-create the same second artboard based on the original first artboard, and split the original single rendering thread into a first thread and a second thread; The second thread loads the current resource to be rendered, and the first thread draws on the blank first drawing board; The first thread upgrades the level of the first drawing board after drawing to output and display; The first thread draws the next resource to be rendered loaded by the second thread on a blank second drawing board, and the second thread clears the first drawing board to make it blank; The first thread upgrades the level of the second drawing board that has been drawn to output and display it, and draws the first drawing board that has been cleared to a blank state based on the next resource to be rendered loaded by the second thread; The first thread and the second thread use the first drawing board and the second drawing board alternately and cyclically perform loading, drawing, and clearing tasks according to the above steps to complete the image rendering processing of the transplanted application.

2. The method for rendering an image of a transplanted application based on a smart TV GPU according to claim 1, characterized in that: The method of creating the second artboard includes: copying the pre-configured first artboard to obtain the second artboard, and both artboards include a depth value for changing the artboard level.

3. The method for rendering an image of a transplanted application based on a smart TV GPU according to claim 2, characterized in that: The dynamic adjustment method of the artboard level includes: assigning a depth value of the currently drawn artboard by accumulating values.

4. The method for rendering an image of a transplanted application based on a smart TV GPU according to claim 2, characterized in that: The dynamic adjustment method of the artboard level also includes: by resetting the value, while or after clearing the artboard, restoring the depth value of the cleared artboard to the initial value.

5. The method for rendering an image of a transplanted application based on a smart TV GPU according to claim 1, characterized in that: The second thread loads the current resource to be rendered, and the first thread draws it on a blank first drawing board, specifically including: based on the transplanted application instructions, the second thread loads the current resource to be rendered from the running memory of the TV in advance, and then the first thread draws the current resource to be rendered on the first drawing board according to the application instructions.

6. The method for rendering an image of a transplanted application based on a smart TV GPU according to any one of claims 1 to 5, characterized in that: The image rendering method further comprises: Based on different resources to be rendered, while the second thread is loading the current resource to be rendered, setting a corresponding drawing duration threshold; When the first thread draws the current resource to be rendered, if the drawing is not completed before the drawing time threshold is reached, the second thread clears the current output display board and forces its depth value to remain unchanged until the first thread completes the current drawing task.

7. A transplanted application image rendering device based on a smart TV GPU, characterized in that: include: A GPU pre-configuration module, used for pre-creating an identical second artboard based on the original first artboard, and splitting an original single rendering thread into a first thread and a second thread; The multi-threaded multi-artboard alternating rendering module is used to perform the following: The second thread loads the current resource to be rendered, and the first thread draws on the blank first drawing board; The first thread upgrades the level of the first drawing board after drawing to output and display; The first thread draws the next resource to be rendered loaded by the second thread on a blank second drawing board, and the second thread clears the first drawing board to make it blank; The first thread upgrades the level of the second drawing board that has been drawn to output and display it, and draws the first drawing board that has been cleared to a blank state based on the next resource to be rendered loaded by the second thread; The first thread and the second thread use the first drawing board and the second drawing board alternately and cyclically perform loading, drawing, and clearing tasks according to the above steps to complete the image rendering processing of the transplanted application.

8. An electronic device, characterized in that: include: One or more processors, a memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, enable the electronic device to execute the transplanted application image rendering method based on the smart TV GPU as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for rendering an image of a transplanted application based on a smart TV GPU as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for rendering an image of a transplanted application based on a smart TV GPU as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Processing method, processing device and processor of HTML5 Canvas application

    CN103399729A

  • Projection screen annotation method and system

    CN107168674A

  • Animation display method and device

    CN114942809A

  • Data rendering method and device, computer and readable storage medium

    CN115861513A

  • Method and device for stereoscopic image display processing

    US20170155890A1

Cited By

  • Television end multi-canvas step-by-step rendering method, device and equipment based on YTS engine

    CN121174003A