Special effect processing method and apparatus, terminal device, storage medium, and program product
Patent Information
- Application Number
- CN202510465347.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-14
- Publication Date
- 2026-10-20
AI Technical Summary
但是,在上述方法中,终端设备只能根据固定的渲染顺序进行特效渲染,渲染顺序无法进行调节,导致特效渲染的灵活度较低
[0018]本公开实施例提供一种特效处理方法、装置、终端设备、存储介质及程序产品,响应于对多个第一特效的添加,终端设备可以基于多个第一特效的添加顺序,确定多个第一特效的第一渲染顺序,并获取多个第一特效的关联关系、以及至少一个第一特效的渲染优先级,其中,关联关系用于指示多个第一特效之间的互斥关系,终端设备可以基于第一渲染顺序、关联关系和渲染优先级,对多个第一特效进行渲染。在上述方法中,由于第一渲染顺序与多个第一特效的添加顺序相关,灵活的控制多个第一特效的第一渲染顺序,并且,终端设备可以基于渲染优先级,对第一渲染顺序进行调整,提高特效渲染的灵活度,并且,终端设备可以基于关联关系,避免多个第一特效之间的冲突,提高特效渲染的准确度。
Smart Images

Figure HDA0005359180520000011 
Figure HDA0005359180520000012 
Figure HDA0005359180520000021
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of multimedia technology, and in particular to a special effects processing method, apparatus, terminal device, storage medium, and program product. Background Technology
[0002] In multimedia editing scenarios, multiple effects can overlap each other. For example, a sticker can cover text, and a filter can also be applied over both the sticker and the text.
[0003] In related technologies, the terminal device can pre-set the rendering order of all special effects and render the effects sequentially according to the rendering order, where later rendered effects will overwrite earlier rendered effects. However, in the above method, the terminal device can only render special effects according to a fixed rendering order, and the rendering order cannot be adjusted, resulting in low flexibility in special effect rendering. Summary of the Invention
[0004] This disclosure provides a special effects processing method, apparatus, terminal device, storage medium, and program product and terminal device to solve technical problems in the prior art.
[0005] In a first aspect, embodiments of this disclosure provide a special effects processing method, which includes:
[0006] In response to the addition of multiple first effects, the first rendering order of the multiple first effects is determined based on the order in which they are added;
[0007] Obtain the association relationship of the plurality of first special effects and the rendering priority of at least one first special effect, wherein the association relationship is used to indicate whether there is a mutual exclusion relationship between the plurality of first special effects;
[0008] Based on the first rendering order, the association relationship, and the rendering priority, the plurality of first special effects are rendered.
[0009] Secondly, embodiments of this disclosure provide a special effects processing apparatus, which includes a determining module, an acquiring module, and a processing module, wherein:
[0010] The determining module is used to determine the first rendering order of the multiple first effects based on the order in which the multiple first effects are added, in response to the addition of multiple first effects.
[0011] The acquisition module is used to acquire the association relationship of the plurality of first special effects and the rendering priority of at least one first special effect, wherein the association relationship is used to indicate whether there is a mutual exclusion relationship between the plurality of first special effects;
[0012] The processing module is used to render the plurality of first special effects based on the first rendering order, the association relationship, and the rendering priority.
[0013] Thirdly, this disclosure provides a terminal device including: a processor and a memory;
[0014] The memory stores computer-executed instructions;
[0015] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the first aspect and various possible special effects processing methods mentioned above.
[0016] Fourthly, this disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the first aspect and various special effects processing methods that may be involved in the first aspect.
[0017] Fifthly, this disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the first aspect above and various possible special effects processing methods involved in the first aspect.
[0018] This disclosure provides a special effects processing method, apparatus, terminal device, storage medium, and program product. In response to the addition of multiple first special effects, the terminal device can determine a first rendering order of the multiple first special effects based on the order in which they are added, and obtain the association relationship between the multiple first special effects and the rendering priority of at least one first special effect. The association relationship indicates the mutual exclusion relationship between the multiple first special effects. The terminal device can render the multiple first special effects based on the first rendering order, the association relationship, and the rendering priority. In this method, since the first rendering order is related to the order in which the multiple first special effects are added, the first rendering order of the multiple first special effects can be flexibly controlled. Furthermore, the terminal device can adjust the first rendering order based on the rendering priority, improving the flexibility of special effects rendering. Additionally, the terminal device can avoid conflicts between multiple first special effects based on the association relationship, improving the accuracy of special effects rendering. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1This is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;
[0021] Figure 2 A flowchart illustrating a special effects processing method provided in an embodiment of this disclosure;
[0022] Figure 3 A schematic diagram illustrating a process for determining a first rendering order, provided in an embodiment of this disclosure;
[0023] Figure 4 A schematic diagram illustrating a re-determination of the first rendering order according to an embodiment of this disclosure;
[0024] Figure 5 A schematic diagram illustrating an association relationship provided in an embodiment of this disclosure;
[0025] Figure 6 A schematic diagram illustrating the hierarchy of a first special effect provided for an embodiment of this disclosure;
[0026] Figure 7 This is a schematic flowchart of a method for rendering multiple first special effects according to an embodiment of the present disclosure;
[0027] Figure 8 A schematic diagram illustrating a method for reusing a first special effect provided in an embodiment of this disclosure;
[0028] Figure 9 This is a schematic diagram of the structure of a special effects processing device provided in an embodiment of the present disclosure;
[0029] Figure 10 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Detailed Implementation
[0030] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0031] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0032] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the terminal device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0033] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the terminal device.
[0034] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0035] For ease of understanding, the concepts involved in the embodiments of this disclosure will be explained below.
[0036] Terminal device: A device with wireless transceiver capabilities. Terminal devices can be deployed on land, including indoors or outdoors, handheld, wearable, or vehicle-mounted. These terminal devices can be mobile phones, tablet computers, computers with wireless transceiver capabilities, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, vehicle-mounted terminal devices, wireless terminals in self-driving vehicles, wireless terminal devices in remote medical care, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, wireless terminal devices in smart homes, wearable terminal devices, etc. The terminal equipment involved in the embodiments of this disclosure may also be referred to as a terminal, user equipment (UE), access terminal equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal equipment, mobile device, UE terminal equipment, wireless communication equipment, UE agent, or UE device, etc. The terminal equipment may also be fixed or mobile.
[0037] Below, in conjunction with Figure 1 The application scenarios of the embodiments of this disclosure will be described.
[0038] Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this disclosure. Please refer to [link / reference]. Figure 1 This includes the terminal device. The page displayed on the terminal device includes the image to be edited, controls for Effect 1, Effect 2, and Effect 3. The image to be edited includes grayscale effects (filters) already added by the user. When the user clicks on Sticker 2, if the filter's layer is higher than the sticker's layer, the terminal device can add a smiley face sticker (Sticker 2) to the image to be edited, and this smiley face sticker will also be covered with the grayscale effect. This improves the display effect of the effects.
[0039] In related technologies, the effects of multiple special effects can overlap. For example, such as... Figure 1 In the illustrated embodiment, the grayscale filter can cover the smiley face sticker. Currently, the terminal device can pre-set the rendering order of all effects (later rendered effects will cover earlier rendered effects), and render the effects sequentially according to the rendering order. For example, the terminal device can pre-set the filter's layer to be higher than the sticker's layer (the higher the layer, the later the rendering order), the sticker's layer to be higher than the text's layer, and the text's layer to be higher than the beauty filter's layer. When the user selects an effects package that includes filters, stickers, text, and beauty filters, the terminal device renders them in the order of beauty filter-text-sticker-filter. However, in the above method, the rendering order of all effects is fixed, and the user cannot adjust the rendering order of each effect, resulting in low flexibility in effect rendering.
[0040] To address the technical problems in related technologies, this disclosure provides a special effects processing method. In response to the addition of multiple first special effects, a terminal device can determine a first parameter for each first special effect based on the addition order, and determine a first rendering order for the multiple first special effects based on the multiple first parameters. The terminal device can obtain the association relationship between the multiple first special effects and the rendering priority of at least one first special effect, and determine a second special effect among the multiple first special effects based on the association relationship. The terminal device can render the second special effect based on the first rendering order and rendering priority. In the above method, since the first rendering order is related to the addition order of the multiple first special effects, and the terminal device can flexibly control the rendering order of the multiple first special effects based on the rendering priority, the flexibility of special effects rendering is improved. Furthermore, the terminal device can avoid conflicts between the multiple first special effects based on the mutual exclusion relationship between them, thereby improving the accuracy of special effects rendering.
[0041] The technical solutions of this disclosure and how they solve the aforementioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this disclosure will now be described with reference to the accompanying drawings.
[0042] Figure 2 This is a flowchart illustrating a special effects processing method provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 2 The method may include:
[0043] S201. In response to the addition of multiple first effects, determine the first rendering order of the multiple first effects based on the order in which they are added.
[0044] The execution entity of this disclosure can be a terminal device or a special effects processing device installed in the terminal device. The special effects processing device can be implemented in software, or it can be implemented using a combination of software and hardware; this disclosure does not limit this approach.
[0045] The first special effect can be used to edit the object to be edited. For example, special effects may include stickers, filters, text, transitions, digital humans, music and other special effects used for multimedia editing, and this disclosure does not limit this.
[0046] In some embodiments, the terminal device can add multiple first effects to the object to be edited based on user actions. For example, the editor may include multiple effects, and the user can select multiple first effects from among the multiple effects in the editor. The terminal device can then add the multiple first effects selected by the user to the object to be edited. For example, the editor may include an image to be edited, and the user can select filter 1, sticker 2, and text 3. The terminal device can then add filter 1, sticker 2, and text 3 to the image to be edited.
[0047] In some embodiments, multiple first effects can be effects from at least one effects package. For example, an effects package may include visual effects such as filters, transitions, animations, particle effects, and lighting effects, as well as possible sound effects. Users can easily and efficiently edit videos or images based on the effects package. For example, when a user selects an effects package, multiple first effects can be effects from that package. For example, effects package 1 includes effects A and B, effects package 2 includes effects C, and effects package 3 includes effects D and E. When a user selects effects package 1 and effects package 2, the terminal device can identify effects A, B, and C as first effects; when a user selects effects package 2 and effects package 3, the terminal device can identify effects C, D, and E as first effects.
[0048] The order in which multiple first effects are added can be selected by the user. For example, if the user first selects first effect 1, then first effect 2, and finally first effect 3, the addition order of multiple first effects can be first effect 1 - first effect 2 - first effect 3. For instance, if effect pack 1 includes effect A and effect B, and effect pack 2 includes effect C and effect D, and the user first selects effect pack 1 and then effect pack 2, the addition order can be effect A - effect B - effect C - effect D. The addition order between effect A and effect B can be preset, as can the addition order between effect C and effect D.
[0049] In some embodiments, the terminal device can determine the addition order of multiple first effects based on user operations. For example, the page displayed by the terminal device may include multiple first effects. When a user touches the screen to select a first effect, the terminal device can determine the addition order of the selected first effects based on the user's touch position, the touch order of multiple positions, and the first effect corresponding to each position. For example, if position 1 corresponds to first effect A, position 2 corresponds to first effect B, and position 3 corresponds to first effect C, when the user touches position 1-position 3-position 2, the terminal device can determine the addition order as first effect A-first effect C-first effect B.
[0050] It should be noted that the terminal device can also obtain the order of adding multiple first special effects based on any feasible implementation method, and the embodiments disclosed herein do not limit this.
[0051] The first rendering order can be the order in which multiple first effects are rendered. For example, if the first rendering order is: first effect 1 - first effect 2 - first effect 3, then the terminal device can render first effect 1 first, then first effect 2, and finally first effect 3.
[0052] Terminal devices can determine the initial rendering order of multiple first effects based on the following feasible implementation: determine the first parameter of each first effect based on the order in which the multiple first effects are added, and determine the initial rendering order based on the multiple first parameters. This improves the flexibility of effect rendering.
[0053] The first parameter can be related to the order in which they are added. For example, the first parameter of the first added effect can be 1, the first parameter of the second added effect can be 2, and the first parameter of the third added effect can be 3.
[0054] The first parameter can be used to indicate the order in which multiple first effects are rendered.
[0055] In some embodiments, the first parameter can be proportional to the rendering order of multiple first effects. For example, the larger the first parameter of a first effect, the earlier the first effect is rendered; the smaller the first parameter of a first effect, the later the first effect is rendered. For example, if the first parameter of first effect A is 1, the first parameter of first effect B is 2, and the first parameter of first effect C is 3, the terminal device can determine the first rendering order as: first effect C - first effect B - first effect A.
[0056] In some embodiments, the first parameter may be inversely proportional to the rendering order of multiple first effects. For example, the larger the first parameter of a first effect, the later the first effect is rendered; the smaller the first parameter of a first effect, the earlier the first effect is rendered. For example, if the first parameter of first effect A is 1, the first parameter of first effect B is 2, and the first parameter of first effect C is 3, the terminal device can determine the first rendering order as: first effect A - first effect B - first effect C.
[0057] Below, in conjunction with Figure 3 This paper explains the process by which a terminal device determines the first rendering order of multiple first special effects based on the order in which they are added.
[0058] Figure 3 This is a schematic diagram illustrating a process for determining a first rendering order according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 3 This includes: the first set of special effects. The first set of special effects includes filters, beauty effects, text, and stickers. The user selects the first set of special effects in the following order: filters - beauty effects - text - stickers, depending on the terminal device (…). Figure 3 (Not shown) can determine the first parameter of the filter as 1, the first parameter of the beauty effect as 2, the first parameter of the text as 3, and the first parameter of the sticker as 4 based on the order in which the user selects the first effect. When the first rendering order is inversely proportional to the first parameter, the terminal device can determine the first rendering order as: filter-beauty-text-sticker.
[0059] In some embodiments, after the terminal device determines the first rendering order, the above-described special effects processing method further includes: in response to a modification of the first parameter, re-determining the first rendering order based on the modified first parameter. This can improve the flexibility of special effects rendering.
[0060] In some embodiments, when a user clicks on the first effect, the terminal device can display the first parameter of the first effect, which the user can modify, and the terminal device can redetermine the first rendering order.
[0061] Below, in conjunction with Figure 4 The process of re-determining the first rendering order for terminal devices is explained.
[0062] Figure 4 This is a schematic diagram illustrating a re-determination of the first rendering order according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 4 This includes the terminal device. The page displayed on the terminal device includes an image to be edited, which contains stickers and text, with the text covering the stickers. When the user clicks on the text, the terminal device can display the first parameters of the sticker and the text, where the first parameter of the sticker is 1 and the first parameter of the text is 2. When the user changes the first parameter of the sticker to 3, since the first parameter of the sticker is greater than the first parameter of the text, the terminal device renders the text first, then the sticker; that is, the sticker can cover the text. In this way, the terminal device can flexibly adjust the order of special effects rendering, improving the flexibility of special effects rendering.
[0063] S202, obtain the relationship between multiple first effects and the rendering priority of at least one first effect.
[0064] The association relationship can be used to indicate whether there is a mutual exclusion relationship between multiple first effects. For example, if the association relationship between first effect 1 and first effect 2 is 1, the terminal device can determine that first effect 1 and first effect 2 have a mutual exclusion relationship. If the association relationship between first effect 1 and first effect 2 is 0, the terminal device can determine that first effect 1 and first effect 2 do not have a mutual exclusion relationship.
[0065] If multiple first-level effects are mutually exclusive, they cannot coexist. For example, if first-level effect 1 and first-level effect 2 are mutually exclusive, the terminal device can render either first-level effect 1 or first-level effect 2, but not both. For instance, if effect pack 1 includes lipstick effect A and effect pack 2 includes lipstick effect B, and the terminal device determines that lipstick effect A and lipstick effect B are mutually exclusive, if the user selects effect pack 1 and effect pack 2, the terminal device can render only lipstick effect A or only lipstick effect B (when effects are mutually exclusive, the terminal device can render effects based on a pre-set strategy).
[0066] In some embodiments, the association can also indicate whether multiple first effects have a coexistence relationship. If multiple first effects have a coexistence relationship, then multiple first effects can exist simultaneously. For example, if first effect 1 and first effect 2 have a coexistence relationship, the terminal device can render both first effect 1 and first effect 2 when rendering effects. For example, if effect package 1 includes lipstick effect A and effect package 2 includes lipstick effect B, when the terminal device determines that lipstick effect A and lipstick effect B have a coexistence relationship, if the user selects effect package 1 and effect package 2, the terminal device can render both lipstick effect A and lipstick effect B. In this way, the configuration flexibility of effect rendering is high, thus improving the flexibility of effect rendering.
[0067] Below, in conjunction with Figure 5 The relationship between the multiple primary special effects is explained in detail.
[0068] Figure 5 This is a schematic diagram illustrating an association relationship provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 5 This includes container a and container b. Container a includes effects pack 1 and effects pack 2, and container b includes effects pack 3. Effect pack 1 includes lipstick A effects and filter effects, effect pack 2 includes lipstick B effects and stickers, and effect pack 3 includes lipstick C effects and text. When the association is such that lipstick A and lipstick C are mutually exclusive, and lipstick A, lipstick B, and lipstick C coexist, the terminal device ( Figure 5 (Not shown) It can be determined that lipstick A and lipstick B cannot be rendered at the same time, but lipstick A and lipstick C can be rendered at the same time, and lipstick B and lipstick C can be rendered at the same time.
[0069] Wherein, at least one first effect can be one of multiple first effects selected by the user. For example, if the user selects first effect 1, first effect 2, first effect 3 and first effect 4, at least one first effect can be one or more of first effect 1, first effect 2, first effect 3 and first effect 4.
[0070] Rendering priority can indicate the rendering order of at least one first effect. For example, the higher the rendering priority of a first effect, the earlier it is rendered; the lower the rendering priority of a first effect, the later it is rendered. For instance, if the rendering priority of first effect 1 is higher than that of first effect 2, the terminal device will render first effect 1 first, then first effect 2.
[0071] In some embodiments, the terminal device may pre-set the rendering priority of at least one first effect. For example, the effects selectable by the user include stickers, filters, text, transitions, and digital humans. The terminal device may pre-set the rendering priority of filters to be higher than that of stickers. When the user selects stickers, filters, text, and digital humans as the first effects, the rendering order of filters is before that of stickers.
[0072] In some embodiments, the terminal device may not set a rendering priority for the first effect selected by the user. Therefore, the terminal device can determine that multiple first effects selected by the user have the same rendering priority. For example, the effects selectable by the user include stickers, filters, text, transitions, and digital humans. The terminal device may pre-set that the rendering priority of filters is higher than that of digital humans. When the first effects selected by the user include stickers, text, and transitions, since filters and digital humans are not included in the first effects, the terminal device can determine that the rendering priorities of stickers, text, and transitions are the same.
[0073] In some embodiments, the rendering priority of a first effect can be associated with its layer. For example, the lower the rendering priority of a first effect, the higher its layer, where a higher-layer effect can override a lower-layer effect.
[0074] Below, in conjunction with Figure 6 The first special effect is explained in detail.
[0075] Figure 6 This is a schematic diagram illustrating the hierarchy of a first special effect provided in an embodiment of this disclosure. Please refer to... Figure 6 This includes filters and stickers. Specifically, when the filter is layered above the sticker, the terminal device (…) Figure 6 (Not shown) can determine whether the rendered filter covers the sticker. When the filter's layer is below the sticker's layer, the terminal device can determine whether the rendered sticker covers the filter.
[0076] In some embodiments, the association between multiple first effects and the rendering priority of at least one first effect can be information pre-set by the terminal device. Therefore, the terminal device can obtain the association between multiple first effects and the rendering priority of at least one first effect based on any feasible implementation method. This disclosure does not limit this.
[0077] S203. Render multiple first effects based on the first rendering order, association relationship and rendering priority.
[0078] In some embodiments, the terminal device may render multiple first effects based on the following feasible implementation: determining a second effect among multiple first effects based on the association relationship, and rendering the second effect based on the first rendering order and rendering priority.
[0079] In some embodiments, when multiple first effects are related, there may be conflicts between the multiple first effects, or the multiple first effects cannot be rendered at the same time. Therefore, the terminal device can filter the multiple first effects to obtain second effects that do not conflict, or the terminal device can render the second effects at the same time.
[0080] In some embodiments, the terminal device can adjust the first rendering order based on rendering priority, and then render the selected second effects based on the adjusted rendering order. This ensures that there are no conflicts between the second effects rendered by the terminal device, improving the accuracy of effect rendering. Furthermore, the rendering order of the second effects can be adjusted based on user actions, thus increasing the flexibility of effect rendering.
[0081] This disclosure provides a special effects processing method. In response to the addition of multiple first special effects, a terminal device determines a first parameter for each first special effect based on the order in which the first special effects are added, and determines a first rendering order based on the multiple first parameters. The terminal device can obtain the association relationship between the multiple first special effects and the rendering priority of at least one first special effect, and determine a second special effect among the multiple first special effects based on the association relationship. The terminal device can render the second special effect based on the first rendering order and rendering priority. In the above method, since there is no conflict between the second special effects, the accuracy of special effects rendering can be improved. Furthermore, the terminal device can flexibly adjust the rendering order of special effects, thus improving the flexibility of special effects rendering.
[0082] exist Figure 2 Based on the embodiments shown, the following, in conjunction with Figure 7 The method for rendering multiple first special effects based on the first rendering order, association relationship and rendering priority in the above special effects processing method is described.
[0083] Figure 7 This is a schematic flowchart illustrating a method for rendering multiple first special effects according to an embodiment of this disclosure. Please refer to... Figure 7 The method process includes:
[0084] S701. Based on the relationship, determine the second special effect among multiple first special effects.
[0085] The terminal device can determine the second special effect from multiple first special effects based on the following two feasible implementation methods:
[0086] One feasible implementation method:
[0087] The terminal device can determine the first special effect that has a mutual exclusion relationship based on the association relationship, and determine any one of the first special effects that has a mutual exclusion relationship and the first special effect that does not have a mutual exclusion relationship as the second special effect.
[0088] In some embodiments, since mutually exclusive first effects cannot be rendered simultaneously, the terminal device can retain one of the mutually exclusive first effects and identify that first effect and other non-mutually exclusive first effects as second effects. This avoids rendering conflicting effects and improves the accuracy of effect rendering. For example, the first effects include sticker 1, sticker 2, sticker 3, and sticker 4. When sticker 1 and sticker 2 are mutually exclusive, the terminal device can delete sticker 1 and identify the second effects as sticker 2, sticker 3, and sticker 4. Alternatively, the terminal device can delete sticker 2 and identify the second effects as sticker 1, sticker 3, and sticker 4.
[0089] In some embodiments, when multiple first effects are mutually exclusive, the terminal device may retain any one of the first effects, or may retain one of the first effects based on any feasible implementation method. This disclosure does not limit this. For example, based on the priority of retaining the first effects (pre-set priority), the first effect with the highest priority may be retained.
[0090] In some embodiments, when the association indicates that there is no mutual exclusion relationship between multiple first effects, the terminal device may identify multiple first effects as second effects.
[0091] Another feasible implementation method:
[0092] When the association relationship is also used to indicate the coexistence relationship between multiple first effects, the terminal device can determine the first effects with the same effect type among the multiple first effects. If the first effects with the same effect type do not have a coexistence relationship, then any one of the first effects with the same effect type and the first effects with different effect types will be determined as the second effect.
[0093] In some embodiments, the same effect type can be the same type in stickers, the same type in digital humans, etc. For example, if sticker 1 is lipstick A and sticker 2 is lipstick B, the terminal device can determine that sticker 1 and sticker 2 have the same effect type. If sticker 1 is lipstick and sticker 2 is eyeshadow, the terminal device can determine that sticker 1 and sticker 2 have different effect types.
[0094] For example, the first special effect includes lipstick 1, lipstick 2, and a filter. When lipstick 1 and lipstick 2 coexist, the terminal device can identify lipstick 1, lipstick 2, and the filter as the second special effect. When lipstick 1 and lipstick 2 do not coexist, the terminal device can identify lipstick 1 and the filter as the second special effect, and the terminal device can also identify lipstick 2 and the filter as the second special effect. This embodiment of the present disclosure does not limit this.
[0095] In some embodiments, when there are no first effects of the same type among a plurality of first effects, the terminal device may determine the plurality of first effects as second effects.
[0096] In some embodiments, when first special effects of the same type coexist, the terminal device may determine that the second special effect includes the first special effect of the same type that coexists.
[0097] S702. Render the second effect based on the first rendering order and rendering priority.
[0098] The terminal device can render the second special effect using the following feasible implementation method: determine the rendering order of the second special effect based on the first rendering order; determine the second rendering order of the second special effect based on the rendering order and rendering priority; and render the second special effect based on the second rendering order. In this way, the terminal device can flexibly adjust the rendering order of the special effect, improving the flexibility of special effect rendering.
[0099] In some embodiments, since there is a correlation between multiple first effects, the number of second effects may be less than the number of first effects. Therefore, the terminal device can filter the first rendering order to obtain the rendering order. For example, if the first rendering order is: sticker-filter-beautify, and the second effects include sticker and beautify, the terminal device can determine that the rendering order is sticker-beautify.
[0100] In some embodiments, if the second effect is the same as the first effect, the terminal device can determine that the rendering order of the second effect is the same as the rendering order of the first effect.
[0101] The second rendering order can be the order in which the second special effect is rendered. The terminal device can determine the second rendering order of the second special effect based on the following feasible implementation methods: determine whether the second special effect has a rendering priority; if the second special effect has a rendering priority, process the order to be rendered based on the rendering priority of the second special effect to obtain the second rendering order; if the second special effect does not have a rendering priority, determine the order to be rendered as the second rendering order.
[0102] In some embodiments, after determining the rendering order, the terminal device can determine whether the second effect has a rendering priority preset by the terminal device. For example, the terminal device presets the rendering priorities of stickers and filters. When the second effect does not include stickers and filters, the terminal device can determine that the second effect does not have a rendering priority. When the second effect includes stickers or filters, the terminal device can determine that the second effect has a rendering priority.
[0103] In some embodiments, when a rendering priority exists for the second effect, the terminal device can adjust the rendering order based on the rendering priority of the second effect to obtain a second rendering order. For example, if the rendering order is: sticker-filter-beautification-text, and the rendering priority of the sticker is lower than that of the filter, the terminal device can adjust the rendering order to obtain a second rendering order, wherein the second rendering order is: filter-sticker-beautification-text.
[0104] In some embodiments, if the terminal device has not pre-set the rendering priority of the second effect selected by the user, the terminal device does not need to adjust the rendering order. Therefore, the terminal device can determine the rendering order as the second rendering order. For example, if the rendering order is: sticker-filter-beauty-text, and there is no rendering priority among sticker, filter, beauty, and text, or if the rendering priorities among sticker, filter, beauty, and text are the same, the terminal device can determine the second rendering order as: sticker-filter-beauty-text.
[0105] After determining the second rendering order, the terminal device can render the second effect based on the second rendering order. Specifically, the terminal device can render the second effect by: obtaining the effect parameters when the second effect was last added; if the similarity between the object currently adding the second effect and the object previously adding the second effect is greater than or equal to a preset threshold, the terminal device can render the second effect based on the effect parameters; if the similarity between the object currently adding the second effect and the object previously adding the second effect is less than the preset threshold, the terminal device can render the second effect based on the default effect parameters.
[0106] The special effect parameters can be those used when the second special effect was rendered previously. For example, the special effect parameters can be parameters such as brightness, size, and contrast when the second special effect was added previously; however, this embodiment does not limit these parameters.
[0107] For example, when the similarity between the image 1 to which the second effect is currently added and the image 2 to which the second effect was previously added is greater than or equal to a preset threshold, it indicates that the image style and image content of the image 1 and the image 2 are highly similar. Therefore, the terminal device can render the current second effect based on the effect parameters of the previous second effect rendering, which can improve the efficiency of effect rendering.
[0108] For example, if the similarity between the image 1 to which the second effect is currently added and the image 2 to which the second effect was previously added is less than a preset threshold, it means that the image style and image content of image 1 and image 2 are not similar. Therefore, the effect parameters of the second effect rendered last time do not match those of image 2. The terminal device can render the current second effect based on the default effect parameters of the second effect (pre-set effect parameters), which can improve the display effect of the second effect.
[0109] In some embodiments, since the effective range of special effects varies in different scenarios, the terminal device can abstract the data. For example, the terminal device can decouple the special effects from their effective range, so that the special effects can exist independently of the specific scenario in which they are applied (e.g., the entire canvas, the entire main video track, etc.), thereby improving the flexibility of the special effects.
[0110] In some embodiments, the terminal device can pre-set the animation logic corresponding to scene switching. In this way, when switching scenes, the terminal device can process the scene based on the animation logic corresponding to the scene switching, which can improve the effect of scene switching.
[0111] This disclosure provides a method for rendering multiple first special effects. A terminal device can determine a second special effect from among the multiple first special effects based on an association relationship. Based on the first rendering order, it determines the rendering order of the second special effects. The terminal device can determine whether the second special effect has a rendering priority. If the second special effect has a rendering priority, the terminal device can process the rendering order based on the rendering priority to obtain a second rendering order. If the second special effect does not have a rendering priority, the terminal device can determine the rendering order as the second rendering order and render the second special effect based on the second rendering order. In this way, the terminal device can render second special effects without conflicts, improving the accuracy of special effect rendering. Furthermore, the terminal device can flexibly adjust the second rendering order of the second special effects, thus improving the flexibility of special effect rendering.
[0112] Based on any of the above embodiments, for any first special effect, the above special effect processing method further includes a method for reusing the first special effect. Below, in conjunction with... Figure 7 The method for reusing the first special effect on terminal devices is explained in detail.
[0113] Figure 8 This diagram illustrates a method for reusing a first special effect according to an embodiment of this disclosure. Please refer to [link / reference]. Figure 8 The method process includes:
[0114] S801, Obtain multiple consecutive segments.
[0115] In some embodiments, the fragment may be a video, an image, etc., and this disclosure does not limit this.
[0116] In some embodiments, the terminal device can determine multiple consecutive segments based on the start time and end time of the segments. For example, if the end time of segment 1 is the start time of segment 2, the terminal device can determine that segment 1 and segment 2 are consecutive segments.
[0117] S802: When the first effect is applied to multiple consecutive segments, if the multiple segments are switched, the first effect is reused in the segment after the switch.
[0118] In related technologies, when switching from segment 1 to segment 2, the terminal device can unload the special effects package related to segment 1 and reload the special effects package related to segment 2. However, the process of unloading and reloading by the terminal device can cause stuttering.
[0119] In some embodiments, when both the preceding and following segments use the first effect, if the device switches from the preceding segment to the following segment, it does not need to unload the first effect corresponding to the preceding segment, nor does it need to load the first effect in the following segment. The device can directly reuse the first effect of the preceding segment when rendering the following segment, thus avoiding stuttering. For example, if segments 1 and 2 are consecutive, and a sticker is applied to both segments, when switching from segment 1 to segment 2, the device can dynamically transfer the sticker's prop pack to segment 2. This allows the sticker to be applied continuously and smoothly in segments 1 and 2, improving the rendering effect.
[0120] It should be noted that the terminal device can reuse the first special effect in consecutive segments based on any feasible implementation method, and the embodiments disclosed herein do not limit this.
[0121] This disclosure provides a method for reusing a first special effect. Multiple consecutive segments are acquired, and when the first special effect is applied to these segments, if the segments switch, the first special effect is reused in the switched segment. In this way, the first special effect can be applied continuously and smoothly across multiple consecutive segments, avoiding stuttering during segment switching, improving the rendering effect, and eliminating the need for the terminal device to uninstall and reload the same special effect. Therefore, the efficiency of special effect rendering can be improved, thereby enhancing the user experience.
[0122] Figure 9 This is a schematic diagram of a special effects processing device provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 9 The special effects processing device 900 includes a determining module 901, an acquiring module 902, and a processing module 903, wherein:
[0123] The determining module 901 is used to determine the first rendering order of the multiple first effects based on the order in which the multiple first effects are added, in response to the addition of multiple first effects.
[0124] The acquisition module 902 is used to acquire the association relationship of the plurality of first special effects and the rendering priority of at least one first special effect, wherein the association relationship is used to indicate whether there is a mutual exclusion relationship between the plurality of first special effects;
[0125] The processing module 903 is used to render the plurality of first special effects based on the first rendering order, the association relationship and the rendering priority.
[0126] Since the first rendering order is related to the order in which multiple first effects are added, and the effects processing device can flexibly control the rendering order of multiple first effects based on rendering priority, the flexibility of effects rendering is improved. Furthermore, the terminal device can avoid conflicts between multiple first effects based on the mutual exclusion relationship between them, thereby improving the accuracy of effects rendering.
[0127] According to one or more embodiments of this disclosure, the determining module 901 is specifically used for:
[0128] Based on the order in which the multiple first special effects are added, determine the first parameter of each first special effect;
[0129] The first rendering order is determined based on multiple first parameters.
[0130] This can improve the flexibility of special effects rendering.
[0131] According to one or more embodiments of this disclosure, the determining module 901 is further configured to:
[0132] In response to the modification of the first parameter, the first rendering order is re-determined based on the modified first parameter.
[0133] In this way, the special effects processing device can flexibly adjust the order of special effects rendering, thereby improving the flexibility of special effects rendering.
[0134] According to one or more embodiments of this disclosure, the processing module 903 is specifically used for:
[0135] Based on the aforementioned relationship, a second special effect is determined from among the plurality of first special effects;
[0136] The second effect is rendered based on the first rendering order and the rendering priority.
[0137] In this way, the special effects processing device can render secondary special effects that do not conflict, improving the accuracy of special effects rendering.
[0138] According to one or more embodiments of this disclosure, the processing module 903 is specifically used for:
[0139] Based on the aforementioned association, a first special effect with a mutually exclusive relationship is determined;
[0140] The first effect is determined as either the first effect that has a mutual exclusion relationship or the first effect that does not have a mutual exclusion relationship.
[0141] This avoids rendering conflicting effects and improves the accuracy of effect rendering.
[0142] According to one or more embodiments of this disclosure, the processing module 903 is specifically used for:
[0143] Among the plurality of first special effects, the first special effects with the same special effect type are determined;
[0144] If the first special effects of the same type do not coexist, then any one of the first special effects of the same type and the first special effects of different types will be determined as the second special effect.
[0145] In this way, the special effects processing device can flexibly adjust the rendering order of special effects, thereby improving the flexibility of special effects rendering.
[0146] According to one or more embodiments of this disclosure, the processing module 903 is specifically used for:
[0147] Based on the first rendering order, determine the rendering order of the second special effects;
[0148] Based on the order to be rendered and the rendering priority, the second rendering order of the second effect is determined;
[0149] The second effect is rendered based on the second rendering order.
[0150] In this way, the special effects processing device can flexibly adjust the rendering order of special effects, thereby improving the flexibility of special effects rendering.
[0151] According to one or more embodiments of this disclosure, the processing module 903 is specifically used for:
[0152] Determine if the second effect has a rendering priority;
[0153] When the second effect has a rendering priority, the rendering order is processed based on the rendering priority of the second effect to obtain the second rendering order;
[0154] When there is no rendering priority for the second effect, the order to be rendered is determined as the second rendering order.
[0155] In this way, the special effects processing device can render second special effects without conflicts, improving the accuracy of special effects rendering. Furthermore, the terminal device can flexibly adjust the second rendering order of the second special effects, thus improving the flexibility of special effects rendering.
[0156] According to one or more embodiments of this disclosure, the processing module 903 is further configured to:
[0157] When the first effect is applied to multiple consecutive segments, if the multiple segments are switched, the first effect is reused in the switched segment.
[0158] In this way, the first special effect can be applied continuously and smoothly in multiple consecutive segments, avoiding stuttering caused by segment switching, improving the effect rendering effect, and the special effect processing device does not need to unload and reload the same special effect, thus improving the efficiency of special effect rendering and thus improving the user experience.
[0159] The special effects processing device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.
[0160] Figure 10 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Please refer to [link / reference]. Figure 10 The diagram illustrates a structural schematic suitable for implementing the terminal device 1000 of the embodiments of the present disclosure. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers, portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 10 The terminal device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0161] like Figure 10 As shown, the terminal device 1000 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. The RAM 1003 also stores various programs and data required for the operation of the terminal device 1000. The processing unit 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0162] Typically, the following devices can be connected to the I / O interface 1005: input devices 1006 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1008 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows terminal device 1000 to exchange data via wireless or wired communication with other devices. Although Figure 10 A terminal device 1000 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0163] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from storage device 1008, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of embodiments of this disclosure.
[0164] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), or any suitable combination thereof.
[0165] The aforementioned computer-readable medium may be included in the aforementioned terminal device; or it may exist independently and not assembled into the terminal device.
[0166] The aforementioned computer-readable medium carries one or more programs, which, when executed by the terminal device, cause the terminal device to perform the method shown in the above embodiments.
[0167] This disclosure provides a computer-readable storage medium storing computer-executable instructions. When a processor executes the computer-executable instructions, it implements various methods that may be involved in the above embodiments.
[0168] This disclosure provides a computer program product, including a computer program that, when executed by a processor, implements various methods that may be involved in the above embodiments.
[0169] This disclosure provides a terminal device, a computer-readable storage medium, and a computer program product. Since the first rendering order is related to the order in which multiple first special effects are added, and the terminal device can flexibly control the rendering order of multiple first special effects based on rendering priority, thereby improving the flexibility of special effect rendering, and the terminal device can avoid conflicts between multiple first special effects based on the mutual exclusion relationship between multiple first special effects, thereby improving the accuracy of special effect rendering.
[0170] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0171] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than that indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0172] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".
[0173] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), etc.
[0174] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0175] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0176] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0177] It is understood that the data involved in this technical solution (including but not limited to the data itself, its acquisition, or its use) shall comply with the requirements of relevant laws, regulations, and provisions. Data may include information, parameters, and messages, such as flow control instructions.
[0178] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0179] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in sequential order. Multitasking and parallel processing may be advantageous in certain environments. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments. Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely exemplary forms of implementing the claims.
Claims
1. A special effects processing method, characterized in that, include: In response to the addition of multiple first effects, the first rendering order of the multiple first effects is determined based on the order in which they are added; Obtain the association relationship of the plurality of first special effects and the rendering priority of at least one first special effect, wherein the association relationship is used to indicate whether there is a mutual exclusion relationship between the plurality of first special effects; Based on the first rendering order, the association relationship, and the rendering priority, the plurality of first special effects are rendered.
2. The method according to claim 1, characterized in that, Determining the first rendering order of the plurality of first special effects based on the order in which they were added includes: Based on the order in which the multiple first special effects are added, determine the first parameter of each first special effect; The first rendering order is determined based on multiple first parameters.
3. The method according to claim 2, characterized in that, The method further includes: In response to the modification of the first parameter, the first rendering order is re-determined based on the modified first parameter.
4. The method according to any one of claims 1-3, characterized in that, The rendering of the plurality of first special effects based on the first rendering order, the association relationship, and the rendering priority includes: Based on the aforementioned relationship, a second special effect is determined from among the plurality of first special effects; The second effect is rendered based on the first rendering order and the rendering priority.
5. The method according to claim 4, characterized in that, The determination of the second special effect among the plurality of first special effects based on the aforementioned association includes: Based on the aforementioned association, a first special effect with a mutually exclusive relationship is determined; The first effect is determined as either the first effect that has a mutual exclusion relationship or the first effect that does not have a mutual exclusion relationship.
6. The method according to claim 4, characterized in that, The association relationship is also used to indicate whether there is a coexistence relationship among the plurality of first special effects; the step of determining the second special effect among the plurality of first special effects based on the association relationship includes: Among the plurality of first special effects, the first special effects with the same special effect type are determined; If the first special effects of the same type do not coexist, then any one of the first special effects of the same type and the first special effects of different types will be determined as the second special effect.
7. The method according to claim 4, characterized in that, The rendering of the second special effect based on the first rendering order and the rendering priority includes: Based on the first rendering order, determine the rendering order of the second special effects; Based on the order to be rendered and the rendering priority, the second rendering order of the second effect is determined; The second effect is rendered based on the second rendering order.
8. The method according to claim 7, characterized in that, The determination of the second rendering order of the second special effect based on the rendering order and rendering priority of the second special effect includes: Determine if the second effect has a rendering priority; When the second effect has a rendering priority, the rendering order is processed based on the rendering priority of the second effect to obtain the second rendering order; When there is no rendering priority for the second effect, the order to be rendered is determined as the second rendering order.
9. The method according to any one of claims 1-3, characterized in that, For any one of the first special effects, the method further includes: When the first effect is applied to multiple consecutive segments, if the multiple segments are switched, the first effect is reused in the switched segment.
10. A special effects processing device, characterized in that, It includes a determination module, an acquisition module, and a processing module, wherein: The determining module is used to determine the first rendering order of the multiple first effects based on the order in which the multiple first effects are added, in response to the addition of multiple first effects. The acquisition module is used to acquire the association relationship of the plurality of first special effects and the rendering priority of at least one first special effect, wherein the association relationship is used to indicate whether there is a mutual exclusion relationship between the plurality of first special effects; The processing module is used to render the plurality of first special effects based on the first rendering order, the association relationship, and the rendering priority.
11. A terminal device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the special effects processing method as described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by the processor, implement the special effects processing method as described in any one of claims 1-9.
13. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the special effects processing method as described in any one of claims 1-9.
