Special effect rendering method, special effect rendering device, storage medium and device

By allocating the rendering pressure to the CPU or GPU in the live broadcast room according to the operation response type of the special effects, the problem of high performance consumption of terminal devices is solved, reducing user costs and development difficulties.

CN116347144BActive Publication Date: 2025-07-25GUANGZHOU BOGUAN TELECOMM TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310180751.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2025-07-25
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

When playing special effects in the live broadcast room, the performance consumption of terminal devices increases, resulting in an increase in the cost of users watching live broadcasts, and the difficulty of developers in playing and controlling special effects is increased.

Method used

By obtaining the special effect information of the special effect to be displayed and its operation response type, determining the rendering method according to the operation response type, and amortizing the rendering pressure to different rendering processors, such as CPU or GPU, for rendering processing.

Benefits of technology

It reduces the performance consumption of terminal devices, reduces the cost of users watching live broadcasts, and reduces the difficulty for developers when developing special effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116347144B_ABST
    Figure CN116347144B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of computer technologies, and particularly to a special effect rendering method, a special effect rendering device, a computer-readable storage medium, and an electronic device. The method includes: in response to a special effect display instruction, obtaining special effect information corresponding to the special effect to be displayed; where the special effect information is used to display the special effect to be displayed in a live broadcast room; obtaining an operation response type associated with the special effect information; determining a rendering method for the special effect information according to the operation response type associated with the special effect information; where the rendering method is used to indicate a rendering processor for the special effect to be displayed; and rendering the special effect information through the rendering method of the special effect information, so as to display the special effect to be displayed in the live broadcast room. Through the technical solution of the embodiments of the present disclosure, the problem of increased performance consumption of a terminal device when playing special effects in a live broadcast room can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the rapid development of terminal devices and the Internet, watching live broadcasts has become a common form of entertainment.

[0003] In the related art, in order to enhance the viewing experience of live broadcast viewers, the live broadcast platform adds various special effects to the live broadcast room to improve the display effect of the live broadcast room. When playing special effects in the live broadcast room, the resource occupancy increases, which leads to an increase in the performance consumption of the terminal device, and further increases the cost for users to watch the live broadcast. In addition, the difficulty for developers to play and control special effects also increases.

[0004] It should be noted that the information disclosed in the above Background Art section is only used to enhance the understanding of the background of the present disclosure, and thus may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0005] The purpose of the present disclosure is to provide a special effect rendering method, apparatus, computer-readable storage medium and electronic device, which can solve the problem of increased performance consumption of the terminal device when playing special effects in the live broadcast room.

[0006] Other features and advantages of the present disclosure will become apparent through the following detailed description, or will be learned in part through the practice of the present disclosure.

[0007] According to the first aspect of the present disclosure, there is provided a special effect rendering method, characterized in that the method includes: in response to a special effect display instruction, obtaining special effect information corresponding to the special effect to be displayed; wherein the special effect information is used to display the special effect to be displayed in the live broadcast room; obtaining the operation response type associated with the special effect information; determining the rendering method of the special effect information according to the operation response type associated with the special effect information; wherein the rendering method is used to indicate the rendering processor of the special effect to be displayed; and rendering the special effect information through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room.

[0008] According to the second aspect of the present disclosure, there is provided a special effect rendering apparatus, characterized in that the apparatus includes: a display instruction response module, configured to obtain special effect information corresponding to the special effect to be displayed in response to a special effect display instruction; wherein the special effect information is used to display the special effect to be displayed in the live broadcast room; an operation type obtaining module, configured to obtain the operation response type associated with the special effect information; a rendering method determining module, configured to determine the rendering method of the special effect information according to the operation response type associated with the special effect information; wherein the rendering method is used to indicate the rendering processor of the special effect to be displayed; and a special effect information rendering module, configured to render the special effect information through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room.

[0009] According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, it implements the special effect rendering method of the first aspect in the above-mentioned embodiments.

[0010] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:

[0011] One or more processors; and

[0012] A memory for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the special effect rendering method of the first aspect in the above-mentioned embodiments.

[0013] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0014] In the special effect rendering method provided by an embodiment of the present disclosure, in response to a special effect display instruction, special effect information corresponding to the to-be-displayed special effect can be obtained, and an operation response type associated with the special effect information can be obtained.

[0015] Determine the rendering method of the special effect information according to the operation response type associated with the special effect information, and render the special effect information through the rendering method of the special effect information to display the to-be-displayed special effect in the live broadcast room. On the one hand, the rendering method of the special effect can be determined according to the operation response type associated with the special effect information, different rendering processors can be determined according to different operation response types, the rendering pressure can be shared, the resource occupation can be reduced, the performance consumption of the terminal device can be reduced, and thus the cost for users to watch the live broadcast can be reduced; on the other hand, sharing the rendering pressure to different rendering processors can reduce the difficulty for developers in the development of special effects in terms of the playback and control of special effects.

[0016] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts. In the drawings:

[0018] Figure 1 Schematically shows a schematic diagram of an exemplary system architecture to which the special effect rendering method of the embodiments of the present disclosure can be applied;

[0019] Figure 2Schematically shows a flowchart of a special effect rendering method in an exemplary embodiment of the present disclosure;

[0020] Figure 3 Schematically shows a flowchart of determining a rendering method of special effect information according to a display type of the special effect information in an exemplary embodiment of the present disclosure;

[0021] Figure 4 Schematically shows a flowchart of determining a rendering method of special effect information according to a window level of the special effect information in an exemplary embodiment of the present disclosure;

[0022] Figure 5 Schematically shows a flowchart of determining that the rendering method of special effect information is a first rendering method when the display type of the special effect information is a first display type in an exemplary embodiment of the present disclosure;

[0023] Figure 6 Schematically shows a flowchart of determining that the rendering method of special effect information is a second rendering method when the display type of the special effect information is a second display type in an exemplary embodiment of the present disclosure;

[0024] Figure 7 Schematically shows a schematic diagram of determining a rendering method of special effect information in an exemplary embodiment of the present disclosure;

[0025] Figure 8 Schematically shows a flowchart of, when there is a special effect rendering module, obtaining, through a special effect instruction response module, the rendering method of the special effect information determined by the special effect instruction response module, and rendering the special effect information in the special effect rendering module according to the rendering method of the special effect information in an exemplary embodiment of the present disclosure;

[0026] Figure 9 Schematically shows a flowchart of deleting the special effect instruction response module and retaining the special effect rendering module in an exemplary embodiment of the present disclosure;

[0027] Figure 10 Schematically shows a flowchart of rendering special effect information according to the rendering method of the special effect information in an exemplary embodiment of the present disclosure;

[0028] Figure 11 Schematically shows a composition schematic diagram of a special effect rendering device in an exemplary embodiment of the present disclosure;

[0029] Figure 12 Schematically shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an exemplary embodiment of the present disclosure. Detailed implementation manners

[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments. In addition, the features, structures, or characteristics described may be combined in any suitable manner in one or more examples. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will recognize that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known structures, methods, devices, implementations, materials, or operations are not shown or described in detail to avoid obscuring aspects of the present disclosure.

[0031] The block diagrams shown in the drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more software-hardened modules, or in different networks and / or processor devices and / or microcontroller devices.

[0032] With the rapid development of terminal devices and the Internet, watching live broadcasts has become a common form of entertainment.

[0033] In the related art, in order to improve the viewing experience of live broadcast viewers, the live broadcast platform adds various special effects to the live broadcast room to improve the display effect of the live broadcast room. When playing special effects in the live broadcast room, the resource occupancy is increased, which leads to an increase in the performance consumption of the terminal device, and further increases the cost for users to watch the live broadcast. In addition, the difficulty for developers to play and control special effects also increases.

[0034] This exemplary embodiment provides a special effect rendering solution. The live broadcast platform involved in this solution can be applied to various terminal devices. Among them, the live broadcast platform can include a web version of the live broadcast platform and can also include live broadcast platform software. The terminal device can be an electronic device with a display screen, such as a computer, a tablet computer, a smart phone, etc., or a terminal device such as a game console, a VR device, etc., including a memory for storing data and a processor for data processing. The live broadcast platform software is installed through the memory, and the processor executes the program corresponding to the live broadcast platform software to realize the operation of the live broadcast platform software on the terminal device.

[0035] Figure 1 A schematic diagram of an exemplary system architecture to which the special effect rendering method of the embodiments of the present disclosure can be applied is shown.

[0036] As Figure 1 shown, the system architecture 1000 may include one or more of the terminal devices 1001, 1002, 1003, the network 1004, and the server 1005. The network 1004 is used to provide a medium for communication links between the terminal devices 1001, 1002, 1003 and the server 1005. The network 1004 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0037] It should be understood that Figure 1 the numbers of terminal devices, networks, and servers in are merely illustrative. According to the implementation requirements, there can be any number of terminal devices, networks, and servers. For example, the server 1005 can be a server cluster composed of multiple servers, etc.

[0038] Users can use the terminal devices 1001, 1002, 1003 to interact with the server 1005 through the network 1004 to receive or send messages, etc. The terminal devices 1001, 1002, 1003 can be various electronic devices with a display screen, including but not limited to smart phones, tablet computers, portable computers, and desktop computers, etc. In addition, the server 1005 can be a server that provides various services.

[0039] In one embodiment, the execution subject of the special effect rendering method of the present disclosure can be the server 1005. The server 1005 can obtain the special effect display instructions sent by the terminal devices 1001, 1002, 1003, and obtain the special effect information corresponding to the special effect to be displayed. Then, the server 1005 returns the special effect information corresponding to the special effect to be displayed to the terminal devices 1001, 1002, 1003, so that the terminal devices 1001, 1002, 1003 can obtain the operation response type associated with the special effect information, determine the rendering method of the special effect information according to the operation response type associated with the special effect information, and render the special effect information through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room. In addition, the special effect rendering method of the present disclosure can also be executed by the terminal devices 1001, 1002, 1003, etc., to implement obtaining the special effect information corresponding to the special effect to be displayed in response to the special effect display instruction, obtaining the operation response type associated with the special effect information, determining the rendering method of the special effect information according to the operation response type associated with the special effect information, and rendering the special effect information through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room.

[0040] Referring to Figure 2 shown, a flowchart of the special effect rendering method in this exemplary embodiment is shown, which may include the following steps:

[0041] Step S210: In response to a special effect display instruction, obtain special effect information corresponding to the special effect to be displayed; wherein, the special effect information is used to display the special effect to be displayed in the live broadcast room.

[0042] Step S220: Obtain the operation response type associated with the special effect information.

[0043] Step S230: Determine the rendering method of the special effect information according to the operation response type associated with the special effect information; wherein, the rendering method is used to indicate the rendering processor of the special effect to be displayed.

[0044] Step S240: Render the special effect information through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room.

[0045] In the special effect rendering method provided by an embodiment of the present disclosure, in response to a special effect display instruction, special effect information corresponding to the special effect to be displayed can be obtained, the operation response type associated with the special effect information can be obtained, the rendering method of the special effect information can be determined according to the operation response type associated with the special effect information, and the special effect information can be rendered through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room. On the one hand, the rendering method of the special effect can be determined according to the operation response type associated with the special effect information, different rendering processors can be determined according to different operation response types, the rendering pressure can be shared, the resource occupancy can be reduced, the performance consumption of the terminal device can be reduced, and thus the cost for users to watch the live broadcast can be reduced; on the other hand, by sharing the rendering pressure to different rendering processors, the difficulty for developers in developing special effects in terms of playing and controlling the special effects can be reduced.

[0046] Next, steps S210 to S240 of the special effect rendering method in this exemplary embodiment will be described in more detail in combination with Figure 1 and embodiments.

[0047] Step S210: In response to a special effect display instruction, obtain special effect information corresponding to the special effect to be displayed.

[0048] In an exemplary embodiment of the present disclosure, in response to a special effect display instruction, special effect information corresponding to the special effect to be displayed can be obtained. Wherein, the special effect information is used to display the special effect to be displayed in the live broadcast room. Specifically, the special effect display instruction can be used to obtain the special effect information corresponding to the special effect to be displayed, the special effect display instruction can include the special effect information corresponding to the special effect to be displayed, and the special effect information corresponding to the special effect to be displayed can include various attributes of the special effect to be displayed, such as shape, size, color, position, etc.

[0049] It should be noted that the present disclosure does not make special limitations on the specific content of the special effect information corresponding to the special effect to be displayed.

[0050] For example, in a live streaming room, a gift-giving function is provided. When a gift-giving operation for a certain gift in the live streaming room is received, a special effect display instruction can be triggered. At this time, it is necessary to display the special effect corresponding to the gift in the live streaming room. The special effect information corresponding to the gift (the special effect to be displayed) can be obtained, and the special effect information can be used to display the special effect corresponding to the gift in the live streaming room.

[0051] For example, the special effects in the live streaming room can include gift-giving special effects, bullet screen special effects, host interaction special effects, etc.

[0052] It should be noted that the present disclosure does not make special limitations on the specific type of the special effect to be displayed.

[0053] Step S220, obtain the operation response type associated with the special effect information;

[0054] In an exemplary embodiment of the present disclosure, after obtaining the special effect information corresponding to the special effect to be displayed through the above steps, the operation response type associated with the special effect information can be obtained. Specifically, the operation response type refers to whether the special effect to be displayed corresponding to the special effect information will generate a response after receiving an operation on the special effect to be displayed (including controller operations and touch operations, etc.). If a response is generated after receiving a click operation on the special effect to be displayed, the operation response type associated with the special effect information is an operable type. If no response is generated after receiving a click operation on the special effect to be displayed, the operation response type associated with the special effect information is a non-operable type.

[0055] For example, for a certain special effect, after performing a click and touch operation on the special effect, the special effect will change in shape, then the special effect is an operable type, that is, the operation response type associated with the special effect information is an operable type.

[0056] Specifically, the operation response type associated with the special effect information can be obtained. For example, the operation type identifier is included in the special effect information, and the operation response type associated with the special effect information can be determined according to the operation type identifier; or, operation simulation can be performed through the obtained special effect information, and the operation response type associated with the special effect information can be determined according to the result of the operation simulation.

[0057] It should be noted that the present disclosure does not make special limitations on the specific manner of obtaining the operation response type associated with the special effect information.

[0058] Step S230, determine the rendering method of the special effect information according to the operation response type associated with the special effect information;

[0059] In an exemplary embodiment of the present disclosure, after obtaining the operation response type associated with the special effect information through the above steps, the rendering method of the special effect information can be determined according to the operation response type associated with the special effect information. Among them, the rendering method is used to indicate the rendering processor of the special effect to be displayed. Specifically, different operation types adopt different rendering methods for rendering the special effect information, and different rendering methods can use different rendering processors. For example, the rendering processor may include a CPU (Central Processing Unit), or the rendering processor may include a GPU (Graphics Processing Unit).

[0060] For example, the rendering method may include two types: the first rendering method, the second rendering method, and the third rendering method. Among them, the first rendering method is the method of using the CPU to render the special effect information, the second rendering method is the method of using the GPU to render the special effect information, and the third rendering method is the method of using the CPU and the GPU to perform hybrid rendering on the special effect information.

[0061] In an exemplary embodiment of the present disclosure, the rendering method of the special effect information can be determined according to the operation response type associated with the special effect information. For example, when the operation response type associated with the special effect information is an operable type, the rendering method of using the CPU to render the special effect information can be adopted. When the operation response type associated with the special effect information is an inoperable type, the rendering method of using the GPU to render the special effect information can be adopted.

[0062] It should be noted that the present disclosure does not make special limitations on determining the rendering method of the special effect information according to the operation response type associated with the special effect information.

[0063] Step S240, rendering the special effect information through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room.

[0064] In an exemplary embodiment of the present disclosure, after determining the rendering method of the special effect information through the above steps, the special effect information can be rendered through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room. Specifically, the rendering method of the special effect information can be used to indicate the rendering processor of the special effect to be displayed. After determining the rendering processor to be used for the special effect information, the special effect information can be rendered through the determined rendering processor and the special effect to be displayed can be displayed in the live broadcast room.

[0065] For example, if the rendering method of the special effect information determined through the above steps is to use the CPU to render the special effect information, at this time, the special effect information can be rendered through the CPU to display the rendered special effect to be displayed in the live broadcast room.

[0066] Through the above steps S210 - S240, multiple special effect display instructions can be triggered, the special effect information corresponding to each special effect to be displayed can be obtained, and the operation response types associated with each special effect information can be obtained. According to the operation response types associated with each special effect information, the rendering methods of each special effect information can be determined, and each special effect information can be rendered according to the rendering methods of each special effect information, so as to display each special effect to be displayed in the live broadcast room. Through the solution of the present disclosure, multiple special effects to be displayed can be rendered by different rendering methods, and the rendering pressure can be distributed to different rendering processors, reducing the performance consumption of the terminal device.

[0067] In an exemplary embodiment of the present disclosure, when the operation response type associated with the special effect information is a non - operable type, the display type of the special effect information is determined according to the display attribute of the special effect information, and the rendering method of the special effect information is determined according to the display type of the special effect information. Refer to Figure 3 As shown, determining the rendering method of the special effect information according to the display type of the special effect information may include the following steps S310 - S320:

[0068] Step S310, when the operation response type associated with the special effect information is a non - operable type, determine the display type of the special effect information according to the display attribute of the special effect information;

[0069] Step S320, determine the rendering method of the special effect information according to the display type of the special effect information.

[0070] In an exemplary embodiment of the present disclosure, when it is determined through the above steps that the operation response type associated with the special effect information is a non - operable type, the display type of the special effect information can be determined. Specifically, the display attribute of the special effect to be displayed can be used to indicate various parameters or characteristics of the special effect to be displayed. For example, the display attribute of the special effect to be displayed may include the special effect shape, the special effect duration, the special effect size, whether the special effect can be stretched, whether the special effect is dynamic, etc. It should be noted that the present disclosure does not make special limitations on the specific type of the display attribute.

[0071] Specifically, different display attributes can correspond to different display types. For example, when the special effect duration is greater than or equal to the preset duration, it can be determined that the display type of the special effect information is the first display type, and when the special effect duration is less than the preset duration, it can be determined that the display type of the special effect information is the second display type; for another example, when the special effect shape is a simple graphic (for example, the number of sides is less than 6), it can be determined that the display type of the special effect information is the first display type, and when the special effect shape is a complex graphic (for example, the number of sides of the graphic is greater than or equal to 6), it can be determined that the display type of the special effect information is the second display type.

[0072] It should be noted that the present disclosure does not make any special limitations on the specific method of determining the rendering method of the special effect information according to the display type of the special effect information.

[0073] Through the above steps S310 to S320, when the operation response type associated with the special effect information is a non-operable type, the display type of the special effect information is determined according to the display attribute of the special effect information, and the rendering method of the special effect information is determined according to the display type of the special effect information.

[0074] In an exemplary embodiment of the present disclosure, when the operation response type associated with the special effect information is an operable type, the window level of the special effect information can be determined, and the rendering method of the special effect information is determined according to the window level of the special effect information. Refer to Figure 4 As shown, determining the rendering method of the special effect information according to the window level of the special effect information may include the following steps S410 to S420:

[0075] Step S410, when the operation response type associated with the special effect information is an operable type, determine the window level of the special effect information;

[0076] In an exemplary embodiment of the present disclosure, when it is determined through the above steps that the operation response type associated with the special effect information is an operable type, the window level of the special effect information can be determined. Specifically, the window level of the special effect information can be used to indicate the level of the special effect to be displayed corresponding to the special effect information among multiple windows in the terminal device. Specifically, since the special effect to be displayed can be displayed through a window, the window level of the special effect information corresponding to the special effect to be displayed can be determined.

[0077] For example, in the special effect information, a window level identifier may be included, and the window level of the special effect information can be determined through the window level identifier.

[0078] It should be noted that the present disclosure does not make any special limitations on the specific method of determining the window level of the special effect information.

[0079] Step S420, determine the rendering method of the special effect information according to the window level of the special effect information.

[0080] In an exemplary embodiment of the present disclosure, after determining the window level of the special effect information through the above steps, the rendering method of the special effect information can be determined according to the window level of the special effect information. Specifically, different window levels may correspond to different rendering methods. For example, when the window level of the special effect information is the first layer (the bottom layer), the first rendering method is adopted; when the window level of the special effect information is the second layer, the second rendering method is adopted; when the window level of the special effect information is the third layer, the third rendering method is adopted.

[0081] It should be noted that the present disclosure does not make any special limitations on the specific manner of determining the rendering method of the special effect information according to the window level of the special effect information.

[0082] Through the above steps S410 to S420, when the operation response type associated with the special effect information is an operable type, the window level of the special effect information can be determined, and the rendering method of the special effect information can be determined according to the window level of the special effect information.

[0083] In an exemplary embodiment of the present disclosure, it is determined that the window level of the special effect information is the bottom layer, the display type of the special effect information is determined according to the display attribute of the special effect information, and the rendering method of the special effect information is determined according to the display type of the special effect information. Among them, the first rendering method is the method of rendering the special effect information through the first rendering processor, the second rendering method is the method of rendering the special effect information through the second rendering processor, and the first rendering processor is different from the second rendering processor. Specifically, when the window level of the special effect information is not the bottom layer, the rendering method of the special effect information can be determined as the first rendering method or the second rendering method, that is, for this special effect information, it can only be rendered through the same rendering processor; when the window level of the special effect information is not the bottom layer, if different rendering methods are used at the same time (that is, different rendering processors are used at the same time), the window where the special effect information is located will not be penetrable.

[0084] For example, the first rendering method can be the method of rendering the special effect information through the CPU; the second rendering method can be the method of rendering through the GPU.

[0085] It should be noted that the present disclosure does not make any special limitations on the specific manner of determining the rendering method of the special effect information as the first rendering method or the second rendering method.

[0086] In an exemplary embodiment of the present disclosure, it is determined that the window level of the special effect information is the bottom layer, the display type of the special effect information is determined according to the display attribute of the special effect information, and the rendering method of the special effect information is determined according to the display type of the special effect information. Among them, the display type is used to indicate the display attribute of the special effect to be displayed. Specifically, when it is determined through the above steps that the window level of the special effect information is the bottom layer, the display type of the special effect information can be determined according to the display attribute of the special effect information, and the rendering method of the special effect information can be determined according to the display type of the special effect information. Specifically, the display attribute of the special effect to be displayed can be used to indicate various parameters or characteristics of the special effect to be displayed. For example, the display attribute of the special effect to be displayed can include the special effect shape, the special effect duration, the special effect size, whether the special effect can be stretched, whether the special effect is dynamic, etc. It should be noted that the present disclosure does not make any special limitations on the specific type of the display attribute.

[0087] Specifically, different display attributes can correspond to different display types. For example, when the special effect size is greater than or equal to the preset size, the display type of the special effect information can be determined as the first display type; when the special effect size is less than the preset size, the display type of the special effect information can be determined as the second display type. Another example is that when the special effect shape can be stretched, the display type of the special effect information can be determined as the first display type; when the special effect shape does not support stretching, the display type of the special effect information can be determined as the second display type.

[0088] It should be noted that the present disclosure does not make special limitations on the specific method of determining the rendering method of the special effect information according to the display type of the special effect information.

[0089] In an exemplary embodiment of the present disclosure, when it is determined that the size attribute of the special effect information is less than or equal to the preset size, or the stretching attribute of the special effect information is non-stretching, or the dynamic attribute of the special effect information is static, the display type of the special effect information is the first display type. When the display type of the special effect information is the first display type, the rendering method of the special effect information is determined as the first rendering method. Refer to Figure 5 As shown, when the display type of the special effect information is the first display type, determining the rendering method of the special effect information as the first rendering method may include the following steps S510 to S520:

[0090] Step S510, when it is determined that the size attribute of the special effect information is less than or equal to the preset size, or the stretching attribute of the special effect information is non-stretching, or the dynamic attribute of the special effect information is static, the display type of the special effect information is the first display type;

[0091] Step S520, when the display type of the special effect information is the first display type, determining the rendering method of the special effect information as the first rendering method; wherein, the first rendering method is a method of rendering the special effect information through the first rendering processor;

[0092] In an exemplary embodiment of the present disclosure, the display attribute of the special effect information can be obtained. The display attribute of the special effect information can be used to indicate various parameters or characteristics of the special effect to be displayed. Specifically, the display attribute of the special effect information can include a size attribute, a stretching attribute, and a dynamic attribute.

[0093] Among them, the size attribute can be used to indicate the situation of the graphical user interface of the live broadcast room occupied by the special effect to be displayed corresponding to the special effect information; the stretching attribute can be used to indicate whether the special effect to be displayed corresponding to the special effect information can be stretched; the dynamic attribute can be used to indicate whether the special effect to be displayed corresponding to the special effect information is a dynamic special effect.

[0094] In an exemplary embodiment of the present disclosure, the special effect information may include special effect attributes, and the display attributes of the special effect information can be determined through the special effect information. For example, the special effect information includes the attribute identifiers of each display attribute (such as size attribute, stretching attribute, and dynamic attribute), and the display attributes of the special effect information can be determined through the attribute identifiers of each display attribute.

[0095] It should be noted that the present disclosure does not make special limitations on the specific manner of obtaining the display attributes of the special effect information.

[0096] In an exemplary embodiment of the present disclosure, after determining the display attributes (size attribute, stretching attribute, and dynamic attribute) of the special effect information through the above steps, the rendering method of the special effect information can be determined according to the display attributes of the special effect information.

[0097] Specifically, when the size attribute of the special effect information is less than or equal to the preset size, or the stretching attribute of the special effect information is no stretching, or the dynamic attribute of the special effect information is static, it is determined that the display type of the special effect information is the first display type, and the rendering method of the special effect information can be determined as the first rendering method. Among them, the first rendering method is the method of rendering the special effect information through the first rendering processor. For example, the first rendering method is the method of rendering the special effect information through the CPU.

[0098] Through the above steps S510 - S520, it can be determined that when the size attribute of the special effect information is less than or equal to the preset size, or the stretching attribute of the special effect information is no stretching, or the dynamic attribute of the special effect information is static, the display type of the special effect information is the first display type. When the display type of the special effect information is the first display type, the rendering method of the special effect information is determined as the first rendering method.

[0099] In an exemplary embodiment of the present disclosure, it can be determined that when the size attribute of the special effect information is greater than the preset size, or the stretching attribute of the special effect information is stretching, or the dynamic attribute of the special effect information is dynamic, the display type of the special effect information is the second display type. When the display type of the special effect information is the second display type, the rendering method of the special effect information is determined as the second rendering method. Refer to Figure 6 As shown, when the display type of the special effect information is the second display type, determining the rendering method of the special effect information as the second rendering method may include the following steps S610 - S620:

[0100] Step S610, determine that when the size attribute of the special effect information is greater than the preset size, or the stretching attribute of the special effect information is stretching, or the dynamic attribute of the special effect information is dynamic, the display type of the special effect information is the second display type;

[0101] Step S620, when the display type of the special effect information is the second display type, determine that the rendering method of the special effect information is the second rendering method; wherein, the second rendering method is a method of rendering the special effect information through a second rendering processor;

[0102] In an exemplary embodiment of the present disclosure, when the size attribute of the special effect information is greater than a preset size, or the stretching attribute of the special effect information is stretching, or the dynamic attribute of the special effect information is dynamic, it can be determined that the display type of the special effect information is the second display type, and it can be determined that the rendering method of the special effect information is the second rendering method. Wherein, the second rendering method is a method of rendering the special effect information through a second rendering processor, and the first rendering processor is different from the second rendering processor. For example, the second rendering method is a method of rendering the special effect information through a GPU.

[0103] It should be noted that the present disclosure does not make special limitations on the specific method of determining the rendering method of the special effect information according to the display type of the special effect information and the specific type of the rendering processor used in each rendering method.

[0104] Through the above steps S610 - S620, it can be determined that when the size attribute of the special effect information is greater than a preset size, or the stretching attribute of the special effect information is stretching, or the dynamic attribute of the special effect information is dynamic, the display type of the special effect information is the second display type, and when the display type of the special effect information is the second display type, determine that the rendering method of the special effect information is the second rendering method.

[0105] In an exemplary embodiment of the present disclosure, when the display type of the special effect information includes the first display type and the second display type, determine that the rendering method of the special effect information is the third rendering method. Wherein, the third rendering method is a method of rendering the special effect information through the first rendering processor and the second rendering processor. Specifically, when the window level of the special effect information is the bottom layer and the display type of the special effect information includes the first display type and the second display type, different rendering processors can be used to render the special effect information simultaneously.

[0106] For example, the display attributes of the special effect information include the display size and the stretching attribute. Among them, the display size is less than the preset size, and the stretching attribute is stretching. At this time, the display attributes of the special effect information include the first display type (display size) and the second display type (stretching attribute). Therefore, it can be determined that the rendering method of the special effect information is the third rendering method, and the third rendering method is to perform hybrid rendering of the special effect information through the CPU and the GPU.

[0107] In an exemplary embodiment of the present disclosure, as Figure 7As shown, in response to a special effect display instruction, the special effect information corresponding to the to-be-displayed special effect can be obtained, and the operation response type associated with the special effect information can be obtained. When the operation response type associated with the special effect information is an operable type and the window level of the special effect information is not the bottom layer, it is determined that the rendering method of the special effect information is the first rendering method or the second rendering method (rendering the special effect information using the first rendering processor corresponding to the first rendering method, or rendering the special effect information using the second rendering processor corresponding to the second rendering method; for example, the first rendering processor can be a CPU, and the second rendering processor can be a GPU); when the operation response type associated with the special effect information is an inoperable type, or when the operation response type associated with the special effect information is an operable type and the window level of the special effect information is the bottom layer, the rendering method of the special effect information can be determined according to the display type of the special effect information, including the first rendering method, the second rendering method, and the third rendering method (the first rendering method is to render the special effect information using the first rendering processor, the second rendering method is to render the special effect information using the second rendering processor, and the third rendering method is to render the special effect information using the first rendering processor and the second rendering processor; for example, the first rendering processor can be a CPU, and the second rendering processor can be a GPU).

[0108] In an exemplary embodiment of the present disclosure, when entering the live broadcast room, a special effect instruction response module is constructed, and a special effect display instruction is triggered through a special effect instruction trigger module. Among them, the special effect instruction trigger module is used to indicate the content related to triggering the special effect display instruction in the live broadcast room, and is used to determine the rendering method of the special effect information. Specifically, when entering the live broadcast room, it is necessary to construct the framework and various modules that make up the live broadcast room. Among them, the special effect instruction response module is the content related to triggering the special effect display instruction in the live broadcast room.

[0109] For example, the special effects in the live broadcast room can include gift-giving special effects. The special effect instruction trigger module can include a gift display function and a gift-giving function. Gifts can be displayed through the gift display function, and gifts can be given through the gift-giving function. When receiving an operation of giving a gift, a special effect display instruction can be triggered through the special effect instruction trigger module.

[0110] In addition, the special effect instruction response module can also be used to determine the rendering method of the special effect information. Specifically, after triggering the special effect display instruction, in response to the special effect display instruction, the special effect information corresponding to the to-be-displayed special effect can be obtained, the operation response type associated with the special effect information can be obtained, and the rendering method of the special effect information can be determined according to the operation response type associated with the special effect information.

[0111] Further, reference may be made to the embodiments of the rendering method for determining special effect information above, and the rendering method of the special effect information is determined by the special effect instruction response module.

[0112] In an exemplary embodiment of the present disclosure, the special effect rendering module may be detected. When the special effect rendering module does not exist, the special effect rendering module is constructed, and the rendering method of the special effect information determined by the special effect instruction response module is obtained through the special effect instruction response module. The special effect information is rendered in the special effect rendering module through the rendering method of the special effect information. When the special effect rendering module exists, the rendering method of the special effect information determined by the special effect instruction response module is obtained through the special effect instruction response module, and the special effect information is rendered in the special effect rendering module through the rendering method of the special effect information. Refer to Figure 8 As shown, when the special effect rendering module exists, the rendering method of the special effect information determined by the special effect instruction response module is obtained through the special effect instruction response module, and the special effect information is rendered in the special effect rendering module through the rendering method of the special effect information, which may include the following steps S810 to S830:

[0113] Step S810, detecting the special effect rendering module;

[0114] In an exemplary embodiment of the present disclosure, after entering the live broadcast room through the above steps and constructing the special effect instruction response module, the special effect rendering module may be detected. Among them, the special effect rendering module is used to render the special effect information through the rendering method of the special effect information. Specifically, the special effect rendering module may be detected in the cache of the terminal device.

[0115] Specifically, the special effect rendering module may be the special effect rendering module created when entering the live broadcast room before this entry into the live broadcast room. After exiting the live broadcast room, the special effect rendering module may be stored, and when detecting, the stored special effect rendering module may be detected.

[0116] It should be noted that the present disclosure does not make special limitations on the specific method for detecting the special effect rendering module.

[0117] Step S820, when the special effect rendering module does not exist, constructing the special effect rendering module, obtaining the rendering method of the special effect information determined by the special effect instruction response module through the special effect instruction response module, and rendering the special effect information in the special effect rendering module through the rendering method of the special effect information;

[0118] Step S830, when the special effect rendering module exists, obtaining the rendering method of the special effect information determined by the special effect instruction response module through the special effect instruction response module, and rendering the special effect information in the special effect rendering module through the rendering method of the special effect information.

[0119] In an exemplary embodiment of the present disclosure, when detecting the special effect rendering module through the above steps and the special effect rendering module is not detected, it indicates that the user enters the live broadcast room for the first time. At this time, it is necessary to construct the special effect rendering module, and the special effect rendering module obtains the rendering method of the special effect information determined by the special effect instruction response module, and renders the special effect information in the special effect rendering module through the obtained rendering method of the special effect information; when the special effect rendering module is detected, it indicates that the user is not entering the live broadcast room for the first time. At this time, the special effect rendering module can directly obtain the rendering method of the special effect information determined by the special effect instruction response module, and render the special effect information in the special effect rendering module through the obtained rendering method of the special effect information.

[0120] Specifically, after constructing the special effect instruction response module and detecting the special effect rendering module, when there is no special effect rendering module, the special effect rendering module can be constructed, and the communication between the special effect instruction response module and the special effect rendering module can be established. For example, socket (socket) can be used to establish the communication between the special effect instruction response module and the special effect rendering module.

[0121] Through the above steps S810 to S830, the special effect rendering module can be detected. When there is no special effect rendering module, the special effect rendering module is constructed, the rendering method of the special effect information determined by the special effect instruction response module is obtained through the special effect instruction response module, and the special effect information is rendered in the special effect rendering module through the rendering method of the special effect information. When there is a special effect rendering module, the rendering method of the special effect information determined by the special effect instruction response module is obtained through the special effect instruction response module, and the special effect information is rendered in the special effect rendering module through the rendering method of the special effect information.

[0122] In an exemplary embodiment of the present disclosure, in response to the close instruction for the live broadcast room, the live broadcast room can be closed, the special effect instruction response module can be deleted, and the special effect rendering module can be retained. Refer to Figure 9 As shown, deleting the special effect instruction response module and retaining the special effect rendering module may include the following steps S910 to S920:

[0123] Step S910, in response to the close instruction for the live broadcast room, close the live broadcast room;

[0124] Step S920, delete the special effect instruction response module and retain the special effect rendering module.

[0125] In an exemplary embodiment of the present disclosure, in response to a close instruction for the live broadcast room, the live broadcast room is closed, and the special effect instruction response module is deleted, while the special effect rendering module is retained. The special effect rendering module is used to implement the rendering of special effects in other live broadcast rooms. Specifically, after the live broadcast room is closed, the communication between the special effect instruction response module and the special effect rendering module can be disconnected, and the special effect rendering module will be retained. When the live broadcast room is opened next time, the special effect rendering module can be detected, and the special effect information can be rendered in the special effect rendering module by means of the rendering method of the special effect information.

[0126] For example, the special effect rendering module can be retained in the cache of the terminal device.

[0127] It should be noted that the present disclosure does not make special limitations on the specific manner of retaining the special effect rendering module.

[0128] Through the above steps S910-S920, in response to a close instruction for the live broadcast room, the live broadcast room can be closed, the special effect instruction response module can be deleted, and the special effect rendering module can be retained. Through the embodiments of the present disclosure, when exiting the live broadcast room, the special effect rendering module can be retained, and when entering other live broadcast rooms, the special effect rendering module can be directly called, avoiding frequent destruction and construction of the special effect rendering module, effectively controlling the performance consumption of the terminal device, improving the fluency of the live broadcast platform, improving the speed of special effect response, and enhancing the user experience of watching the live broadcast.

[0129] In an exemplary embodiment of the present disclosure, as Figure 10 shown, after entering the live broadcast room, a special effect instruction response module can be constructed, a special effect display instruction can be triggered through the special effect instruction response module, and the rendering method of the special effect information can be determined;

[0130] Then, the special effect rendering module is detected. When there is a special effect rendering module, the communication between the special effect instruction response module and the special effect rendering module is restored, the rendering method of the special effect information determined by the special effect instruction response module is obtained through the special effect instruction response module, the special effect information is rendered in the special effect rendering module by means of the rendering method of the special effect information, and the special effect to be displayed is displayed in the live broadcast room; when there is no special effect rendering module, a special effect rendering module is constructed, the communication between the special effect instruction response module and the special effect rendering module is established, the rendering method of the special effect information determined by the special effect instruction response module is obtained through the special effect instruction response module, the special effect information is rendered in the special effect rendering module by means of the rendering method of the special effect information, and the special effect to be displayed is displayed in the live broadcast room;

[0131] In response to a close instruction for the live broadcast room, the live broadcast room can be closed, the communication between the special effect instruction response module and the special effect rendering module can be disconnected, the special effect rendering module can be retained and hidden, and when entering other live broadcast rooms, the special effect rendering module can be detected, and the rendering of the special effect can be achieved through the special effect rendering module.

[0132] In the special effect rendering method provided by an embodiment of the present disclosure, in response to a special effect display instruction, special effect information corresponding to the special effect to be displayed can be obtained, the operation response type associated with the special effect information can be obtained, the rendering method of the special effect information can be determined according to the operation response type associated with the special effect information, and the special effect information can be rendered through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room. On the one hand, the rendering method of the special effect can be determined according to the operation response type associated with the special effect information, different rendering processors can be determined according to different operation response types, the rendering pressure can be shared, the resource occupancy can be reduced, the performance consumption of the terminal device can be reduced, and thus the cost for the user to watch the live broadcast can be reduced; on the other hand, sharing the rendering pressure to different rendering processors can reduce the difficulty of the developer in developing the special effect for the playback and control of the special effect.

[0133] It should be noted that the above drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, rather than for limiting purposes. It is easy to understand that the processes shown in the above drawings do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be executed synchronously or asynchronously in, for example, multiple modules.

[0134] In addition, in the exemplary embodiment of the present disclosure, a special effect rendering device is also provided. Referring to Figure 11 As shown, a special effect rendering device 1100 includes: a display instruction response module 1110, an operation type acquisition module 1120, a rendering method determination module 1130, and a special effect information rendering module 1140.

[0135] Among them, the display instruction response module is configured to obtain, in response to a special effect display instruction, special effect information corresponding to the special effect to be displayed; wherein, the special effect information is used to display the special effect to be displayed in the live broadcast room; the operation type acquisition module is configured to obtain the operation response type associated with the special effect information; the rendering method determination module is configured to determine the rendering method of the special effect information according to the operation response type associated with the special effect information; wherein, the rendering method is used to indicate the rendering processor of the special effect to be displayed; the special effect information rendering module is configured to render the special effect information through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room.

[0136] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the rendering method of the special effect information is determined according to the operation response type associated with the special effect information. The apparatus further includes: a first display type determination unit, configured to determine the display type of the special effect information according to the display attribute of the special effect information when the operation response type associated with the special effect information is a non-operable type; a first rendering method determination unit, configured to determine the rendering method of the special effect information according to the display type of the special effect information.

[0137] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the rendering method of the special effect information is determined according to the operation response type associated with the special effect information. The apparatus further includes: a window level determination unit, configured to determine the window level of the special effect information when the operation response type associated with the special effect information is an operable type; a second rendering method determination unit, configured to determine the rendering method of the special effect information according to the window level of the special effect information.

[0138] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the rendering method of the special effect information is determined according to the window level of the special effect information. The apparatus further includes: a third rendering method determination unit, configured to determine that the window level of the special effect information is not the bottom layer, and determine that the rendering method of the special effect information is the first rendering method or the second rendering method; wherein, the first rendering method is a method of rendering the special effect information by a first rendering processor, the second rendering method is a method of rendering the special effect information by a second rendering processor, and the first rendering processor is different from the second rendering processor.

[0139] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the rendering method of the special effect information is determined according to the window level of the special effect information. The apparatus further includes: a fourth rendering method determination unit, configured to determine that the window level of the special effect information is the bottom layer, determine the display type of the special effect information according to the display attribute of the special effect information, and determine the rendering method of the special effect information according to the display type of the special effect information; wherein, the display type is used to indicate the display attribute of the special effect to be displayed.

[0140] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the display attributes include a size attribute, a stretching attribute, and a dynamic attribute.

[0141] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the rendering method of the special effect information is determined according to the display type of the special effect information. The apparatus further includes: a first display type determining unit, configured to determine that when the size attribute of the special effect information is less than or equal to a preset size, or the stretching attribute of the special effect information is non-stretching, or the dynamic attribute of the special effect information is static, the display type of the special effect information is a first display type; a fifth rendering method determining unit, configured to determine that when the display type of the special effect information is the first display type, the rendering method of the special effect information is a first rendering method; wherein the first rendering method is a method of rendering the special effect information by a first rendering processor.

[0142] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the apparatus further includes: a second display type determining unit, configured to determine that when the size attribute of the special effect information is greater than a preset size, or the stretching attribute of the special effect information is stretching, or the dynamic attribute of the special effect information is dynamic, the display type of the special effect information is a second display type; a sixth rendering method determining unit, configured to determine that when the display type of the special effect information is the second display type, the rendering method of the special effect information is a second rendering method; wherein the second rendering method is a method of rendering the special effect information by a second rendering processor, and the first rendering processor is different from the second rendering processor.

[0143] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the apparatus further includes: a seventh rendering method determining unit, configured to determine that when the display type of the special effect information includes the first display type and the second display type, the rendering method of the special effect information is a third rendering method; wherein the third rendering method is a method of rendering the special effect information by the first rendering processor and the second rendering processor.

[0144] In an exemplary embodiment of the present disclosure, based on the foregoing solution, before obtaining the special effect information corresponding to the to-be-displayed special effect in response to the special effect display instruction, the device further includes: a special effect instruction response module construction unit, configured to construct a special effect instruction response module when entering the live broadcast room, and trigger a special effect display instruction through a special effect instruction trigger module; wherein, the special effect instruction trigger module is used to indicate the content related to triggering the special effect display instruction in the live broadcast room, and is used to determine the rendering method of the special effect information; rendering the special effect information through the rendering method of the special effect information, the device further includes: a special effect rendering module detection unit, configured to detect the special effect rendering module; wherein, the special effect rendering module is used to render the special effect information through the rendering method of the special effect information; a first rendering unit, configured to construct a special effect rendering module when there is no special effect rendering module, obtain the rendering method of the special effect information determined by the special effect instruction response module through the special effect instruction response module, and render the special effect information through the rendering method of the special effect information in the special effect rendering module; a second rendering unit, configured to obtain the rendering method of the special effect information determined by the special effect instruction response module through the special effect instruction response module when there is a special effect rendering module, and render the special effect information through the rendering method of the special effect information in the special effect rendering module.

[0145] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the device further includes: a live broadcast room closing unit, configured to close the live broadcast room in response to a closing instruction for the live broadcast room; a special effect rendering module retention unit, configured to delete the special effect instruction response module and retain the special effect rendering module; wherein, the special effect rendering module is used to implement the rendering of the special effect in other live broadcast rooms.

[0146] The special effect rendering device provided in an embodiment of the present disclosure can, in response to a special effect display instruction, obtain the special effect information corresponding to the to-be-displayed special effect, obtain the operation response type associated with the special effect information, determine the rendering method of the special effect information according to the operation response type associated with the special effect information, and render the special effect information through the rendering method of the special effect information to display the to-be-displayed special effect in the live broadcast room. On the one hand, it can determine the rendering method of the special effect according to the operation response type associated with the special effect information, determine different rendering processors according to different operation response types, allocate the rendering pressure, reduce resource occupancy, reduce the performance consumption of the terminal device, and thus reduce the cost for users to watch the live broadcast; on the other hand, allocating the rendering pressure to different rendering processors can reduce the difficulty for developers in developing special effects in terms of playing and controlling the special effects.

[0147] Since each functional module of the special effect rendering device in the exemplary embodiment of the present disclosure corresponds to the steps in the exemplary embodiment of the above special effect rendering method, for the details not disclosed in the embodiment of the present disclosure device, please refer to the embodiment of the above special effect rendering method of the present disclosure.

[0148] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such a division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0149] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above special effect rendering method is also provided.

[0150] Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, a method, or a program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware embodiment, a complete software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects, which can be collectively referred to as "circuit", "module", or "system" here.

[0151] Next, refer to Figure 12 to describe the electronic device 1200 according to such an embodiment of the present disclosure. Figure 12 The shown electronic device 1200 is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.

[0152] As Figure 12 shown, the electronic device 1200 is presented in the form of a general-purpose computing device. The components of the electronic device 1200 may include but are not limited to: at least one of the above processing units 1210, at least one of the above storage units 1220, a bus 1230 connecting different system components (including the storage unit 1220 and the processing unit 1210), and a display unit 1240.

[0153] Among them, the storage unit stores program codes, and the program codes can be executed by the processing unit 1210, so that the processing unit 1210 executes the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of this specification. For example, the processing unit 1210 can execute steps S210 as shown in Figure 2 : in response to a special effect display instruction, obtain special effect information corresponding to the special effect to be displayed; wherein, the special effect information is used to display the special effect to be displayed in the live broadcast room; step S220: obtain the operation response type associated with the special effect information; step S230, determine the rendering method of the special effect information according to the operation response type associated with the special effect information; wherein, the rendering method is used to indicate the rendering processor of the special effect to be displayed; step S240, render the special effect information through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room.

[0154] In an exemplary embodiment of the present disclosure, based on the foregoing solution, determining the rendering method of the special effect information according to the operation response type associated with the special effect information includes: when the operation response type associated with the special effect information is a non-operable type, determining the display type of the special effect information according to the display attribute of the special effect information; and determining the rendering method of the special effect information according to the display type of the special effect information.

[0155] In an exemplary embodiment of the present disclosure, based on the foregoing solution, determining the rendering method of the special effect information according to the operation response type associated with the special effect information includes: when the operation response type associated with the special effect information is an operable type, determining the window level of the special effect information; and determining the rendering method of the special effect information according to the window level of the special effect information.

[0156] In an exemplary embodiment of the present disclosure, based on the foregoing solution, determining the rendering method of the special effect information according to the window level of the special effect information includes: determining that the window level of the special effect information is not the bottom layer, and determining that the rendering method of the special effect information is the first rendering method or the second rendering method; wherein, the first rendering method is a method of rendering the special effect information by a first rendering processor, the second rendering method is a method of rendering the special effect information by a second rendering processor, and the first rendering processor is different from the second rendering processor.

[0157] In an exemplary embodiment of the present disclosure, based on the foregoing solution, determining the rendering method of the special effect information according to the window level of the special effect information includes: determining that the window level of the special effect information is the bottom layer, determining the display type of the special effect information according to the display attribute of the special effect information, and determining the rendering method of the special effect information according to the display type of the special effect information; wherein, the display type is used to indicate the display attribute of the special effect to be displayed.

[0158] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the display attribute includes a size attribute, a stretching attribute, and a dynamic attribute.

[0159] In an exemplary embodiment of the present disclosure, based on the foregoing solution, determining the rendering method of the special effect information according to the display type of the special effect information includes: when the size attribute of the special effect information is less than or equal to a preset size, or the stretching attribute of the special effect information is no stretching, or the dynamic attribute of the special effect information is static, the display type of the special effect information is the first display type; when the display type of the special effect information is the first display type, determining that the rendering method of the special effect information is the first rendering method; wherein, the first rendering method is a method of rendering the special effect information by a first rendering processor.

[0160] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the apparatus further includes: when it is determined that the size attribute of the special effect information is greater than a preset size, or the stretching attribute of the special effect information is stretching, or the dynamic attribute of the special effect information is dynamic, the display type of the special effect information is the second display type; when the display type of the special effect information is the second display type, determine that the rendering method of the special effect information is the second rendering method; wherein, the second rendering method is a method of rendering the special effect information by a second rendering processor, and the first rendering processor is different from the second rendering processor.

[0161] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the method further includes: when the display type of the special effect information includes the first display type and the second display type, determine that the rendering method of the special effect information is the third rendering method; wherein, the third rendering method is a method of rendering the special effect information by the first rendering processor and the second rendering processor.

[0162] In an exemplary embodiment of the present disclosure, based on the foregoing solution, before obtaining the special effect information corresponding to the special effect to be displayed in response to a special effect display instruction, the method further includes: when entering the live broadcast room, construct a special effect instruction response module, and trigger a special effect display instruction through a special effect instruction trigger module; wherein, the special effect instruction trigger module is used to indicate the content related to triggering the special effect display instruction in the live broadcast room, and is used to determine the rendering method of the special effect information; rendering the special effect information through the rendering method of the special effect information includes: detecting a special effect rendering module; wherein, the special effect rendering module is used to render the special effect information through the rendering method of the special effect information; when there is no special effect rendering module, construct a special effect rendering module, obtain the rendering method of the special effect information determined by the special effect instruction response module through the special effect instruction response module, and render the special effect information through the rendering method of the special effect information in the special effect rendering module; when there is a special effect rendering module, obtain the rendering method of the special effect information determined by the special effect instruction response module through the special effect instruction response module, and render the special effect information through the rendering method of the special effect information in the special effect rendering module.

[0163] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the method further includes: in response to a closing instruction for the live broadcast room, close the live broadcast room; delete the special effect instruction response module, and retain the special effect rendering module; wherein, the special effect rendering module is used to implement the rendering of special effects in other live broadcast rooms.

[0164] An electronic device provided by an embodiment of the present disclosure can, in response to a special effect display instruction, obtain special effect information corresponding to the special effect to be displayed, obtain the operation response type associated with the special effect information, determine the rendering method of the special effect information according to the operation response type associated with the special effect information, and render the special effect information through the rendering method of the special effect information, so as to display the special effect to be displayed in the live broadcast room. On the one hand, it is possible to determine the rendering method of the special effect according to the operation response type associated with the special effect information, determine different rendering processors according to different operation response types, allocate the rendering pressure, reduce resource occupancy, reduce the performance consumption of the terminal device, and thus reduce the cost for users to watch the live broadcast; on the other hand, allocating the rendering pressure to different rendering processors can reduce the difficulty for developers in developing special effects in terms of playing and controlling the special effects.

[0165] The storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 1221 and / or a cache storage unit 1222, and may further include a read-only storage unit (ROM) 1223.

[0166] The storage unit 1220 may further include a program / utilities 1224 having a set (at least one) of program modules 1225. Such program modules 1225 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment.

[0167] The bus 1230 may represent one or more of several types of bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus architectures.

[0168] The electronic device 1200 can also communicate with one or more external devices 1270 (such as a keyboard, a pointing device, a Bluetooth device, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 1200, and / or communicate with any device that enables the electronic device 1200 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 1250. Moreover, the electronic device 1200 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 1260. As shown in the figure, the network adapter 1260 communicates with other modules of the electronic device 1200 through the bus 1230. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 1200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0169] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by the way of software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0170] In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium, on which a program product capable of implementing the above method of this specification is stored. In some possible embodiments, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.

[0171] In an exemplary embodiment of the present disclosure, there is provided a computer-readable signal medium, which can obtain special effect information corresponding to a to-be-displayed special effect in response to a special effect display instruction; wherein the special effect information is used to display the to-be-displayed special effect in a live broadcast room; obtain an operation response type associated with the special effect information; determine a rendering method of the special effect information according to the operation response type associated with the special effect information; wherein the rendering method is used to indicate a rendering processor of the to-be-displayed special effect; and render the special effect information through the rendering method of the special effect information to display the to-be-displayed special effect in the live broadcast room.

[0172] In an exemplary embodiment of the present disclosure, based on the foregoing solution, determining the rendering method of the special effect information according to the operation response type associated with the special effect information includes: when the operation response type associated with the special effect information is a non-operable type, determining the display type of the special effect information according to the display attribute of the special effect information; and determining the rendering method of the special effect information according to the display type of the special effect information.

[0173] In an exemplary embodiment of the present disclosure, based on the foregoing solution, determining the rendering method of the special effect information according to the operation response type associated with the special effect information includes: when the operation response type associated with the special effect information is an operable type, determining the window level of the special effect information; and determining the rendering method of the special effect information according to the window level of the special effect information.

[0174] In an exemplary embodiment of the present disclosure, based on the foregoing solution, determining the rendering method of the special effect information according to the window level of the special effect information includes: determining that the window level of the special effect information is not the bottom layer, and determining that the rendering method of the special effect information is the first rendering method or the second rendering method; wherein, the first rendering method is a method of rendering the special effect information by a first rendering processor, the second rendering method is a method of rendering the special effect information by a second rendering processor, and the first rendering processor is different from the second rendering processor.

[0175] In an exemplary embodiment of the present disclosure, based on the foregoing solution, determining the rendering method of the special effect information according to the window level of the special effect information includes: determining that the window level of the special effect information is the bottom layer, determining the display type of the special effect information according to the display attribute of the special effect information, and determining the rendering method of the special effect information according to the display type of the special effect information; wherein, the display type is used to indicate the display attribute of the special effect to be displayed.

[0176] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the display attribute includes a size attribute, a stretching attribute, and a dynamic attribute.

[0177] In an exemplary embodiment of the present disclosure, based on the foregoing solution, determining the rendering method of the special effect information according to the display type of the special effect information includes: when it is determined that the size attribute of the special effect information is less than or equal to a preset size, or the stretching attribute of the special effect information is no stretching, or the dynamic attribute of the special effect information is static, the display type of the special effect information is the first display type; when the display type of the special effect information is the first display type, determining that the rendering method of the special effect information is the first rendering method; wherein, the first rendering method is a method of rendering the special effect information by a first rendering processor.

[0178] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the apparatus further includes: when it is determined that the size attribute of the special effect information is greater than a preset size, or the stretching attribute of the special effect information is stretching, or the dynamic attribute of the special effect information is dynamic, the display type of the special effect information is the second display type; when the display type of the special effect information is the second display type, determining that the rendering method of the special effect information is the second rendering method; wherein, the second rendering method is a method of rendering the special effect information through a second rendering processor, and the first rendering processor is different from the second rendering processor.

[0179] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the method further includes: when the display type of the special effect information includes the first display type and the second display type, determining that the rendering method of the special effect information is the third rendering method; wherein, the third rendering method is a method of rendering the special effect information through the first rendering processor and the second rendering processor.

[0180] In an exemplary embodiment of the present disclosure, based on the foregoing solution, before obtaining the special effect information corresponding to the special effect to be displayed in response to a special effect display instruction, the method further includes: when entering the live broadcast room, constructing a special effect instruction response module, and triggering a special effect display instruction through a special effect instruction trigger module; wherein, the special effect instruction trigger module is used to indicate the content related to triggering the special effect display instruction in the live broadcast room, and is used to determine the rendering method of the special effect information; rendering the special effect information through the rendering method of the special effect information includes: detecting a special effect rendering module; wherein, the special effect rendering module is used to render the special effect information through the rendering method of the special effect information; when there is no special effect rendering module, constructing a special effect rendering module, obtaining the rendering method of the special effect information determined by the special effect instruction response module through the special effect instruction response module, and rendering the special effect information through the rendering method of the special effect information in the special effect rendering module; when there is a special effect rendering module, obtaining the rendering method of the special effect information determined by the special effect instruction response module through the special effect instruction response module, and rendering the special effect information through the rendering method of the special effect information in the special effect rendering module.

[0181] In an exemplary embodiment of the present disclosure, based on the foregoing solution, the method further includes: in response to a closing instruction for the live broadcast room, closing the live broadcast room; deleting the special effect instruction response module and retaining the special effect rendering module; wherein, the special effect rendering module is used to implement the rendering of the special effect in other live broadcast rooms.

[0182] One embodiment of the present disclosure provides a computer-readable signal medium that can, in response to a special effect display instruction, obtain special effect information corresponding to the special effect to be displayed, obtain the operation response type associated with the special effect information, determine the rendering method of the special effect information according to the operation response type associated with the special effect information, and render the special effect information through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room. On the one hand, it is possible to determine the rendering method of the special effect according to the operation response type associated with the special effect information, determine different rendering processors according to different operation response types, and allocate the rendering pressure, which can reduce resource occupancy, reduce the performance consumption of the terminal device, and thus reduce the cost for users to watch the live broadcast; on the other hand, allocating the rendering pressure to different rendering processors can reduce the difficulty for developers in developing special effects in terms of playing and controlling the special effects.

[0183] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0184] The program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the above.

[0185] The program code for performing the operations of the present disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as an independent software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, by using an Internet service provider to connect through the Internet).

[0186] In addition, the above drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, rather than for limiting purposes. It is easy to understand that the processes shown in the above drawings do not indicate or limit the time sequence of these processes. Additionally, it is also easy to understand that these processes can be executed synchronously or asynchronously, for example, in multiple modules.

[0187] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.

Claims

1. A special effect rendering method, characterized in that, The method includes: In response to a special effect display instruction, obtaining special effect information corresponding to the special effect to be displayed; wherein, the special effect information is used to display the special effect to be displayed in the live broadcast room; Obtaining the operation response type associated with the special effect information; Determining the rendering method of the special effect information according to the operation response type associated with the special effect information; wherein, the rendering method is used to indicate the rendering processor of the special effect to be displayed; wherein, determining the rendering method of the special effect information according to the operation response type associated with the special effect information includes: when the operation response type associated with the special effect information is a non-operable type, determining the display type of the special effect information according to the display attribute of the special effect information; determining the rendering method of the special effect information according to the display type of the special effect information; When the operation response type associated with the special effect information is an operable type, determining the window level of the special effect information; determining the rendering method of the special effect information according to the window level of the special effect information; Rendering the special effect information through the rendering method of the special effect information to display the special effect to be displayed in the live broadcast room.

2. The method according to claim 1, wherein Determining the rendering method of the special effect information according to the window level of the special effect information includes: Determining that the window level of the special effect information is not the bottom layer, and determining that the rendering method of the special effect information is the first rendering method or the second rendering method; Wherein, the first rendering method is a method of rendering the special effect information through a first rendering processor, the second rendering method is a method of rendering the special effect information through a second rendering processor, and the first rendering processor is different from the second rendering processor.

3. The method according to claim 1, characterized in that, Determining the rendering method of the special effect information according to the window level of the special effect information includes: Determining that the window level of the special effect information is the bottom layer, determining the display type of the special effect information according to the display attribute of the special effect information, and determining the rendering method of the special effect information according to the display type of the special effect information; Wherein, the display type is used to indicate the display attribute of the special effect to be displayed.

4. The method according to claim 1 or 2 or 3, characterized in that, The display attributes include size attribute, stretching attribute, and dynamic attribute.

5. The method according to claim 4, characterized in that, Determining the rendering method of the special effect information according to the display type of the special effect information includes: Determining that when the size attribute of the special effect information is less than or equal to a preset size, or the stretching attribute of the special effect information is no stretching, or the dynamic attribute of the special effect information is static, the display type of the special effect information is the first display type; When the display type of the special effect information is the first display type, determining that the rendering method of the special effect information is the first rendering method; Wherein, the first rendering method is a method of rendering the special effect information through a first rendering processor.

6. The method according to claim 5, wherein The method further includes: Determining that when the size attribute of the special effect information is greater than the preset size, or the stretching attribute of the special effect information is stretching, or the dynamic attribute of the special effect information is dynamic, the display type of the special effect information is the second display type; When the display type of the special effect information is the second display type, determining that the rendering method of the special effect information is the second rendering method; Wherein, the second rendering method is a method of rendering the special effect information by a second rendering processor, and the first rendering processor is different from the second rendering processor.

7. The method according to claim 6, wherein The method further includes: When the display type of the special effect information includes a first display type and a second display type, determining that the rendering method of the special effect information is a third rendering method; Wherein, the third rendering method is a method of rendering the special effect information by a first rendering processor and a second rendering processor.

8. The method according to claim 1, wherein Before obtaining the special effect information corresponding to the to-be-displayed special effect in response to the special effect display instruction, the method further includes: When entering the live broadcast room, constructing a special effect instruction response module, and triggering a special effect display instruction through a special effect instruction trigger module; wherein, the special effect instruction trigger module is used to indicate the content related to triggering the special effect display instruction in the live broadcast room, and is used to determine the rendering method of the special effect information; Rendering the special effect information by the rendering method of the special effect information includes: Detecting a special effect rendering module; wherein, the special effect rendering module is used to render the special effect information by the rendering method of the special effect information; When the special effect rendering module does not exist, constructing a special effect rendering module, obtaining the rendering method of the special effect information determined by the special effect instruction response module through the special effect instruction response module, and rendering the special effect information by the rendering method of the special effect information in the special effect rendering module; When the special effect rendering module exists, obtaining the rendering method of the special effect information determined by the special effect instruction response module through the special effect instruction response module, and rendering the special effect information by the rendering method of the special effect information in the special effect rendering module.

9. The method according to claim 8, characterized in that The method further includes: Responding to a close instruction for the live broadcast room, and closing the live broadcast room; Deleting the special effect instruction response module and retaining the special effect rendering module; wherein, the special effect rendering module is used to implement the rendering of special effects in other live broadcast rooms.

10. An special effect rendering device, characterized in that, The device includes: A display instruction response module, configured to obtain special effect information corresponding to a to-be-displayed special effect in response to a special effect display instruction; wherein, the special effect information is used to display the to-be-displayed special effect in the live broadcast room; An operation type acquisition module, configured to acquire an operation response type associated with the special effect information; A rendering method determination module, configured to determine the rendering method of the special effect information according to the operation response type associated with the special effect information; wherein, the rendering method is used to indicate the rendering processor of the to-be-displayed special effect; wherein, determining the rendering method of the special effect information according to the operation response type associated with the special effect information includes: when the operation response type associated with the special effect information is a non-operable type, determining the display type of the special effect information according to the display attribute of the special effect information; determining the rendering method of the special effect information according to the display type of the special effect information; When the operation response type associated with the special effect information is an operable type, determining the window level of the special effect information; determining the rendering method of the special effect information according to the window level of the special effect information; The special effect information rendering module is used to render the special effect information in the rendering manner of the special effect information, so as to display the to-be-displayed special effect in the live broadcast room.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the method according to any one of claims 1 to 9.

12. An electronic device, characterized in that, Comprising: One or more processors; And A memory for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

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

    CN115272145A

  • Rendering mode selection in graphics processing units

    US20120293519A1