CN112230982A - Material processing method and device, electronic equipment and storage medium - Google Patents
Material processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112230982A CN112230982A CN202011102560.XA CN202011102560A CN112230982A CN 112230982 A CN112230982 A CN 112230982A CN 202011102560 A CN202011102560 A CN 202011102560A CN 112230982 A CN112230982 A CN 112230982A
- Authority
- CN
- China
- Prior art keywords
- processing module
- parameter
- parameter updating
- information
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000000463 material Substances 0.000 title claims abstract description 180
- 238000003672 processing method Methods 0.000 title claims abstract description 12
- 238000012545 processing Methods 0.000 claims abstract description 251
- 230000005540 biological transmission Effects 0.000 claims abstract description 35
- 238000000034 method Methods 0.000 claims abstract description 26
- 230000001960 triggered effect Effects 0.000 claims abstract description 7
- 230000006870 function Effects 0.000 claims description 35
- 239000002699 waste material Substances 0.000 abstract description 7
- 230000003796 beauty Effects 0.000 description 21
- 238000004891 communication Methods 0.000 description 10
- 230000004048 modification Effects 0.000 description 10
- 238000012986 modification Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure relates to a material processing method, a material processing device, an electronic device and a storage medium. The method comprises the following steps: receiving material configuration operation, and acquiring parameter updating information triggered by the material configuration operation; the material is a component which is contained in the client and used for editing the multimedia content; determining a target processing module corresponding to the parameter updating information; the target processing module is at least one of a plurality of processing modules; transmitting the parameter update information to the target processing module; and the target processing module is used for adjusting the corresponding material according to the parameter updating information after receiving the parameter updating information. According to the scheme, only modified parameter information needs to be transmitted to the target processing module, so that the data transmission quantity is reduced; meanwhile, the waste of execution resources of other processing modules is reduced.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing a material, an electronic device, and a storage medium.
Background
The existing software with multimedia editing function can provide various materials for users to edit multimedia contents, such as materials for providing filters, beauty, magic expression, audio mixing and the like. The user can make adjustments or modifications to the material, such as filter changes, during editing of the multimedia content using the material.
When a user adjusts or modifies the materials, the traditional processing method needs to adjust the material parameter information of a plurality of materials through a plurality of processing modules, which results in low material processing efficiency.
Disclosure of Invention
The present disclosure provides a material processing method, apparatus, electronic device, and storage medium, to at least solve the problem of low material processing efficiency in the related art. The technical scheme of the disclosure is as follows:
in a first aspect, a method for processing material includes:
receiving material configuration operation, and acquiring parameter updating information triggered by the material configuration operation; the material is a component which is contained in the client and used for editing the multimedia content;
determining a target processing module corresponding to the parameter updating information; the target processing module is at least one of a plurality of processing modules, and each processing module in the plurality of processing modules is respectively used for executing related functions of different materials;
transmitting the parameter update information to the target processing module; and the target processing module is used for adjusting the corresponding material according to the parameter updating information after receiving the parameter updating information.
In one embodiment, the plurality of processing modules are modules in a software development kit for the client;
the determining of the target processing module corresponding to the parameter updating information includes:
determining a material to be adjusted according to the parameter updating information;
and querying the plurality of processing modules of the software development kit of the client, and determining the processing module corresponding to the material to be adjusted as the target processing module.
In one embodiment, the method further comprises:
acquiring a material obtained after the target processing module adjusts the material to be adjusted according to the parameter updating information;
and processing the current multimedia content to be edited of the client according to the adjusted material. In one embodiment, the transmitting the parameter update information to the target processing module includes:
storing the parameter updating information into a target object file; the target object file is a dynamic link library file corresponding to the target processing module;
and transmitting the parameter updating information to the target processing module through the target object file.
In one embodiment, the transmitting the parameter update information to the target processing module through the target object file includes:
acquiring the type of the current multimedia content to be edited; the current multimedia content to be edited is the multimedia content currently acted on by the material to be adjusted;
if the type is a live type, transmitting the parameter updating information to the target processing module through a first transmission mode;
in the first transmission mode, if the parameter updating information is detected to be stored in a target object file, sending a parameter updating message to the target processing module; and the target processing module receives the parameter updating message and acquires the parameter updating message from the target object file through a preset program interface.
In one embodiment, further comprising:
if the type is a non-live type, transmitting the parameter updating information to the target processing module through a second transmission mode;
and in the second transmission mode, the target processing module monitors whether the information in the target object file changes according to a preset time period, and if the information in the target object file changes, the parameter updating information is acquired from the target object file through a preset program interface.
In a second aspect, there is provided a material processing apparatus including:
the device comprises a parameter updating and acquiring unit, a parameter updating and acquiring unit and a parameter updating and acquiring unit, wherein the parameter updating and acquiring unit is configured to execute material configuration receiving operation and acquire parameter updating information triggered by the material configuration operation; the material is a component which is contained in the client and used for editing the multimedia content;
a module determination unit configured to execute determining a target processing module corresponding to the parameter update information; the target processing module is at least one of a plurality of processing modules, and each processing module in the plurality of processing modules is respectively used for executing related functions of different materials;
a parameter transmission unit configured to perform transmission of the parameter update information to the target processing module; and the target processing module is used for adjusting the corresponding material according to the parameter updating information after receiving the parameter updating information.
In one embodiment, the plurality of processing modules are modules in a software development kit for the client; the module determination unit is specifically configured to perform:
determining a material to be adjusted according to the parameter updating information;
and querying the plurality of processing modules of the software development kit of the client, and determining the processing module corresponding to the material to be adjusted as the target processing module.
In one embodiment, the apparatus further comprises:
and the content editing unit is configured to execute the steps of acquiring the material obtained by adjusting the material to be adjusted by the target processing module according to the parameter updating information, and processing the current multimedia content to be edited according to the adjusted material.
In an embodiment, the parameter transmission unit is specifically configured to perform:
storing the parameter updating information into a target object file; the target object file is a dynamic link library file corresponding to the target processing module;
and transmitting the parameter updating information to the target processing module through the target object file.
In one embodiment, the parameter transmission unit is further configured to perform:
acquiring the type of the current multimedia content to be edited; the current multimedia content to be edited is the multimedia content currently acted on by the material to be adjusted;
if the type is a live type, transmitting the parameter updating information to the target processing module through a first transmission mode;
in the first transmission mode, if the parameter updating information is detected to be stored in a target object file, sending a parameter updating message to the target processing module; and the target processing module receives the parameter updating message and acquires the parameter updating message from the target object file through a preset program interface.
In one embodiment, the parameter transmission unit is further configured to perform:
if the type is a non-live type, transmitting the parameter updating information to the target processing module through a second transmission mode;
and in the second transmission mode, the target processing module monitors whether the information in the target object file changes according to a preset time period, and if the information in the target object file changes, the parameter updating information is acquired from the target object file through a preset program interface.
In a third aspect, an electronic device is provided, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the material processing method as claimed in any one of the above.
In a fourth aspect, there is provided a storage medium having instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the material processing method of any one of the above
In a fifth aspect, there is provided a computer program product comprising a computer program stored on a readable storage medium, from which the computer program is read and executed by at least one processor of an apparatus, such that the apparatus performs the material processing method described in any one of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
when a user modifies a material for multimedia content editing through a client, corresponding parameter updating information can be acquired, and the current parameter updating information is judged to correspond to which processing module, so that a target processing module is determined, and the current parameter updating information is sent to the target function module, so that the target function module adjusts the material corresponding to the target function module according to the current parameter updating information. The modified parameter information is only needed to be transmitted to the target processing module in the plurality of processing modules, so that the data transmission quantity is reduced to a great extent; moreover, because the information received by the target processing module is the parameter updating information, the target processing module does not need to judge whether the parameter changes after receiving the parameter information, and the waste of execution resources of the target processing module is reduced; meanwhile, only the target processing module in the plurality of processing modules receives the parameter updating information and executes the processing of the corresponding material, and the waste of execution resources of other processing modules is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a diagram illustrating an application environment for a method of processing material, according to an exemplary embodiment.
Fig. 2 is a flow diagram illustrating a method of material processing according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating a method of material processing according to another exemplary embodiment.
Fig. 4 is a flow chart illustrating a method of material processing according to yet another exemplary embodiment.
Fig. 5 is a flow diagram illustrating a specific transmission of parameter update information, according to an example embodiment.
Fig. 6 is a block diagram illustrating a material processing apparatus according to an exemplary embodiment.
Fig. 7 is an internal block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The material processing method provided by the disclosure can be applied to electronic equipment, wherein client software with a multimedia editing function, such as short video client software with the multimedia editing function, is installed in the electronic equipment, and the client software can provide various materials for a user to edit multimedia contents, such as the materials of a filter, a beauty, a magic expression, audio mixing and the like shown in fig. 1; during the process of editing the multimedia content by using the materials, the user can also adjust or modify the materials, such as filter change, beauty effect adjustment or audio adjustment, so as to obtain the adjusted materials.
In the present disclosure, the material may be understood as a component included in the client for editing the multimedia content, and each material is embedded into a Software Development Kit (SDK) of the client Software through a corresponding usage interface.
The electronic equipment can also interact with the server through the network, and after the multimedia content is edited by the user through the materials, the edited multimedia content can be sent to the server through the electronic equipment, wherein the server is a server corresponding to the client software.
In the present disclosure, the electronic device may be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers, and the server may be, but is not limited to, implemented by an independent server or a server cluster composed of a plurality of servers.
As an example, the client software may provide a plurality of materials such as a filter, a beauty, a magic expression, and a sound mixing, and during the process of editing the multimedia content using one or more of the materials, the user may adjust or modify one or more of the materials to obtain personalized material content, which is used for editing the multimedia content to obtain personalized content. Conventionally, parameters related to client software are stored in a default object, and parameter information stored in the default object is shared by a plurality of processing modules (e.g., a filter module, a beauty module, an audio processing module, etc.) that execute functions of each material in the client software. After the user modifies the material, the parameter information stored in the default object is updated by using the changed parameter information, all the parameter information in the updated default object is respectively sent to a plurality of processing modules such as a filter module, a beauty module and an audio processing module, after all the parameter information in the default object is received by each processing module, whether parameters related to the material function executed by the processing module in the received parameter information are changed or not is judged, and if the parameters are changed, the corresponding material is adjusted according to the updated parameters.
Specific examples thereof include: taking client software running in an android system as an example, when the client software runs, the android system can create a unique Application class object for the client software, the lifecycle of the Application class object is equal to that of the client software, and material parameter information is shared by a plurality of processing modules of the client software through the Application class object. When the filter configuration is changed by a user, updating the parameter information stored in the Application object by using the changed filter parameter information, and respectively sending all the parameter information in the updated Application object to a filter processing module, a beauty processing module and an audio processing module, wherein after the filter processing module receives all the parameter information in the Application object, the filter processing module judges that parameters related to the filter function in the received parameter information are changed, and then adjusts the filter according to the updated parameters, and after other processing modules receive all the parameter information of the Application object, the filter processing module judges that the parameters related to the material function executed by the filter processing module in the received parameter information are not changed, and then does not process the parameters.
However, in the above-mentioned conventional method, each time the user modifies the material configuration, all the material parameter information needs to be transmitted to the plurality of processing modules, and the plurality of processing modules need to determine whether the parameters related to the material function executed by the processing module in all the received parameter information are updated, so that there are problems of a large amount of transmitted data and a waste of execution resources of the plurality of processing modules.
Based on this, an exemplary embodiment of the present application shows a material processing method as shown in fig. 2, which is applied to client software and includes the following steps.
As described above, in the present disclosure, the client may provide various materials such as a filter, a beauty, a magic expression, and a sound mixing for the user to edit the multimedia content of the client, where the materials may be understood as components included in the client for editing the multimedia content, and each material is embedded into the SDK of the client software through a corresponding use interface.
The material configuration operation comprises adjustment or modification operation of one or more materials by a user, each material can contain a plurality of parameters, the user can adjust or modify one or more parameters according to actual needs, and when the material parameters are changed due to the adjustment or modification operation of the user on the materials, corresponding parameter update information can be obtained according to the material parameter change condition.
For example: the user modifies the filter and modifies the filter a into the filter B, and the obtained parameter update information may include the parameter information of the filter a before modification and the parameter information of the filter B after modification. The parameter update information may specifically include a parameter name and a corresponding parameter value, for example, the parameter name is a filter identification parameter, and the corresponding parameter value is B (indicating the filter B).
Another example is: the user has adjusted buffing intensity and face-thinning intensity in beautifying, will buff intensity by 5 level adjustment 8 grades, will face-thinning intensity by 5 level adjustment 3 grades, then can contain buffing intensity parameter information and face-thinning intensity parameter before the adjustment that the beautiful material corresponds in the parameter update information who obtains to and buff intensity parameter information and face-thinning intensity parameter after the adjustment. The parameter update information may specifically include a parameter name and a corresponding parameter value, for example, the parameter name is a buffing strength parameter, and the corresponding parameter value is 8 (indicating that the buffing strength is 8 levels).
The multimedia content edited by the material may be content shot by the user through the client in real time, or content pre-stored in the electronic device where the client is located.
In this disclosure, the SDK of the client may include a plurality of processing modules, where different processing modules are respectively used to execute related functions of different materials, and the plurality of processing modules include but are not limited to: the device comprises a filter processing module for executing the related functions of the filter such as displaying the filter, adjusting the filter and the like, a magic watch processing module for executing the related functions of the magic watch such as displaying magic expression, adjusting magic expression and the like, a beauty processing module for executing the related functions of beauty such as adding beauty, adjusting beauty effect and the like, and a sound mixing processing module for executing the related functions of sound mixing such as adding music, adjusting music and the like.
After receiving the parameter update information, determining which processing module of the plurality of processing modules corresponds to the current parameter update information according to the parameter update information, thereby determining a target processing module from the plurality of processing modules; the target processing module corresponds to the current parameter update information, in other words, the target processing module can execute its corresponding material-related function, including but not limited to material processing or modification, according to the current parameter update information.
As an exemplary manner, the parameter update information obtained in the above step may include a parameter name and a corresponding parameter value, so that the target processing module corresponding to the current parameter update information may be determined according to the parameter name included in the parameter update information.
If the number of the target processing modules determined in the previous step is more than two, the target processing module to which each item of information in the parameter updating information needs to be transmitted is further identified, and the information is transmitted based on the identification result.
In the method and the system, after the parameter updating information is received, only the parameter change information of the material currently operated by the user needs to be transmitted to the target processing module, and the unchanged parameter information and the parameter information of the material currently not operated by the user are not transmitted, so that less parameter information needs to be transmitted each time the user performs material configuration operation.
Through the embodiment, when a user modifies a material for editing multimedia content through a client, the corresponding parameter updating information can be acquired, the processing module corresponding to the current parameter updating information is judged, so that the target processing module is determined, and the current parameter updating information is sent to the target function module, so that the target function module adjusts the material corresponding to the target function module according to the current parameter updating information. For example, when the parameters related to the magic expression are updated, it can be determined that the current parameter update information corresponds to the magic watch processing module, and the current parameter update information is sent to the magic watch processing module, so that the magic watch processing module changes the magic expression according to the updated magic watch related parameter information. The modified parameter information is only needed to be transmitted to the target processing module in the plurality of processing modules, so that the data transmission quantity is reduced to a great extent; moreover, because the information received by the target processing module is the parameter updating information, the target processing module does not need to judge whether the parameter changes after receiving the parameter information, thereby reducing the waste of execution resources of the target processing module; meanwhile, only the target processing module in the plurality of processing modules receives the parameter updating information and executes the processing of the corresponding material, thereby reducing the waste of execution resources of other processing modules.
As an exemplary embodiment, referring to fig. 3, the processing modules are modules in a software development kit of the client; the above specific implementation of determining the target processing module corresponding to the parameter update information may include:
determining a material to be adjusted according to the parameter updating information; and querying the plurality of processing modules of the software development kit of the client, and determining the processing module corresponding to the material to be adjusted as the target processing module. Optionally, an agreed relationship between the materials and the processing modules may be preconfigured, the software development kit of the client is queried according to the agreed relationship, and the processing module corresponding to the material to be adjusted in the plurality of processing modules is determined as the target processing module; the agreed relationship comprises the corresponding relationship between at least one material and the corresponding processing module.
Generally, different materials correspond to different parameters, different parameters have different parameter names (or other information for distinguishing the parameters), based on which, an adjusted parameter can be determined from the parameter update information, and then the material corresponding to the adjusted parameter is determined as the material to be adjusted.
As an embodiment, the parameter update information may specifically include a parameter name and a corresponding parameter value, so that it may be determined, according to the parameter name included in the parameter update information, which material (i.e., the material to be adjusted) is used for adjusting the current parameter update information, and further, a processing module for executing a function related to the material to be adjusted is obtained from the SDK of the client as the target processing module.
For example: the user modifies the filter, modifies the filter a into the filter B, and the obtained parameter update information may include parameter names and corresponding parameter values, the parameter names are filter identification parameters, and the parameter values before and after modification are a and B, respectively. The current parameter updating information can be determined to be the parameter information for adjusting the filter according to the filter identification parameter contained in the parameter updating information, and then a processing module for executing the related function of the filter component is obtained from the SDK of the client as the target processing module.
As another embodiment, the parameter update information obtained in the above step may include, in addition to the parameter name and the corresponding parameter value, corresponding material identification information, and further, the material to be adjusted may be determined according to the material identification information included in the parameter update information, and then a processing module that executes a function related to the material to be adjusted is obtained from the SDK of the client as the target processing module.
For example: the user has adjusted mill skin intensity and thin face intensity in beauty, will grind skin intensity and adjust 8 grades from 5 grades, adjust 3 grades from 5 grades with thin face intensity, then can contain material identification information, parameter name and corresponding parameter value in the parameter update information who obtains, material identification information is the identification information that beauty subassembly corresponds, the parameter name is mill skin intensity parameter and thin face intensity parameter, the parameter value that mill skin intensity parameter corresponds before and after the modification is 5 and 8 respectively, the parameter value that thin face intensity parameter corresponds before and after the modification is 5 and 3 respectively. The current parameter updating information can be determined to be the parameter information for adjusting the beauty effect according to the beauty identification information contained in the parameter updating information, and then the processing module for executing the related function of the beauty component is obtained from the SDK of the client as the target processing module.
As an exemplary embodiment, the method further comprises:
acquiring a material obtained after the target processing module adjusts the material to be adjusted according to the parameter updating information; and processing the current multimedia content to be edited of the client according to the adjusted material, wherein the current multimedia content to be edited is the multimedia content currently acted on by the material to be adjusted.
As described above, the current multimedia content to be edited may be a content shot by a user in real time through a client, or may be a content pre-stored in an electronic device where the client is located; specific forms of the multimedia content to be edited currently include, but are not limited to, recorded video, live video, images, audio, and the like.
Based on the embodiment, because the amount of the parameter information transmitted to the target processing module is smaller than that in the traditional mode, the target processing module can receive the parameter updating information more quickly, adjust the material to be adjusted more timely, and act the material adjusted by the target processing module on the current multimedia content to be edited of the client, so that a user of the client can view the content editing effect corresponding to the material configuration operation more timely and intuitively, and the response timeliness of the current material configuration operation is improved.
As an exemplary embodiment, referring to fig. 4, the above-mentioned specific implementation of transmitting the parameter update information to the target processing module may include:
storing the parameter updating information into a target object file; the target object file is a dynamic link library file corresponding to the target processing module; and transmitting the parameter updating information to the target processing module through the target object file.
As an example, the target object file may be a dynamic link library file in the client SDK, a plurality of processing modules in the client SDK are respectively used for executing functions related to a plurality of materials, and each processing module may obtain, from each corresponding dynamic link library file, related information for executing the corresponding material, including parameter update information corresponding to the material.
The dynamic link library file corresponding to each processing module may be a file in a dll format, and the dll file cannot be directly executed and contains some resources, executable codes and the like. In the present disclosure, parameter update information related to the material to be adjusted may be stored in the dll format target object file, and the target processing module corresponding to the material to be adjusted may read the parameter update information stored in the dll format target object file, so as to adjust the material to be adjusted according to the parameter update information.
It can be understood that, taking the client software running on the android system as an example, the target object file different from the android system creates only one Application class object for the client software. In other words, according to the embodiment, the program of the android system does not need to be modified, and the implementation is easy.
According to the embodiment, the corresponding program interfaces are respectively set for the plurality of processing modules which are respectively used for executing the related functions of the plurality of materials in the client SDK, the corresponding dynamic link library files are accessed through the program interfaces, the current parameter updating information can be directionally transmitted to the corresponding target processing module, the parameter information does not need to be synchronously transmitted to other processing modules, the data transmission quantity is reduced, and meanwhile, the response timeliness of the current material configuration operation of a user is improved.
As an exemplary embodiment, referring to fig. 5, a specific implementation manner of transmitting the parameter update information to the target processing module through the target object file may include:
acquiring the type of the current multimedia content to be edited of the client; the current multimedia content to be edited is the multimedia content currently acted on by the material to be adjusted;
if the type is a live type, transmitting the parameter updating information to the target processing module through a first transmission mode; in the first transmission mode, if the parameter updating information is detected to be stored in a target object file, sending a parameter updating message to the target processing module; and the target processing module receives the parameter updating message and acquires the parameter updating message from the target object file through the program interface.
As an exemplary embodiment, if the type is a non-live type, transmitting the parameter update information to the target processing module through a second transmission mode; and in the second transmission mode, the target processing module monitors whether the information in the target object file changes according to a preset time period, and if the information in the target object file changes, the parameter updating information is acquired from the target object file through the program interface.
According to the embodiment, a user shoots or opens the multimedia content to be edited through the client, and transmits the current parameter updating information to the target processing module by adopting a corresponding transmission mode according to the type of the current multimedia content to be edited in the process of calling out the material for editing the multimedia content to perform material configuration operation, and transmits the acquired parameter updating information to the target processing module in real time for the content editing scene of the live type, so that the effective editing of the live content can be ensured; for the non-live content editing scene, the acquired parameter updating information can be periodically transmitted to the target processing module in real time, so that the waste of execution resources of the processing module can be further reduced.
For a non-live content editing scene, periodically transmitting acquired parameter updating information to a target processing module in real time, so that the parameter updating information transmitted to the target processing module may include updating information of a plurality of parameters, and after the target processing module receives the updating information of the plurality of parameters, if a material is adjusted according to the updating information of the plurality of parameters, the problem that the material changes at a client and the material configuration operation of a user does not correspond may occur. As an exemplary embodiment, for the problem, the parameter update information further includes update time information corresponding to each parameter, and the target processing module may determine, according to the update time information corresponding to each parameter, a sequence corresponding to the update information of the plurality of parameters, where an update time corresponding to an update information of a parameter sequenced before is earlier than or earlier than an update time corresponding to an update information of a parameter sequenced after; and then the target processing module sequentially adopts the update information of each parameter in the update information of the parameters to adjust the material to be adjusted according to the sequence.
Through this embodiment, can guarantee from this that the material changes at the client and corresponds with user's material configuration operation, for example the user is to the function of beautifying, has adjusted the buffing intensity earlier, and the intensity of will buffing is adjusted to 8 grades from 5 grades, has adjusted thin face intensity afterwards, and thin face intensity is adjusted to 3 grades from 5 grades. After the beauty processing module in the client SDK receives the corresponding parameter updating information, the parameter updating information corresponding to the buffing parameters and the face thinning parameters is sequenced according to the updating time, the parameter updating information corresponding to the buffing parameters is sequenced in the front, the beauty function is adjusted according to the parameter updating information corresponding to the buffing parameters, and then the beauty function is adjusted according to the parameter updating information corresponding to the face thinning parameters, so that the beauty material processing condition is consistent with the operation sequence, and the error of material processing can be prevented.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps of the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
Fig. 6 is a block diagram illustrating a material processing apparatus 600 of the server according to an exemplary embodiment. Referring to fig. 6, the apparatus 600 includes:
a parameter update acquisition unit 601 configured to perform a receiving material configuration operation, and acquire parameter update information triggered by the material configuration operation; the material is a component which is contained in the client and used for editing the multimedia content;
a module determining unit 602 configured to execute determining a target processing module corresponding to the parameter update information; the target processing module is at least one of a plurality of processing modules, and each processing module in the plurality of processing modules is respectively used for executing related functions of different materials;
a parameter transmission unit 603 configured to perform transmission of the parameter update information to the target processing module; and the target processing module is used for adjusting the corresponding material according to the parameter updating information after receiving the parameter updating information.
As an exemplary embodiment, the plurality of processing modules are modules in a software development kit of the client; the module determining unit 602 is specifically configured to perform:
determining a material to be adjusted according to the parameter updating information;
and querying the plurality of processing modules of the software development kit of the client, and determining the processing module corresponding to the material to be adjusted as the target processing module.
As an exemplary embodiment, the apparatus 600 further comprises:
and the content editing unit is configured to execute the steps of acquiring the material obtained by adjusting the material to be adjusted by the target processing module according to the parameter updating information, and processing the current multimedia content to be edited according to the adjusted material.
As an exemplary embodiment, the parameter transmitting unit 603 is specifically configured to perform:
storing the parameter updating information into a target object file; the target object file is a dynamic link library file corresponding to the target processing module; the target processing module is configured with a program interface for reading information in the target object file;
and transmitting the parameter updating information to the target processing module through the target object file.
As an exemplary embodiment, the parameter transmitting unit 603 is further configured to perform:
acquiring the type of the current multimedia content to be edited; the current multimedia content to be edited is the multimedia content currently acted on by the material to be adjusted;
if the type is a live type, transmitting the parameter updating information to the target processing module through a first transmission mode;
in the first transmission mode, if the parameter updating information is detected to be stored in a target object file, sending a parameter updating message to the target processing module; and the target processing module receives the parameter updating message and acquires the parameter updating message from the target object file through the program interface.
As an exemplary embodiment, the parameter transmitting unit 603 is further configured to perform:
if the type is a non-live type, transmitting the parameter updating information to the target processing module through a second transmission mode;
and in the second transmission mode, the target processing module monitors whether the information in the target object file changes according to a preset time period, and if the information in the target object file changes, the parameter updating information is acquired from the target object file through the program interface.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an apparatus 800 for data processing in accordance with an example embodiment. For example, the device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so forth.
Referring to fig. 7, device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communications component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
In an exemplary embodiment, the device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), field programmable gate arrays (FP7A), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. A method for processing material, comprising:
receiving material configuration operation, and acquiring parameter updating information triggered by the material configuration operation; the material is a component which is contained in the client and used for editing the multimedia content;
determining a target processing module corresponding to the parameter updating information; the target processing module is at least one of a plurality of processing modules, and each processing module in the plurality of processing modules is respectively used for executing related functions of different materials;
transmitting the parameter update information to the target processing module; and the target processing module is used for adjusting the corresponding material according to the parameter updating information after receiving the parameter updating information.
2. The method of claim 1, wherein the plurality of processing modules are modules in a software development kit of the client; the determining of the target processing module corresponding to the parameter updating information includes:
determining a material to be adjusted according to the parameter updating information;
and querying the plurality of processing modules of the software development kit of the client, and determining the processing module corresponding to the material to be adjusted as the target processing module.
3. The method of claim 2, further comprising:
acquiring a material obtained after the target processing module adjusts the material to be adjusted according to the parameter updating information;
and processing the current multimedia content to be edited of the client according to the adjusted material.
4. The method of claim 1, wherein transmitting parameter update information to the target processing module comprises:
storing the parameter updating information into a target object file; the target object file is a dynamic link library file corresponding to the target processing module;
and transmitting the parameter updating information to the target processing module through the target object file.
5. The method of claim 4, wherein transmitting the parameter update information to the target processing module via the target object file comprises:
acquiring the type of the current multimedia content to be edited; the current multimedia content to be edited is the multimedia content currently acted on by the material to be adjusted;
if the type is a live type, transmitting the parameter updating information to the target processing module through a first transmission mode;
in the first transmission mode, if the parameter updating information is detected to be stored in a target object file, sending a parameter updating message to the target processing module; and the target processing module receives the parameter updating message and acquires the parameter updating message from the target object file through a preset program interface.
6. The method of claim 5, further comprising:
if the type is a non-live type, transmitting the parameter updating information to the target processing module through a second transmission mode;
and in the second transmission mode, the target processing module monitors whether the information in the target object file changes according to a preset time period, and if the information in the target object file changes, the parameter updating information is acquired from the target object file through a preset program interface.
7. A material processing apparatus, comprising:
the device comprises a parameter updating and acquiring unit, a parameter updating and acquiring unit and a parameter updating and acquiring unit, wherein the parameter updating and acquiring unit is configured to execute material configuration receiving operation and acquire parameter updating information triggered by the material configuration operation; the material is a component which is contained in the client and used for editing the multimedia content;
a module determination unit configured to execute determining a target processing module corresponding to the parameter update information; the target processing module is at least one of a plurality of processing modules, and each processing module in the plurality of processing modules is respectively used for executing related functions of different materials;
a parameter transmission unit configured to perform transmission of the parameter update information to the target processing module; and the target processing module is used for adjusting the corresponding material according to the parameter updating information after receiving the parameter updating information.
8. The apparatus of claim 7, wherein the plurality of processing modules are modules in a software development kit of the client; the module determination unit is specifically configured to perform:
determining a material to be adjusted according to the parameter updating information;
and querying the plurality of processing modules of the software development kit of the client, and determining the processing module corresponding to the material to be adjusted as the target processing module.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the material processing method of any one of claims 1 to 6.
10. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the material processing method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011102560.XA CN112230982A (en) | 2020-10-15 | 2020-10-15 | Material processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011102560.XA CN112230982A (en) | 2020-10-15 | 2020-10-15 | Material processing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112230982A true CN112230982A (en) | 2021-01-15 |
Family
ID=74111847
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011102560.XA Pending CN112230982A (en) | 2020-10-15 | 2020-10-15 | Material processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112230982A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114501079A (en) * | 2022-01-29 | 2022-05-13 | 京东方科技集团股份有限公司 | Method for processing multimedia data and related device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106034210A (en) * | 2015-03-09 | 2016-10-19 | 华为技术有限公司 | Image editing method and image editing device |
CN109242767A (en) * | 2018-09-28 | 2019-01-18 | 维沃移动通信(杭州)有限公司 | A kind of method and terminal device obtaining beauty parameter |
CN109697060A (en) * | 2018-12-29 | 2019-04-30 | 广州华多网络科技有限公司 | Special video effect software and its generation method, device, equipment and storage medium |
CN110035321A (en) * | 2019-04-11 | 2019-07-19 | 北京大生在线科技有限公司 | A kind of trailing and system of online real-time video |
CN110300165A (en) * | 2019-06-26 | 2019-10-01 | 北京字节跳动网络技术有限公司 | A kind of call method of function program, device, equipment and storage medium |
CN110991369A (en) * | 2019-12-09 | 2020-04-10 | Oppo广东移动通信有限公司 | Image data processing method and related device |
CN111309228A (en) * | 2020-02-12 | 2020-06-19 | 北京字节跳动网络技术有限公司 | Multimedia processing method and device and electronic equipment |
-
2020
- 2020-10-15 CN CN202011102560.XA patent/CN112230982A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106034210A (en) * | 2015-03-09 | 2016-10-19 | 华为技术有限公司 | Image editing method and image editing device |
CN109242767A (en) * | 2018-09-28 | 2019-01-18 | 维沃移动通信(杭州)有限公司 | A kind of method and terminal device obtaining beauty parameter |
CN109697060A (en) * | 2018-12-29 | 2019-04-30 | 广州华多网络科技有限公司 | Special video effect software and its generation method, device, equipment and storage medium |
CN110035321A (en) * | 2019-04-11 | 2019-07-19 | 北京大生在线科技有限公司 | A kind of trailing and system of online real-time video |
CN110300165A (en) * | 2019-06-26 | 2019-10-01 | 北京字节跳动网络技术有限公司 | A kind of call method of function program, device, equipment and storage medium |
CN110991369A (en) * | 2019-12-09 | 2020-04-10 | Oppo广东移动通信有限公司 | Image data processing method and related device |
CN111309228A (en) * | 2020-02-12 | 2020-06-19 | 北京字节跳动网络技术有限公司 | Multimedia processing method and device and electronic equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114501079A (en) * | 2022-01-29 | 2022-05-13 | 京东方科技集团股份有限公司 | Method for processing multimedia data and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220248083A1 (en) | Method and apparatus for video playing | |
CN108804179B (en) | Method, device, terminal and storage medium for displaying notification bar message | |
CN105427161A (en) | Monetary exchange rate exchange method and device | |
CN105242837B (en) | Five application page acquisition methods and terminal | |
CN105511739A (en) | Message prompting method and device | |
CN105657690A (en) | Method and device for processing mobile terminal setting information | |
CN108629814B (en) | Camera adjusting method and device | |
CN106933111B (en) | Method and device for controlling equipment | |
CN106034214A (en) | Video data recording method and apparatus thereof | |
CN105786561B (en) | Method and device for calling process | |
CN112230982A (en) | Material processing method and device, electronic equipment and storage medium | |
CN108733448B (en) | Theme processing method, device, equipment, system and storage medium | |
CN104112460B (en) | Method and device for playing audio data | |
CN107885464B (en) | Data storage method, device and computer readable storage medium | |
CN105208107A (en) | File downloading method, device, intelligent terminal and downloading device | |
CN112651012B (en) | Information processing method and device | |
CN114268802A (en) | Virtual space display method and device, electronic equipment and storage medium | |
CN110457084B (en) | Loading method and device | |
CN107360315B (en) | Information display method and device | |
CN107122286B (en) | Method and device for counting event information | |
CN106484261B (en) | Information acquisition method and device, information transmission method and device, and terminal | |
CN110784721A (en) | Picture data compression method and device, electronic equipment and storage medium | |
CN110798721A (en) | Episode management method and device and electronic equipment | |
CN107784224B (en) | Permission adaptation method and device and electronic equipment | |
CN115866129B (en) | Application scene identification method, device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |