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

By displaying the first media data on the first page and editing the pixel data of the target layer in an independent editing environment, the problem that the user cannot edit the template editing results again is solved, and the user experience is improved.

CN120499431APending Publication Date: 2025-08-15BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510585744.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-07
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In the prior art, users cannot re-edit the pixel data in each layer in the template editing result, affecting the user experience.

Method used

By displaying the first media data in the first page, determining the target layer in response to the trigger operation of the target object, and editing the pixel data in the target layer in an independent editing environment, re-editing of the pixel data in the template editing result is achieved.

Benefits of technology

Re-editing of pixel data in template editing results is realized, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120499431A_ABST
    Figure CN120499431A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a media data editing method and device, equipment, a medium and a program product. The method comprises the steps that first media data are displayed in a first page, and the first media data represent a result obtained by applying a preset editing template to at least one piece of second media data; in response to a trigger operation of 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 of the pixel data in the target layer, editing the pixel data in the target layer based on an independent editing environment, and displaying edited first media data in the first page. Through the technical scheme of the embodiment of the invention, the problem that the pixel data in each layer in the template editing result cannot be re-edited in related technologies is solved, the requirement of a user for re-editing the template editing result can be met, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to computer technology, and more particularly to a method, apparatus, device, medium, and program product for editing media data. Background Art

[0002] With the advancement of computer technology, the variety and functionality of image editing tools have become increasingly diverse. Users can use image editing tools to edit photos or videos. For example, users can use the editing templates provided by image editing tools to splice images. Alternatively, users can use image editing tools to convert static images into dynamic images. However, after users use editing templates to edit photos or videos and obtain the template results, they cannot further edit the pixel data in the layers of the template results, which affects the user experience. Summary of the Invention

[0003] The embodiments of the present disclosure provide a method, apparatus, device, medium, and program product for editing media data, and provide an optimized editing solution that can re-edit pixel data in a layer in a template editing result, thereby improving the user experience.

[0004] In a first aspect, an embodiment of the present disclosure provides a method for editing media data, comprising:

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

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

[0007] In response to an editing triggering 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 in the first page.

[0008] In a second aspect, an embodiment of the present disclosure further provides a device for editing media data, the device comprising:

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

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

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

[0012] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0013] one or more processors;

[0014] a storage device for storing 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 media data editing method as described in any embodiment of the present disclosure.

[0016] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to execute the media data editing method as described in any embodiment of the present disclosure.

[0017] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method for editing media data as described in any embodiment of the present disclosure.

[0018] The disclosed embodiment provides a method for editing media data, by displaying 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 of 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 edit trigger operation of 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. The disclosed embodiment displays the first media data for the user to select a target layer to be edited, and edits the pixel data in the target layer through an independent editing environment, thereby realizing re-editing of the pixel data in the template editing result. This solves the problem that related technologies cannot re-edit the pixel data in each layer in the template editing result, can meet the user's need for re-editing the template editing result, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0020] Figure 1 A flowchart of a method for editing media data provided by an embodiment of the present disclosure;

[0021] Figure 2 A schematic diagram of a first page provided by an embodiment of the present disclosure;

[0022] Figure 3 A schematic diagram of another first page provided by an embodiment of the present disclosure;

[0023] Figure 4 A schematic diagram of another first page provided by an embodiment of the present disclosure;

[0024] Figure 5 A flowchart of another method for editing media data provided by an embodiment of the present disclosure;

[0025] Figure 6 A schematic diagram of a process for editing pixel data of a target layer provided by an embodiment of the present disclosure;

[0026] Figure 7 A schematic structural diagram of a media data editing device provided by an embodiment of the present disclosure;

[0027] Figure 8 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide 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 illustrative 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 described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "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," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

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

[0034] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0035] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested 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 electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0036] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0037] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0038] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

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

[0040] like Figure 1 As shown, the method includes:

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

[0042] The first page represents an interactive page for an image editing tool. The image editing tool is used to edit photos, videos, and the like. Optionally, the first page represents an interactive page corresponding to a first editing program instance. The first editing program instance may include a program instance corresponding to a template editing function. Template editing functions include one or more editing functions such as multi-image stitching, multiple layers, and image-to-video conversion. Applying editing templates enables one-click photo editing and creation, optimizing the user experience.

[0043] Exemplarily, the first media data may be the 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 may include an album page. Candidate media data is displayed on the local resource page. In response to the 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 image, a live image, and a video, then prompt information is displayed on the local resource page to prompt the user to select n second media data, where n is a positive integer.

[0044] In some embodiments, in response to a confirmation operation of n second media data in a local resource page, a 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 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 a picture or video including the main object. The embodiment of the present disclosure displays the first media data and the second media data through different page areas in the first page. Since the layer in the first media data includes the main object, the second media data also includes the corresponding main object, so that the target object can be selected in different ways.

[0045] Among them, the first area and the second area are different page areas in the first page. Optionally, the first area is the canvas area in the first page, which is used to display the preview effect 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 a preset label item. The second area is the display area corresponding to the preset label item. For example, the preset label item is a picture label item, and the second area displays a thumbnail of the at least one second media data. The preset label item is a sticker label item, and the stickers in the preset editing template are displayed in the second area. The preset label item is a text label item, and the text in the preset editing template is displayed in the second area. It should be noted that if the preset editing template contains editable stickers, the sticker label item is displayed in the bottom navigation bar. If the preset editing template contains editable text, the text label item is displayed in the bottom navigation bar.

[0046] Optionally, the set of preset tag items includes at least one of an image, a filter, an adjustment, text, and a sticker. The main image in the first media data layer may be the object that occupies the primary position and draws visual attention in the current layer. The main object in the second media data may be the object that occupies the primary position and draws visual attention in the second media data.

[0047] Optionally, the at least one second media data includes a live view, and presenting the first media data on the first page includes:

[0048] In response to an 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.

[0049] For example, after selecting a preset editing template to be applied from the candidate editing templates, the album page is displayed. The number of pictures and / or videos to be selected is determined based on the number of slots filled with media data in the preset editing template. Prompt information and a confirmation control are displayed on the album page, and the prompt information is used to indicate the number of pictures and / or videos to be selected. In response to a selection operation on the album page, the pictures to be selected are determined. The pictures to be selected include live images. In response to a triggering operation of the confirmation control, an 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 pictures and the preset editing template, and the first media data is displayed on the first page. For example, the live image in the first media data is played on the first page.

[0050] Optionally, after displaying the first media data on the first page, the method further includes:

[0051] 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, the play event of the live image cannot be triggered again after the playback ends, and the user's need to play the live image again cannot be met. The embodiment of the present disclosure adds a play tag to the live image in the first media data to trigger the replay of the live image by triggering the play tag, thereby meeting the user's need to play the live image again.

[0052] Optionally, after displaying the first media data on the first page, the method further includes:

[0053] In response to a trigger operation within the first area of the first media data, the live image in the first media data is played on the first page. The trigger operation within the first area includes a long press, double-click, or other type of operation within the first area. In the disclosed embodiment, the trigger operation within the first area triggers the replay of the live image, thereby satisfying the user's need to replay the live image.

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

[0055] The target object may be a main object in a target layer in the first media data. The layer in the first media data containing the target object is the target layer. Triggering operations on the target object in the first media data include, for example, selecting the target object in the first media data. The triggering operation on the target object in the first media data may be triggered by selecting the target layer in the first media data. Alternatively, the triggering operation on the target object in the first media data may be triggered by selecting second media data.

[0056] Exemplarily, 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. , wherein the target object represents a main object in a selected state. The second media data corresponding to the target layer and the first editing item set corresponding to the target layer are displayed in the second area. By converting the target layer in the first media data to a selected state, the disclosed embodiment can intuitively display the target object in the target layer to be edited. Displaying the second media data of the target layer and the editing items of the second media data in the second area can intuitively display the second media data corresponding to the target layer, and facilitates the selection of the target editing item in the first editing item set to edit the target object in the target layer.

[0057] The first editing item set represents a set of editing items corresponding to the editing function of the target layer.

[0058] For example, in response to a click operation on a main object of a layer in the first media data, the clicked layer is determined to be a target layer, the main object in the target layer is determined to be a 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 a first set of edit items corresponding to the target layer is displayed in the right area of the second area.

[0059] Optionally, in response to a triggering operation of the second media data in the second area, a layer in the first media data corresponding to the triggered second media data is determined as the target layer, the target layer is switched to a selected state, and 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.

[0060] For example, in response to a click operation on the second media data in the second area, the layer corresponding to the clicked second media data in the first media data is determined to be the target layer, the main object in the target layer is determined to be 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 within the second area, and a first set of edit items corresponding to the target layer is displayed in the right area within the second area.

[0061] It should be noted that the triggering operation of the target object by clicking in the above embodiment is only an example and does not limit the triggering method. In the embodiment of the present disclosure, the triggering operation of the target object can also be input by circling, dragging, voice, gesture or gaze.

[0062] Optionally, displaying the second media data corresponding to the target layer and the first edit item set corresponding to the target layer in the second area includes:

[0063] In response to the target layer including a generated image, the second media data corresponding to the target layer and the first set of editing items are displayed in the second area, wherein the first set of editing items includes at least one of regeneration, image change, erasure, and flipping. The generated image includes a picture of a base map as a stylized template. The stylized template represents an editing template that replaces the second media data with a picture generated by a generation model based on the uploaded second media data. Regeneration includes reapplying the stylized template based on the base map to obtain a new generated image. Image change 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 an erase function. Flip is used to trigger horizontal flipping or vertical flipping, etc.

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

[0065] In response to the target layer including a static image, second media data corresponding to the target layer and the first set of editing items are displayed in the second area, wherein the first set of editing items includes at least one of changing the image, erasing, and flipping.

[0066] Optionally, after displaying the second media data corresponding to the target layer in the second area, the method further includes: displaying the at least one second media data in the second area in response to a triggering operation of the second media data corresponding to the target layer. In this embodiment of the present disclosure, by clicking the second media data corresponding to the target layer, all second media data are expanded and displayed in the second area, making it easier for the user to select the target layer to be edited again.

[0067] Figure 2 This is a schematic diagram of a first page provided by an embodiment of the present disclosure. Figure 2 As shown, the first area 220 of the first page 210 displays first media data, and the second area 230 displays picture 1, picture 2, picture 3, and picture 4. The main object in the layer of the first media data corresponds to the main object in picture 1, picture 2, picture 3, and picture 4. The picture tab item 240 in the bottom navigation bar of the first page 210 is selected. In response to a click on picture 2, the layer corresponding to picture 2 in the first media data is switched to a selected state, and picture 2 and a first set of editing items 250 are displayed in the second area 230. The first set of editing items 250 includes at least one of swapping, erasing, flipping, original sound control, and regenerating. In some embodiments, a bubble control is displayed in the position corresponding to picture 2 in the second area 230. A preset prompt text is displayed in the bubble control. The preset prompt text indicates that clicking picture 2 will display all pictures. In response to a click on picture 2 in the second area 230, pictures 1, picture 2, picture 3, and picture 4 are displayed in the second area 230.

[0068] Figure 3 This is a schematic diagram of another first page provided by an embodiment of the present disclosure. Figure 3As shown, first area 320 of first page 310 displays first media data, the left area of second area 330 displays second media data, and the right area of second area 330 displays first edit item set 340. In some embodiments, the left area of second area 330 displays a generated image of the second media data after applying a preset edit template, and the right area of second area 330 displays first edit item set 340.

[0069] S130. In response to an editing trigger operation on 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 in the first page.

[0070] The editing trigger operation is used to trigger an image editing operation 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 in the first page. The first page represents an interactive page corresponding to the first editing program instance. A second editing program instance that is independent of the first editing program instance can be used to perform an editing operation on the pixel data of the target layer, obtain editing result data, and return the editing result data to the first editing program instance. The first editing program instance updates the target layer based on the editing result data to obtain the edited first media data. The edited first media data is displayed on the first page.

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

[0072] Optionally, the method further includes: displaying a navigation bar at the bottom of the first page, the navigation bar including a plurality of preset label items, the preset label items including at least one of an image label item, an adjustment label item, a filter label item, a text label item, and a sticker label item.

[0073] In response to a triggering operation of the image tag item, at least one thumbnail of the second media data is displayed in the second area. For example, if the preset editing template includes a media data fill slot, in response to a triggering operation of the image tag item, the second media data and the 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 triggering operation of the image tag item, the at least two second media data are displayed in the second area.

[0074] Optionally, for at least one second media data item to which a stylized template is applied, the second media data displayed in the second area includes a generated image resulting from the application of the preset editing template to the current second media data. Optionally, for at least one second media data item that is a live image, a live image marker and an original sound control are displayed at a location corresponding to the current second media data item displayed in the second area.

[0075] In some embodiments, a preset prompt control can be displayed at the display location corresponding to the current second media data. A preset prompt text can be displayed in the preset prompt control. After clicking the current second media data, the preset prompt control is discarded. Alternatively, after the preset prompt control is displayed for a preset duration, the preset prompt control is discarded. Alternatively, the preset prompt control is discarded in response to a toggle operation on a preset label item in the navigation bar.

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

[0077] Figure 4 This is a schematic diagram of another first page provided by an embodiment of the present disclosure. Figure 4 As shown, the export setting item 420 is displayed at the top of the first page 410. In response to the triggering operation of the export setting item 420, the export setting page 430 is displayed. The image quality setting sub-item 440 and the export format setting sub-item 450 are displayed in the export setting page 430. In some embodiments, the image quality setting sub-item 440 includes an image quality adjustment slider control, and the image quality adjustment slider control includes image quality effects of different gears. In response to the sliding operation of the image quality adjustment slider control, the image quality information of the edited first media data is adjusted so that the exported first media data presents the image quality effect of the corresponding gear. In some embodiments, in response to the triggering operation of the export format setting 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 a video and exporting it.

[0078] The technical solution of the embodiment of the present disclosure is to display first media data in 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 of 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 of 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. The embodiment of the present disclosure displays the first media data for the user to select a target layer to be edited, and edits the pixel data in the target layer through an independent editing environment, thereby realizing re-editing of the pixel data in the template editing result. This solves the problem that related technologies cannot re-edit the pixel data in each layer in the template editing result, can meet the user's demand for re-editing the template editing result, and improves the user experience.

[0079] Figure 5 A flowchart of another method for editing media data provided by an embodiment of the present disclosure. Based on the above embodiments, the embodiment of the present disclosure specifically defines editing the pixel data in the target layer based on an independent editing environment in response to an editing trigger operation of the pixel data in the target layer.

[0080] like Figure 5 As shown, the method includes:

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

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

[0083] S530. In response to an editing 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 an editing operation is performed on the pixel data of the target layer based on the image editing room to obtain editing result data, wherein the image editing room represents the editing environment that encapsulates a preset image editing function.

[0084] In some embodiments, the editing trigger operation of the pixel data in the target layer includes: clicking the entry control of the second editing program instance in the first page to display 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 in 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-packaged into image editing rooms. For example, the editing capabilities corresponding to editing items of types such as portrait editing, brushes, and smearing are pre-packaged 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 beauty, wrinkle removal, makeup, and hair.

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

[0086] Exemplarily, in response to a triggering operation of an entry control of a second editing program instance in the first page, a second page is displayed, wherein the first page represents an interactive page corresponding to the first editing program instance, and the second page represents an interactive page corresponding to the second editing program instance. The first media data and a second editing item set are displayed in the second page, wherein the target layer in the first media data is in a selected state. In response to a triggering operation of a target editing item in the second editing item set, a third page is displayed, and pixel data of the target layer and a sub-editing item corresponding to the target editing item are displayed on the third page, wherein the third page represents an interactive page of an 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.

[0087] The first editing program instance and the second editing program instance 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 may be a collection of editing items corresponding to the second editing program instance. Optionally, the second editing item set is displayed via a 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.

[0088] Specifically, in response to the triggering operation of the entry control of the second editing program instance in the first page, the first media data is obtained from the media data resource pool corresponding to the first editing program instance, and the first media data is transmitted to the second editing program instance to display the first media data on the second page, and the target layer in the first media data is in a selected state. The second editing item set is also displayed on the second page. In response to the triggering operation of the target editing item in the second editing item set, the pixel data of the target layer is transmitted to the image editing room corresponding to the target editing item. The pixel data of the target layer and the sub-editing item corresponding to the target editing item are displayed on the third page. 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 editing result data. The second editing program instance sends the editing result data to the first editing program instance.

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

[0090] The action lists and media data resource pools of the first editing program instance and the second editing program instance are independent of each other. That is, the editing operations in the first page are stored in the action list corresponding to the first editing program instance, and the editing result data in the first page are stored in the media data resource pool corresponding to the first editing program instance. The editing operations in the third page are stored in the action list corresponding to the second editing program instance, and the editing result data in the third page are stored in the media data resource pool corresponding to the second editing program instance. Thus, it can be achieved that the editing operations of 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 do not affect the media data resource pool corresponding to the first editing program instance.

[0091] Since the editing operations and editing result data in the third page are stored through the action list and media data resource pool corresponding to the second editing program instance, an editing undo operation or an editing restore operation can be performed based on the action list and media data resource pool corresponding to the second editing program instance.

[0092] Optionally, the third page also includes a confirmation control, and sending the editing result data to the first editing program instance includes: responding 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.

[0093] If the editing result data meets expectations, you can click the confirmation control on the third page to send the editing result data of the 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.

[0094] In some embodiments, a triggering operation of the entry control is added to an action list corresponding to the first editing program instance, and the edited first media data is added to a media data resource pool corresponding to the first editing program instance. An edit undo operation and an edit redo operation 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 an edit undo operation on the edited first media data, the first media data before being edited by the second editing program instance is displayed on the first page.

[0095] S540: Update the target layer based on the editing result data to obtain edited first media data.

[0096] Exemplarily, the pixel data in the target layer is replaced based on the editing result data by the first editing program instance to obtain the edited first media data.

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

[0098] The edited first media data includes data returned by the second editing program instance and / or a result of an editing operation on the first media data in the first editing program instance. For example, the editing operation on the first media data in the first editing program instance includes at least one of changing an image, editing a sticker, editing text, and adjusting contrast.

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

[0100] Figure 6 This is a schematic diagram of a process for editing pixel data of a target layer provided by an embodiment of the present disclosure. Figure 6As shown, a first page 610 displays an entry control 620 of a second editing program instance and first media data 630, with the target layer in first media data 630 being selected. In response to a triggering operation on entry control 620, a second page 640 is displayed. Second page 640 displays first media data 630 and a second edit item set 650. In response to a triggering operation on a target edit item 660 in second edit item set 650, a third page 670 is displayed. Third page 670 displays pixel data of the target layer and sub-edit items corresponding to target edit item 660, such as sub-edit item a, sub-edit item b, and so on. In response to a triggering operation on sub-edit item a, an edit operation is performed on the pixel data of the target layer based on sub-edit item a, generating edit result data 680. For example, makeup is added to a target object in the target layer, generating edit result data 680. Edit result data 680 and a confirmation control 690 are displayed on third page 670. In response to a triggering operation of the confirmation control 690, the edited 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 edited result data 680 to obtain the edited first media data, which is then displayed on the first page 610.

[0101] The technical solution of the embodiment of the present disclosure is to display the second page by triggering the entry control of the second editing program instance in the first page, and to display the first media data and the second editing item set in the second page. In response to the triggering operation of the target editing item in the second editing item set, the third page is displayed, and the pixel data of the target layer and the sub-editing item corresponding to the target editing item are displayed on the third page. 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 editing result data, which is sent to the first editing program instance. The target layer is updated based on the editing result data by the first editing program instance to obtain the edited first media data, and the edited first media data is displayed on the first page. Through the technical solution of the embodiment of the present disclosure, the template editing function of at least one second media data is implemented by the first editing program instance, and the pixel data of the target layer in the template editing result is image edited by the second editing program instance, which can make up for the defect of the first editing program instance lacking image editing capabilities and meet the user's template editing needs and image editing needs.

[0102] Figure 7 This is a structural diagram of a media data editing device provided in an embodiment of the present disclosure. The device can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, PC or server, etc.

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

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

[0105] a layer selection module 720 for determining a target layer corresponding to the target object in the first media data in response to a triggering operation of the target object in the first media data;

[0106] 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 in the first page.

[0107] Optionally, the display module 710 is specifically configured to:

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

[0109] The at least one second media data is displayed in the second area of the first page, wherein the second media data is a picture or video including the main object.

[0110] Optionally, the layer selection module 720 is specifically configured to:

[0111] In response to a triggering operation of the target object in the first media data, determining a layer corresponding to the target object as a target layer, and converting the target layer to a selected state, wherein the target object represents a subject object in the selected state;

[0112] Displaying, in the second area, the second media data corresponding to the target layer and the first edit item set corresponding to the target layer;

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

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

[0115] Optionally, the layer selection module 720 is specifically configured to:

[0116] In response to a triggering operation of the second media data in the second area, determining a layer in the first media data corresponding to the triggered second media data as the target layer, and switching the target layer to a selected state;

[0117] Displaying, in the second area, the second media data corresponding to the target layer and the first edit item set corresponding to the target layer;

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

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

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

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

[0122] Optionally, the editing module 730 is specifically configured to:

[0123] In response to an edit triggering operation on pixel data in the target layer, inputting the pixel data in the target layer into an image editing room, performing an editing operation on the pixel data in the target layer based on the image editing room, and obtaining editing result data, wherein the image editing room represents the editing environment encapsulating a preset image editing function;

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

[0125] Optionally, in response to the editing trigger operation on the pixel data in the target layer, inputting the pixel data in the target layer into an image editing room, and performing an editing operation on the pixel data in the target layer based on the image editing room to obtain editing result data includes:

[0126] In response to a triggering operation of an entry control of a second editing program instance in the first page, displaying a second page, wherein the first page represents an interactive page corresponding to the first editing program instance, and the second page represents an interactive page corresponding to the second editing program instance;

[0127] Displaying the first media data and the second editing item set on the second page, wherein the target layer in the first media data is in a selected state;

[0128] In response to a triggering operation of a target editing item in the second editing item set, displaying a third page, displaying pixel data of the target layer and sub-editing items corresponding to the target editing item on the third page, wherein the third page represents an interactive page of the image editing room corresponding to the target editing item;

[0129] In response to the 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.

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

[0131] Adding the editing operation to the action list corresponding to the second editing program instance;

[0132] Adding the editing result data to the media data resource pool corresponding to the second editing program instance;

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

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

[0135] In response to the triggering operation of the confirmation control, the editing result data is sent to the first editing program instance, and the action list and the media data resource pool are cleared.

[0136] Optionally, displaying the second media data corresponding to the target layer and the first edit item set corresponding to the target layer in the second area includes:

[0137] In response to the target layer including the generated image, displaying the second media data corresponding to the target layer and the first set of edit items in the second area, wherein the first set of edit items includes at least one of regeneration, image change, erasure, and flip;

[0138] In response to the target layer including a live image, displaying second media data corresponding to the target layer and the first set of editing items in the second area, wherein the first set of editing items includes at least one of original sound control, image change, and flip;

[0139] In response to the target layer including a static image, second media data corresponding to the target layer and the first set of editing items are displayed in the second area, wherein the first set of editing items includes at least one of changing the image, erasing, and flipping.

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

[0141] In response to an application event of the preset editing template, applying the preset editing template to the at least one second media data to obtain the first media data, and playing the live image in the first media data on the first page;

[0142] After displaying the first media data on the first page, the method further includes:

[0143] In response to a triggering operation of a play tag of the live image in the first media data, playing the live image in the first media data on the first page;

[0144] In response to a trigger operation within the first area in the first media data, the live image in the first media data is played on the first page.

[0145] Optionally, the device further comprises:

[0146] An export module is used to display export setting items on the first page, wherein the export setting items include image quality setting sub-items and export format setting sub-items; in response to the triggering operation of the image quality setting sub-items, adjust the image quality information of the edited first media data; in response to the triggering operation of the export format setting sub-items, adjust the export format of the edited first media data.

[0147] The media data editing device provided by the embodiment of the present disclosure can execute the media data editing method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0148] 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-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0149] Figure 8 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 8 , which shows an electronic device (eg Figure 8The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 8 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0150] like Figure 8 As shown, 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. Various programs and data required for the operation of the electronic device 800 are also stored in the RAM 803. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An edit / output (I / O) interface 805 is also connected to the bus 804.

[0151] Typically, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but 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 instead.

[0152] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0153] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0154] The electronic device provided by the embodiment of the present disclosure and the method for editing media data provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0155] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the method for editing media data provided in the above embodiment is implemented.

[0156] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0157] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0158] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0159] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

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

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

[0162] In response to an editing triggering 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 in the first page.

[0163] Computer program code for performing the operations of the present disclosure may 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, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0164] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0165] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.

[0166] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0167] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0168] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0169] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0170] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A method for editing media data, characterized in that: include: Displaying first media data on a first page, wherein the first media data represents a 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, determining a target layer corresponding to the target object in the first media data; In response to an editing triggering 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 in the first page.

2. The method according to claim 1, characterized in that The displaying of the first media data on the first page includes: Displaying the first media data in a first area of the first page, wherein the first media data includes at least one layer, and a main object in the layer is associated with a main object in the second media data; The at least one second media data is displayed in the second area of the first page, wherein the second media data is a picture or video including the main object.

3. The method according to claim 2, characterized in that The determining, in response to a triggering operation of a target object in the first media data, a target layer corresponding to the target object in the first media data includes: In response to a triggering operation of the target object in the first media data, determining a layer corresponding to the target object as a target layer, and converting the target layer to a selected state, wherein the target object represents a subject object in the selected state; Displaying, in the second area, the second media data corresponding to the target layer and the first edit item set corresponding to the target layer; The displaying of the edited first media data on the first page includes: In response to a triggering operation of a target editing item in the first editing item set, an editing operation is performed on the target layer based on the target editing item in the first editing item set, and the edited first media data is displayed on the first page.

4. The method according to claim 2, characterized in that The determining, in response to a triggering operation of a target object in the first media data, a target layer corresponding to the target object in the first media data includes: In response to a triggering operation of the second media data in the second area, determining a layer in the first media data corresponding to the triggered second media data as the target layer, and switching the target layer to a selected state; Displaying, in the second area, the second media data corresponding to the target layer and the first edit item set corresponding to the target layer; The displaying of the edited first media data on the first page includes: In response to a triggering operation of a target editing item in the first editing item set, an editing operation is performed on the target layer based on the target editing item in the first editing item set, and the edited first media data is displayed on the first page.

5. The method according to claim 3 or 4, characterized in that 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, the at least one second media data is displayed in the second area.

6. The method according to claim 1, characterized in that In response to the editing trigger operation of the pixel data in the target layer, editing the pixel data in the target layer based on an independent editing environment includes: In response to an edit triggering operation on pixel data in the target layer, inputting the pixel data in the target layer into an image editing room, performing an editing operation on the pixel data in the target layer based on the image editing room, and obtaining editing result data, wherein the image editing room represents the editing environment encapsulating a preset image editing function; The target layer is updated based on the editing result data to obtain the edited first media data.

7. The method according to claim 6, characterized in that In response to the editing trigger operation of the pixel data in the target layer, inputting the pixel data in the target layer into an image editing room, and performing an editing operation on the pixel data of the target layer based on the image editing room to obtain editing result data, including: In response to a triggering operation of an entry control of a second editing program instance in the first page, displaying a second page, wherein the first page represents an interactive page corresponding to the first editing program instance, and the second page represents an interactive page corresponding to the second editing program instance; Displaying the first media data and the second editing item set on the second page, wherein the target layer in the first media data is in a selected state; In response to a triggering operation of a target editing item in the second editing item set, displaying a third page, displaying pixel data of the target layer and sub-editing items corresponding to the target editing item on the third page, wherein the third page represents an interactive page of the image editing room corresponding to the target editing item; In response to the 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.

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

9. The method according to claim 8, characterized in that The third page further includes a confirmation control, and the sending of the editing result data to the first editing program instance includes: In response to the triggering operation of the confirmation control, the editing result data is sent to the first editing program instance, and the action list and the media data resource pool are cleared.

10. The method according to claim 3 or 4, characterized in that Displaying the second media data corresponding to the target layer and the first edit item set corresponding to the target layer in the second area includes: In response to the target layer including the generated image, displaying the second media data corresponding to the target layer and the first set of edit items in the second area, wherein the first set of edit items includes at least one of regeneration, image change, erasure, and flip; In response to the target layer including a live image, displaying second media data corresponding to the target layer and the first set of editing items in the second area, wherein the first set of editing items includes at least one of original sound control, image change, and flip; In response to the target layer including a static image, second media data corresponding to the target layer and the first set of editing items are displayed in the second area, wherein the first set of editing items includes at least one of changing the image, erasing, and flipping.

11. The method according to claim 2, characterized in that The at least one second media data includes a live view, and the presenting of the first media data on the first page includes: In response to an application event of the preset editing template, applying the preset editing template to the at least one second media data to obtain the first media data, and playing the live image in the first media data on the first page; After displaying the first media data on the first page, the method further includes: In response to a triggering operation of a play tag of the live image in the first media data, playing the live image in the first media data on the first page; In response to a trigger operation within the first area in the first media data, the live image in the first media data is played on the first page.

12. The method according to claim 1, characterized in that Also includes: Displaying export setting items on the first page, wherein the export setting items include image quality setting sub-items and export format setting sub-items; In response to a triggering operation of the image quality setting sub-item, adjusting image quality information of the edited first media data; In response to a triggering operation of the export format setting sub-item, an export format of the edited first media data is adjusted.

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

14. An electronic device, characterized in that: The electronic device comprises: one or more processors; a 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 according to any one of claims 1 to 12.

15. A storage medium containing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the media data editing method according to any one of claims 1 to 12.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method for editing media data according to any one of claims 1 to 12.