The content of the invention
The present invention provides a kind of animation playing method and device, to realize that whole section of animation is broadcast using different broadcasting speeds
Put, improve the flexibility ratio that animation plays.
The first aspect of the invention is to provide a kind of animation playing method, including:
Instructed according to the division received, whole section of animation is divided at least two cross-talk animations, and be according to playing sequence
Each cross-talk cartoon setting sequence identification;
Obtain the broadcasting speed of each cross-talk animation;
According to the sequence identification, the broadcasting speed that each cross-talk animation got is respectively adopted correspondingly plays each cross-talk and moved
Draw.
Another aspect of the present invention is to provide a kind of moving-image playback device, including:
Division module, for according to the division instruction received, whole section of animation to be divided into at least two cross-talk animations, and pressing
It is each cross-talk cartoon setting sequence identification according to playing sequence;
Acquisition module, for obtaining the broadcasting speed of each cross-talk animation;
Playing module, for the broadcasting speed pair of each cross-talk animation got according to the sequence identification, to be respectively adopted
Each cross-talk animation should be played.
As shown from the above technical solution, the embodiment of the present invention by the whole section of animation by being divided into more cross-talk animations, so
The broadcasting speed of each cross-talk animation is obtained afterwards, is realized and is played each cross-talk animation using different broadcasting speeds, improves whole section of animation
The flexibility ratio and broadcasting diversity of broadcasting.
Embodiment
The technical scheme that various embodiments of the present invention provide is to realize that a complete animation can be adopted in playing process
Played out with different broadcasting speeds, to improve the flexibility of animation broadcasting.For example, the animation of a historical evolution
Demonstration, a usual historical process can be divided into different phase, and the event that each stage occurs is different, and primary and secondary is different, important hair
The content of exhibition stage demonstration need to be more detailed, and broadcasting speed is possible will be slower than insignificant developing stage broadcasting speed.Using
Technical scheme provided by the invention, can solve the demand of this kind of flash demo, play out in a flexible way, and then improve
The diversity that animation plays, it can also protrude the speech emphasis of demonstrator.To make the purpose of the embodiment of the present application, technical scheme and excellent
Point is clearer, below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out it is clear,
It is fully described by.
As shown in figure 1, the schematic flow sheet for the animation playing method that the embodiment of the present invention one provides.Described in the present embodiment one
The executive agent of method can be moving-image playback device.As shown in figure 1, the method described in the present embodiment one includes:
Step 101, according to the division instruction received, whole section of animation is divided at least two cross-talk animations, and according to broadcasting
It is each cross-talk cartoon setting sequence identification to put forward sequence.
Wherein, the whole section of animation refers to a complete animation, and moving-image playback device instructs according to the division received,
The animation of the completion is divided at least two cross-talk animations, in order to subsequently play each cross-talk animation using different speed.
Step 102, the broadcasting speed for obtaining each cross-talk animation.
Specifically, a kind of possible implementation method of this step is as follows:Receive and carry setting for sequence identification and broadcasting speed
Put instruction;Instructed according to described set, obtain the broadcasting speed of sub- animation corresponding to the sequence identification.
Or if also include before this step 102:Receive the configuring request for carrying sequence identification and audio-frequency information;Root
It is that sub- animation configures the audio-frequency information corresponding to the sequence identification according to the configuring request, to play the sub- animation
When simultaneously play the audio-frequency information.Correspondingly, the alternatively possible implementation method of this step 102 is as follows:It is dynamic to obtain the son
The totalframes of picture;Obtain the audio-frequency information playing duration played simultaneously with the sub- animation;According to the totalframes of the sub- animation
With the audio-frequency information playing duration, broadcasting speed corresponding to the sub- animation is calculated.
Step 103, according to the sequence identification, the broadcasting speed that each cross-talk animation got is respectively adopted corresponding plays
Each cross-talk animation.
Then the present embodiment obtains the broadcasting speed of each cross-talk animation by the way that the whole section of animation is divided into more cross-talk animations
Degree, realization play each cross-talk animation using different broadcasting speeds, improve flexibility ratio and broadcasting diversity that whole section of animation plays.
As shown in Fig. 2 the schematic flow sheet for the animation playing method that the embodiment of the present invention two provides.Similarly, this implementation
The executive agent for the methods described that example two provides can be moving-image playback device.As shown in Fig. 2 the present embodiment two is based on above-mentioned reality
Apply example one, in the step 102, obtain the broadcasting speed of each cross-talk animation after, in addition to:
Step 201, reception carry the play instruction of playing progress rate value.
Specifically, the playing progress rate value can be specifically a percent value, if whole section of animation is 100%, the broadcasting
Progress value can be the arbitrary value in 0%~100%.As shown in figure 3, the play instruction can be user by dragging animation
Shuffle button 2 on slip axle 1 is inputted to moving-image playback device.Or for the dynamic of no slip axle as shown in Figure 4
For picture, the play instruction can also be user directly sent by keyboard to the moving-image playback device carry play into
The play instruction of angle value, the playing progress rate value are the value that the user is directly inputted by keyboard.
Step 202, according to the playing progress rate value, determine play position corresponding to the playing progress rate value.
Wherein, the play position includes:Play position in sequence identification and sub- animation.Specifically, one kind of this step
Possible implementation is:According to the corresponding relation of default playing progress rate value and play position, the playing progress rate value pair is obtained
The play position answered.The corresponding relation of the playing progress rate value and play position is pre-stored with moving-image playback device.It is described
The corresponding relation of playing progress rate value and play position can be manually set and be stored in the moving-image playback device.Or
Person, another possible implementation of this step are:According to the playing progress rate value, broadcast using described in the calculating of default computational methods
Put play position corresponding to angle value into.The default computational methods can be manually set.
If step 203, the sequence identification are the last mark that sorts, using sub- animation corresponding to the sequence identification
Broadcasting speed, play the frame after play position in the sub- animation;Otherwise, using sub- animation corresponding to the sequence identification
Broadcasting speed, the frame after play position in the sub- animation is played, and use comes the remaining order after the sequence identification
The broadcasting speed of the corresponding sub- animation of mark correspondingly plays sub- animation corresponding to the remaining sequence identification.
Need exist for explanation be:Each embodiment provided by the invention can also support that whole section of animation is divided into a cross-talk moves
The situation of picture.Specifically, when the whole section of animation is divided into a cross-talk animation, prior art is similar to, using acquisition
To the broadcasting speed of this cross-talk animation play whole section of animation.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
As shown in figure 5, the structural representation for the moving-image playback device that the embodiment of the present invention three provides.As shown in figure 5, this reality
Applying the device described in example three includes:Division module 10, acquisition module 20 and playing module 30.Wherein, the division module 10 is used
According to the division instruction received, whole section of animation is divided at least two cross-talk animations, and be each cross-talk according to playing sequence
Cartoon setting sequence identification.The acquisition module 20 is used for the broadcasting speed for obtaining each cross-talk animation.The playing module 30 is used
According to the sequence identification, the broadcasting speed that each cross-talk animation got is respectively adopted correspondingly plays each cross-talk animation.
Then the embodiment of the present invention obtains broadcasting for each cross-talk animation by the way that the whole section of animation is divided into more cross-talk animations
Put speed, realize and play each cross-talk animation using different broadcasting speeds, improve flexibility ratio and play more that whole section of animation play
Sample.
Acquisition module described in above-described embodiment includes:Receiving unit and acquiring unit.Wherein, the receiving unit is used
The setting instruction of sequence identification and broadcasting speed is carried in reception.The acquiring unit is used to be instructed according to described set, and obtains
Take the broadcasting speed of sub- animation corresponding to the sequence identification.
Further, the moving-image playback device described in above-described embodiment also includes:First receiving module and configuration module.
Wherein, first receiving module is used to receive the setting instruction for carrying sequence identification and broadcasting speed.The configuration module
For being instructed according to described set, the broadcasting speed of sub- animation corresponding to the sequence identification is obtained.Correspondingly, above-described embodiment
Acquisition module includes described in one:First acquisition unit, second acquisition unit and computing unit.Wherein, described first list is obtained
Member is used for the totalframes for obtaining the sub- animation.The second acquisition unit is used to obtain the sound played simultaneously with the sub- animation
Frequency information playing duration.The computing unit is used for totalframes and the audio-frequency information playing duration according to the sub- animation,
Calculate broadcasting speed corresponding to the sub- animation.
As shown in fig. 6, the structural representation for the moving-image playback device that the embodiment of the present invention four provides.As shown in fig. 6, this hair
Bright example IV is based on above-described embodiment three, in addition to:Second receiving module 40 and determining module 50.Wherein, described second connect
Module 40 is received to be used to receive the play instruction for carrying playing progress rate value.The determining module 50 is used for according to the playing progress rate
Value, determines play position corresponding to the playing progress rate value, wherein, the play position includes:In sequence identification and sub- animation
Play position, wherein, the play position includes:Play position in sequence identification and sub- animation.The playing module 30 is also used
In when the sequence identification is to sort last mark, using the broadcasting speed of sub- animation corresponding to the sequence identification, broadcast
Put the frame after play position in the sub- animation;When the sequence identification is not to sort last mark, using the order
The broadcasting speed of sub- animation corresponding to mark, the frame after play position in the sub- animation is played, and use and come the order
The broadcasting speed that remaining sequence identification after mark corresponds to sub- animation correspondingly plays sub corresponding to the remaining sequence identification move
Draw.
Further, the determining module 50 is specifically used for closing according to default playing progress rate value is corresponding with play position
System, obtains play position corresponding to the playing progress rate value;Or according to the playing progress rate value, using default calculating side
Method calculates play position corresponding to the playing progress rate value.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.