CN110221822A - Merging method, device, electronic equipment and the computer readable storage medium of special efficacy - Google Patents
Merging method, device, electronic equipment and the computer readable storage medium of special efficacy Download PDFInfo
- Publication number
- CN110221822A CN110221822A CN201910459429.XA CN201910459429A CN110221822A CN 110221822 A CN110221822 A CN 110221822A CN 201910459429 A CN201910459429 A CN 201910459429A CN 110221822 A CN110221822 A CN 110221822A
- Authority
- CN
- China
- Prior art keywords
- special efficacy
- multiple special
- merging
- efficacy
- efficacys
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present disclosure discloses a kind of merging method of special efficacy, device, electronic equipment and computer readable storage mediums.Wherein the merging method of the special efficacy includes: that the importing received to multiple special efficacys instructs, wherein each special efficacy is the combination of the processing operation carried out to image;The multiple special efficacy is obtained from the memory space for importing instruction;The multiple special efficacy is ranked up according to priority;Judge whether the multiple special efficacy meets merging condition according to multiple special efficacys after the sequence;In response to determining that the multiple special efficacy meets merging condition, the multiple special efficacy is merged to generate and merge special efficacy packet.By the above method, solves the technical problem more than the special efficacy backpack body product excessive and render times in the prior art including multiple special efficacys.
Description
Technical field
This disclosure relates to field of image processing more particularly to a kind of merging method of special efficacy, device, electronic equipment and calculating
Machine readable storage medium storing program for executing.
Background technique
With the development of computer technology, the application range of intelligent terminal has obtained extensive raising, such as can pass through
Intelligent terminal listens to music, plays game, chats on line and take pictures.For the shooting technology of intelligent terminal, pixel of taking pictures
Have reached ten million pixel or more, the effect of taking pictures of clarity with higher and the mm professional camera special that matches in excellence or beauty.
At present when being taken pictures using intelligent terminal, built-in software realization tradition of taking pictures when factory not only can be used
The effect of taking pictures of function can also realize tool by downloading application program (Application, referred to as are as follows: APP) from network-side
There is the effect of taking pictures of additional function, such as the APP of half-light detection, the U.S. functions such as face camera and super pixel may be implemented.
Current image special effect can only produce once one when production, when making multiple special efficacys, need to establish more
A project makes respectively;And overlay order in application between multiple special efficacys or whether can be superimposed uncertain, multiple special efficacys have
The resource that might have overlapping, brings resource redundancy, increases the resource of consumption, brings certain problem.
Summary of the invention
In a first aspect, the embodiment of the present disclosure provides a kind of merging method of special efficacy, comprising:
It receives the importing to multiple special efficacys to instruct, wherein each special efficacy is the combination for the processing operation for carrying out image;
The multiple special efficacy is obtained from the memory space for importing instruction;
The multiple special efficacy is ranked up according to priority;
Judge whether the multiple special efficacy meets merging condition according to multiple special efficacys after the sequence;
In response to determining that the multiple special efficacy meets merging condition, the multiple special efficacy is merged to generate merging special efficacy
Packet.
Further, described be ranked up the multiple special efficacy according to priority includes:
It obtains and renders priority in each of the multiple special efficacy, the rendering priority definitions wash with watercolours of the special efficacy
Dye sequence;
The multiple special efficacy is arranged from high to low according to the rendering priority, wherein the special efficacy elder generation that rendering priority is high
It is rendered.
Further, multiple special efficacys according to after the sequence judge whether the multiple special efficacy meets merging item
Part, comprising:
Multiple special efficacys after judging the sequence whether be same type special efficacy.
Further, described in response to determining that the multiple special efficacy meets merging condition, the multiple special efficacy is closed
And merge special efficacy packet to generate, comprising:
In response to determining that the multiple special efficacy meets merging condition, resource duplicate in the multiple special efficacy is merged into one
Similar processing operation continuous in the multiple special efficacy is merged into a processing operation by a resource, will be in the multiple special efficacy
Repeated events merge into an event, with generate merge special efficacy packet resource, processing operation and event.
Further, the method also includes:
In response to determining not meeting merging condition, multiple special efficacys after sequence are divided into multiple special efficacys according to putting in order
Group;
Judge whether the special efficacy in each of the multiple special efficacy group meets merging condition;
Special efficacy in the special efficacy group for meeting merging condition is merged to generate merging special efficacy.
Further, described in response to determining not meeting merging condition, by multiple special efficacys after sequence according to putting in order
It is divided into multiple special efficacy groups, comprising:
In response to determining not meeting merging condition, then the type of multiple special efficacys after judging the sequence;
The continuous and identical special efficacy of type it will be divided into a special efficacy group in putting in order.
Further, described after importing the multiple special efficacy of memory space acquisition of instruction, further includes:
The multiple special efficacy of preview in a display device;
The multiple special efficacy is zoomed in and out according to the size of its target object, wherein special efficacy rendering is in the display
In device on shown target object.
Second aspect, the embodiment of the present disclosure provide a kind of merging device of special efficacy, comprising:
Import command reception module, for receives the importing to multiple special efficacys instruction, wherein each special efficacy for image into
The combination of capable processing operation;
Special efficacy obtains module, for obtaining the multiple special efficacy from the memory space for importing instruction;
Sorting module, for the multiple special efficacy to be ranked up according to priority;
Condition judgment module, for judging whether the multiple special efficacy meets merging according to multiple special efficacys after the sequence
Condition;
Merging module, in response to determining that the multiple special efficacy meets merging condition, by the multiple special efficacy merge with
It generates and merges special efficacy packet.
Further, the sorting module further include:
It renders priority and obtains module, render priority in each of the multiple special efficacy for obtaining, the rendering
The priority definitions rendering order of the special efficacy;
Module is arranged, for arranging the multiple special efficacy from high to low according to the rendering priority, wherein rendering excellent
The high special efficacy of first grade is first rendered.
Further, the condition judgment module, further includes:
Type judging module, for judge multiple special efficacys after the sequence whether be same type special efficacy.
Further, the merging module, further includes:
Merge submodule, it, will weight in the multiple special efficacy for meeting merging condition in response to the multiple special efficacy of judgement
Multiple resource merges into a resource, and similar processing operation continuous in the multiple special efficacy is merged into a processing operation,
Repeated events in the multiple special efficacy are merged into an event, to generate the resource, processing operation and the thing that merge special efficacy packet
Part.
Further, described device, further includes:
Special efficacy grouping module, for not meeting merging condition in response to judgement, by multiple special efficacys after sequence according to arrangement
Sequence is divided into multiple special efficacy groups;
Special efficacy group condition judgment module, for judging whether the special efficacy in each of the multiple special efficacy group meets conjunction
And condition;
Merging module in group, for merging the special efficacy in the special efficacy group for meeting merging condition to generate merging special efficacy.
Further, the special efficacy grouping module, is also used to:
In response to determining not meeting merging condition, then the type of multiple special efficacys after judging the sequence;
The continuous and identical special efficacy of type it will be divided into a special efficacy group in putting in order.
Further, described device, further includes:
Previewing module, in a display device the multiple special efficacy of preview;
Zoom module, for zooming in and out the multiple special efficacy according to the size of its target object, wherein the special efficacy
It renders on shown target object in the display device.
The third aspect, the embodiment of the present disclosure provide a kind of electronic equipment, comprising: at least one processor;And
The memory being connect at least one described processor communication;Wherein, the memory be stored with can by it is described extremely
The instruction that a few processor executes, described instruction are executed by least one described processor, so that at least one described processing
Device is able to carry out the merging method of any special efficacy in aforementioned first aspect.
Fourth aspect, the embodiment of the present disclosure provide a kind of non-transient computer readable storage medium, which is characterized in that this is non-
Transitory computer readable storage medium stores computer instruction, and the computer instruction is for making computer execute aforementioned first aspect
In any special efficacy merging method.
The present disclosure discloses a kind of merging method of special efficacy, device, electronic equipment and computer readable storage mediums.Wherein
The merging method of the special efficacy includes: that the importing received to multiple special efficacys instructs, wherein each special efficacy is the processing carried out to image
The combination of operation;The multiple special efficacy is obtained from the memory space for importing instruction;By the multiple special efficacy according to
Priority is ranked up;Judge whether the multiple special efficacy meets merging condition according to multiple special efficacys after the sequence;Response
Meet merging condition in the multiple special efficacy of judgement, the multiple special efficacy is merged to generate and merge special efficacy packet.Pass through above-mentioned side
Method solves the technical problem more than the special efficacy backpack body product excessive and render times in the prior art including multiple special efficacys.
Above description is only the general introduction of disclosed technique scheme, in order to better understand the technological means of the disclosure, and
It can be implemented in accordance with the contents of the specification, and to allow the above and other objects, features and advantages of the disclosure can be brighter
Show understandable, it is special below to lift preferred embodiment, and cooperate attached drawing, detailed description are as follows.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this public affairs
The some embodiments opened for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the merging method embodiment for the special efficacy that the disclosure provides;
Fig. 2 is the flow chart of the further merging method embodiment for the special efficacy that the disclosure provides
Fig. 3 is the structural schematic diagram of the embodiment of the merging device for the special efficacy that the embodiment of the present disclosure provides;
Fig. 4 is the structural schematic diagram of the electronic equipment provided according to the embodiment of the present disclosure.
Specific embodiment
Illustrate embodiment of the present disclosure below by way of specific specific example, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the disclosure easily.Obviously, described embodiment is only the disclosure
A part of the embodiment, instead of all the embodiments.The disclosure can also be subject to reality by way of a different and different embodiment
It applies or applies, the various details in this specification can also be based on different viewpoints and application, in the spirit without departing from the disclosure
Lower carry out various modifications or alterations.It should be noted that in the absence of conflict, the feature in following embodiment and embodiment can
To be combined with each other.Based on the embodiment in the disclosure, those of ordinary skill in the art are without creative efforts
Every other embodiment obtained belongs to the range of disclosure protection.
It should be noted that the various aspects of embodiment within the scope of the appended claims are described below.Ying Xian
And be clear to, aspect described herein can be embodied in extensive diversified forms, and any specific structure described herein
And/or function is only illustrative.Based on the disclosure, it will be understood by one of ordinary skill in the art that one described herein
Aspect can be independently implemented with any other aspect, and can combine the two or both in these aspects or more in various ways.
For example, carry out facilities and equipments in terms of any number set forth herein can be used and/or practice method.In addition, can make
With other than one or more of aspect set forth herein other structures and/or it is functional implement this equipment and/or
Practice the method.
It should also be noted that, diagram provided in following embodiment only illustrates the basic structure of the disclosure in a schematic way
Think, component count, shape and the size when only display is with component related in the disclosure rather than according to actual implementation in schema are drawn
System, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel can also
It can be increasingly complex.
In addition, in the following description, specific details are provided for a thorough understanding of the examples.However, fields
The skilled person will understand that the aspect can be practiced without these specific details.
Fig. 1 is the flow chart of the merging method embodiment for the special efficacy that the embodiment of the present disclosure provides, provided in this embodiment to be somebody's turn to do
The merging method of special efficacy can be executed by the merging device of a special efficacy, and the merging device of the special efficacy can be implemented as software, or
Person is embodied as the combination of software and hardware, and the merging device of the special efficacy can integrate certain being arranged in the combination system of special efficacy and set
In standby, such as in the merging terminal device for merging server or special efficacy of special efficacy.As shown in Figure 1, this method includes following step
It is rapid:
Step S101 receives the importing to multiple special efficacys and instructs, wherein each special efficacy is the processing operation carried out to image
Combination;
In the disclosure, spy is shown in the display device of the merging server of special efficacy or the merging terminal device of special efficacy
The importing man-machine interface of effect imports instruction to receive user by the special efficacy that the man-machine interface inputs.Wherein the special efficacy is
The special efficacy made in advance imports multiple special efficacys in one project, to make a combination special efficacy.Each described is special
Effect is all the combination of a series of processing operation carried out to image, includes one or more in the combination of the processing operation
Processing operation.Such as typical makeups special efficacy, wherein may include that mill skin brightens special efficacy, wherein mill skin just includes to the people in image
Pixel in face image makes to be smoothed in various manners, and brightens, and is by the pixel in the facial image in image
Color is changed to promote the white bright degree of skin, therefore just includes at two kinds of smoothing processing and discoloration in such a special efficacy
Reason operation;Certain special efficacy may also only include a kind of processing operation, at this time with regard to only one in the combination of the processing operation
Processing operation, typical such as simple monochromatic filter, is exactly the color of filter on the color addition by whole image, makes image
The color of integral color deviation filter.
In the disclosure, the importing man-machine interface of the special efficacy typically can be a button, and user clicks the button
Later, the special efficacy that can be imported is shown.
It should be understood that the importing man-machine interface of above-mentioned special efficacy is not limited to above-mentioned button, can be any suitable man-machine
Population, details are not described herein.
As soon as it should be understood that the importing instruction of above-mentioned multiple special efficacys can be an instruction and be also possible to multiple instruction,
It is to say can be to import multiple special efficacys in an importing instruction, is also possible to instruct the multiple special efficacys of importing using multiple importings,
The relationship for importing instruction and special efficacy can be one-to-many, be also possible to one-to-one.
Step S102: the multiple special efficacy is obtained from the memory space for importing instruction;
In the disclosure, the memory space address imported in instruction including the multiple special efficacy.The memory space
It can be local memory space and be also possible to network storage space.Optionally, the memory space is local storage space, is used
Family can select the special efficacy for needing to import by man-machine interface, at this time when user chooses special efficacy, in the importing instruction of special efficacy
The routing information for just having brought special efficacy into merges server or special efficacy for what special efficacy imported into special efficacy by the routing information
In the union operation memory space for merging terminal device.Optionally, the memory space is network storage space, and user can lead to
Crossing man-machine interface selection or inputting needs the address of the network storage space of the special efficacy imported typically can be in man-machine friendship
Show that all special efficacys, the special efficacy are stored in the memory space in network in mutual interface, user passes through selection special efficacy
It indicates to need the special efficacy that imports, obtain the network storage address of the special efficacy automatically at this time and is added in importing instruction, or
Typically, input field can be shown in human-computer interaction interface, user, which can input, needs the network storage of the special efficacy imported empty
Between address, the address which drops in the merging server of special efficacy or the merging terminal device of special efficacy, which is added to, leads
Enter in instruction, later by import instruction by multiple special efficacys in network storage space imported into special efficacy merging server or
In the union operation memory space of the merging terminal device of special efficacy.
It is understood that the mode imported can be any mode, the mode of above-mentioned importing and the class of memory space
Type is only to illustrate, and does not constitute the limitation to the disclosure, details are not described herein.
Step S103: the multiple special efficacy is ranked up according to priority;
In the disclosure, described be ranked up the multiple special efficacy according to priority includes: to obtain the multiple special efficacy
In each of render priority, the rendering priority definitions rendering order of the special efficacy;The multiple special efficacy is pressed
It arranges according to the rendering priority, is first rendered wherein rendering the big special efficacy of priority from big to small.
In this step, after multiple special efficacys are imported into, the multiple special efficacy is ranked up according to priority, with shape
At rendering sequence.In the disclosure, a priority can be arranged to each special efficacy, wherein the value of priority is smaller, priority
Higher, the value of priority is bigger, and priority is lower.It is 2 that face mask specific effect priority, which such as can be set, and mill skin special efficacy priority is 1,
Big eye special efficacy priority is 3, then is formed by rendering sequence as mill skin special efficacy, face mask specific effect, big eye special efficacy, that is to say, that when this
When three special efficacys occur in one image simultaneously, mill skin processing first is carried out to image, mask processing is carried out later, finally carries out
Big eye processing.
Optionally, the priority of certain special efficacys in multiple special efficacys is identical, can be arranged at this time by setting
Sequentially come the rendering order that the identical special efficacy of priority is arranged, such as priority of big eye special efficacy is 3, the priority of U.S. pupil special efficacy
It is 3, the priority of long cilia special efficacy is also 3, if these three special efficacys occur in one image simultaneously, can pass through setting
It puts in order rendering order is arranged, as can be set and put in order as U.S. pupil special efficacy, big eye special efficacy, long cilia special efficacy
It puts in order, then in actually rendering, first carries out the rendering of U.S. pupil, carry out the rendering of big eye later, finally carry out long cilia
Rendering.
It should be understood that the priority and putting in order and can be arranged by man-machine interface or configuration file.
The priority described in a typical application is configured by protocol profile, some special efficacy is in entire Special Effect System
Priority uniquely determines, described to put in order the project column that can such as drag by man-machine interface to determine, Yong Hutong
Putting in order for special efficacy described in special efficacy is being combined to determine in the position for crossing the project column that dragging represents a certain special efficacy.For example, working as
User imports after face mask specific effect, mill skin special efficacy, big eye special efficacy, U.S. pupil special efficacy and long cilia special efficacy, in human-computer interaction interface
The project column of the middle above-mentioned special efficacy of display, user's dragging items column is to special efficacy carry out sequence arrangement later, such as the sequence after dragging
Are as follows: big eye special efficacy, mill skin special efficacy, face mask specific effect, long cilia special efficacy, U.S. pupil special efficacy, priority in systems is respectively as follows: 3,
1,2,3,3, then if both considering priority it is further contemplated that putting in order, the sequence that rendering connects be mill skin special efficacy, face mask specific effect,
Big eye special efficacy, long cilia special efficacy, U.S. pupil special efficacy are successively rendered in the order described above when actually rendering these special efficacys.
It should be understood that above-mentioned priority and putting in order to can according to need and being configured, however it is not limited to above-mentioned
It priority shown in example and puts in order, details are not described herein.
Step S104: judge whether the multiple special efficacy meets merging condition according to multiple special efficacys after the sequence;
In the disclosure, multiple special efficacys according to after the sequence judge whether the multiple special efficacy meets merging item
Part, comprising: multiple special efficacys after judging the sequence whether be same type special efficacy.In this embodiment, the merging condition
Identical for the type of special efficacy, typical special efficacy type can be makeups, paster, filter, deformation etc..It is typical by taking makeups as an example
Makeups can be whitening, mill skin, U.S. pupil, beauty, U.S. lip etc., the rendering sequence such as obtained in step s 103 are as follows: whitening,
Blush, mill skin, U.S. pupil, beauty, U.S. lip then judge that it meets then since these special efficacys belong to makeups special efficacy in this step
Merging condition.
It should be understood that other can also be used to merge condition, to realize different service logics, the conjunction in this step
And condition can be preset, details are not described herein.
Step S105: in response to determining that the multiple special efficacy meets merging condition, the multiple special efficacy is merged to generate
Merge special efficacy packet.
In the disclosure, described in response to determining that the multiple special efficacy meets merging condition, the multiple special efficacy is carried out
Merge to generate and merge special efficacy packet, comprising:, will be in the multiple special efficacy in response to determining that the multiple special efficacy meets merging condition
Duplicate resource merges into a resource, and similar processing operation continuous in the multiple special efficacy is merged into a processing behaviour
Make, the repeated events in the multiple special efficacy merged into an event, with generate merge the resource of special efficacy packet, processing operation and
Event.In this step, if it is determined that meeting merging condition, then the multiple special efficacy is merged into a merging special efficacy packet,
In if there is duplicate resource in the multiple special efficacy, multiple resources can be merged into a resource with reduce merge special efficacy packet
Volume colour atla can then be merged into one to reduce merging if used the same colour atla there are two filter in special efficacy packet
The volume of special efficacy packet afterwards;It, can be continuous similar by these if there is continuous similar processing operation in the multiple special efficacy
Processing operation merges into an operation, if whitening and blush are directed to the assignment operation to skin color, conventionally if pressed
Processing operation is carried out according to the sequence of rendering chain, then needs first to carry out face to carry out blush processing to face after whitening, and is closed
And when, the color after whitening and blush can be calculated, this is rendered twice and is merged into once, directly by final color assignment
To the pixel on face, other processing operations are similar, such as deformation process operation, multiple deformation can be precomputed one
Multiple deformation can be rendered merge into once, to reduce render times in this way by a final deformation quantity;If the multiple spy
Effect includes duplicate event, and the trigger event of such as U.S. pupil and beauty is that palm is brandished, then can be by the two trigger events
One is merged into, when detecting that palm is brandished, while triggering two special efficacys of U.S. pupil and beauty.
By above-mentioned merging, the volume for merging special efficacy packet can be made smaller, the render times of special efficacy packet are less to reach section
The purpose of resource-saving.
In another embodiment, multiple special efficacys after the sequence do not meet merging condition, at this point, the method is into one
Step includes:
Step S201: in response to determining not meeting merging condition, multiple special efficacys after sequence are divided into according to putting in order
Multiple special efficacy groups;
Step S202: judge whether the special efficacy in each of the multiple special efficacy group meets merging condition;
Step S203: the special efficacy in the special efficacy group for meeting merging condition is merged to generate merging special efficacy.
In this embodiment, described in response to determining not meeting merging condition, by multiple special efficacys after sequence according to arrangement
Sequence is divided into multiple special efficacy groups, comprising: in response to determining not meeting merging condition, then multiple special efficacys after judging the sequence
Type;The continuous and identical special efficacy of type it will be divided into a special efficacy group in putting in order.Typically, such as multiple spies after sorting
Effect are as follows: whitening, blush, big eye, thin face, mill skin, hairdressing, then since whitening, blush, mill skin, hairdressing are the special efficacy of makeups type,
And big eye and thin face are the special efficacy of deformation class, therefore the rendering chain can not merge, at this time can by above-mentioned rendering chain according to
It puts in order and is grouped again, the identical special efficacy of type is divided into one group according to putting in order, such as above-mentioned special efficacy can be divided into first
Group: whitening, blush, second group: big eye, thin face, third group: mill skin, hairdressing.Later in step S202, described three are judged
Whether the special efficacy in each of special efficacy group meets merging condition, and since first group is makeups special efficacy, second group is shape
Become special efficacy, third group is makeups special efficacy, therefore this three groups of special efficacys can merge in group, in special efficacy in step S203
The merging of special efficacy is carried out in the group of group, and is merged into three special efficacy packets.
In one embodiment, after the step S102, can with the following steps are included:
The multiple special efficacy of preview in a display device;
The multiple special efficacy is zoomed in and out according to the size of its target object, wherein special efficacy rendering is in the display
In device on shown target object.
In other words, after importing multiple special efficacys, can special efficacy described in preview in a display device, wherein the special efficacy
It can act in the template set in advance, the template is image, can be picture, video, can also be by the special efficacy
Directly rendering is in camera institute acquired image.In rendering when on image, the special efficacy can be according to its target object
Size zoom in and out, such as typical face mask specific effect, need to be rendered on face, then can be according to the big of the face in image
It is small that mask is zoomed in and out, to adapt to the size of face.
The present disclosure discloses a kind of merging method of special efficacy, device, electronic equipment and computer readable storage mediums.Wherein
The merging method of the special efficacy includes: that the importing received to multiple special efficacys instructs, wherein each special efficacy is the processing carried out to image
The combination of operation;The multiple special efficacy is obtained from the memory space for importing instruction;By the multiple special efficacy according to
Priority is ranked up;Judge whether the multiple special efficacy meets merging condition according to multiple special efficacys after the sequence;Response
Meet merging condition in the multiple special efficacy of judgement, the multiple special efficacy is merged to generate and merge special efficacy packet.Pass through above-mentioned side
Method solves the technical problem more than the special efficacy backpack body product excessive and render times in the prior art including multiple special efficacys.
Hereinbefore, although describing each step in above method embodiment, this field skill according to above-mentioned sequence
Art personnel it should be clear that the step in the embodiment of the present disclosure not necessarily executes in the order described above, can also with inverted order, it is parallel,
Other sequences such as intersection execute, moreover, those skilled in the art can also add other steps on the basis of above-mentioned steps
Suddenly, the mode of these obvious variants or equivalent replacement should also be included within the protection scope of the disclosure, and details are not described herein.
Fig. 3 is the structural schematic diagram of the merging Installation practice for the special efficacy that the embodiment of the present disclosure provides, as shown in figure 3, should
Device 300 includes: to import command reception module 301, special efficacy acquisition module 302, sorting module 303,304 and of condition judgment module
Merging module 305.Wherein,
Command reception module 301 is imported, for receiving the instruction of the importing to multiple special efficacys, wherein each special efficacy is to image
The combination of the processing operation of progress;
Special efficacy obtains module 302, for obtaining the multiple special efficacy from the memory space for importing instruction;
Sorting module 303, for the multiple special efficacy to be ranked up according to priority;
Condition judgment module 304, for judging whether the multiple special efficacy meets according to multiple special efficacys after the sequence
Merging condition;
Merging module 305, in response to determining that the multiple special efficacy meets merging condition, the multiple special efficacy to be merged
Merge special efficacy packet to generate.
Further, the sorting module 303 further include:
It renders priority and obtains module, render priority in each of the multiple special efficacy for obtaining, the rendering
The priority definitions rendering order of the special efficacy;
Module is arranged, for arranging the multiple special efficacy from high to low according to the rendering priority, wherein rendering excellent
The high special efficacy of first grade is first rendered.
Further, the condition judgment module 304, further includes:
Type judging module, for judge multiple special efficacys after the sequence whether be same type special efficacy.
Further, the merging module 305, further includes:
Merge submodule, it, will weight in the multiple special efficacy for meeting merging condition in response to the multiple special efficacy of judgement
Multiple resource merges into a resource, and similar processing operation continuous in the multiple special efficacy is merged into a processing operation,
Repeated events in the multiple special efficacy are merged into an event, to generate the resource, processing operation and the thing that merge special efficacy packet
Part.
Further, described device 300, further includes:
Special efficacy grouping module, for not meeting merging condition in response to judgement, by multiple special efficacys after sequence according to arrangement
Sequence is divided into multiple special efficacy groups;
Special efficacy group condition judgment module, for judging whether the special efficacy in each of the multiple special efficacy group meets conjunction
And condition;
Merging module in group, for merging the special efficacy in the special efficacy group for meeting merging condition to generate merging special efficacy.
Further, the special efficacy grouping module, is also used to:
In response to determining not meeting merging condition, then the type of multiple special efficacys after judging the sequence;
The continuous and identical special efficacy of type it will be divided into a special efficacy group in putting in order.
Further, described device 300, further includes:
Previewing module, in a display device the multiple special efficacy of preview;
Zoom module, for zooming in and out the multiple special efficacy according to the size of its target object, wherein the special efficacy
It renders on shown target object in the display device.
The method that Fig. 3 shown device can execute Fig. 1 and embodiment illustrated in fig. 2, the part that the present embodiment is not described in detail,
It can refer to the related description to Fig. 1 and embodiment illustrated in fig. 2.The implementation procedure and technical effect of the technical solution referring to Fig. 1 and
Description in embodiment illustrated in fig. 2, details are not described herein.
Below with reference to Fig. 4, it illustrates the structural representations for the electronic equipment 400 for being suitable for being used to realize the embodiment of the present disclosure
Figure.Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect
Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle
Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 4
Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 4, electronic equipment 400 may include processing unit (such as central processing unit, graphics processor etc.)
401, random access can be loaded into according to the program being stored in read-only memory (ROM) 402 or from storage device 408
Program in memory (RAM) 403 and execute various movements appropriate and processing.In RAM 403, it is also stored with electronic equipment
Various programs and data needed for 400 operations.Processing unit 401, ROM 402 and RAM 403 pass through the phase each other of bus 404
Even.Input/output (I/O) interface 405 is also connected to bus 404.
In general, following device can connect to I/O interface 405: including such as touch screen, touch tablet, keyboard, mouse, figure
As the input unit 406 of sensor, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaking
The output device 407 of device, vibrator etc.;Storage device 408 including such as tape, hard disk etc.;And communication device 409.It is logical
T unit 409 can permit electronic equipment 400 and wirelessly or non-wirelessly be communicated with other equipment to exchange data.Although Fig. 4 shows
The electronic equipment 400 with various devices is gone out, it should be understood that being not required for implementing or having all dresses shown
It sets.It can alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 409, or from storage device 408
It is mounted, or is mounted from ROM 402.When the computer program is executed by processing unit 401, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity
When sub- equipment executes, so that the electronic equipment: receiving the importing to multiple special efficacys and instruct, wherein each special efficacy is to carry out to image
Processing operation combination;The multiple special efficacy is obtained from the memory space for importing instruction;By the multiple spy
Effect is ranked up according to priority;Judge whether the multiple special efficacy meets merging item according to multiple special efficacys after the sequence
Part;In response to determining that the multiple special efficacy meets merging condition, the multiple special efficacy is merged to generate and merge special efficacy packet.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (10)
1. a kind of merging method of special efficacy, comprising:
It receives the importing to multiple special efficacys to instruct, wherein each special efficacy is the combination for the processing operation for carrying out image;
The multiple special efficacy is obtained from the memory space for importing instruction;
The multiple special efficacy is ranked up according to priority;
Judge whether the multiple special efficacy meets merging condition according to multiple special efficacys after the sequence;
In response to determining that the multiple special efficacy meets merging condition, the multiple special efficacy is merged to generate and merge special efficacy packet.
2. the merging method of special efficacy as described in claim 1, wherein described arrange the multiple special efficacy according to priority
Sequence includes:
It obtains and renders priority in each of the multiple special efficacy, the rendering for rendering the priority definitions special efficacy is suitable
Sequence;
The multiple special efficacy is arranged from high to low according to the rendering priority, is first carried out wherein rendering the high special efficacy of priority
Rendering.
3. the merging method of special efficacy as described in claim 1, wherein multiple special efficacys according to after the sequence judge institute
State whether multiple special efficacys meet merging condition, comprising:
Multiple special efficacys after judging the sequence whether be same type special efficacy.
4. the merging method of special efficacy as described in claim 1, wherein described in response to determining that the multiple special efficacy meets merging
Condition merges the multiple special efficacy to generate and merge special efficacy packet, comprising:
In response to determining that the multiple special efficacy meets merging condition, resource duplicate in the multiple special efficacy is merged into a money
Similar processing operation continuous in the multiple special efficacy is merged into a processing operation, by the weight in the multiple special efficacy by source
Multiple event merges into an event, to generate the resource, processing operation and the event that merge special efficacy packet.
5. the merging method of special efficacy as described in claim 1, the method also includes:
In response to determining not meeting merging condition, multiple special efficacys after sequence are divided into multiple special efficacy groups according to putting in order;
Judge whether the special efficacy in each of the multiple special efficacy group meets merging condition;
Special efficacy in the special efficacy group for meeting merging condition is merged to generate merging special efficacy.
6. special efficacy merging method as described in claim 5, wherein it is described in response to determining not meeting merging condition, it will sort
Multiple special efficacys afterwards are divided into multiple special efficacy groups according to putting in order, comprising:
In response to determining not meeting merging condition, then the type of multiple special efficacys after judging the sequence;
The continuous and identical special efficacy of type it will be divided into a special efficacy group in putting in order.
7. special efficacy merging method as described in claim 1, wherein being obtained described from the memory space for importing instruction
After the multiple special efficacy, further includes:
The multiple special efficacy of preview in a display device;
The multiple special efficacy is zoomed in and out according to the size of its target object, wherein special efficacy rendering is in the display device
In on shown target object.
8. a kind of merging device of special efficacy, comprising:
Command reception module is imported, for receiving the instruction of the importing to multiple special efficacys, wherein each special efficacy is to carry out to image
The combination of processing operation;
Special efficacy obtains module, for obtaining the multiple special efficacy from the memory space for importing instruction;
Sorting module, for the multiple special efficacy to be ranked up according to priority;
Condition judgment module, for judging whether the multiple special efficacy meets merging item according to multiple special efficacys after the sequence
Part;
Merging module, in response to determining that the multiple special efficacy meets merging condition, the multiple special efficacy to be merged to generate
Merge special efficacy packet.
9. a kind of electronic equipment, comprising:
Memory, for storing computer-readable instruction;And
Processor, for running the computer-readable instruction, so that realizing according to claim 1-7 when the processor is run
Any one of described in special efficacy merging method.
10. a kind of non-transient computer readable storage medium, for storing computer-readable instruction, when the computer-readable finger
When order is executed by computer, so that the computer perform claim requires the merging method of special efficacy described in any one of 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910459429.XA CN110221822A (en) | 2019-05-29 | 2019-05-29 | Merging method, device, electronic equipment and the computer readable storage medium of special efficacy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910459429.XA CN110221822A (en) | 2019-05-29 | 2019-05-29 | Merging method, device, electronic equipment and the computer readable storage medium of special efficacy |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110221822A true CN110221822A (en) | 2019-09-10 |
Family
ID=67818849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910459429.XA Pending CN110221822A (en) | 2019-05-29 | 2019-05-29 | Merging method, device, electronic equipment and the computer readable storage medium of special efficacy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110221822A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110674341A (en) * | 2019-09-11 | 2020-01-10 | 广州华多网络科技有限公司 | Special effect processing method and device, electronic equipment and storage medium |
CN111510645A (en) * | 2020-04-27 | 2020-08-07 | 北京字节跳动网络技术有限公司 | Video processing method and device, computer readable medium and electronic equipment |
CN111617470A (en) * | 2020-06-04 | 2020-09-04 | 珠海金山网络游戏科技有限公司 | Rendering method and device for interface special effect |
CN113079414A (en) * | 2020-01-03 | 2021-07-06 | 腾讯科技(深圳)有限公司 | Video processing method, video processing device, computer-readable storage medium and computer equipment |
CN113450367A (en) * | 2020-03-24 | 2021-09-28 | 北京字节跳动网络技术有限公司 | Image processing method and device |
CN113515329A (en) * | 2020-04-09 | 2021-10-19 | 北京字节跳动网络技术有限公司 | Special effect attribute setting method and device |
CN113613066A (en) * | 2021-08-03 | 2021-11-05 | 天翼爱音乐文化科技有限公司 | Real-time video special effect rendering method, system, device and storage medium |
CN113778427A (en) * | 2020-06-09 | 2021-12-10 | 北京字节跳动网络技术有限公司 | Special effect manufacturing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070296734A1 (en) * | 2006-06-26 | 2007-12-27 | Frank Edughom Ekpar | Method and apparatus for creating and managing high impact special effects |
CN103853562A (en) * | 2014-03-26 | 2014-06-11 | 北京奇艺世纪科技有限公司 | Video frame rendering method and device |
CN104618797A (en) * | 2015-02-06 | 2015-05-13 | 腾讯科技(北京)有限公司 | Information processing method and device and client |
CN106296785A (en) * | 2016-08-09 | 2017-01-04 | 腾讯科技(深圳)有限公司 | A kind of picture rendering intent and picture rendering apparatus |
CN107273837A (en) * | 2017-06-07 | 2017-10-20 | 广州视源电子科技股份有限公司 | The method and system virtually made up |
-
2019
- 2019-05-29 CN CN201910459429.XA patent/CN110221822A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070296734A1 (en) * | 2006-06-26 | 2007-12-27 | Frank Edughom Ekpar | Method and apparatus for creating and managing high impact special effects |
CN103853562A (en) * | 2014-03-26 | 2014-06-11 | 北京奇艺世纪科技有限公司 | Video frame rendering method and device |
CN104618797A (en) * | 2015-02-06 | 2015-05-13 | 腾讯科技(北京)有限公司 | Information processing method and device and client |
CN106296785A (en) * | 2016-08-09 | 2017-01-04 | 腾讯科技(深圳)有限公司 | A kind of picture rendering intent and picture rendering apparatus |
CN107273837A (en) * | 2017-06-07 | 2017-10-20 | 广州视源电子科技股份有限公司 | The method and system virtually made up |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110674341A (en) * | 2019-09-11 | 2020-01-10 | 广州华多网络科技有限公司 | Special effect processing method and device, electronic equipment and storage medium |
CN113079414B (en) * | 2020-01-03 | 2023-04-25 | 腾讯科技(深圳)有限公司 | Video processing method, apparatus, computer readable storage medium and computer device |
CN113079414A (en) * | 2020-01-03 | 2021-07-06 | 腾讯科技(深圳)有限公司 | Video processing method, video processing device, computer-readable storage medium and computer equipment |
CN113450367A (en) * | 2020-03-24 | 2021-09-28 | 北京字节跳动网络技术有限公司 | Image processing method and device |
CN113515329B (en) * | 2020-04-09 | 2024-01-30 | 北京字节跳动网络技术有限公司 | Special effect attribute setting method and device |
CN113515329A (en) * | 2020-04-09 | 2021-10-19 | 北京字节跳动网络技术有限公司 | Special effect attribute setting method and device |
WO2021218325A1 (en) * | 2020-04-27 | 2021-11-04 | 北京字节跳动网络技术有限公司 | Video processing method and apparatus, and computer-readable medium and electronic device |
CN111510645B (en) * | 2020-04-27 | 2022-09-27 | 北京字节跳动网络技术有限公司 | Video processing method and device, computer readable medium and electronic equipment |
US11800043B2 (en) | 2020-04-27 | 2023-10-24 | Beijing Bytedance Network Technology Co., Ltd. | Video processing method and apparatus, and computer-readable medium and electronic device |
CN111510645A (en) * | 2020-04-27 | 2020-08-07 | 北京字节跳动网络技术有限公司 | Video processing method and device, computer readable medium and electronic equipment |
CN111617470A (en) * | 2020-06-04 | 2020-09-04 | 珠海金山网络游戏科技有限公司 | Rendering method and device for interface special effect |
CN111617470B (en) * | 2020-06-04 | 2023-09-26 | 珠海金山数字网络科技有限公司 | Interface special effect rendering method and device |
CN113778427A (en) * | 2020-06-09 | 2021-12-10 | 北京字节跳动网络技术有限公司 | Special effect manufacturing method and device |
CN113613066A (en) * | 2021-08-03 | 2021-11-05 | 天翼爱音乐文化科技有限公司 | Real-time video special effect rendering method, system, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110221822A (en) | Merging method, device, electronic equipment and the computer readable storage medium of special efficacy | |
CN108475184A (en) | Electronic equipment and its apply data display method | |
CN105353936B (en) | A kind of display methods and electronic equipment | |
CN110070496A (en) | Generation method, device and the hardware device of image special effect | |
CN109583385A (en) | Face image processing process, device, electronic equipment and computer storage medium | |
CN109753326A (en) | Processing method, device, equipment and machine readable media | |
CN109582310A (en) | Data processing method, device, electronic equipment and computer readable storage medium | |
CN110225246A (en) | Generation method, device, electronic equipment and the computer readable storage medium of event scripts | |
CN109726343A (en) | Image carousel method and device | |
CN108737739A (en) | A kind of preview screen acquisition method, preview screen harvester and electronic equipment | |
CN109151337A (en) | Recognition of face light compensation method, recognition of face light compensating apparatus and mobile terminal | |
CN110070551A (en) | Rendering method, device and the electronic equipment of video image | |
CN110362225A (en) | Touch screen sample frequency control method, device, medium and electronic equipment | |
JP2021517282A (en) | Network modules, allocation methods and devices, electronic devices and storage media | |
CN108038112A (en) | Document handling method, mobile terminal and computer-readable recording medium | |
CN110070592A (en) | Generation method, device and the hardware device of special efficacy packet | |
EP4343513A1 (en) | Information presentation method and apparatus, and electronic device and storage medium | |
CN110210501A (en) | Virtual objects generation method, electronic equipment and computer readable storage medium | |
CN110191356A (en) | Video reviewing method, device and electronic equipment | |
CN109471835A (en) | A kind of page display method of application program, device and storage medium | |
CN109788334A (en) | Barrage processing method, device, electronic equipment and computer readable storage medium | |
CN110457963A (en) | Display control method, device, mobile terminal and computer readable storage medium | |
CN110069974A (en) | Bloom image processing method, device and electronic equipment | |
CN110070515A (en) | Image composition method, device and computer readable storage medium | |
CN110069459A (en) | File monitor method, apparatus and electronic equipment |
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 |