Media data editing method and apparatus, device, medium and program product

By allowing users to edit the pixel data of the target layer within a separate editing environment of the image editing tool, the problem of users being unable to edit the template editing results again is solved, thus improving the user experience.

WO2026233253A1PCT designated stage Publication Date: 2026-11-12BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2026/094439
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-05-07
Filing Date
2026-04-30
Publication Date
2026-11-12

AI Technical Summary

Technical Problem

In existing technologies, users cannot further edit the pixel data in each layer of the image editing template's editing result, which affects the user experience.

Method used

Based on the first media data displayed on the first page, the target layer is determined in response to the trigger operation of the target object, and the pixel data in the target layer is edited in an independent editing environment, thereby realizing the re-editing of the pixel data of the template editing result.

Benefits of technology

It enables further editing of pixel data in the template editing results, improving the user experience and meeting users' needs for further editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2026094439_12112026_PF_FP_ABST
    Figure CN2026094439_12112026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are a media data editing method and apparatus, a device, a medium and a program product. The method comprises: displaying first media data in a first page, wherein the first media data represents a result obtained by applying a preset editing template to at least one piece of second media data; in response to a trigger operation for a target object in the first media data, determining a target layer corresponding to the target object in the first media data; and in response to an editing trigger operation for pixel data in the target layer, editing the pixel data in the target layer on the basis of an independent editing environment, and displaying the edited first media data in the first page.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment, medium and program product for editing media data TECHNICAL FIELD

[0001] Embodiments of the present disclosure relate to computer technology, and in particular, to a method, device, equipment, medium and program product for editing media data. BACKGROUND

[0002] With the development of computer technology, the types and functions of image editing tools are increasingly rich. Users can edit photos or videos using image editing tools. For example, users can use an editing template provided by an image editing tool to splice pictures. Alternatively, users can also use an image editing tool to convert static pictures into dynamic pictures, etc. Then, after a user edits a photo or a video using an editing template to obtain a template editing result, the user cannot edit pixel data in each layer in the template editing result again, which affects the user experience. SUMMARY

[0003] Embodiments of the present disclosure provide a method, device, equipment, medium and program product for editing media data.

[0004] In a first aspect, embodiments of the present disclosure provide a method for editing media data, comprising:

[0005] displaying first media data in a first page, wherein the first media data represents a result of applying a preset editing template to at least one second media data;

[0006] in response to a trigger operation of a target object in the first media data, determining a target layer in the first media data corresponding to the target object;

[0007] in response to an editing trigger operation of pixel data in the target layer, editing the pixel data in the target layer based on an independent editing environment, and displaying the edited first media data in the first page.

[0008] In a second aspect, embodiments of the present disclosure also provide an editing device for media data, comprising:

[0009] a display module configured to display first media data in a first page, wherein the first media data represents a result of applying a preset editing template to at least one second media data;

[0010] a layer selection module configured to, in response to a trigger operation of a target object in the first media data, determine a target layer in the first media data corresponding to the target object;

[0011] The editing module is configured to, in response to an editing trigger operation on pixel data in the target layer, edit the pixel data in the target layer based on an independent editing environment, and display edited first media data in the first page.

[0012] In a third aspect, the present disclosure provides an electronic device, which comprises:

[0013] one or more processors;

[0014] a storage device configured to store one or more programs,

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for editing media data according to any embodiment of the present disclosure.

[0016] In a fourth aspect, the present disclosure provides a storage medium containing computer executable instructions for performing the method for editing media data according to any embodiment of the present disclosure when executed by a computer processor.

[0017] In a fifth aspect, the present disclosure provides a computer program product comprising a computer program for implementing the method for editing media data according to any embodiment of the present disclosure when executed by a processor.

[0018] The present disclosure provides a method for editing media data. The method comprises displaying first media data in a first page, the first media data representing a result of applying a preset editing template to at least one second media data. In response to a trigger operation on a target object in the first media data, a target layer corresponding to the target object in the first media data is determined. In response to an editing trigger operation on pixel data in the target layer, the pixel data in the target layer is edited based on an independent editing environment, and the edited first media data is displayed in the first page. BRIEF DESCRIPTION OF DRAWINGS

[0019] The above and other features, advantages, and aspects of the present disclosure will become more apparent by describing in detail the embodiments thereof with reference to the attached drawings in which:

[0020] FIG. 1 is a flow diagram of a method for editing media data according to an embodiment of the present disclosure;

[0021] FIG. 2 is a schematic diagram of a first page according to an embodiment of the present disclosure;

[0022] FIG. 3 is a schematic diagram of another first page according to an embodiment of the present disclosure;

[0023] FIG. 4 is a schematic diagram of yet another first page according to an embodiment of the present disclosure;

[0024] FIG. 5 is a schematic diagram of a flow of a method for editing media data according to an embodiment of the present disclosure;

[0025] FIG. 6 is a schematic diagram of a flow of editing pixel data of a target layer according to an embodiment of the present disclosure;

[0026] FIG. 7 is a schematic diagram of a structure of an editing device for media data according to an embodiment of the present disclosure;

[0027] FIG. 8 is a schematic diagram of a structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] Embodiments of the present disclosure will be described in more detail with reference to the drawings. While certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be embodied in various forms and should not be interpreted in a limited sense as set forth in the embodiments set forth herein. Rather, the embodiments are provided to enable a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for exemplary purposes only and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] The term "comprising" and variations thereof as used herein are used inclusively, i.e., "comprising, but not limited to." The term "based on" is "based, at least in part, on." The term "one embodiment" means "at least one embodiment." The term "another embodiment" means "at least one additional embodiment." The term "some embodiments" means "at least some embodiments." Related definitions of other terms will be given in the description below.

[0031] It should be noted that the terms "first", "second", and the like in the present disclosure are merely used to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the terms "one", "multiple" in the present disclosure are illustrative and not restrictive, and those skilled in the art should understand that, unless otherwise explicitly stated in the context, it should be understood as "one or more".

[0033] The names of the messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of the messages or information.

[0034] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type, use range, use scenario, etc. of the personal information involved in the present disclosure should be informed to the user and the authorization of the user should be obtained in a proper manner according to relevant laws and regulations.

[0035] For example, in response to receiving an active request of a user, a prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using personal information of the user. Thus, the user can voluntarily choose whether to provide personal information to the software or hardware such as electronic device, application program, server or storage medium, etc. that performs the operation of the technical solutions of the present disclosure according to the prompt information.

[0036] As an optional but non-limiting implementation manner, in response to receiving an active request of a user, the manner of sending a prompt information to the user may, for example, be a pop-up window manner, in which the prompt information can be presented in a text manner. In addition, the pop-up window can also carry a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0037] It can be understood that the above notification and obtaining of user authorization process is only illustrative, and does not limit the implementation manners of the present disclosure, and other manners meeting relevant laws and regulations can also be applied to the implementation manners of the present disclosure.

[0038] It can be understood that the data involved in the present technical solutions (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of relevant laws and regulations and relevant provisions.

[0039] The embodiment of the present disclosure provides an editing method, device, equipment, medium and program product of media data, and provides an optimized editing scheme, which can further edit the pixel data in the layer in the template editing result, and improves the user experience.

[0040] FIG. 1 is a flow diagram of an editing method of media data provided by an embodiment of the present disclosure. The method can be executed by an editing device of media data. The device can be implemented in the form of software and / or hardware, and can be implemented by an electronic device, which can be a mobile terminal, a PC terminal or a server, etc.

[0041] As shown in FIG. 1, the method comprises:

[0042] S110, display first media data in the first page, wherein the first media data represents a result of applying a preset editing template to at least one second media data.

[0043] The first page represents an interactive page of an image editing tool. The image editing tool is used for editing a photo or a video. Optionally, the first page represents an interactive page corresponding to a first editing program instance. The first editing program instance can include a program instance corresponding to a template editing function. The template editing function includes one or more of a multi-picture splicing function, a multi-picture layer function, and a picture-to-video function. Applying the editing template can realize one-key photo editing creation, and optimizes user experience.

[0044] Illustratively, the first media data can be a result of applying a preset editing template to at least one second media data. For example, after selecting the preset editing template, a local resource page is displayed. For example, the local resource page can include an album page. The candidate media data is displayed in the local resource page. In response to a selection operation of the candidate media data, at least one second media data is determined. The number of second media data is associated with the number of media data filling slots in the preset editing template. For example, the preset editing template includes n slots for adding at least one of a static picture, a live picture, and a video, and a prompt information is displayed in the local resource page to prompt the user to select n second media data, wherein n is a positive integer.

[0045] In some embodiments, in response to a confirmation operation of the n second media data in the local resource page, the first page is displayed, and the first media data is displayed in the first page. Optionally, the first media data is displayed in a first region of the first page, wherein the first media data includes at least one layer, and a subject object in the layer is associated with a subject object in the second media data. The at least one second media data is displayed in a second region of the first page, wherein the second media data is a picture or a video including the subject object. The embodiments of the present disclosure display the first media data and the second media data in different page regions in the first page. Since the layer in the first media data includes the subject object, and the second media data also includes the corresponding subject object, the target object can be selected in different ways.

[0046] The first area and the second area are different page areas within the first page. Optionally, the first area is a canvas area on the first page, used to display a preview of the media data. The second area can be the page area between the bottom navigation bar and the first area. The bottom navigation bar includes preset tabs. The second area is the display area corresponding to the preset tabs. For example, if the preset tab is an image tab, the second area displays thumbnails of at least one second media data item. If the preset tab is a sticker tab, the second area displays stickers from a preset editing template. If the preset tab is a text tab, the second area displays text from a preset editing template. It should be noted that if the preset editing template contains editable stickers, a sticker tab is displayed in the bottom navigation bar. If the preset editing template contains editable text, a text tab is displayed in the bottom navigation bar.

[0047] Optionally, the set of preset labels includes at least one of images, filters, adjustments, text, and stickers. The main image in the first media data layer can be the object that occupies a dominant position and attracts visual attention in the current layer. The main object in the second media data can be the object that occupies a dominant position and attracts visual attention in the second media data.

[0048] Optionally, at least one second media data includes a live image, and the display of the first media data on the first page includes:

[0049] In response to the application event of the preset editing template, the preset editing template is applied to the at least one second media data to obtain the first media data, and the live image in the first media data is played on the first page.

[0050] For example, after selecting a preset editing template from the candidate editing templates, the album page is displayed. The number of images and / or videos to be selected is determined based on the number of media data slots filled in the preset editing template. A prompt message and confirmation control are displayed on the album page; the prompt message indicates the number of images and / or videos to be selected. In response to the selection operation on the album page, the images to be selected are determined. These images include live photos. In response to the confirmation control, the application event of the preset editing template is triggered. In response to the application event of the preset editing template, first media data is generated based on the selected images and the preset editing template, and the first media data is displayed on the first page. For example, a live photo from the first media data is played on the first page.

[0051] Optionally, after displaying the first media data on the first page, it also includes:

[0052] In response to the triggering operation of the play tag of the live image in the first media data, the live image in the first media data is played on the first page. Since the live image in the first media data is played when the first media data is generated and displayed on the first page, but the playback event cannot be triggered again after playback ends, the user's need to replay the live image cannot be met. This embodiment of the disclosure adds a play tag to the live image in the first media data, so that triggering the play tag can trigger the replay of the live image, thus meeting the user's need to replay the live image.

[0053] Optionally, after displaying the first media data on the first page, it also includes:

[0054] In response to a trigger operation within the first area of ​​the first media data, the live image from the first media data is played on the first page. The trigger operation within the first area includes a long press, a double-click, or other types of operation within the first area. This embodiment of the disclosure triggers the replay of the live image through a trigger operation within the first area, thus satisfying the user's need to replay the live image.

[0055] S120. In response to the triggering operation of the target object in the first media data, determine the target layer in the first media data corresponding to the target object.

[0056] The target object can be the main object in the target layer of the first media data. The layer in the first media data that contains the target object is the target layer. Triggering operations for the target object in the first media data include selecting the target object in the first media data. The triggering operation for the target object in the first media data can be triggered by selecting the target layer in the first media data. Alternatively, the triggering operation for the target object in the first media data can also be triggered by selecting the second media data.

[0057] For example, in response to a triggering operation of the target object in the first media data, the layer corresponding to the target object is determined as the target layer, and the target layer is converted to a selected state. Here, the target object represents the main object in the selected state. The second media data corresponding to the target layer and the first set of editable items corresponding to the target layer are displayed in the second area. This embodiment of the disclosure, by converting the target layer in the first media data to a selected state, can intuitively display the target object in the target layer to be edited. Displaying the second media data of the target layer and the editable items for the second media data in the second area can intuitively display the second media data corresponding to the target layer, and facilitates selecting the target editable item in the first set of editable items to edit the target object in the target layer.

[0058] The first set of editable items represents the set of editable items corresponding to the editing functions of the target layer.

[0059] For example, in response to a click operation on the main object of a layer in the first media data, the clicked layer is identified as the target layer, the main object in the target layer is identified as the target object, and the target layer in the first media data in the first area is switched to a selected state. A thumbnail of the second media data corresponding to the target layer is displayed in the left area of ​​the second area, and the first edit item set corresponding to the target layer is displayed in the right area of ​​the second area.

[0060] Optionally, in response to a triggering operation on the second media data in the second area, the layer in the first media data corresponding to the triggered second media data is determined as the target layer, and the target layer is selected. The second media data corresponding to the target layer and the first edit item set corresponding to the target layer are displayed in the second area.

[0061] For example, in response to a click operation on the second media data in the second area, the layer in the first media data corresponding to the clicked second media data is identified as the target layer, the main object in the target layer is identified as the target object, and the target layer in the first media data is switched to a selected state. A thumbnail of the second media data corresponding to the target layer is displayed in the left area of ​​the second area, and the first edit item set corresponding to the target layer is displayed in the right area of ​​the second area.

[0062] It should be noted that the triggering operation of the target object by clicking disclosed in the above embodiments is merely an example and not intended to limit the triggering method. The embodiments of this disclosure can also input the triggering operation of the target object by selecting, dragging, voice, gestures, or eye contact.

[0063] Optionally, the second area displays the second media data corresponding to the target layer and the first edit item set corresponding to the target layer, including:

[0064] In response to the target layer including a generated image, the second media data corresponding to the target layer and the first edit item set are displayed in the second area, wherein the first edit item set includes at least one of regeneration, image replacement, erasure, and flipping. The generated image includes an image that serves as a base image for a stylized template. The stylized template represents an edit template for the second media data that is replaced by an image generated by the generation model based on the uploaded second media data. Regeneration includes reapplying the stylized template based on the base image to obtain a new generated image. Image replacement includes triggering the display of an album page to reselect the second media data to replace the second media data corresponding to the current target layer. Erasure is used to trigger the erasure function. Flipping is used to trigger horizontal or vertical flipping, etc.

[0065] In response to the target layer including a live view, the second media data corresponding to the target layer and the first edit item set are displayed in the second area, wherein the first edit item set includes at least one of original sound control, image transition, and flip. The original sound control is used to turn the sound of the live view on or off.

[0066] In response to the target layer including a static image, the second media data corresponding to the target layer and the first edit item set are displayed in the second area, wherein the first edit item set includes at least one of image replacement, erasure, and flipping.

[0067] Optionally, after displaying the second media data corresponding to the target layer in the second area, the method further includes: in response to a triggering operation of the second media data corresponding to the target layer, displaying the at least one piece of second media data in the second area. In this embodiment, by clicking on the second media data corresponding to the target layer, all second media data are displayed in the second area, facilitating the user to select the target layer to be edited again.

[0068] Figure 2 is a schematic diagram of a first page provided in an embodiment of this disclosure. As shown in Figure 2, the first area 220 of the first page 210 displays first media data, and the second area 230 displays images 1, 2, 3, and 4. The main objects in the layers of the first media data correspond to the main objects in images 1, 2, 3, and 4. The image tag item 240 in the bottom navigation bar of the first page 210 is selected. In response to the click operation of image 2, the layer corresponding to image 2 in the first media data is converted to a selected state, and image 2 and a first editing item set 250 are displayed in the second area 230. The first editing item set 250 includes at least one of image replacement, erasure, flipping, original sound control, and regeneration. In some embodiments, a bubble control is displayed at the position corresponding to image 2 in the second area 230. A preset prompt text is displayed in the bubble control. The preset prompt text is used to prompt that clicking image 2 will display all images. In response to the click operation of image 2 in the second area 230, images 1, 2, 3, and 4 are displayed in the second area 230.

[0069] Figure 3 is a schematic diagram of another first page provided by an embodiment of this disclosure. As shown in Figure 3, the first area 320 of the first page 310 displays first media data, the left side of the second area 330 displays second media data, and the right side of the second area 330 displays a first editable itemset 340. In some embodiments, the left side of the second area 330 displays a generated image of the second media data after applying a preset editing template, and the right side of the second area 330 displays the first editable itemset 340.

[0070] S130. In response to the editing trigger operation of the pixel data in the target layer, the pixel data in the target layer is edited based on an independent editing environment, and the edited first media data is displayed on the first page.

[0071] The edit trigger operation is used to initiate image editing operations on the pixel data in the target layer. An independent editing environment refers to another editing environment that is independent of the editing environment for the first pixel data on the first page. The first page represents the interactive page corresponding to the first editing program instance. A second editing program instance, independent of the first editing program instance, can perform editing operations on the pixel data of the target layer, obtain the edited result data, and return the edited result data to the first editing program instance. The first editing program instance updates the target layer based on the edited result data, obtaining the edited first media data. The edited first media data is displayed on the first page.

[0072] Optionally, it further includes: in response to a triggering operation of a target edit item in the first edit item set, performing an editing operation on the target layer based on the target edit item in the first edit item set, and displaying the edited first media data on the first page.

[0073] Optionally, it also includes: displaying a navigation bar at the bottom of the first page, the navigation bar including multiple preset tabs. The preset tabs include at least one of image tabs, adjustment tabs, filter tabs, text tabs, and sticker tabs.

[0074] In response to a trigger action of an image tag, a thumbnail of at least one second media data item is displayed in the second area. For example, if the preset editing template includes one media data fill slot, in response to a trigger action of an image tag, a second media data item and a first editing item set are displayed in the second area. If the preset editing template includes at least two media data fill slots, in response to a trigger action of an image tag, at least two second media data items are displayed in the second area.

[0075] Optionally, for at least one second media data in which a stylized template is applied, the second media data displayed in the second area includes a generated image after the current second media data has been applied a preset editing template. Optionally, for at least one second media data in which a live image is used, a live image marker and original sound control controls are displayed at the corresponding position of the current second media data displayed in the second area.

[0076] In some embodiments, a preset prompt control can be displayed at the display position corresponding to the current second media data. The preset prompt control displays preset prompt text. Clicking on the current second media data cancels the display of the preset prompt control. Alternatively, the preset prompt control is displayed for a preset duration before being canceled. Or, in response to a switching operation of a preset tab item in the navigation bar, the preset prompt control is canceled.

[0077] Optionally, export settings are displayed on the first page, wherein the export settings include a quality settings sub-item and an export format settings sub-item. In response to a triggering operation of the quality settings sub-item, the quality information of the edited first media data is adjusted. In response to a triggering operation of the export format settings sub-item, the export format of the edited first media data is adjusted.

[0078] Figure 4 is a schematic diagram of another first page provided by an embodiment of this disclosure. As shown in Figure 4, an export settings item 420 is displayed at the top of the first page 410. In response to the triggering operation of the export settings item 420, an export settings page 430 is displayed. The export settings page 430 displays a quality settings sub-item 440 and an export format settings sub-item 450. In some embodiments, the quality settings sub-item 440 includes a quality adjustment slider control, which includes different levels of quality effects. In response to the sliding operation of the quality adjustment slider control, the quality information of the edited first media data is adjusted so that the exported first media data presents the corresponding level of quality effect. In some embodiments, in response to the triggering operation of the export format settings sub-item 450, the export format of the edited first media data is adjusted. Optionally, adjusting the export format of the edited first media data includes: converting the first media data into video and exporting it.

[0079] The technical solution of this disclosure embodiment displays first media data on a first page, where the first media data represents the result obtained by applying a preset editing template to at least one second media data. In response to a trigger operation on a target object in the first media data, a target layer corresponding to the target object in the first media data is determined. In response to an editing trigger operation on pixel data in the target layer, the pixel data in the target layer is edited based on an independent editing environment, and the edited first media data is displayed on the first page. This disclosure embodiment, by displaying first media data for the user to select a target layer to be edited, and editing the pixel data in the target layer through an independent editing environment, enables further editing of the pixel data in the template editing result. This solves the problem in related technologies that it is impossible to further edit the pixel data in each layer of the template editing result, thus meeting the user's need for further editing of the template editing result and improving the user experience.

[0080] Figure 5 is a flowchart illustrating another media data editing method provided by an embodiment of this disclosure. Based on the above embodiments, this disclosure specifically defines an editing trigger operation in response to pixel data in the target layer, and edits the pixel data in the target layer based on an independent editing environment.

[0081] As shown in Figure 5, the method includes:

[0082] S510. Display first media data on the first page, wherein the first media data represents the result obtained by applying a preset editing template to at least one second media data.

[0083] S520. In response to the triggering operation of the target object in the first media data, determine the target layer in the first media data corresponding to the target object.

[0084] S530. In response to the editing trigger operation of the pixel data in the target layer, the pixel data in the target layer is input into the image editing room, and the pixel data of the target layer is edited based on the image editing room to obtain the editing result data, wherein the image editing room represents the editing environment that encapsulates the preset image editing function.

[0085] In some embodiments, the editing trigger operation for pixel data in the target layer includes: clicking the entry control of the second editing program instance on the first page, displaying the second page corresponding to the second editing program instance, and clicking the trigger operation of the target editing item in the second editing item set on the second page. Accordingly, in response to the trigger operation of the target editing item, the pixel data in the target layer is input into the image editing room corresponding to the target editing item. Different editing items in the second editing item set correspond to different image editing rooms. The editing capabilities corresponding to the editing items can be pre-encapsulated into the image editing rooms. For example, the editing capabilities corresponding to editing items such as portrait editing, brush, and smearing can be pre-encapsulated into different image editing rooms. In some embodiments, the image editing room encapsulates the editing capabilities of multiple sub-editing items of the editing item. For example, for the image editing room corresponding to portrait editing, the image editing room encapsulates the editing capabilities of sub-editing items such as automatic beautification, wrinkle removal, makeup, and hair.

[0086] The edit result data represents the pixel data of the target layer edited based on sub-editing items in the image editing room. For example, the edit result data may include pixel data after beautification.

[0087] For example, in response to a triggering operation of the entry control of the second editing program instance in the first page, a second page is displayed, wherein the first page represents the interactive page corresponding to the first editing program instance, and the second page represents the interactive page corresponding to the second editing program instance. The second page displays the first media data and the second set of editing items, wherein the target layer in the first media data is selected. In response to a triggering operation of a target editing item in the second set of editing items, a third page is displayed, showing the pixel data of the target layer and the sub-editing items corresponding to the target editing item, wherein the third page represents the interactive page of the image editing room corresponding to the target editing item. In response to a triggering operation of the sub-editing item, an editing operation is performed on the pixel data of the target layer based on the triggered sub-editing item to obtain the editing result data, and the editing result data is sent to the first editing program instance.

[0088] The first and second editing program instances are independent program instances. The second editing program instance has more powerful editing functions than the first editing program instance. The second editing item set can be a collection of editing items corresponding to the second editing program instance. Optionally, the second editing item set can be displayed through the navigation bar at the bottom of the second page. The target editing item represents the editing item that is triggered in the second editing item set. The target editing item includes multiple sub-editing items.

[0089] Specifically, in response to the triggering operation of the entry control of the second editing program instance on the first page, first media data is retrieved from the media data resource pool corresponding to the first editing program instance and passed to the second editing program instance for display on the second page, with the target layer in the first media data being selected. The second page also displays a second set of editing items. In response to the triggering operation of a target editing item in the second set of editing items, the pixel data of the target layer is passed to the image editing room corresponding to the target editing item. The third page displays the pixel data of the target layer and the sub-editing items corresponding to the target editing item. In response to the triggering operation of a sub-editing item, editing operations are performed on the pixel data of the target layer based on the triggered sub-editing item to obtain the edited result data. The second editing program instance sends the edited result data to the first editing program instance.

[0090] Optionally, after editing the pixel data of the target layer based on the triggered sub-edit item to obtain the edit result data, the method further includes: adding the edit operation to the action list corresponding to the second editing program instance; adding the edit result data to the media data resource pool corresponding to the second editing program instance; and performing an edit undo operation or edit redo operation based on the action list and the media data resource pool in response to the triggering operation of the undo or redo control in the third page.

[0091] The action lists and media data resource pools of the first and second editing program instances are independent of each other. That is, editing operations on the first page are stored in the action list corresponding to the first editing program instance, and the editing result data on the first page is stored in the media data resource pool corresponding to the first editing program instance. Editing operations on the third page are stored in the action list corresponding to the second editing program instance, and the editing result data on the third page is stored in the media data resource pool corresponding to the second editing program instance. Therefore, editing operations on the pixel data of the target layer in the second editing program instance do not affect the action list corresponding to the first editing program instance, and the editing result data of the pixel data of the target layer in the second editing program instance does not affect the media data resource pool corresponding to the first editing program instance.

[0092] Since the editing operations and editing results data in the third page are stored in the action list and media data resource pool corresponding to the second editing program instance, editing undo or editing redo operations can be performed based on the action list and media data resource pool corresponding to the second editing program instance.

[0093] Optionally, the third page further includes a confirmation control, and sending the editing result data to the first editing program instance includes: in response to the triggering operation of the confirmation control, sending the editing result data to the first editing program instance, and clearing the action list and media data resource pool.

[0094] If the edited data meets expectations, you can click the confirmation control on the third page to send the edited pixel data of the target layer to the first editing program instance and clear the action list and media data resource pool corresponding to the second editing program instance.

[0095] In some embodiments, the triggering operation of the entry control is added to the action list corresponding to the first editing program instance, and the edited first media data is added to the media data resource pool corresponding to the first editing program instance. Edit undo and edit redo operations are performed based on the action list and media data resource pool corresponding to the first editing program instance. For example, the edited first media data is displayed on the first page, and in response to the edit undo operation of the edited first media data, the first media data before editing by the second editing program instance is displayed on the first page.

[0096] S540. Update the target layer based on the edit result data to obtain the edited first media data.

[0097] For example, the first media data is obtained by replacing the pixel data in the target layer based on the editing result data using a first editing program instance.

[0098] S550. Display the edited first media data on the first page.

[0099] The edited first media data includes data returned by the second editing program instance, and / or the results of editing operations performed on the first media data in the first editing program instance. For example, editing operations performed on the first media data in the first editing program instance include at least one editing operation such as changing images, editing stickers, editing text, and adjusting contrast.

[0100] In some embodiments, the edited first media data is displayed on the first page, so that after image editing, users can return to the first page to continue template editing operations, thus meeting the user's template editing and image editing needs.

[0101] Figure 6 is a schematic diagram of the pixel data editing process of a target layer provided in an embodiment of this disclosure. As shown in Figure 6, the entry control 620 of the second editing program instance and the first media data 630 are displayed on the first page 610, and the target layer is selected in the first media data 630. In response to the trigger operation of the entry control 620, the second page 640 is displayed. The first media data 630 and the second editing item set 650 are displayed on the second page 640. In response to the trigger operation of the target editing item 660 in the second editing item set 650, the third page 670 is displayed. The pixel data of the target layer and the sub-editing items corresponding to the target editing item 660 are displayed on the third page 670, for example, sub-editing item a, sub-editing item b, ... In response to the trigger operation of sub-editing item a, the pixel data of the target layer is edited based on sub-editing item a, and the edit result data 680 is obtained. For example, makeup is added to the target object in the target layer, and the edit result data 680 is obtained. The edit result data 680 and the confirmation control 690 are displayed on the third page 670. In response to the confirmation control 690, the edit result data 680 is sent to the first editing program instance. The first editing program instance replaces the pixel data of the target layer in the first media data based on the edit result data 680 to obtain the edited first media data, which is then displayed on the first page 610.

[0102] The technical solution of this disclosure embodiment displays a second page by triggering the entry control of the second editing program instance on the first page. The second page displays first media data and a second set of editing items. In response to a triggering operation of a target editing item in the second set of editing items, a third page is displayed, showing the pixel data of the target layer and the sub-editing items corresponding to the target editing item. In response to a triggering operation of a sub-editing item, the pixel data of the target layer is edited based on the triggered sub-editing item to obtain edit result data. This edit result data is sent to the first editing program instance, which updates the target layer based on the edit result data to obtain the edited first media data, which is then displayed on the first page. Through this technical solution, the first editing program instance implements template editing functionality for at least one second media data, and the second editing program instance performs image editing on the pixel data of the target layer in the template editing result. This compensates for the lack of image editing capabilities in the first editing program instance, satisfying the user's template editing and image editing needs.

[0103] Figure 7 is a schematic diagram of the structure of a media data editing device provided in an embodiment of this disclosure. The device can be implemented in the form of software and / or hardware, and optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.

[0104] As shown in Figure 7, the device includes: a display module 710, a layer selection module 720, and an editing module 730.

[0105] The display module 710 is used to display first media data on a first page, wherein the first media data represents the result obtained by applying a preset editing template to at least one second media data;

[0106] The layer selection module 720 is used to determine the target layer in the first media data corresponding to the target object in response to a trigger operation of the target object in the first media data;

[0107] The editing module 730 is used to respond to the editing trigger operation of the pixel data in the target layer, edit the pixel data in the target layer based on an independent editing environment, and display the edited first media data on the first page.

[0108] Optionally, the display module 710 is specifically used for:

[0109] The first media data is displayed in a first area of ​​the first page, wherein the first media data includes at least one layer, and the main object in the layer is associated with the main object in the second media data;

[0110] The at least one second media data is displayed in a second area of ​​the first page, wherein the second media data is an image or video including the subject object.

[0111] Optionally, the layer selection module 720 is specifically used for:

[0112] In response to the triggering operation of the target object in the first media data, the layer corresponding to the target object is determined as the target layer, and the target layer is converted to a selected state, wherein the target object represents the main object in the selected state;

[0113] The second area displays the second media data corresponding to the target layer and the first set of editable items corresponding to the target layer;

[0114] The step of displaying the edited first media data on the first page includes:

[0115] In response to a trigger operation of a target edit item in the first edit item set, an editing operation is performed on the target layer based on the target edit item in the first edit item set, and the edited first media data is displayed on the first page.

[0116] Optionally, the layer selection module 720 is specifically used for:

[0117] In response to the triggering operation of the second media data in the second area, the layer in the first media data corresponding to the triggered second media data is determined as the target layer, and the target layer is converted to a selected state;

[0118] The second area displays the second media data corresponding to the target layer and the first set of editable items corresponding to the target layer;

[0119] The step of displaying the edited first media data on the first page includes:

[0120] In response to a trigger operation of a target edit item in the first edit item set, an editing operation is performed on the target layer based on the target edit item in the first edit item set, and the edited first media data is displayed on the first page.

[0121] Optionally, after displaying the second media data corresponding to the target layer in the second area, the method further includes:

[0122] In response to a triggering operation of the second media data corresponding to the target layer, at least one piece of the second media data is displayed in the second area.

[0123] Optionally, the editing module 730 is specifically used for:

[0124] In response to an edit trigger operation on the pixel data in the target layer, the pixel data in the target layer is input into an image editing room, and the pixel data of the target layer is edited based on the image editing room to obtain edit result data, wherein the image editing room represents the editing environment that encapsulates preset image editing functions;

[0125] The target layer is updated based on the edited result data to obtain the edited first media data.

[0126] Optionally, in response to the edit trigger operation of pixel data in the target layer, the pixel data in the target layer is input into an image editing room, and an edit operation is performed on the pixel data of the target layer based on the image editing room to obtain edit result data, including:

[0127] In response to the triggering operation of the entry control of the second editing program instance in the first page, the second page is displayed, wherein the first page represents the interactive page corresponding to the first editing program instance, and the second page represents the interactive page corresponding to the second editing program instance;

[0128] The first media data and the second editing item set are displayed on the second page, wherein the target layer in the first media data is selected;

[0129] In response to a triggering operation of a target editing item in the second editing item set, a third page is displayed, showing the pixel data of the target layer and the sub-editing items corresponding to the target editing item. The third page represents the interactive page of the image editing room corresponding to the target editing item.

[0130] In response to the triggering operation of the sub-editing item, the pixel data of the target layer is edited based on the triggered sub-editing item to obtain the editing result data, and the editing result data is sent to the first editing program instance.

[0131] Optionally, after performing editing operations on the pixel data of the target layer based on the triggered sub-edit item to obtain the edit result data, the method further includes:

[0132] Add the editing operation to the action list corresponding to the second editing program instance;

[0133] Add the edited result data to the media data resource pool corresponding to the second editing program instance;

[0134] In response to the triggering of the undo or redo control on the third page, an edit undo or edit redo operation is performed based on the action list and media data resource pool.

[0135] Optionally, the third page further includes a confirmation control, and sending the editing result data to the first editing program instance includes:

[0136] In response to the confirmation control's trigger operation, the editing result data is sent to the first editing program instance, and the action list and media data resource pool are cleared.

[0137] Optionally, the second area displays the second media data corresponding to the target layer and the first edit item set corresponding to the target layer, including:

[0138] In response to the target layer including a generated image, the second media data corresponding to the target layer and the first edit item set are displayed in the second area, wherein the first edit item set includes at least one of regenerating, replacing the image, erasing, and flipping;

[0139] In response to the target layer including a live image, the second media data corresponding to the target layer and the first edit item set are displayed in the second area, wherein the first edit item set includes at least one of original sound control, image replacement, and flipping;

[0140] In response to the target layer including a static image, the second media data corresponding to the target layer and the first edit item set are displayed in the second area, wherein the first edit item set includes at least one of image replacement, erasure, and flipping.

[0141] Optionally, the at least one second media data includes a live image, and displaying the first media data on the first page includes:

[0142] In response to the application event of the preset editing template, the preset editing template is applied to the at least one second media data to obtain the first media data, and the live image in the first media data is played on the first page;

[0143] After displaying the primary media data on the first page, it also includes:

[0144] In response to the triggering operation of the play tag of the live image in the first media data, the live image in the first media data is played on the first page;

[0145] In response to a trigger operation within the first area of ​​the first media data, the live image from the first media data is played on the first page.

[0146] Optionally, the device further includes:

[0147] The export module is used to display export settings on the first page, wherein the export settings include a quality setting sub-item and an export format setting sub-item; in response to the triggering operation of the quality setting sub-item, the quality information of the edited first media data is adjusted; in response to the triggering operation of the export format setting sub-item, the export format of the edited first media data is adjusted.

[0148] The media data editing apparatus provided in this disclosure can execute the media data editing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method.

[0149] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.

[0150] Figure 8 is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Referring now to Figure 8, a schematic diagram of the structure of an electronic device (e.g., the terminal device or server in Figure 8) 800 suitable for implementing embodiments of this disclosure is shown. The terminal device in embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in Figure 8 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of this disclosure.

[0151] As shown in Figure 8, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the electronic device 800. The processing device 801, ROM 802, and RAM 803 are interconnected via a bus 804. An edit / output (I / O) interface 805 is also connected to the bus 804.

[0152] Typically, the following devices can be connected to I / O interface 805: input devices 806 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 807 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 808 including, for example, magnetic tapes, hard disks, etc.; and communication devices 809. Communication device 809 allows electronic device 800 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG8 shows an electronic device 800 with various devices, it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0153] 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 non-transitory 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 a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by a processing device 801, it performs the functions defined in the methods of embodiments of this disclosure.

[0154] 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.

[0155] The electronic device provided in this embodiment and the media data editing method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0156] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the media data editing method provided in the above embodiments.

[0157] 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), etc., or any suitable combination thereof.

[0158] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0159] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0160] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to:

[0161] The first media data is displayed on the first page, wherein the first media data represents the result obtained by applying a preset editing template to at least one second media data;

[0162] In response to a triggering operation of a target object in the first media data, a target layer in the first media data corresponding to the target object is determined;

[0163] In response to an edit-triggered operation on the pixel data in the target layer, the pixel data in the target layer is edited based on an independent editing environment, and the edited first media data is displayed on the first page.

[0164] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as 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).

[0165] 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 those 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, can 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.

[0166] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.

[0167] 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), and so on.

[0168] 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.

[0169] 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.

[0170] 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 a sequential order. In certain environments, multitasking and parallel processing may be advantageous. 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.

[0171] 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 illustrative examples of implementing the claims.

Claims

1. A method for editing media data, comprising: The first media data is displayed on the first page, wherein the first media data represents the result obtained by applying a preset editing template to at least one second media data; In response to a triggering operation of a target object in the first media data, a target layer in the first media data corresponding to the target object is determined; In response to an edit-triggered operation on the pixel data in the target layer, the pixel data in the target layer is edited based on an independent editing environment, and the edited first media data is displayed on the first page.

2. The method according to claim 1, wherein, The display of the first media data on the first page includes: The first media data is displayed in a first area of ​​the first page, wherein the first media data includes at least one layer, and the main object in the layer is associated with the main object in the second media data; The at least one second media data is displayed in a second area of ​​the first page, wherein the second media data is an image or video including the subject object.

3. The method according to claim 2, wherein, The step of responding to a triggering operation on a target object in the first media data, and determining the target layer in the first media data corresponding to the target object, includes: In response to the triggering operation of the target object in the first media data, the layer corresponding to the target object is determined as the target layer, and the target layer is converted to a selected state, wherein the target object represents the main object in the selected state; The second area displays the second media data corresponding to the target layer and the first set of editable items corresponding to the target layer; The step of displaying the edited first media data on the first page includes: In response to a trigger operation of a target edit item in the first edit item set, an editing operation is performed on the target layer based on the target edit item in the first edit item set, and the edited first media data is displayed on the first page.

4. The method according to claim 2, wherein, The step of responding to a triggering operation on a target object in the first media data, and determining the target layer in the first media data corresponding to the target object, includes: In response to the triggering operation of the second media data in the second area, the layer in the first media data corresponding to the triggered second media data is determined as the target layer, and the target layer is converted to a selected state; The second area displays the second media data corresponding to the target layer and the first set of editable items corresponding to the target layer; The step of displaying the edited first media data on the first page includes: In response to a trigger operation of a target edit item in the first edit item set, an editing operation is performed on the target layer based on the target edit item in the first edit item set, and the edited first media data is displayed on the first page.

5. The method according to claim 3 or 4, wherein, After displaying the second media data corresponding to the target layer in the second area, the method further includes: In response to a triggering operation of the second media data corresponding to the target layer, at least one piece of the second media data is displayed in the second area.

6. The method according to claim 1, wherein, The edit-triggered operation in response to pixel data in the target layer, which edits the pixel data in the target layer based on an independent editing environment, includes: In response to an edit trigger operation on the pixel data in the target layer, the pixel data in the target layer is input into an image editing room, and the pixel data of the target layer is edited based on the image editing room to obtain edit result data, wherein the image editing room represents the editing environment that encapsulates preset image editing functions; The target layer is updated based on the edited result data to obtain the edited first media data.

7. The method according to claim 6, wherein, The edit trigger operation in response to the pixel data in the target layer inputs the pixel data in the target layer into an image editing room, and performs an edit operation on the pixel data of the target layer based on the image editing room to obtain edit result data, including: In response to the triggering operation of the entry control of the second editing program instance in the first page, the second page is displayed, wherein the first page represents the interactive page corresponding to the first editing program instance, and the second page represents the interactive page corresponding to the second editing program instance; The first media data and the second editing item set are displayed on the second page, wherein the target layer in the first media data is selected; In response to a triggering operation of a target editing item in the second editing item set, a third page is displayed, showing the pixel data of the target layer and the sub-editing items corresponding to the target editing item. The third page represents the interactive page of the image editing room corresponding to the target editing item. In response to the triggering operation of the sub-editing item, the pixel data of the target layer is edited based on the triggered sub-editing item to obtain the editing result data, and the editing result data is sent to the first editing program instance.

8. The method according to claim 7, wherein, After performing editing operations on the pixel data of the target layer based on the triggered sub-edit item to obtain the edit result data, the method further includes: Add the editing operation to the action list corresponding to the second editing program instance; Add the edited result data to the media data resource pool corresponding to the second editing program instance; In response to the triggering of the undo or redo control on the third page, an edit undo or edit redo operation is performed based on the action list and media data resource pool.

9. The method according to claim 8, wherein, The third page also includes a confirmation control, and sending the editing result data to the first editing program instance includes: In response to the confirmation control's trigger operation, the editing result data is sent to the first editing program instance, and the action list and media data resource pool are cleared.

10. The method according to claim 3 or 4, wherein, The second area displays the second media data corresponding to the target layer and the first edit item set corresponding to the target layer, including: In response to the target layer including a generated image, the second media data corresponding to the target layer and the first edit item set are displayed in the second area, wherein the first edit item set includes at least one of regenerating, replacing the image, erasing, and flipping; In response to the target layer including a live image, the second media data corresponding to the target layer and the first edit item set are displayed in the second area, wherein the first edit item set includes at least one of original sound control, image replacement, and flipping; In response to the target layer including a static image, the second media data corresponding to the target layer and the first edit item set are displayed in the second area, wherein the first edit item set includes at least one of image replacement, erasure, and flipping.

11. The method according to claim 2, wherein, The at least one second media data includes a live image, and the display of the first media data on the first page includes: In response to the application event of the preset editing template, the preset editing template is applied to the at least one second media data to obtain the first media data, and the live image in the first media data is played on the first page; After displaying the primary media data on the first page, it also includes: In response to the triggering operation of the play tag of the live image in the first media data, the live image in the first media data is played on the first page; In response to a trigger operation within the first area of ​​the first media data, the live image from the first media data is played on the first page.

12. The method according to claim 1, further comprising: The first page displays export settings, which include image quality settings and export format settings. In response to the triggering operation of the image quality settings sub-item, the image quality information of the edited first media data is adjusted; In response to the triggering operation of the export format settings sub-item, the export format of the edited first media data is adjusted.

13. A media data editing device, comprising: A display module is used to display first media data on a first page, wherein the first media data represents the result obtained by applying a preset editing template to at least one second media data; The layer selection module is used to determine the target layer in the first media data corresponding to the target object in response to a trigger operation of the target object in the first media data; The editing module is used to respond to the editing trigger operation of the pixel data in the target layer, edit the pixel data in the target layer based on an independent editing environment, and display the edited first media data on the first page.

14. An electronic device, the electronic device comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the media data editing method as described in any one of claims 1-12.

15. A storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to perform a method for editing media data as described in any one of claims 1-12.

16. A computer program product comprising a computer program that, when executed by a processor, implements the method for editing media data as described in any one of claims 1-12.