CN104932853B - Dynamic expression playback method and device - Google Patents

Dynamic expression playback method and device Download PDF

Info

Publication number
CN104932853B
CN104932853B CN201510271943.2A CN201510271943A CN104932853B CN 104932853 B CN104932853 B CN 104932853B CN 201510271943 A CN201510271943 A CN 201510271943A CN 104932853 B CN104932853 B CN 104932853B
Authority
CN
China
Prior art keywords
image
dynamic
frame images
expression
bag
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
CN201510271943.2A
Other languages
Chinese (zh)
Other versions
CN104932853A (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.)
SHENZHEN TOMORROW SPATIAL INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN TOMORROW SPATIAL INFORMATION TECHNOLOGY 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 SHENZHEN TOMORROW SPATIAL INFORMATION TECHNOLOGY Co Ltd filed Critical SHENZHEN TOMORROW SPATIAL INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510271943.2A priority Critical patent/CN104932853B/en
Publication of CN104932853A publication Critical patent/CN104932853A/en
Application granted granted Critical
Publication of CN104932853B publication Critical patent/CN104932853B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of dynamic expression playback method, the dynamic expression playback method comprises the following steps:When receiving dynamic expression play instruction, the screen size of terminal is obtained;It is the screen size by the play area size adjusting of the dynamic expression;Determine the corresponding dynamic image of the play instruction, the dynamic image is inserted into the play area and is played out.The invention also discloses a kind of dynamic expression playing device.The present invention effectively solves the problems, such as that existing dynamic expression is only limitted to play in certain area, is unable to played in full screen, improves the network service experience of user.

Description

Dynamic expression playback method and device
Technical field
The present invention relates to network instant communication field, more particularly to a kind of dynamic expression playback method and device.
Background technology
At present, with the fast development of the communication technology and terminal technology, mobile phone, smart phone, laptop, The use of the terminals such as PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player) is more and more wider It is general.Interpersonal communication also becomes more and more convenient with exchanging, and various network instant communication instruments rise therewith, lively shape The expression picture of elephant greatly enriches the communication experiences of people so that vivid expression, which plays, becomes network Instant Messenger The one big competitiveness in letter field.However, the broadcasting of existing dynamic expression is limited in certain area, can not carry out full frame Play, the network service to people exerts a certain influence, and reduces the network service experience of people.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
The content of the invention
It is a primary object of the present invention to propose a kind of dynamic expression playback method and device, it is intended to solve existing dynamic Expression is only limitted to play in certain area, is unable to the problem of played in full screen.
To achieve the above object, the present invention provides a kind of dynamic expression playback method, the dynamic expression playback method bag Include following steps:
When receiving dynamic expression play instruction, the screen size of terminal is obtained;
It is the screen size by the play area size adjusting of the dynamic expression;
Determine the corresponding dynamic image of the play instruction, the dynamic image is inserted into the play area and is carried out Play.
Preferably, it is described to determine the corresponding dynamic image of the play instruction, the dynamic image is inserted into described broadcast Putting the step of being played out in region includes:
Determine the corresponding dynamic image of the play instruction;
Read the image bag of the dynamic image, and extract out of described image bag the dynamic image single-frame images and Configuration file;
The playing sequence of the single-frame images is determined according to the configuration file;
The single-frame images is inserted into the play area according to the playing sequence and is shown.
Preferably, described be inserted into the single-frame images in the play area according to the playing sequence is shown The step of include:
Audio file is searched in the configuration file;
When finding audio file, the audio file is extracted;
The single-frame images is inserted into the play area according to the playing sequence and is shown, and is played at the same time The audio file.
Preferably, it is described when receiving dynamic expression play instruction, before the step of obtaining the screen size of terminal, also Including:
The image bag of the dynamic image is obtained from server;
Parse the stitching image of extraction single-frame images in described image Bao Bingcong described images bag;
The stitching image is decomposed into multiple single-frame images and is stored in the image bag of the dynamic image.
Preferably, it is described before the step of image bag of the server acquisition dynamic image, further include:
The dynamic image of dynamic expression to be uploaded is obtained, acquired dynamic image is decomposed into multiple single-frame images, and Generate corresponding configuration file;
The single-frame images is subjected to splicing generation stitching image;
By the stitching image and the image bag of the corresponding dynamic image of configuration file packing generation;
The image bag of the dynamic image is uploaded onto the server.
In addition, to achieve the above object, the present invention also provides a kind of dynamic expression playing device, the dynamic expression plays Device includes:
Receiving module, for when receiving dynamic expression play instruction, obtaining the screen size of terminal;
Processing module, for being the screen size by the play area size adjusting of the dynamic expression;
Playing module, for determining the corresponding dynamic image of the play instruction, the dynamic image is inserted into described Played out in play area.
Preferably, the playing module includes determination unit, reading unit and broadcast unit;
The determination unit, for determining the corresponding dynamic image of the play instruction;
The reading unit, for reading the image bag of the dynamic image, and extracts described move out of described image bag The single-frame images and configuration file of state image;
The determination unit, is additionally operable to determine the playing sequence of the single-frame images according to the configuration file;
The broadcast unit, for by the single-frame images according to the playing sequence be inserted into the play area into Row display.
Preferably, the playing module includes searching unit;
The searching unit, for searching audio file in the configuration file;
The reading unit, is additionally operable to, when finding audio file, extract the audio file;
The broadcast unit, is additionally operable to the single-frame images being inserted into the play area according to the playing sequence It has been shown that, and play the audio file at the same time.
Preferably, the dynamic expression playing device further includes:Acquisition module, parsing module and decomposing module;
The acquisition module, for obtaining the image bag of the dynamic image from server;
The parsing module, the spliced map of single-frame images is extracted for parsing in described image Bao Bingcong described image bags Picture;
The decomposing module, for the stitching image to be decomposed into multiple single-frame images and is stored in the dynamic image Image bag in.
Preferably, the dynamic expression playing device further includes:Concatenation module, packetization module and uploading module;
The acquisition module, is additionally operable to obtain the dynamic image of dynamic expression to be uploaded, by acquired dynamic image point Solve as multiple single-frame images, and generate corresponding configuration file;
The concatenation module, for the single-frame images to be carried out splicing generation stitching image;
The packetization module, for the stitching image and configuration file packing generation to be corresponded to the figure of dynamic image As bag;
The uploading module, for the image bag of the dynamic image to be uploaded onto the server.
The present invention adjusts the size of play area according to the screen size of terminal so that dynamic expression is complete in play area Screen plays, and effectively solves the problems, such as that existing dynamic expression is only limitted to play in certain area, is unable to played in full screen, improves use The network service experience at family.
Brief description of the drawings
Fig. 1 is the flow diagram of the first embodiment of dynamic expression playback method of the present invention;
Fig. 2 is the flow diagram of the second embodiment of dynamic expression playback method of the present invention;
Fig. 3 is the flow diagram of the preferred embodiment of step S34 in Fig. 2;
Fig. 4 is the flow diagram of the 3rd embodiment of dynamic expression playback method of the present invention;
Fig. 5 is the flow diagram of the preferred embodiment of the image packet procedures of the self-defined generation dynamic image of the present invention;
Fig. 6 is the high-level schematic functional block diagram of the first embodiment of dynamic expression playing device of the present invention;
Fig. 7 is the high-level schematic functional block diagram of the second embodiment of dynamic expression playing device of the present invention;
Fig. 8 is the high-level schematic functional block diagram of the 3rd embodiment of dynamic expression playing device of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:When receiving dynamic expression play instruction, the screen of terminal is obtained Curtain size;It is the screen size by the play area size adjusting of the dynamic expression;Determine that the play instruction is corresponding Dynamic image, the dynamic image is inserted into the play area and is played out.
Existing dynamic expression is only limitted to play in certain area, is unable to the problem of played in full screen, so that user Network service experience is relatively low.
Based on the above problem, the present invention provides a kind of dynamic expression playback method.
With reference to Fig. 1, Fig. 1 is the flow diagram of the first embodiment of dynamic expression playback method of the present invention.
In the present embodiment, the dynamic expression playback method includes:
Step S10, when receiving dynamic expression play instruction, obtains the screen size of terminal;
The terminal obtains the screen size of terminal when receiving dynamic expression play instruction.The terminal can be with Various forms is implemented.For example, the terminal can include such as mobile phone, smart phone, laptop, digital broadcasting Receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), guider etc. Mobile terminal and such as fixed terminal of numeral TV, desktop computer etc..
The terminal can receive the dynamic expression icon sent from other terminals by server, and by described dynamic State emotion icons trigger dynamic expression play instruction;Alternatively, the dynamic expression icon list of the terminal local can also be provided, Dynamic expression play instruction is triggered by the dynamic expression icon in the list.The terminal is receiving the dynamic expression During play instruction, the screen size of the terminal can be read by the display driving of the terminal, or by described in calculating The screen pixels of terminal obtain the screen size of terminal.The screen of the terminal can include such as liquid crystal display (LCD), film Transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. are each Kind of display device implement showing the screen of information.
Step S20, is the screen size by the play area size adjusting of the dynamic expression;
The play area size adjusting of the dynamic expression is the screen size by the terminal.By to the dynamic The size of the play area of expression is adjusted, to realize the played in full screen to the dynamic expression.
Step S30, determines the corresponding dynamic image of the play instruction, and the dynamic image is inserted into the broadcast area Played out in domain.
The terminal determines the corresponding dynamic image of the play instruction, reads the dynamic image, and by the dynamic Image is inserted into the play area and plays out.Preferably, can be according to default dynamic image play instruction and dynamic Mapping relations between image, determine the corresponding dynamic image of the play instruction;Can be by calling the play area to carry The interface of confession, the dynamic image is inserted into the play area and carries out played in full screen.
The present embodiment adjusts the size of play area according to the screen size of terminal so that dynamic expression is in play area Played in full screen, effectively solves the problems, such as that existing dynamic expression is only limitted to play in certain area, is unable to played in full screen, improves The network service experience of user.
With reference to Fig. 2, Fig. 2 is the flow diagram of the second embodiment of dynamic expression playback method of the present invention.Based on above-mentioned The first embodiment of dynamic expression playback method, the step S30 include:
Step S31, determines the corresponding dynamic image of the play instruction;
The terminal determines the corresponding dynamic image of the dynamic expression play instruction.Preferably, can obtain default The mapping relations of dynamic expression play instruction and dynamic image, determine that the play instruction is corresponding dynamic according to the mapping relations State image, and determine store path of the image bag in the terminal local of the dynamic image.So as to out of described image bag Read the single-frame images and configuration file of the dynamic image.
Step S32, reads the image bag of the dynamic image, and the list of the dynamic image is extracted out of described image bag Two field picture and configuration file;
The terminal reads the image bag of the dynamic image, and the list of the dynamic image is extracted out of described image bag Two field picture and configuration file.The terminal can be according to the storage of identified dynamic image and the image bag of the dynamic image Path, reads the image bag of the dynamic image.The image bag of the dynamic image has included the dynamic image and has decomposed to obtain Single-frame images and configuration file, the configuration file includes the play parameter of the single-frame images, the play parameter bag The parameters such as playing sequence, the playback rate of the single-frame images are included, can also contain the dynamic image in the configuration file Corresponding audio file.The image bag of the dynamic image can be obtained from server, by the default of server generation The image bag of dynamic image;Alternatively, the image bag of the dynamic image can also pass through self-defined generation by the terminal The image bag of dynamic image.
Step S33, the playing sequence of the single-frame images is determined according to the configuration file;
Step S34, the single-frame images is inserted into the play area according to the playing sequence and is shown.
The terminal determines the playing sequence of the single-frame images according to the configuration file;By the single-frame images according to The playing sequence is inserted into the play area and is shown.Preferably, can be by calling the play area to provide Interface, the single-frame images is inserted into the play area according to the playing sequence and is displayed in full screen.Can be with Parse the configuration file and determine the play parameter such as the playback rate of the single-frame images, according to the play parameter to the list The display of two field picture is controlled.Preferably, corresponding expression audio can be played, specifically while dynamic expression is played Can be realized by following process.
With reference to Fig. 3, Fig. 3 is the flow diagram of the preferred embodiment of the step S34.The step S34 includes:
Step S340, audio file is searched in the configuration file;
Step S341, when finding audio file, extracts the audio file;
Step S342, the single-frame images is inserted into the play area according to the playing sequence and is shown, And the audio file is played at the same time.
The terminal searches audio file in the configuration file;When finding audio file, the audio is extracted File;The single-frame images is inserted into the play area according to the playing sequence and is shown, and plays institute at the same time State audio file.Realize while dynamic expression plays and play expression audio, further improve user experience.
The present embodiment adjusts the size of play area according to the screen size of terminal so that dynamic expression is in play area Played in full screen, effectively solves the problems, such as that existing dynamic expression is only limitted to play in certain area, is unable to played in full screen, improves The network service experience of user.And dynamic expression is decomposed into single-frame images and is shown, effectively reduce the occupancy of memory Rate, while expression audio is played during dynamic expression is played, the image sound effect synchronization of dynamic expression is realized, it is comprehensive Dynamic expression is shown, improves user experience.
With reference to Fig. 4, Fig. 4 is the flow diagram of the 3rd embodiment of dynamic expression playback method of the present invention.Based on above-mentioned The second embodiment of dynamic expression playback method, before the step S10, further includes:
Step S11, the image bag of the dynamic image is obtained from server;
The terminal obtains the image bag of the dynamic image from server.Dynamic expression play instruction can received Before, the image bag of all dynamic images is obtained from server, and is saved in the terminal local;Alternatively, the present invention's In other embodiments, it can also obtain the dynamic expression when receiving the dynamic expression play instruction from server and broadcast Put the corresponding image bag of instruction;Alternatively, when the terminal generates the image bag of dynamic image by defined interface, will give birth to Into image bag be stored in the terminal local.The image bag obtained from server includes the single frames of the dynamic expression The stitching image and configuration file that image mosaic is formed.
With reference to Fig. 5, the flow diagram of the preferred embodiment of the process of the image bag of the self-defined generation dynamic image.
Step S110, obtains the dynamic image of dynamic expression to be uploaded, and acquired dynamic image is decomposed into multiple lists Two field picture, and generate corresponding configuration file;
Step S111, splicing generation stitching image is carried out by the single-frame images;
Step S112, by the stitching image and the image bag of the corresponding dynamic image of configuration file packing generation;
Step S113, the image bag of the dynamic image is uploaded onto the server.
The terminal obtains the dynamic image of dynamic expression to be uploaded, and acquired dynamic image is decomposed into multiple single frames Image, and generate corresponding configuration file;The single-frame images is subjected to splicing generation stitching image;By the spliced map The image bag of picture and the corresponding dynamic image of configuration file packing generation;The image of the dynamic image is wrapped into the service of reaching Device.By by the single-frame images that is decomposed into of dynamic image, and single-frame images is spliced into stitching image and is preserved and is transmitted, had Effect reduces the storage resource taken in dynamic image preservation and transmitting procedure and Internet resources, improves transmission rate.
Step S12, the stitching image of the interior extraction single-frame images of parsing described image Bao Bingcong described images bag;
The stitching image of extraction single-frame images in the terminal parsing described image Bao Bingcong described images bag.From server The stitching image and configuration text that the single-frame images that the image bag of the dynamic image of acquisition includes the dynamic expression is spliced to form Part, before the dynamic image is played, need to extract the stitching image and be decomposed.
Step S13, is decomposed into multiple single-frame images by the stitching image and is stored in the image bag of the dynamic image It is interior.
The stitching image is decomposed into multiple single-frame images and is stored in the image bag of the dynamic image by the terminal It is interior in the image bag of the terminal local.Pre-processed by the image bag of the dynamic image to being obtained from server end, When to receive the play instruction of dynamic expression, to read single-frame images out of described image bag and configuration file is broadcast Put.
The present embodiment adjusts the size of play area according to the screen size of terminal so that dynamic expression is in play area Played in full screen, effectively solves the problems, such as that existing dynamic expression is only limitted to play in certain area, is unable to played in full screen, improves The network service experience of user.And dynamic expression is decomposed into single-frame images and is shown, effectively reduce the occupancy of memory Rate, while expression audio is played during dynamic expression is played, the image sound effect synchronization of dynamic expression is realized, it is comprehensive Dynamic expression is shown, improves user experience.Meanwhile decomposed the image of dynamic expression, and by decomposition Single-frame images is spliced into stitching image, and stitching image is packaged as image bag is preserved and transmitted, and effectively reduces dynamic table Feelings preserve and transmitting procedure in, the storage resource of occupancy and Internet resources etc., effectively raise the transmission rate of dynamic expression.
Above-mentioned first to the executive agent of the dynamic expression playback method of 3rd embodiment all can be network communication terminal. Further, the dynamic expression playback method can by by network communication terminal client-side program realize, Wherein, the network communication terminal can include such as mobile phone, smart phone, laptop, digit broadcasting receiver, The mobile end of PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), guider etc. End and such as fixed terminal of numeral TV, desktop computer etc..
The present invention further provides a kind of dynamic expression playing device.
With reference to Fig. 6, Fig. 6 is the high-level schematic functional block diagram of the first embodiment of dynamic expression playing device of the present invention.
In the present embodiment, the dynamic expression playing device includes:Receiving module 10, processing module 20 and playing module 30。
The receiving module 10, for when receiving dynamic expression play instruction, obtaining the screen size of terminal;
The terminal obtains the screen size of terminal when receiving dynamic expression play instruction.The terminal can be with Various forms is implemented.For example, the terminal can include such as mobile phone, smart phone, laptop, digital broadcasting Receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), guider etc. Mobile terminal and such as fixed terminal of numeral TV, desktop computer etc..
The terminal can receive the dynamic expression icon sent from other terminals by server, and by described dynamic State emotion icons trigger dynamic expression play instruction;Alternatively, the dynamic expression icon list of the terminal local can also be provided, Dynamic expression play instruction is triggered by the dynamic expression icon in the list.The terminal is receiving the dynamic expression During play instruction, the screen size of the terminal can be read by the display driving of the terminal, or by described in calculating The screen pixels of terminal obtain the screen size of terminal.The screen of the terminal can include such as liquid crystal display (LCD), film Transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. are each Kind of display device implement showing the screen of information.
The processing module 20, for being the screen size by the play area size adjusting of the dynamic expression;
The play area size adjusting of the dynamic expression is the screen size by the terminal.By to the dynamic The size of the play area of expression is adjusted, to realize the played in full screen to the dynamic expression.
The playing module 30, for determining the corresponding dynamic image of the play instruction, the dynamic image is inserted into Played out in the play area.
The terminal determines the corresponding dynamic image of the play instruction, reads the dynamic image, and by the dynamic Image is inserted into the play area and plays out.Preferably, can be according to default dynamic image play instruction and dynamic Mapping relations between image, determine the corresponding dynamic image of the play instruction;Can be by calling the play area to carry The interface of confession, the dynamic image is inserted into the play area and carries out played in full screen.
The present embodiment adjusts the size of play area according to the screen size of terminal so that dynamic expression is in play area Played in full screen, effectively solves the problems, such as that existing dynamic expression is only limitted to play in certain area, is unable to played in full screen, improves The network service experience of user.
With reference to Fig. 7, Fig. 7 is the high-level schematic functional block diagram of the second embodiment of dynamic expression playing device of the present invention.It is based on The first embodiment of above-mentioned dynamic expression playing device, the playing module 30 include determination unit 31, reading unit 32, play Unit 33 and searching unit 34;
The determination unit 31, for determining the corresponding dynamic image of the play instruction;
The terminal determines the corresponding dynamic image of the dynamic expression play instruction.Preferably, can obtain default The mapping relations of dynamic expression play instruction and dynamic image, determine that the play instruction is corresponding dynamic according to the mapping relations State image, and determine store path of the image bag in the terminal local of the dynamic image.So as to out of described image bag Read the single-frame images and configuration file of the dynamic image.
The reading unit 32, for reading the image bag of the dynamic image, and out of described image bag described in extraction The single-frame images and configuration file of dynamic image;
The terminal reads the image bag of the dynamic image, and the list of the dynamic image is extracted out of described image bag Two field picture and configuration file.The terminal can be according to the storage of identified dynamic image and the image bag of the dynamic image Path, reads the image bag of the dynamic image.The image bag of the dynamic image has included the dynamic image and has decomposed to obtain Single-frame images and configuration file, the configuration file includes the play parameter of the single-frame images, the play parameter bag The parameters such as playing sequence, the playback rate of the single-frame images are included, can also contain the dynamic image in the configuration file Corresponding audio file.The image bag of the dynamic image can be obtained from server, by the default of server generation The image bag of dynamic image;Alternatively, the image bag of the dynamic image can also pass through self-defined generation by the terminal The image bag of dynamic image.
The determination unit 31, is additionally operable to determine the playing sequence of the single-frame images according to the configuration file;
The broadcast unit 33, for the single-frame images to be inserted into the play area according to the playing sequence Shown.
The terminal determines the playing sequence of the single-frame images according to the configuration file;By the single-frame images according to The playing sequence is inserted into the play area and is shown.Preferably, can be by calling the play area to provide Interface, the single-frame images is inserted into the play area according to the playing sequence and is displayed in full screen.Can be with Parse the configuration file and determine the play parameter such as the playback rate of the single-frame images, according to the play parameter to the list The display of two field picture is controlled.Preferably, corresponding expression audio can be played, specifically while dynamic expression is played Can be realized by following process.
The searching unit 34, for searching audio file in the configuration file;
The reading unit 32, is additionally operable to, when finding audio file, extract the audio file;
The broadcast unit 33, is additionally operable to the single-frame images being inserted into the play area according to the playing sequence Inside shown, and play the audio file at the same time.
The terminal searches audio file in the configuration file;When finding audio file, the audio is extracted File;The single-frame images is inserted into the play area according to the playing sequence and is shown, and plays institute at the same time State audio file.Realize while dynamic expression plays and play expression audio, further improve user experience.
The present embodiment adjusts the size of play area according to the screen size of terminal so that dynamic expression is in play area Played in full screen, effectively solves the problems, such as that existing dynamic expression is only limitted to play in certain area, is unable to played in full screen, improves The network service experience of user.And dynamic expression is decomposed into single-frame images and is shown, effectively reduce the occupancy of memory Rate, while expression audio is played during dynamic expression is played, the image sound effect synchronization of dynamic expression is realized, it is comprehensive Dynamic expression is shown, improves user experience.
With reference to Fig. 8, Fig. 8 is the high-level schematic functional block diagram of the 3rd embodiment of dynamic expression playing device of the present invention.It is based on The second embodiment of above-mentioned dynamic expression playing device, the dynamic expression playing device further include:Acquisition module 40, parsing mould Block 50, decomposing module 60, concatenation module 70, packetization module 80 and uploading module 90;
The acquisition module 40, for obtaining the image bag of the dynamic image from server;
The terminal obtains the image bag of the dynamic image from server.Dynamic expression play instruction can received Before, the image bag of all dynamic images is obtained from server, and is saved in the terminal local;Alternatively, the present invention's In other embodiments, it can also obtain the dynamic expression when receiving the dynamic expression play instruction from server and broadcast Put the corresponding image bag of instruction;Alternatively, when the terminal generates the image bag of dynamic image by defined interface, will give birth to Into image bag be stored in the terminal local.The image bag obtained from server includes the single frames of the dynamic expression The stitching image and configuration file that image mosaic is formed.
The parsing module 50, the spliced map of single-frame images is extracted for parsing in described image Bao Bingcong described image bags Picture;
The stitching image of extraction single-frame images in the terminal parsing described image Bao Bingcong described images bag.From server The stitching image and configuration text that the single-frame images that the image bag of the dynamic image of acquisition includes the dynamic expression is spliced to form Part, before the dynamic image is played, need to extract the stitching image and be decomposed.
The decomposing module 60, for the stitching image to be decomposed into multiple single-frame images and is stored in the Dynamic Graph In the image bag of picture.
The stitching image is decomposed into multiple single-frame images and is stored in the image bag of the dynamic image by the terminal It is interior in the image bag of the terminal local.Pre-processed by the image bag of the dynamic image to being obtained from server end, When to receive the play instruction of dynamic expression, to read single-frame images out of described image bag and configuration file is broadcast Put.
The acquisition module 40, the concatenation module 70, the packetization module 80 and the uploading module 90 are used to make by oneself The image bag of justice generation dynamic image.
The acquisition module 40, is additionally operable to obtain the dynamic image of dynamic expression to be uploaded, by acquired dynamic image Multiple single-frame images are decomposed into, and generate corresponding configuration file;
The concatenation module 70, for the single-frame images to be carried out splicing generation stitching image;
The packetization module 80, for the stitching image and configuration file packing generation to be corresponded to dynamic image Image bag;
The uploading module 90, for the image bag of the dynamic image to be uploaded onto the server.
The terminal obtains the dynamic image of dynamic expression to be uploaded, and acquired dynamic image is decomposed into multiple single frames Image, and generate corresponding configuration file;The single-frame images is subjected to splicing generation stitching image;By the spliced map The image bag of picture and the corresponding dynamic image of configuration file packing generation;The image of the dynamic image is wrapped into the service of reaching Device.By by the single-frame images that is decomposed into of dynamic image, and single-frame images is spliced into stitching image and is preserved and is transmitted, had Effect reduces the storage resource taken in dynamic image preservation and transmitting procedure and Internet resources, improves transmission rate.
The present embodiment adjusts the size of play area according to the screen size of terminal so that dynamic expression is in play area Played in full screen, effectively solves the problems, such as that existing dynamic expression is only limitted to play in certain area, is unable to played in full screen, improves The network service experience of user.And dynamic expression is decomposed into single-frame images and is shown, effectively reduce the occupancy of memory Rate, while expression audio is played during dynamic expression is played, the image sound effect synchronization of dynamic expression is realized, it is comprehensive Dynamic expression is shown, improves user experience.Meanwhile decomposed the image of dynamic expression, and by decomposition Single-frame images is spliced into stitching image, and stitching image is packaged as image bag is preserved and transmitted, and effectively reduces dynamic table Feelings preserve and transmitting procedure in, the storage resource of occupancy and Internet resources etc., effectively raise the transmission rate of dynamic expression.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there are other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, takes Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills Art field, is included within the scope of the present invention.

Claims (6)

1. a kind of dynamic expression playback method, it is characterised in that the dynamic expression playback method comprises the following steps:
When receiving dynamic expression play instruction, the screen size of terminal is obtained;
It is the screen size by the play area size adjusting of the dynamic expression;
Determine the corresponding dynamic image of the play instruction, the dynamic image is inserted into the play area and is broadcast Put;
Wherein, it is described when receiving dynamic expression play instruction, before the step of obtaining the screen size of terminal, further include:
The image bag of the dynamic image is obtained from server;
Parse the stitching image of extraction single-frame images in described image Bao Bingcong described images bag;
The stitching image is decomposed into multiple single-frame images and is stored in the image bag of the dynamic image;
Wherein, it is described before the step of image bag of the server acquisition dynamic image, further include:
The dynamic image of dynamic expression to be uploaded is obtained, acquired dynamic image is decomposed into multiple single-frame images, and generate Corresponding configuration file;
The single-frame images is subjected to splicing generation stitching image;
By the stitching image and the image bag of the corresponding dynamic image of configuration file packing generation;
The image bag of the dynamic image is uploaded onto the server.
2. dynamic expression playback method as claimed in claim 1, it is characterised in that described to determine that the play instruction is corresponding Dynamic image, the dynamic image is inserted into the step of being played out in the play area includes:
Determine the corresponding dynamic image of the play instruction;
The image bag of the dynamic image is read, and single-frame images and the configuration of the dynamic image are extracted out of described image bag File;
The playing sequence of the single-frame images is determined according to the configuration file;
The single-frame images is inserted into the play area according to the playing sequence and is shown.
3. dynamic expression playback method as claimed in claim 2, it is characterised in that it is described by the single-frame images according to described Playing sequence, which is inserted into the step of being shown in the play area, to be included:
Audio file is searched in the configuration file;
When finding audio file, the audio file is extracted;
The single-frame images is inserted into the play area according to the playing sequence and is shown, and at the same time described in broadcasting Audio file.
4. a kind of dynamic expression playing device, it is characterised in that the dynamic expression playing device includes:
Receiving module, for when receiving dynamic expression play instruction, obtaining the screen size of terminal;
Processing module, for being the screen size by the play area size adjusting of the dynamic expression;
Playing module, for determining the corresponding dynamic image of the play instruction, the broadcasting is inserted into by the dynamic image Played out in region;
Wherein, the dynamic expression playing device further includes:Acquisition module, parsing module and decomposing module;
The acquisition module, for obtaining the image bag of the dynamic image from server;
The parsing module, the stitching image of single-frame images is extracted for parsing in described image Bao Bingcong described image bags;
The decomposing module, for the stitching image to be decomposed into multiple single-frame images and is stored in the figure of the dynamic image As in bag;
Wherein, the dynamic expression playing device further includes:Concatenation module, packetization module and uploading module;
The acquisition module, is additionally operable to obtain the dynamic image of dynamic expression to be uploaded, acquired dynamic image is decomposed into Multiple single-frame images, and generate corresponding configuration file;
The concatenation module, for the single-frame images to be carried out splicing generation stitching image;
The packetization module, for the stitching image and configuration file packing generation to be corresponded to the image of dynamic image Bag;
The uploading module, for the image bag of the dynamic image to be uploaded onto the server.
5. dynamic expression playing device as claimed in claim 4, it is characterised in that the playing module include determination unit, Reading unit and broadcast unit;
The determination unit, for determining the corresponding dynamic image of the play instruction;
The reading unit, for reading the image bag of the dynamic image, and extracts the Dynamic Graph out of described image bag The single-frame images and configuration file of picture;
The determination unit, is additionally operable to determine the playing sequence of the single-frame images according to the configuration file;
The broadcast unit, is shown for the single-frame images to be inserted into the play area according to the playing sequence Show.
6. dynamic expression playing device as claimed in claim 5, it is characterised in that the playing module includes searching unit;
The searching unit, for searching audio file in the configuration file;
The reading unit, is additionally operable to, when finding audio file, extract the audio file;
The broadcast unit, is additionally operable to the single-frame images being inserted into the play area according to the playing sequence and carries out It has been shown that, and the audio file is played at the same time.
CN201510271943.2A 2015-05-25 2015-05-25 Dynamic expression playback method and device Active CN104932853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510271943.2A CN104932853B (en) 2015-05-25 2015-05-25 Dynamic expression playback method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510271943.2A CN104932853B (en) 2015-05-25 2015-05-25 Dynamic expression playback method and device

Publications (2)

Publication Number Publication Date
CN104932853A CN104932853A (en) 2015-09-23
CN104932853B true CN104932853B (en) 2018-05-08

Family

ID=54120031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510271943.2A Active CN104932853B (en) 2015-05-25 2015-05-25 Dynamic expression playback method and device

Country Status (1)

Country Link
CN (1) CN104932853B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479784B (en) 2017-07-31 2022-01-25 腾讯科技(深圳)有限公司 Expression display method and device and computer readable storage medium
CN111464430B (en) * 2020-04-09 2023-07-04 腾讯科技(深圳)有限公司 Dynamic expression display method, dynamic expression creation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541515A (en) * 2010-12-08 2012-07-04 腾讯科技(深圳)有限公司 Method and device for realizing special screen switching effect
CN102903137A (en) * 2011-07-27 2013-01-30 腾讯科技(深圳)有限公司 Animation playing method and system
CN102946592A (en) * 2012-11-21 2013-02-27 广东欧珀移动通信有限公司 Method and system for mobile terminal to send and receive messages
CN103971391A (en) * 2013-02-01 2014-08-06 腾讯科技(深圳)有限公司 Animation method and device
CN104079468A (en) * 2013-03-25 2014-10-01 腾讯科技(深圳)有限公司 Animation transmission method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002085023A1 (en) * 2001-04-12 2002-10-24 Webstream Corporation Streaming delivery management system and method
CN101420393B (en) * 2008-12-10 2011-01-05 腾讯科技(深圳)有限公司 Method for implementing expression edition based on instant messaging and terminal based on instant message
US9451092B2 (en) * 2009-01-29 2016-09-20 Rick Qureshi Mobile device messaging application
CN103200258A (en) * 2013-03-28 2013-07-10 广东威创视讯科技股份有限公司 Distributed image stitching method, distributed image stitching server and distributed image stitching terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541515A (en) * 2010-12-08 2012-07-04 腾讯科技(深圳)有限公司 Method and device for realizing special screen switching effect
CN102903137A (en) * 2011-07-27 2013-01-30 腾讯科技(深圳)有限公司 Animation playing method and system
CN102946592A (en) * 2012-11-21 2013-02-27 广东欧珀移动通信有限公司 Method and system for mobile terminal to send and receive messages
CN103971391A (en) * 2013-02-01 2014-08-06 腾讯科技(深圳)有限公司 Animation method and device
CN104079468A (en) * 2013-03-25 2014-10-01 腾讯科技(深圳)有限公司 Animation transmission method and system

Also Published As

Publication number Publication date
CN104932853A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
US10200763B2 (en) Video-based interaction method, terminal, server and system
JP6227766B2 (en) Method, apparatus and terminal device for changing facial expression symbol in chat interface
US11178358B2 (en) Method and apparatus for generating video file, and storage medium
US10750223B2 (en) System, method, and device for displaying content item
CN103226961B (en) A kind of playing method and device
CN103067558B (en) The method and apparatus being associated with the picture of contact person in address list
CN105183296B (en) interactive interface display method and device
CN106028161A (en) Bullet screen generation method and apparatus, bullet screen presentation method and apparatus, server and client
CN107155138A (en) Video playback jump method, equipment and computer-readable recording medium
CN106791958A (en) Position marker information generation method and device
CN107888982B (en) Video information recommendation method and device
CN103279496A (en) Terminal and display method of associated information
CN112363785A (en) Terminal display method, terminal and computer readable storage medium
US10841647B2 (en) Network aggregation of streaming data interactions from distinct user interfaces
CN107770570A (en) Audio video synchronization player method, system and computer-readable recording medium
CN103686246B (en) Player method, device, equipment and system when transmission stream video is selected
CN108418897A (en) Information sharing method, terminal and computer readable storage medium
US20210069601A1 (en) Game drawer
CN106341723A (en) Bullet screen display method and apparatus
CN103576539A (en) Time calibration method and device
CN106658064A (en) Virtual gift showing method and device
CN107911280A (en) Information push method, intelligent terminal and computer-readable recording medium
US20190158624A1 (en) Event management and presentation
CN104932853B (en) Dynamic expression playback method and device
CN107635083A (en) The tinkle of bells method to set up, mobile terminal and readable storage medium storing program for executing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant