CN102063923B - Adaptive playing method and device of animation - Google Patents
Adaptive playing method and device of animation Download PDFInfo
- Publication number
- CN102063923B CN102063923B CN200910237756.7A CN200910237756A CN102063923B CN 102063923 B CN102063923 B CN 102063923B CN 200910237756 A CN200910237756 A CN 200910237756A CN 102063923 B CN102063923 B CN 102063923B
- Authority
- CN
- China
- Prior art keywords
- duration
- playing duration
- animation file
- animation
- frames
- 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.)
- Expired - Fee Related
Links
Abstract
The invention provides an adaptive playing method and device of animation, which is used for solving the problem of motion judder caused by regulating frame rate to play the animation. In the method, aiming at the problem that the playing times are very different, a method for increasing frames or reducing frames is used to adapt to different playing times, thus avoiding the motion judder in the process of playing the animation. A fusion processing technology is used to increase the frames, that is, odd-numbered lines and even number lines in pixels of two adjacent frames are fused to form new frames between the adjacent frames. The fusion process technology is simple and easy, and does not influence playing speed and playing effect.
Description
Technical field
The present invention relates to information dissemination technology field, particularly relate to a kind of method and apparatus of animation adaptive identifying.
Background technology
Animation refers to by the static picture of many frames, and during with certain speed (as 16 per second) Continuous Play, naked eyes produce illusion because of vision, and take for the works of picture activity.In order to obtain movable picture, between each picture, trickle change can be had.
Usually, animation just defines the reproduction time length (hereinafter referred playing duration) of animation file in the process made, and the such as playing duration of animation file A is 50 seconds, the playing duration of animation file B be 1 point 10 seconds.
Such as, but the demand of user is in continuous change, and, certain user wishes that animation file A is 50 seconds in the playing duration in the morning, and playing duration in the afternoon change into 1 point 10 seconds; Or user's first wishes that the playing duration of animation file A is 50 seconds, user's second then wish the playing duration of animation file A be 1 point 10 seconds, simultaneously user third requires that again the playing duration of animation file A is 30 seconds.
For the different demands of different user, current solution is: the playing duration of animation file is set to configurable parameter, like this, the playing duration of same animation file just can be set to different duration according to different demand, when broadcasting, by adjusting the play frame rate (i.e. broadcasting speed) of this animation file, the broadcasting of different duration just can be realized.
Above-mentioned solution is a kind of animation playing method of adaptive identifying duration, and the method differs not too large situation for each playing duration, can make an animation file and play according to different time length.But, if each playing duration difference is too large, then by regulating frame per second to play, float phenomenon can be produced, affecting the viewing impression of user.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of method and apparatus of animation adaptive identifying, to solve the problem by regulating frame per second playing animation to cause float.
In order to solve the problem, the invention discloses a kind of method of animation adaptive identifying, comprising:
Obtain the appointment playing duration of animation file;
The normal play duration of described appointment playing duration and this animation file is compared;
If described appointment playing duration is greater than described normal play duration, then adjacent two frames of this animation file are carried out fusion treatment, between described adjacent two frames, produce new frame, and play.
Described method also comprises:
If described appointment playing duration is less than described normal play duration, then from this animation file, extracts frame play.
Preferably, described fusion treatment comprises:
The odd-numbered line of the pixel of adjacent two frames and even number line are added, synthesize new frame.
Preferably, also comprise before described fusion treatment:
Calculate the difference of described appointment playing duration and described normal play duration, if this difference is greater than preset threshold value, then carry out fusion treatment.
Wherein, before obtaining the appointment playing duration of animation file, also comprise:
The playing duration of animation file is set to configurable parameter;
For same animation file, specify different playing duration according to different demand.
Present invention also offers a kind of device of animation adaptive identifying, comprising:
Playing duration acquiring unit, for obtaining the appointment playing duration of animation file;
First comparing unit, compares the normal play duration of described appointment playing duration and this animation file;
Adjacent two frames of this animation file for when described appointment playing duration is greater than described normal play duration, are carried out fusion treatment, between described adjacent two frames, produce new frame by fusion treatment unit;
Broadcast unit, for playing this animation file.
Described device also comprises:
Take out frame unit, for when described appointment playing duration is less than described normal play duration, from this animation file, extracts frame play.
Preferably, described fusion treatment unit, by the odd-numbered line of the pixel of adjacent two frames and even number line being added, synthesizes new frame.
Preferably, described device also comprises:
Second comparing unit, for calculating the difference of described appointment playing duration and described normal play duration, if when this difference is greater than preset threshold value, then triggers described fusion treatment unit.
Described device also comprises:
Parameter configuration unit, for being set to configurable parameter by the playing duration of animation file;
Then for same animation file, specify different playing duration according to different demand.
Compared with prior art, the present invention has the following advantages:
The present invention is directed to the situation that playing duration difference is too large, adapt to different playing duration by the method increasing frame or minimizing frame, avoid the float in animation playing process.
Wherein, increase frame by fusion treatment technology, by odd-numbered line and the even number line addition of the pixel of adjacent two frames, between described adjacent two frames, synthesize new frame.This method for amalgamation processing is simple, can not have an impact to broadcasting speed and result of broadcast.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of a kind of animation adaptive identifying described in the embodiment of the present invention one;
Fig. 2 is the method flow diagram of a kind of animation adaptive identifying described in the embodiment of the present invention two;
Fig. 3 is the structure drawing of device of a kind of animation adaptive identifying described in the embodiment of the present invention three.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
For same animation file, the mode adjusting play frame rate in prior art is only applicable to the not too large situation of playing duration difference, and the invention provides a kind of method being adapted to different playing duration by increase frame or minimizing frame, may be used for the situation that playing duration difference is too large, can not have an impact to result of broadcast.
Be described in detail below by embodiment.
Embodiment one:
The prerequisite that the present invention realizes is: the playing duration of animation file is set to configurable parameter, and namely the playing duration of an animation file is no longer a fixed value, but a variable value, different values can be set to by user.Such as, same animation file, user A can arrange its playing duration t=30 second, and user B can arrange its playing duration t=35 second.Based on this, present embodiments provide following playing flow.
With reference to Fig. 1, it is the method flow diagram of a kind of animation adaptive identifying described in the embodiment of the present invention one.
Same animation file, if the time span difference needing to play this animation file is comparatively large, as normal play duration be 1 point 20 seconds, the playing duration that user specifies is 2 minutes, for the animation file play, its time of 40 seconds of difference is too large, then process according to following steps:
Step 101, obtains the appointment playing duration of animation file;
Described " appointment playing duration " namely refers to the playing duration that user sets, and user's request is different, specifies playing duration also different.
Step 102, compares the normal play duration of described appointment playing duration and this animation file;
After described " normal play duration " refers to that an animation file completes, carry out according to normal broadcasting speed playing the time span needed, in normal play situation, beholder can obtain best result of browse.
Relatively specify playing duration and normal play duration, if the appointment playing duration of certain user setting meets the normal play duration of this animation file just, namely the two is equal, then can play according to normal broadcasting speed.
If described appointment playing duration is greater than described normal play duration, then performing step 103 increases frame; Otherwise, then perform step 104 and reduce frame.
Step 103, increases frame by the method for fusion treatment;
The method of described fusion treatment refers to: adjacent two frames of this animation file are carried out fusion treatment, between described adjacent two frames, produce new frame.Concrete image co-registration processing mode has a lot, and the present embodiment adopts existing fusion treatment technology.
Step 104, reduces frame by the method for taking out frame;
Described " taking out frame " refers to the two field picture according to certain rule extraction animation file, the frame be extracted is not broadcasted, but play frame rate is constant.Wherein, described rule can adjust according to the result of broadcast of reality, and such as, every 3 frames extract 1 frame, or every 5 frames extract 1 frame etc.
Step 105, plays this animation file.
In sum, for the situation that playing duration difference is too large, the present invention adapts to different playing duration by the method increasing frame or minimizing frame, avoids the float in animation playing process.
In actual applications, the method for adjustment play frame rate, increased by integration technology frame method and take out the method for frame, can be used for controlling the playing duration of animation file, user can carry out according to situations such as the environment configurations of oneself selections and allocate.
Embodiment two:
" playing duration difference is too large " of the present invention is determined according to the actual displayed effect in application, when the effect adjusting frame per second broadcasting is undesirable, just can according to difference definition one threshold value of playing duration now and normal play duration, this threshold value can be used to quantificational expression " playing duration difference is too large ".Certainly, this threshold value can adjust according to different actual conditions.
With reference to Fig. 2, it is the method flow diagram of a kind of animation adaptive identifying described in the embodiment of the present invention two.
Step 201, obtains the appointment playing duration of animation file;
Step 202, compares the normal play duration of described appointment playing duration and this animation file;
If the two is equal, then play according to normal broadcasting speed; If unequal, then continue step 203;
Step 203, calculates the difference of described appointment playing duration and described normal play duration;
If this difference is less than preset threshold value, illustrate that playing duration difference does not also reach the degree of " too large ", can play according to regulating the mode of broadcasting speed, the method does not belong to content of the present invention, at this slightly.
If this difference is greater than preset threshold value, and described appointment playing duration is greater than described normal play duration, then perform step 204, carry out fusion treatment; If this difference is greater than preset threshold value, and described appointment playing duration is less than described normal play duration, then perform step 205, carry out taking out frame process.
Step 204, carries out fusion treatment;
The present embodiment have employed a kind of simple method for amalgamation processing, is specially: the odd-numbered line of the pixel of adjacent two frames and even number line are added, synthesize new frame.
Such as, an animation file, its every two field picture comprises 10 row pixels.When utilizing adjacent two frame A and B to generate a new frame AB, using the odd-numbered line of the odd-numbered line 1,3,5,7,9 of frame A as frame AB, using the even number line of the even number line 2,4,6,8,10 of frame B as frame AB, between frame A and frame B, so just generate a new frame AB.
This amalgamation mode is simple, can not have an impact to broadcasting speed and result of broadcast.
Or step 205, carries out taking out frame process;
Step 206, plays this animation file.
Embodiment three:
For said method embodiment, present invention also offers corresponding device embodiment.
With reference to Fig. 3, it is the structure drawing of device of a kind of animation adaptive identifying described in the embodiment of the present invention three.
Described animation adaptive identifying device comprises:
Playing duration acquiring unit 31, for obtaining the appointment playing duration of animation file;
First comparing unit 32, compares the normal play duration of described appointment playing duration and this animation file;
Adjacent two frames of this animation file for when described appointment playing duration is greater than described normal play duration, are carried out fusion treatment, between described adjacent two frames, produce new frame by fusion treatment unit 33;
Broadcast unit 34, for playing this animation file.
Described device can also comprise:
Take out frame unit 35, for when described appointment playing duration is less than described normal play duration, from this animation file, extracts frame play.
Wherein, described fusion treatment unit 33, by the odd-numbered line of the pixel of adjacent two frames and even number line being added, synthesizes new frame.This fusion treatment mode is simple, can not have an impact to broadcasting speed and result of broadcast.
Preferably, described device can also comprise:
Second comparing unit 36, for calculating the difference of described appointment playing duration and described normal play duration, if when this difference is greater than preset threshold value, then triggers described fusion treatment unit 33.Second comparing unit 36 can be quantitative determination " playing duration difference too large " this concept.
Described device can also comprise:
Parameter configuration unit, for being set to configurable parameter by the playing duration of animation file;
Then for same animation file, specify different playing duration according to different demand.
Said apparatus differs too large situation for playing duration, adapts to different playing duration, avoid the float in animation playing process by increasing frame or reducing frame.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Above to the method and apparatus of a kind of animation adaptive identifying provided by the present invention, be described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (4)
1. a method for animation adaptive identifying, is characterized in that, comprising:
Obtain the appointment playing duration of animation file;
The normal play duration of described appointment playing duration and this animation file is compared;
Calculate the difference of described appointment playing duration and described normal play duration;
If described difference is greater than preset threshold value, and described appointment playing duration is greater than described normal play duration, then adjacent two frames of this animation file are carried out fusion treatment, produces new frame, and play between described adjacent two frames;
If described difference is greater than preset threshold value, and described appointment playing duration is less than described normal play duration, then from this animation file, extract frame play;
Wherein, described fusion treatment comprises:
The odd-numbered line of the pixel of adjacent two frames and even number line are added, synthesize new frame.
2. method according to claim 1, is characterized in that, before obtaining the appointment playing duration of animation file, also comprises:
The playing duration of animation file is set to configurable parameter;
For same animation file, specify different playing duration according to different demand.
3. a device for animation adaptive identifying, is characterized in that, comprising:
Playing duration acquiring unit, for obtaining the appointment playing duration of animation file;
First comparing unit, compares the normal play duration of described appointment playing duration and this animation file;
Second comparing unit, for calculating the difference of described appointment playing duration and described normal play duration;
Adjacent two frames of this animation file for being greater than preset threshold value when described difference, and when described appointment playing duration is greater than described normal play duration, being carried out fusion treatment, between described adjacent two frames, producing new frame by fusion treatment unit;
Taking out frame unit, for being greater than preset threshold value when described difference, and when described appointment playing duration is less than described normal play duration, from this animation file, extracting frame;
Broadcast unit, for playing this animation file;
Wherein, described fusion treatment unit, by the odd-numbered line of the pixel of adjacent two frames and even number line being added, synthesizes new frame.
4. device according to claim 3, is characterized in that, also comprises:
Parameter configuration unit, for being set to configurable parameter by the playing duration of animation file;
Then for same animation file, specify different playing duration according to different demand.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910237756.7A CN102063923B (en) | 2009-11-18 | 2009-11-18 | Adaptive playing method and device of animation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910237756.7A CN102063923B (en) | 2009-11-18 | 2009-11-18 | Adaptive playing method and device of animation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102063923A CN102063923A (en) | 2011-05-18 |
CN102063923B true CN102063923B (en) | 2015-05-27 |
Family
ID=43999161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910237756.7A Expired - Fee Related CN102063923B (en) | 2009-11-18 | 2009-11-18 | Adaptive playing method and device of animation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102063923B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104980794A (en) * | 2015-06-30 | 2015-10-14 | 北京金山安全软件有限公司 | Video splicing method and device |
CN107291468B (en) * | 2017-06-21 | 2021-03-19 | 深圳Tcl新技术有限公司 | Method for playing power-on/power-off animation, terminal and computer readable storage medium |
CN109377540B (en) * | 2018-09-30 | 2023-12-19 | 网易(杭州)网络有限公司 | Method and device for synthesizing facial animation, storage medium, processor and terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1305620A (en) * | 1998-06-11 | 2001-07-25 | 普里赞特.Com | Creating animation from video |
CN101047842A (en) * | 2006-03-27 | 2007-10-03 | 中兴通讯股份有限公司 | Method for playing flow media audio-vedio on radio binary operation environment mobile phone |
CN101075949A (en) * | 2006-05-15 | 2007-11-21 | 中兴通讯股份有限公司 | Method for changing fluid-medium file broadcasting speed |
CN101110247A (en) * | 2007-08-17 | 2008-01-23 | 华为技术有限公司 | Playing method for audio files and device thereof |
CN101119461A (en) * | 2006-08-02 | 2008-02-06 | 广达电脑股份有限公司 | System and method for maintaining video frame and audio frame synchronous broadcasting |
CN101119323A (en) * | 2007-09-21 | 2008-02-06 | 腾讯科技(深圳)有限公司 | Method and device for solving network jitter |
-
2009
- 2009-11-18 CN CN200910237756.7A patent/CN102063923B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1305620A (en) * | 1998-06-11 | 2001-07-25 | 普里赞特.Com | Creating animation from video |
CN101047842A (en) * | 2006-03-27 | 2007-10-03 | 中兴通讯股份有限公司 | Method for playing flow media audio-vedio on radio binary operation environment mobile phone |
CN101075949A (en) * | 2006-05-15 | 2007-11-21 | 中兴通讯股份有限公司 | Method for changing fluid-medium file broadcasting speed |
CN101119461A (en) * | 2006-08-02 | 2008-02-06 | 广达电脑股份有限公司 | System and method for maintaining video frame and audio frame synchronous broadcasting |
CN101110247A (en) * | 2007-08-17 | 2008-01-23 | 华为技术有限公司 | Playing method for audio files and device thereof |
CN101119323A (en) * | 2007-09-21 | 2008-02-06 | 腾讯科技(深圳)有限公司 | Method and device for solving network jitter |
Non-Patent Citations (1)
Title |
---|
夏仁康,刘淑侠.速度调控在电视节目制作中的应用.《中国医学教育技术》.2008,第22卷(第2期),第3栏第26行至第4栏第43行. * |
Also Published As
Publication number | Publication date |
---|---|
CN102063923A (en) | 2011-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10536730B2 (en) | Method for processing video frames, video processing chip, and motion estimation/motion compensation MEMC chip | |
CN106303573B (en) | 3D video image processing method, server and client | |
US9336754B2 (en) | Methods and apparatuses for controlling display refresh rate | |
CN101068235B (en) | Video frequency program prebrowsing method and system | |
EP4254903A2 (en) | Simulating a local experience by live streaming sharable viewpoints of a live event | |
US10404963B1 (en) | System for processing 2D content for 3D viewing | |
CN108259964B (en) | Video playing rate adjusting method and system | |
WO2010020183A1 (en) | Method and device of transmission and play of advertisement programs | |
CN1889686A (en) | Method for simultaneous displaying multi-channel video information | |
CN103561312A (en) | Method and device for adjusting video playing interface | |
CH710868B1 (en) | Method and system for the targeted insertion of a video stream. | |
US9794600B2 (en) | Methods, systems, and media for generating an advertisement from a video stream | |
WO2012125198A3 (en) | Method and apparatus for enabling purchase of or information requests for objects in digital content | |
CN102063923B (en) | Adaptive playing method and device of animation | |
TWI620438B (en) | Method, device for calibrating interactive time in a live program and a computer-readable storage device | |
WO2016155125A1 (en) | Image processing method and apparatus | |
JP5955851B2 (en) | Transfer of 3D image data | |
CN102547269A (en) | Network video browsing method | |
CN105141943A (en) | Adjusting method and device for video frame rate | |
CN108174267A (en) | The sending device of interactive information, method and computer readable storage medium in live streaming | |
CN102193705A (en) | System and method for controlling three-dimensional multimedia image interaction | |
CN102063924B (en) | Method and device for playing animation | |
CN103533333B (en) | Depth of field control method, depth of field adjusting device and display unit | |
CN106533916A (en) | Live broadcast message display method and device | |
CN202334798U (en) | Dynamic advertisement releasing system based on real-time viewing data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150527 Termination date: 20161118 |
|
CF01 | Termination of patent right due to non-payment of annual fee |