Special effect processing method, electronic device, storage medium, and program product
AssigneeBeijing Zitiao Network Technology Co., Ltd.
InventorsXunpeng Yin, Ziyue Wang
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure provide a special effect processing method, an electronic device, a storage medium, and a program product. The method includes: displaying a special effect preview interface in response to an effect preview triggering operation for a target special effect, where the special effect preview interface at least includes a time setting item, and the time setting item is used to set a preview moment of the target special effect; and in response to a time setting triggering operation based on the time setting item, determining a special effect preview image according to a set preview moment and the target special effect, and displaying the special effect preview image.
Claims14
A special effect processing method, comprising:
- displaying a special effect preview interface, in response to an effect preview triggering operation for a current special effect, wherein the special effect preview interface at least comprises a time setting item, and the time setting item is used to set a preview moment of the current special effect;
- and
- in response to a time setting triggering operation based on the time setting item, determining a special effect preview image according to a set preview moment and the current special effect, and displaying the special effect preview image;
- wherein the determining a special effect preview image according to a set preview moment and the current special effect, and displaying the special effect preview image, comprises:
- executing special effect processing logic of the current special effect from a special effect start moment, and displaying the special effect preview image when the set preview moment is reached;
- wherein the current special effect comprises at least one special effect element, and the executing special effect processing logic of the current special effect from a special effect start moment, comprises:
- determining the special effect start moment, a display start moment of each special effect element, a display end moment of each special effect element and the preview moment as segmentation points, and using a time length between every two adjacent segmentation points as a time increment, and
- invoking, starting from the special effect start moment, a predefined display control method at each interval of the time increment to control a special effect element corresponding to the time increment to present a current display effect.
An electronic device, comprising:
- one or more processors;
- and
- a memory, configured to store one or more programs,
- wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a special effect processing method, and the special effect processing method comprises:
- displaying a special effect preview interface, in response to an effect preview triggering operation for a current special effect, wherein the special effect preview interface at least comprises a time setting item, and the time setting item is used to set a preview moment of the current special effect;
- and
- in response to a time setting triggering operation based on the time setting item, determining a special effect preview image according to a set preview moment and the current special effect, and displaying the special effect preview image;
- wherein the determining a special effect preview image according to a set preview moment and the current special effect, and displaying the special effect preview image, comprises:
- executing special effect processing logic of the current special effect from a special effect start moment, and displaying the special effect preview image when the set preview moment is reached;
- wherein the current special effect comprises at least one special effect element, and the executing special effect processing logic of the current special effect from a special effect start moment, comprises:
- determining the special effect start moment, a display start moment of each special effect element, a display end moment of each special effect element and the preview moment as segmentation points, and using a time length between every two adjacent segmentation points as a time increment, and
- invoking, starting from the special effect start moment, a predefined display control method at each interval of the time increment to control a special effect element corresponding to the time increment to present a current display effect.
A non-transitory storage medium, comprising computer-executable instructions, wherein when the computer-executable instructions are executed by a computer processor, the computer-executable instructions are used to perform a special effect processing method, and the special effect processing method comprises:
- displaying a special effect preview interface, in response to an effect preview triggering operation for a current special effect, wherein the special effect preview interface at least comprises a time setting item, and the time setting item is used to set a preview moment of the current special effect;
- and
- in response to a time setting triggering operation based on the time setting item, determining a special effect preview image according to a set preview moment and the current special effect, and displaying the special effect preview image;
- wherein the determining a special effect preview image according to a set preview moment and the current special effect, and displaying the special effect preview image, comprises:
- executing special effect processing logic of the current special effect from a special effect start moment, and displaying the special effect preview image when the set preview moment is reached;
- wherein the current special effect comprises at least one special effect element, and the executing special effect processing logic of the current special effect from a special effect start moment, comprises:
- determining the special effect start moment, a display start moment of each special effect element, a display end moment of each special effect element and the preview moment as segmentation points, and using a time length between every two adjacent segmentation points as a time increment, and
- invoking, starting from the special effect start moment, a predefined display control method at each interval of the time increment to control a special effect element corresponding to the time increment to present a current display effect.
Dependencies are inferred from the claim text.