[go: up one dir, main page]

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

Animation expression picture play method and system Download PDF

Info

Publication number
CN102024486B
CN102024486B CN 201010282578 CN201010282578A CN102024486B CN 102024486 B CN102024486 B CN 102024486B CN 201010282578 CN201010282578 CN 201010282578 CN 201010282578 A CN201010282578 A CN 201010282578A CN 102024486 B CN102024486 B CN 102024486B
Authority
CN
China
Prior art keywords
animation expression
animation
expression picture
object linking
play
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.)
Active
Application number
CN 201010282578
Other languages
Chinese (zh)
Other versions
CN102024486A (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; It is thus clear that in computer network communication, using the animation expression picture is very basically 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 Linking and Embedding) control that refreshes, and then combines animation expression broadcast strategy realization animation expression to play.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 play, and plays at thread of the inner startup of OLE control then, and 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 that taking of memory headroom can be very big when the user both sides of session use a large amount of expression in session window, and 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
The technical matters that (one) will solve
The technical matters that the present invention will solve 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 said single frames successively.
Wherein, said step S2 specifically comprises:
S21: the object linking and embedding control of creating an animation expression for said animation expression picture;
S22: the current single frames that will play is passed to the object linking and embedding control that said animation is expressed one's feelings, and the object linking of said animation expression is inserted into the session window message region with the embedding control;
S23: when the playback period of animation expression picture arrives, play object linking that is present in said animation expression and the single frames that embeds in the control;
S24: after present frame finishes playing, next single frames is passed to the object linking and embedding control, execution in step S23 then of said animation expression.
Wherein, if the last frame of the said animation expression picture of next single frames among the said step S24 then passes to first frame object linking of said animation expression and embeds control.
Wherein, when the playback period of animation expression picture arrives, travel through each object linking and embedding control in the session window message region among the said step S23; Judge whether object linking and embedding control for said animation expression, if not, then travel through next object linking and embed control; If; Then judge the object linking of this animation expression and embed control whether be in the viewing area of session window message region,, then play the object linking that is present in said animation expression and embed the single frames in the control if be in visible area; Otherwise, stop to play.
Wherein, said session window message region is a session window message region of utilizing RichEdit to create.
Wherein, also comprise the step of obtaining said animation expression picture before the said step S1:
Reception contains the Multimedia session message of animation expression sign;
From said Multimedia session message, parse animation expression sign;
Obtain the animation expression picture according to said 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 when the playback period of animation expression picture arrives, playing successively said single frames.
Wherein, said animation expression picture playing module comprises:
Play the Object Creation module, be used to object linking and embedding control that said animation expression picture is created an animation expression;
Conveying module frame is used for the current single frames that will play is passed to the object linking and embedding control that said animation is expressed one's feelings, and the object linking of said animation expression is inserted into the session window message region with the embedding control;
The frame playing module is used for when the playback period of animation expression picture arrives, and plays object linking that is present in said animation expression and the single frames that embeds in the control;
Frame circulation module: after being used for present frame and finishing playing, the object linking that next single frames is passed to said animation expression with embed control, carry out the frame playing module then.
Wherein, said frame playing module comprises the broadcast judge module, is used for when the playback period of animation expression picture arrives; Each object linking in the traversal session window message region and embedding control judge whether the object linking of expressing one's feelings into said animation and embed control, if not; Then travel through next object linking and embed control, if judge then whether the object linking of this animation expression and embedding control are in the viewing area of session window message region; If be in visible area; Then play object linking that is present in said animation expression and the single frames that embeds in the control, otherwise, stop to play.
Wherein, said 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 said Multimedia session message;
Animation expression picture acquisition module is used for obtaining the animation expression picture according to said 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, when a large amount of animation expression pictures is play, has significantly reduced taking of internal memory; 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 the session window message region,, significantly reduced a large amount of animation expression pictures the occupancy of CPU when playing, 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 accompanying drawing and embodiment, specific embodiments of the invention describes in further detail.Following examples are used to explain the present invention, but are not used for limiting scope of the present 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 is 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 said single frames successively when the playback period of animation expression picture arrives, idiographic flow is 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 said OLE control; When playing for the first time, said present frame is first frame, and said 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, can the OLE control of animation expression 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 through 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 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 when the playback period of animation expression picture arrives, playing successively said single frames.
Wherein, said animation expression picture playing module comprises: play the Object Creation module, be used to said animation expression picture and create a broadcast object; Conveying module frame is used for the current single frames that will play is passed to said broadcast object, and said 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, said 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 judges whether to be the broadcast object, if not; Then travel through next object, whether be in the viewing area of play area, if be in visible area if then judge this broadcast object; Then play the single frames that is present in the broadcast object, otherwise, stop to play.
Wherein, said 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 said Multimedia session message; Animation expression picture acquisition module is used for obtaining the animation expression picture according to said 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 explain 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 be made 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 (8)

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 said single frames successively, specifically comprise:
S21: the object linking and embedding control of creating an animation expression for said animation expression picture;
S22: the current single frames that will play is passed to the object linking and embedding control that said animation is expressed one's feelings, and the object linking of said animation expression is inserted into the session window message region with the embedding control;
S23: when the playback period of animation expression picture arrives, play object linking that is present in said animation expression and the single frames that embeds in the control;
S24: after present frame finishes playing, next single frames is passed to the object linking and embedding control, execution in step S23 then of said animation expression.
2. animation expression picture player method as claimed in claim 1 is characterized in that, if the last frame of the said animation expression picture of next single frames among the said step S24 then passes to first frame object linking of said animation expression and embeds control.
3. animation expression picture player method as claimed in claim 1 is characterized in that, among the said step S23 when the playback period of animation expression picture arrives; Each object linking in the traversal session window message region and embedding control judge whether the object linking of expressing one's feelings into said animation and embed control, if not; Then travel through next object linking and embed control, if judge then whether the object linking of this animation expression and embedding control are in the viewing area of session window message region; If be in visible area; Then play object linking that is present in said animation expression and the single frames that embeds in the control, otherwise, stop to play.
4. like arbitrary described animation expression picture player method in the claim 1~3, it is characterized in that said session window message region is a session window message region of utilizing RichEdit to create.
5. animation expression picture player method as claimed in claim 1 is characterized in that, also comprises the step of obtaining said animation expression picture before the said step S1:
Reception contains the Multimedia session message of animation expression sign;
From said Multimedia session message, parse animation expression sign;
Obtain the animation expression picture according to said animation expression sign.
6. 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 when the playback period of animation expression picture arrives, playing said single frames successively, and said animation expression picture playing module comprises:
Play the Object Creation module, be used to object linking and embedding control that said animation expression picture is created an animation expression;
Conveying module frame is used for the current single frames that will play is passed to the object linking and embedding control that said animation is expressed one's feelings, and the object linking of said animation expression is inserted into the session window message region with the embedding control;
The frame playing module is used for when the playback period of animation expression picture arrives, and plays object linking that is present in said animation expression and the single frames that embeds in the control;
Frame circulation module: after being used for present frame and finishing playing, the object linking that next single frames is passed to said animation expression with embed control, carry out the frame playing module then.
7. animation expression picture Play System as claimed in claim 6 is characterized in that said frame playing module comprises the broadcast judge module; Be used for when the playback period of animation expression picture arrives, travel through each object linking and embedding control in the session window message region, judge whether object linking and embedding control into said animation expression; If not; Then travel through next object linking and embed control, if judge then whether the object linking of this animation expression and embedding control are in the viewing area of session window message region; If be in visible area; Then play object linking that is present in said animation expression and the single frames that embeds in the control, otherwise, stop to play.
8. animation expression picture Play System as claimed in claim 6 is characterized in that said 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 said Multimedia session message;
Animation expression picture acquisition module is used for obtaining the animation expression picture according to said 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 CN102024486A (en) 2011-04-20
CN102024486B true 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)

Families Citing this family (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
CN106874167B (en) * 2016-12-30 2020-03-13 晶赞广告(上海)有限公司 Display information detection method and device
CN110300047B (en) * 2018-03-23 2021-10-08 腾讯科技(深圳)有限公司 Animation playing method and 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

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 for 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 for 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

Also Published As

Publication number Publication date
CN102024486A (en) 2011-04-20

Similar Documents

Publication Publication Date Title
CN102024486B (en) Animation expression picture play method and system
CN102905170A (en) Screen popping method and system for video
US9087131B1 (en) Auto-summarization for a multiuser communication session
EP1682962A2 (en) Multi-media presentation editor for a small-display communication terminal or computing device
CN101950239A (en) Large size image display method and system
CN103384253B (en) The play system and its construction method of multimedia interaction function are presented in video
CN102426685A (en) Interactive internet video advertisement playing method
CN106131550A (en) Play the method and device of multimedia file
CN109819315A (en) Playback method, device, terminal and the storage medium of HEVC video
CN103947221A (en) User interface display method and device using same
CN107979763A (en) A kind of virtual reality device generation video, playback method, apparatus and system
JP2011518526A (en) Terminal user interface device and method for rich media service
US20240291784A1 (en) Methods, Systems, and Media for Identifying and Presenting Video Objects Linked to a Source Video
Lei Radio and social transformation in China
EP2449772A1 (en) Attracting viewer attention to advertisements embedded in media
CN102497580B (en) Video information synthesizing method based on audio feature information
CN105210050A (en) Apparatus and method for presenting html page
JP2012504362A (en) Method and apparatus for providing rich media service
CN106227323A (en) A kind of display packing and device
US20100278507A1 (en) Subtitle Generation System and Method Thereof
CN201600871U (en) System, server and terminal for achieving special effect of multi-media
CN103618961B (en) A kind of method, system and browser for showing video title
CN114143595A (en) Video wallpaper playing method and device, electronic equipment and readable storage medium
CN101944024B (en) Method and system for refreshing emoticon
Shan The Construction of City Image in Short Video: A Case Study of Xi’an in the Short Video of Douyin

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

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.

CP02 Change in the address of a patent holder