CN102024486A - Animation expression picture play method and system - Google Patents

Animation expression picture play method and system Download PDF

Info

Publication number
CN102024486A
CN102024486A CN 201010282578 CN201010282578A CN102024486A CN 102024486 A CN102024486 A CN 102024486A CN 201010282578 CN201010282578 CN 201010282578 CN 201010282578 A CN201010282578 A CN 201010282578A CN 102024486 A CN102024486 A CN 102024486A
Authority
CN
China
Prior art keywords
animation expression
expression picture
play
animation
single 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.)
Granted
Application number
CN 201010282578
Other languages
Chinese (zh)
Other versions
CN102024486B (en
Inventor
张明贺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shenzhou Taiyue Software Co Ltd
Original Assignee
Beijing Shenzhou Taiyue Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Shenzhou Taiyue Software Co Ltd filed Critical Beijing Shenzhou Taiyue Software Co Ltd
Priority to CN 201010282578 priority Critical patent/CN102024486B/en
Publication of CN102024486A publication Critical patent/CN102024486A/en
Application granted granted Critical
Publication of CN102024486B publication Critical patent/CN102024486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an animation expression picture play method, which comprises the following steps of: decomposing an animation expression picture to be played into single frames; sequentially playing the single frames when the play period of the animation expression picture is reached; and stopping playing the frames of the animation expression picture when the played animation expression picture is out of a visual area of a play area. The invention also discloses an animation expression picture play system, which comprises an animation expression picture decomposition module for decomposing the animation expression picture to be played into the single frames, and an animation expression picture play module for sequentially playing the single frames when the play period of the animation expression picture is reached. When a large number of animation expression pictures are played simultaneously, the occupancy rates of memory space and a central processing unit (CPU) are low, and animation expressions are played smoothly.

Description

Animation expression picture player method and system
Technical field
The present invention relates to media play technical field in the computer network communication, particularly a kind of animation expression picture player method and system.
Background technology
Computer networking technology is the product that the communication technology combines with computer technology.In recent years, computer network communication has more and more important position in daily life, the user can be the exchanging of the enterprising style of writing word of computer network, sound and video, shared file, picture and video information etc., thereby user friendly life, working and learning.Carry out in the process of communication exchange at the network that uses a computer, expression picture is more directly perceived, faster, vivider than literal, takies less resources than audio frequency and video, more can adapt to complicated network environment.And the animation expression picture is with respect to static expression picture; more lively; more can effectively pass on session person's thought intention; make session fresh and alive agile; promote the user's who carries out session experience greatly; as seen, using the animation expression picture in computer network communication is very substantially also to be unusual important function.
The playing animation expression picture has two kinds of main implementations at present, and first kind is to use the IE kernel to realize the broadcast of animation expression picture, though realize that simply its occupying system resources is too big, efficient is not high, so the user is few; Second kind of method that efficient is higher, that is exactly that developer's development support expression picture shows object linking and embedding (OLE, the Object Linkingand Embedding) control that refreshes, and then realizes the broadcast of animation expression in conjunction with animation expression broadcast strategy.Though different animations expression broadcast strategy finally can both be realized the animation expression and play, but difference can be very big on efficient and final effect, the most frequently used animation expression broadcast strategy is all passed to the OLE control to animation expression data to be played, play at thread of the inner startup of OLE control then, the shortcoming of this broadcast strategy is: each OLE control can keep the total data of a animation expression always in life cycle, and each needs the OLE control inside of playing animation expression all will start a broadcast thread, the result who causes is when the user both sides of session use a large amount of expression in session window, taking of memory headroom can be very big, the occupancy of CPU can be very high, system responses is slack-off, and the animation expression is many more obvious more.
Summary of the invention
(1) technical matters that will solve
The technical problem to be solved in the present invention is: how to be implemented in to play and both to have reduced EMS memory occupation when a large amount of animations are expressed one's feelings and reduced CPU usage, guarantee that again the animation broadcast is smooth.
(2) technical scheme
A kind of animation expression picture player method may further comprise the steps:
S1: the animation expression picture that will play decomposes by single frames;
S2: when the playback period of animation expression picture arrives, play described single frames successively.
Wherein, described step S2 specifically comprises:
S21: create one for described animation expression picture and play object;
S22: the current single frames that will play is passed to described broadcast object, and described broadcast object is inserted into play area;
S23: when the playback period of animation expression picture arrives, play the single frames that is present in the broadcast object;
S24: after present frame finishes playing, next single frames is passed to the broadcast object, then execution in step S23.
Wherein, if the last frame of the described animation expression picture of next single frames among the described step S24 then passes to first frame described broadcast object.
Wherein, among the described step S23 when the playback period of animation expression picture arrives, each object in the traversal play area judges whether to be the broadcast object, if not, then travel through next object, whether be in the viewing area of play area if then judge this broadcast object,, then play the single frames that is present in the broadcast object if be in visible area, otherwise, stop to play.
Wherein, described broadcast object is the OLE control, and play area is a session window message region of utilizing RichEdit to create.
Wherein, also comprise the step of obtaining described animation expression picture before the described step S1:
Reception contains the Multimedia session message of animation expression sign;
From described Multimedia session message, parse animation expression sign;
Obtain the animation expression picture according to described animation expression sign.
A kind of animation expression picture Play System comprises:
Animation expression picture decomposing module, the animation expression picture that is used for playing decomposes by single frames;
Animation expression picture playing module is used for playing successively described single frames when the playback period of animation expression picture arrives.
Wherein, described animation expression picture playing module comprises:
Play the Object Creation module, be used to described animation expression picture to create one and play object;
Conveying module frame is used for the current single frames that will play is passed to described broadcast object, and described broadcast object is inserted into play area;
The frame playing module is used for when the playback period of animation expression picture arrives, and plays to be present in the single frames of playing in the object;
Frame circulation module: after being used for present frame and finishing playing, next single frames is passed to the broadcast object, carry out the frame playing module then.
Wherein, described frame playing module comprises the broadcast judge module, is used for when the playback period of animation expression picture arrives each object in the traversal play area, judge whether to playing object, if not, then travel through next object, whether be in the viewing area of play area if then judge this broadcast object, if be in visible area, then play the single frames that is present in the broadcast object, otherwise, stop to play.
Wherein, described system also comprises:
The conversation message receiver module is used to receive the Multimedia session message that contains animation expression sign;
Animation expression parsing module is used for parsing animation expression sign from described Multimedia session message;
Animation expression picture acquisition module is used for obtaining the animation expression picture according to described animation expression sign.
(3) beneficial effect
A frame data (non-whole frame data) with current broadcast passes to the broadcast object in animation expression picture player method of the present invention and the system, has significantly reduced taking of internal memory when a large amount of animation expression pictures is play; The broadcast that the method (non-establishment broadcast thread) of employing clock period is come control frame, and only play the frame that is in play area, when playing, significantly reduced a large amount of animation expression pictures the occupancy of CPU, and make broadcast smooth more.
Description of drawings
Fig. 1 is the animation expression picture player method process flow diagram of the embodiment of the invention;
Fig. 2 be the embodiment of the invention obtain animation expression picture process flow diagram;
Fig. 3 is a step S102 particular flow sheet among Fig. 1;
Fig. 4 is the animation expression picture Play System structural representation of the embodiment of the invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used to illustrate the present invention, but are not used for limiting the scope of the invention.
As shown in Figure 1, the animation expression picture player method process flow diagram for inventive embodiments comprises:
Step S101, the animation expression picture that will play decomposes by single frames, and wherein single frames is a picture frame in the animation expression picture.
Want the playing animation expression picture, at first will obtain the animation expression picture, its flow process as shown in Figure 2:
Step S201 receives the Multimedia session message that contains animation expression sign;
Step S202 resolves Multimedia session message,
Step S203 is inserted into the session window message region with the text message that parses;
Step S204 will obtain the animation expression picture according to the animation expression sign that parses.
Step S102 plays described single frames successively when the playback period of animation expression picture arrives, idiographic flow as shown in Figure 3:
Step S301 creates one for each expression picture and plays object, and (Object Linking and Embedding, OLE) control, this OLE control are the OLE control of animation expression with embedding to be preferably the object connection.
Step S302, the current single frames that will play is passed to described OLE control, when playing for the first time, described present frame is first frame, and described OLE control is inserted into play area, this play area is for showing the session window message region of this expression picture, and the session window message region preferably adopts the RichEdit of Windows to create in the present embodiment.Interface STDMETHOD (InsertObject) (THIS_REOBJECT FAR*lpreobject) PURE that RichEdit provides can insert the OLE control that meets the OLE standard, the OLE control of animation expression can be inserted into the session window message region.
Step S303, when the playback period of animation expression arrives, all OLE controls of traversal session window message region.
Step S304 if this OLE control is not the OLE control of animation expression, then travels through next OLE control, if, execution in step S305.
Step S305 judges whether the OLE control of this animation expression (in the conversation procedure, is rolled to part message outside the viewing area by dragging scroll bar) in the viewing area of session window message region, if in the viewing area, and execution in step S306 then.
Step S306, the OLE control of animation expression is presented at single frames drafting wherein in the viewing area.
Step S307 is delivered to the OLE control of the animation expression of this animation expression with the following next single frames of the single frames of current demonstration, returns step S305.If the single frames of current demonstration is a last frame, then next single frames is first frame of this animation expression picture, to show this animation expression picture again and again.
The invention also discloses a kind of animation expression picture Play System, as shown in Figure 4, comprising: animation expression picture decomposing module, the animation expression picture that is used for playing decomposes by single frames; Animation expression picture playing module is used for playing successively described single frames when the playback period of animation expression picture arrives.
Wherein, described animation expression picture playing module comprises: play the Object Creation module, be used to described animation expression picture to create one and play object; Conveying module frame is used for the current single frames that will play is passed to described broadcast object, and described broadcast object is inserted into play area; The frame playing module is used for when the playback period of animation expression picture arrives, and plays to be present in the single frames of playing in the object; Frame circulation module: after being used for present frame and finishing playing, next single frames is passed to the broadcast object, carry out the frame playing module then.
Wherein, described frame playing module comprises the broadcast judge module, is used for when the playback period of animation expression picture arrives each object in the traversal play area, judge whether to playing object, if not, then travel through next object, whether be in the viewing area of play area if then judge this broadcast object, if be in visible area, then play the single frames that is present in the broadcast object, otherwise, stop to play.
Wherein, described system also comprises: the conversation message receiver module is used to receive the Multimedia session message that contains animation expression sign; Animation expression parsing module is used for parsing animation expression sign from described Multimedia session message; Animation expression picture acquisition module is used for obtaining the animation expression picture according to described animation expression sign.
Method and system of the present invention can be widely used in instant messaging, and (Instant Messaging, IM) software reach the webpage conversation area and will insert the situation of playing expression picture.
Above embodiment only is used to illustrate the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make various variations and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (10)

1. an animation expression picture player method is characterized in that, may further comprise the steps:
S1: the animation expression picture that will play decomposes by single frames;
S2: when the playback period of animation expression picture arrives, play described single frames successively.
2. animation expression picture player method as claimed in claim 1 is characterized in that described step S2 specifically comprises:
S21: create one for described animation expression picture and play object;
S22: the current single frames that will play is passed to described broadcast object, and described broadcast object is inserted into play area;
S23: when the playback period of animation expression picture arrives, play the single frames that is present in the broadcast object;
S24: after present frame finishes playing, next single frames is passed to the broadcast object, then execution in step S23.
3. animation expression picture player method as claimed in claim 2 is characterized in that, if the last frame of the described animation expression picture of next single frames among the described step S24 then passes to first frame described broadcast object.
4. animation expression picture player method as claimed in claim 2, it is characterized in that, when the playback period of animation expression picture arrives, travel through each object in the play area among the described step S23, judge whether to playing object, if not, then travel through next object, whether be in the viewing area of play area if then judge this broadcast object, if be in visible area, then play the single frames that is present in the broadcast object, otherwise, stop to play.
5. as arbitrary described animation expression picture player method in the claim 2~4, it is characterized in that described broadcast object is the OLE control, play area is a session window message region of utilizing RichEdit to create.
6. animation expression picture player method as claimed in claim 1 is characterized in that, also comprises the step of obtaining described animation expression picture before the described step S1:
Reception contains the Multimedia session message of animation expression sign;
From described Multimedia session message, parse animation expression sign;
Obtain the animation expression picture according to described animation expression sign.
7. an animation expression picture Play System is characterized in that, comprising:
Animation expression picture decomposing module, the animation expression picture that is used for playing decomposes by single frames;
Animation expression picture playing module is used for playing successively described single frames when the playback period of animation expression picture arrives.
8. animation expression picture Play System as claimed in claim 7 is characterized in that, described animation expression picture playing module comprises:
Play the Object Creation module, be used to described animation expression picture to create one and play object;
Conveying module frame is used for the current single frames that will play is passed to described broadcast object, and described broadcast object is inserted into play area;
The frame playing module is used for when the playback period of animation expression picture arrives, and plays to be present in the single frames of playing in the object;
Frame circulation module: after being used for present frame and finishing playing, next single frames is passed to the broadcast object, carry out the frame playing module then.
9. animation expression picture Play System as claimed in claim 8 is characterized in that described frame playing module comprises the broadcast judge module, be used for when the playback period of animation expression picture arrives, each object in the traversal play area judges whether to be the broadcast object, if not, then travel through next object, whether be in the viewing area of play area if then judge this broadcast object,, then play the single frames that is present in the broadcast object if be in visible area, otherwise, stop to play.
10. animation expression picture Play System as claimed in claim 7 is characterized in that described system also comprises:
The conversation message receiver module is used to receive the Multimedia session message that contains animation expression sign;
Animation expression parsing module is used for parsing animation expression sign from described Multimedia session message;
Animation expression picture acquisition module is used for obtaining the animation expression picture according to described animation expression sign.
CN 201010282578 2010-09-14 2010-09-14 Animation expression picture play method and system Active CN102024486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010282578 CN102024486B (en) 2010-09-14 2010-09-14 Animation expression picture play method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010282578 CN102024486B (en) 2010-09-14 2010-09-14 Animation expression picture play method and system

Publications (2)

Publication Number Publication Date
CN102024486A true CN102024486A (en) 2011-04-20
CN102024486B CN102024486B (en) 2012-12-19

Family

ID=43865685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010282578 Active CN102024486B (en) 2010-09-14 2010-09-14 Animation expression picture play method and system

Country Status (1)

Country Link
CN (1) CN102024486B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314701A (en) * 2011-06-28 2012-01-11 北京新媒传信科技有限公司 Method and device for playing GIF (graphic interchange format) cartoons in ME (mobile equipment) in real time
CN103634200B (en) * 2013-09-10 2016-10-12 北京思特奇信息技术股份有限公司 A kind of flash map sending system and flash map sending based on instant message
CN103761132B (en) * 2014-01-26 2017-03-22 广州视源电子科技股份有限公司 Intelligent terminal starting-up animation playing control method
CN106874167A (en) * 2016-12-30 2017-06-20 晶赞广告(上海)有限公司 The detection method and device of exhibition information
CN108628464A (en) * 2018-04-20 2018-10-09 维沃移动通信有限公司 A kind of display methods and mobile terminal of dynamic expression
CN110300047A (en) * 2018-03-23 2019-10-01 腾讯科技(深圳)有限公司 A kind of animation playing method, device and storage medium
CN112333521A (en) * 2020-11-05 2021-02-05 杭州米络星科技(集团)有限公司 Expression playing method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046722A (en) * 2006-03-31 2007-10-03 腾讯科技(深圳)有限公司 Method for editing picture in customer end contents transmission window and customer end
CN101064693A (en) * 2006-04-24 2007-10-31 腾讯科技(深圳)有限公司 Method for presenting animation synchronously in instant communication
CN101193298A (en) * 2006-11-27 2008-06-04 三星电子株式会社 System, method and medium playing moving images
CN101420393A (en) * 2008-12-10 2009-04-29 腾讯科技(深圳)有限公司 Method for implementing expression edition based on instant messaging and terminal based on instant message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046722A (en) * 2006-03-31 2007-10-03 腾讯科技(深圳)有限公司 Method for editing picture in customer end contents transmission window and customer end
CN101064693A (en) * 2006-04-24 2007-10-31 腾讯科技(深圳)有限公司 Method for presenting animation synchronously in instant communication
CN101193298A (en) * 2006-11-27 2008-06-04 三星电子株式会社 System, method and medium playing moving images
CN101420393A (en) * 2008-12-10 2009-04-29 腾讯科技(深圳)有限公司 Method for implementing expression edition based on instant messaging and terminal based on instant message

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314701A (en) * 2011-06-28 2012-01-11 北京新媒传信科技有限公司 Method and device for playing GIF (graphic interchange format) cartoons in ME (mobile equipment) in real time
CN103634200B (en) * 2013-09-10 2016-10-12 北京思特奇信息技术股份有限公司 A kind of flash map sending system and flash map sending based on instant message
CN103761132B (en) * 2014-01-26 2017-03-22 广州视源电子科技股份有限公司 Intelligent terminal starting-up animation playing control method
CN106874167A (en) * 2016-12-30 2017-06-20 晶赞广告(上海)有限公司 The detection method and device of exhibition information
CN110300047A (en) * 2018-03-23 2019-10-01 腾讯科技(深圳)有限公司 A kind of animation playing method, device and storage medium
CN108628464A (en) * 2018-04-20 2018-10-09 维沃移动通信有限公司 A kind of display methods and mobile terminal of dynamic expression
CN112333521A (en) * 2020-11-05 2021-02-05 杭州米络星科技(集团)有限公司 Expression playing method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN102024486B (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN102024486B (en) Animation expression picture play method and system
US8683341B2 (en) Multimedia presentation editor for a small-display communication terminal or computing device
CN102905170A (en) Screen popping method and system for video
JP5512657B2 (en) Terminal user interface device and method for rich media service
CN101778282B (en) Method for concurrently playing different media files
US9087131B1 (en) Auto-summarization for a multiuser communication session
CN102426685A (en) Interactive internet video advertisement broadcasting method
CN110446114A (en) Multimedia data processing device, method, electronic equipment and storage medium
CN109819315A (en) Playback method, device, terminal and the storage medium of HEVC video
CN103106361A (en) Method and device for strengthening picture verification code security
CN111124668A (en) Memory release method and device, storage medium and terminal
US20240291784A1 (en) Methods, Systems, and Media for Identifying and Presenting Video Objects Linked to a Source Video
CN110268718A (en) The energy conservation of video stream media and the perception of content of broadcasting in mobile device
CN102497580B (en) Video information synthesizing method based on audio feature information
Lei Radio and social transformation in China
Rashid et al. Dancing with words: Using animated text for captioning
Zhang Differences between Traditional TV Media and New Media: Take Tik Tok as an Example
CN109874024A (en) A kind of barrage processing method, system and storage medium based on dynamic video poster
CN106227323A (en) A kind of display packing and device
CN201600871U (en) System, server and terminal for achieving special effect of multi-media
CN106331553B (en) Video storage method and device and electronic equipment
CN103618961B (en) A kind of method, system and browser for showing video title
CN103841166B (en) The methods, devices and systems of advertisement are shown in desktop cloud terminal
CN106649621A (en) Method and device of displaying comment information
Holmes Communication theory

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 818, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building A block 5 layer

Patentee before: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd.