CN106504303A - A kind of method and apparatus for playing frame animation - Google Patents

A kind of method and apparatus for playing frame animation Download PDF

Info

Publication number
CN106504303A
CN106504303A CN201610821248.3A CN201610821248A CN106504303A CN 106504303 A CN106504303 A CN 106504303A CN 201610821248 A CN201610821248 A CN 201610821248A CN 106504303 A CN106504303 A CN 106504303A
Authority
CN
China
Prior art keywords
field picture
picture
pictorial element
frame animation
image
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
CN201610821248.3A
Other languages
Chinese (zh)
Other versions
CN106504303B (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.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201610821248.3A priority Critical patent/CN106504303B/en
Publication of CN106504303A publication Critical patent/CN106504303A/en
Application granted granted Critical
Publication of CN106504303B publication Critical patent/CN106504303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention is with regard to a kind of method and apparatus for playing frame animation, belongs to field of computer technology.Methods described includes:Obtain the configuration information of each pictorial element in first two field picture to be played of target frame animation, wherein, the configuration information includes the component identification of corresponding pictorial element, with picture material of the described image element in first two field picture relative to the benchmark image content of described image element change information, according to the configuration information of each pictorial element, and the corresponding relation of the benchmark image content in the target frame animation for prestoring and component identification, picture material of each pictorial element in first two field picture described in determining, according to picture material of each pictorial element described in first two field picture, play first two field picture.Using the present invention, the possibility that the internal memory of the running memory of application program overflows can be reduced.

Description

A kind of method and apparatus for playing frame animation
Technical field
The present invention is with regard to field of computer technology, especially with respect to a kind of method and apparatus for playing frame animation.
Background technology
Frame animation is a kind of common animation form, and object can be placed in the producer of frame animation different positions respectively Put, and shoot static images respectively, then all static images for shooting link together composition frame animation, so, sequentially Play these static images and will produce the visual effect that the object is kept in motion, frame rate one of the frame animation when playing As more lower slightly than common animation, have certain bounce sense in playing process in visual effect.
Typically, decoded frame animation can be included during frame animation is played by application program by terminal Each two field picture cache to terminal be the application assigned running memory in, then play out frame by frame.
During the present invention is realized, inventor has found that prior art at least has problems with:
If the two field picture that frame animation includes is relatively more, the data volume for caching the running memory to application program can compare Greatly, and running memory that terminal is each application assigned is certain, so as to the running memory of application program can be caused to send out Raw internal memory overflows.
Content of the invention
In order to overcome problem present in correlation technique, the invention provides a kind of method and apparatus for playing frame animation. Technical scheme is as follows:
First aspect according to embodiments of the present invention, there is provided a kind of method of broadcasting frame animation, methods described include:
The configuration information of each pictorial element in first two field picture to be played of target frame animation is obtained, wherein, described Configuration information is included in the image of the component identification of corresponding pictorial element and described image element in first two field picture Hold the change information of the benchmark image content relative to described image element;
According to the reference map in the configuration information of each pictorial element, and the target frame animation for prestoring As content and the corresponding relation of component identification, the picture material of each pictorial element in first two field picture is determined;
According to picture material of each pictorial element described in first two field picture, first two field picture is played.
Optionally, the configuration information of each pictorial element described in the basis, and the target frame for prestoring is dynamic Benchmark image content in picture and the corresponding relation of component identification, determine each pictorial element described in first two field picture Picture material, including:
For any image element in first two field picture, in the configuration information according to any image element The corresponding relation of the benchmark image content in component identification and the target frame animation that prestores and component identification, really The corresponding benchmark image content of the fixed any image element, according to the corresponding benchmark image content of any image element, And picture material of any image element in first two field picture is relative to any image elemental basis figure As the change information of content, picture material of any image element in first two field picture is determined.
As such, it is possible to there is the probability that internal memory overflows in the running memory for preferably reducing application program.
Optionally, the change information includes transparency change information, scaling change information, color value change information, rotation Turn one or more of change information.
As such, it is possible to there is the probability that internal memory overflows in the running memory for preferably reducing application program.
Optionally, also include the target frame in the corresponding configuration information of two field picture in the target frame animation foremost The playback rate of animation;
The picture material of each pictorial element described in the basis, plays first two field picture, including:
According to picture material and the playback rate of the target frame animation of each pictorial element, play described First two field picture.
As such, it is possible to make the more smooth of frame animation broadcasting.
Optionally, also include position letter of the corresponding pictorial element in first two field picture in the configuration information Breath;
Picture material of each pictorial element described in the basis in first two field picture, plays the first frame figure Picture, including:
According to picture material of each pictorial element described in first two field picture, and each pictorial element is in institute The positional information in the first two field picture is stated, first two field picture is generated;
Play first two field picture.
As such, it is possible to make the more smooth of frame animation broadcasting.
Second aspect according to embodiments of the present invention, there is provided a kind of device of broadcasting frame animation, described device include:
Acquisition module, for obtain each pictorial element in first two field picture to be played of target frame animation with confidence Breath, wherein, the configuration information includes the component identification of corresponding pictorial element and described image element in the first frame figure Change information of the picture material as in relative to the benchmark image content of described image element;
Determining module, for the configuration information according to each pictorial element, and the target frame for prestoring Benchmark image content in animation and the corresponding relation of component identification, determine each pictorial element described in first two field picture In picture material;
Playing module, for the picture material according to each pictorial element described in first two field picture, plays institute State the first two field picture.
Optionally, the determining module, is used for:
For any image element in first two field picture, in the configuration information according to any image element The corresponding relation of the benchmark image content in component identification and the target frame animation that prestores and component identification, really The corresponding benchmark image content of the fixed any image element, according to the corresponding benchmark image content of any image element, And picture material of any image element in first two field picture is relative to any image elemental basis figure As the change information of content, picture material of any image element in first two field picture is determined.
Optionally, the change information includes transparency change information, scaling change information, color value change information, rotation Turn one or more of change information.
Optionally, also include the target frame in the corresponding configuration information of two field picture in the target frame animation foremost The playback rate of animation;
The playing module, is used for:
According to picture material and the playback rate of the target frame animation of each pictorial element, play described First two field picture.
Optionally, also include position letter of the corresponding pictorial element in first two field picture in the configuration information Breath;
The playing module includes generating submodule and broadcasting submodule, wherein:
The generation submodule, for the picture material according to each pictorial element described in first two field picture, And positional information of each pictorial element in first two field picture, generate first two field picture;
The broadcasting submodule, for playing first two field picture.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, terminal can obtain mesh when first two field picture to be played of target frame animation is played The configuration information of each pictorial element in first two field picture to be played of mark frame animation, wherein, configuration information includes corresponding Benchmark image of picture material of the component identification and pictorial element of pictorial element in the first two field picture relative to pictorial element The change information of content, then according to the configuration information of each pictorial element, and the base in the target frame animation for prestoring Quasi- picture material and the corresponding relation of component identification, determine picture material of each pictorial element in the first two field picture, then According to picture material of each pictorial element in the first two field picture, the first two field picture is played.So, terminal is playing target frame During animation, it is only necessary to cache the corresponding configuration information of pictorial element and benchmark image content and component identification of each two field picture Corresponding relation, need the data volume of the complete image data of the relatively all two field pictures of data volume of caching fewer, so as to can To reduce the possibility that the internal memory of the running memory of application program overflows.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, can be obtaining other according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of method schematic diagram for playing two field picture provided in an embodiment of the present invention;
Fig. 2 is a kind of conversion schematic diagram of pictorial element provided in an embodiment of the present invention;
Fig. 3 is a kind of conversion schematic diagram of pictorial element provided in an embodiment of the present invention;
Fig. 4 is the structural representation of the device for playing two field picture provided in an embodiment of the present invention;
Fig. 5 is the structural representation of the device for playing two field picture provided in an embodiment of the present invention;
Fig. 6 is the structural representation of terminal provided in an embodiment of the present invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
A kind of method for playing out frame animation is embodiments provided, the executive agent of the method can be eventually End.Wherein, terminal can be provided with the application program for playing frame animation with mobile phone, computer etc. in terminal.Can arrange in the terminal There are processor, memory, transceiver etc., processor can be used for the process of the process for playing out frame animation, memory can be with For storing the data of the data and generation needed in the playing process of frame animation, transceiver can be used for receiving and send Data.Be also provided with the input-output equipment such as screen in terminal, screen be displayed for frame animation broadcast interface, with And the operation interface of terminal etc..The embodiment of the present invention carries out the detailed description of scheme so that terminal is as mobile phone as an example, other situations with Similar, the present embodiment is not repeated.
Before being implemented, the decomposable process of frame animation is introduced first:
After technical staff carries out frame animation in the terminal, frame animation can be uploaded to by terminal and play answering for frame animation With the background server of program (being subsequently referred to as server), after server receives the frame animation of terminal upload, can be to frame Animation is decomposed, and frame animation is decomposed into the multiple two field pictures used when frame animation is made, then using image recognition mould Type (such as CNN (Convolutional Neural Network, convolutional neural networks) model etc.), plays to target frame animation First two field picture carries out image recognition, identify people, the thing included in first two field picture, then looks at and prestores The mark of the people that can be decomposed, the mark of thing, determine whether the people included in first two field picture, thing can be decomposed, If can be decomposed, the people included in first two field picture, thing are decomposed, obtained the image in first two field picture Element, if certain thing cannot be decomposed, can using overall for the thing as the pictorial element in first two field picture, and be Each two field picture allocation elements mark in first two field picture, and using the picture material of the pictorial element in first two field picture as The benchmark image content of pictorial element.Then the people that included using second two field picture of image recognition Model Identification, thing, are identified The people that includes in second two field picture, thing, then look at mark, the mark of thing of the people that can be decomposed for prestoring Know, determine whether the people included in second two field picture, thing can be decomposed, if can be decomposed, by second frame figure As in, the people that includes, thing are decomposed, and obtain the pictorial element in second two field picture, then according to default transform method, Determine whether the picture material of each pictorial element in second two field picture can be become by the benchmark image content having determined Get in return, if it is determined that whether the picture material of certain pictorial element can be obtained by the benchmark image content conversion having determined Arrive, then picture material of the pictorial element in second two field picture can be stored relative in the benchmark image of the pictorial element The change information of appearance, if the picture material of certain pictorial element cannot be obtained by corresponding benchmark image content conversion, The benchmark image content that the picture material of the pictorial element is stored as the pictorial element.And store each figure in the two field picture The configuration information of pixel element, configuration information include the figure of the component identification and pictorial element of pictorial element in the first two field picture As content is relative to the change information of the benchmark image content of pictorial element.The like, server can be by frame animation Each two field picture is decomposed into pictorial element, and stores the configuration information of each pictorial element in each two field picture.So, server The complete image data of each two field picture need not be stored, storage resource is saved.
In addition, server can decompose to frame animation, frame animation is decomposed into use when frame animation is made many Individual two field picture, for multiple two field pictures, server can be split according to specified size, the elementary area for obtaining, now Elementary area is properly termed as pictorial element.For example, each two field picture is divided into the equal-sized pictorial element of preset number (such as each two field picture can be equally divided into 9 pictorial elements).If there are the identical pictorial element of picture material, should Picture material on the basis of picture material storage, and the component identification of pictorial element is added to benchmark image with corresponding picture material In the corresponding relation of content and component identification, so, avoid the need for storing identical part in each two field picture, save storage money Source, in addition server can store the configuration information of each pictorial element in each two field picture, configuration information includes image primitive Picture material of the component identification and pictorial element of element in the first two field picture is relative to the benchmark image content of pictorial element Change information.
In addition, the process of above-mentioned decomposition two field picture can also be carried out in terminal, terminal according to server identical method After decomposing to frame animation, can by decomposition after frame animation upload onto the server.
As shown in figure 1, the handling process of the method can include the steps:
Step 101, obtains the configuration information of each pictorial element in first two field picture to be played of target frame animation, its In, configuration information includes the picture material phase of the component identification and pictorial element of corresponding pictorial element in the first two field picture Change information for the benchmark image content of pictorial element.
Wherein, pictorial element refers to the elements such as the people or the thing that include in two field picture, or refers to two field picture according to specifying The elementary area that size is obtained after being split, the first two field picture are any one two field picture in frame animation.
In force, user can set up applications (such as live application program etc.) in the terminal, then operation starts The application program, when user watches target frame animation in the application program, user can click on the broadcasting choosing of target frame animation , terminal can then receive the play instruction of target frame animation, then (subsequently can be with letter to the background server of the application program Referred to as server) the acquisition request of frame animation is sent, the mark of target frame animation, service is carried in the acquisition request of frame animation After device receives the acquisition request of frame animation, can be from the acquisition of frame animation request, parsing obtains the mark of target frame animation, Then according to the mark of target frame animation, find in all benchmark image contents and each two field picture that target frame animation includes The configuration information of each pictorial element, and send to terminal, terminal receives all benchmark image contents that target frame animation includes With the configuration information of each pictorial element in each two field picture, and stored.
In terminal plays target frame animation during the first two field picture to be played, terminal can obtain each in the first two field picture The corresponding configuration information of pictorial element, for can include any image element in the corresponding configuration information of any image element Component identification, and the picture material of any image element in the first two field picture is relative to the benchmark of any image element The change information of picture material.For example, as shown in Fig. 2 the image primitive that the first two field picture includes have isosceles triangle, square Shape, change information of picture material of the isosceles triangle in the first two field picture relative to the primary image content of isosceles triangle For turning clockwise 45 degree, rectangle is zero relative to the change information of the primary image content of rectangle, i.e., rectangle is in the first frame figure Picture material as in is not changed in relative to the primary image content of rectangle.
The embodiment of the present invention is illustrated as a example by playing the first two field picture to be played in target frame animation, target frame figure The player method of other two field pictures as in addition to the first two field picture is identical with the method for playing the first two field picture, the present embodiment It is not repeated.
Step 102, according to the reference map in the configuration information of each pictorial element, and the target frame animation for prestoring As content and the corresponding relation of component identification, picture material of each pictorial element in the first two field picture is determined.
In force, terminal is got in the first two field picture after the configuration information of each pictorial element, and terminal can determine The component identification of each element in first two field picture, then according to the component identification of each pictorial element, from prestoring In benchmark image content in target frame animation and the corresponding relation of component identification, the corresponding reference map of each pictorial element is determined As content.Then can according to picture material of each pictorial element in the first two field picture relative to each pictorial element base The change information of quasi- picture material, determines picture material of each pictorial element in the first two field picture.
Optionally, picture material of any image element of the terminal in the first two field picture is determined in the first two field picture When, the process of step 102 can be as follows:
For any image element in the first two field picture, according to the element mark in the configuration information of any image element Benchmark image content in the target frame animation that knows and prestore and the corresponding relation of component identification, determine any image The corresponding benchmark image content of element, exists according to the corresponding benchmark image content of any image element and any image element Change information of the picture material in first two field picture relative to any image elemental basis picture material, determines any image unit Picture material of the element in the first two field picture.
In force, terminal is got in the first two field picture after the configuration information of each pictorial element, for the first frame figure Any image element as in, terminal can determine any image element from the corresponding configuration information of any image element Component identification, then the corresponding relation of the benchmark image content from the target frame animation for prestoring and component identification, looks into Find the corresponding benchmark image content of component identification of any image element.Then terminal can be from any image element pair In the configuration information that answers, the picture material of any image element in the first two field picture is searched relative to any image element The change information of benchmark image content, then terminal any image element can be determined in the first frame according to the change information Picture material in image.For example, as shown in Fig. 2 the image primitive that the first two field picture includes have isosceles triangle, rectangle, Picture material of the isosceles triangle in the first two field picture relative to the change information of the primary image content of isosceles triangle be 45 degree are turned clockwise, rectangle is zero relative to the change information of the primary image content of rectangle, i.e., rectangle is in the first two field picture In picture material be not changed in relative to the primary image content of rectangle, in image of the isosceles triangle in the first two field picture Appearance is the isosceles triangle after rotating 45 degree.
Optionally, change information includes that transparency change information, scaling change information, color value change information, rotation become One or more of change information.
In force, transparency change information, scaling change can be included in the corresponding change information of each pictorial element One or more in information, rotationally-varying information, for the first two field picture in arbitrary two field picture, transparency change information can be with It is the transparency of the picture material of any image element in the first two field picture relative to the basic of any image element The change information of the transparency of pictorial element content, scaling change information can be any image element in the first two field picture The size of picture material relative to the change information of the size of the primary image element content of any image element, (size can To be represented with the number of pixel), color value change information can be the image of any image element in the first two field picture Change information of the color value of content relative to the color value of the primary image element content of any image element, rotation become Change information can be the picture material of any image element in the first two field picture relative to the basic of any image element The change information of the rotation of pictorial element content.
Terminal is got in the first two field picture after the configuration information of each pictorial element, for the first two field picture in arbitrary Pictorial element, terminal can determine the component identification of any image element from the corresponding configuration information of any image element, Then the benchmark image content from the target frame animation for prestoring and the corresponding relation of component identification, find arbitrary figure The corresponding benchmark image content of the plain component identification of pixel.Then terminal can be from the corresponding configuration information of any image element In, the picture material of any image element in the first two field picture is searched relative to any image elemental basis picture material Change information, if the change information in the corresponding configuration information of any image element include scale change information, Can by the size of corresponding for any image primary image content according to scaling change information zoom in and out, if then this Change information in the corresponding configuration information of one pictorial element includes rotationally-varying information, then can be corresponding by any image Primary image content rotated according to rotationally-varying information, if then in the corresponding configuration information of any image element Change information include transparency change information, then the transparency of corresponding for any image primary image content can be pressed Shine through lightness change information and enter line translation, such terminal can be obtained after any image element is changed according to change information Picture material, i.e. terminal can determine the picture material of any image element in the first two field picture.For example, such as Fig. 3 institutes Show, the image primitive that the first two field picture includes have isosceles triangle, picture material of the isosceles triangle in the first two field picture It is turn clockwise 45 degree, scaling relative to the rotationally-varying information in the change information of the primary image content of isosceles triangle Change information is 1.5 times of amplification, after picture material of the isosceles triangle in the first two field picture is 45 degree of rotation and amplifies 1.5 Isosceles triangle after times.
Step 103, according to picture material of each pictorial element in the first two field picture, plays the first two field picture.
In force, after terminal determines picture material of each pictorial element in the first two field picture, terminal can basis Picture material of each pictorial element in the first two field picture, generates the first two field picture, then plays the first two field picture.
Optionally, also include broadcasting for target frame animation in the corresponding configuration information of two field picture in target frame animation foremost Speed is put, the process of step 103 can be as follows:
According to picture material and the playback rate of target frame animation of each pictorial element, the first two field picture is played.
In force, also include mesh in the corresponding configuration information of two field picture in the target frame animation of terminal buffers foremost The playback rate of mark frame animation, 20 frame such as per second etc.., when the first two field picture is played, terminal can be according to each image primitive for terminal Picture material of the element in the first two field picture, generates the first two field picture, then according to the playback rate of target frame animation, plays the One two field picture.For example, target frame animation that the corresponding configuration information of two field picture in target frame animation foremost includes is broadcast Speed is put for 20 frame per second, the first two field picture only shows 1/20 second when playing.
Optionally, also include positional information of the corresponding pictorial element in the first two field picture in configuration information, accordingly The process of step 103 can be as follows:
According to picture material of each pictorial element in the first two field picture, and each pictorial element is in the first two field picture In positional information, generate the first two field picture, play the first two field picture.
In force, also include corresponding pictorial element in the first two field picture in the corresponding configuration information of each pictorial element In positional information, the such as center of the first two field picture, the left side 10cm of the first two field picture of distance, top 10cm etc..Terminal After determining picture material of each pictorial element in the first two field picture, terminal can be corresponding with confidence from each pictorial element Each pictorial element positional information in first two field picture is searched in breath respectively, and then terminal can be according to the position that determines The picture material of each pictorial element is loaded into corresponding position by information, is generated the first two field picture, is then played the first frame figure Picture.
In the embodiment of the present invention, terminal can obtain mesh when first two field picture to be played of target frame animation is played The configuration information of each pictorial element in first two field picture to be played of mark frame animation, wherein, configuration information includes corresponding Benchmark image of picture material of the component identification and pictorial element of pictorial element in the first two field picture relative to pictorial element The change information of content, then according to the configuration information of each pictorial element, and the base in the target frame animation for prestoring Quasi- picture material and the corresponding relation of component identification, determine picture material of each pictorial element in the first two field picture, then According to picture material of each pictorial element in the first two field picture, the first two field picture is played.So, terminal is playing target frame During arbitrary two field picture of animation, it is possible to use the configuration information of the pictorial element that arbitrary two field picture includes, any frame figure is generated Picture, and the full content without each two field picture for needing caching of target frame animation, so as to be not result in the operation of application program The internal memory that deposits overflows.
Identical technology design is based on, the embodiment of the present invention additionally provides a kind of device for playing frame animation, such as Fig. 4 institutes Show, the device includes:
Acquisition module 410, for obtaining matching somebody with somebody for each pictorial element in first two field picture to be played of target frame animation Confidence ceases, and wherein, the configuration information includes the component identification of corresponding pictorial element and described image element described first Change information of the picture material in two field picture relative to the benchmark image content of described image element;
Determining module 420, for the configuration information according to each pictorial element, and the target for prestoring Benchmark image content in frame animation and the corresponding relation of component identification, determine each pictorial element described in the first frame figure Picture material as in;
Playing module 430, for the picture material according to each pictorial element described in first two field picture, plays First two field picture.
Optionally, the determining module 420, is used for:
For any image element in first two field picture, in the configuration information according to any image element The corresponding relation of the benchmark image content in component identification and the target frame animation that prestores and component identification, really The corresponding benchmark image content of the fixed any image element, according to the corresponding benchmark image content of any image element, And picture material of any image element in first two field picture is relative to any image elemental basis figure As the change information of content, picture material of any image element in first two field picture is determined.
Optionally, the change information includes transparency change information, scaling change information, color value change information, rotation Turn one or more of change information.
Optionally, also include the target frame in the corresponding configuration information of two field picture in the target frame animation foremost The playback rate of animation;
The playing module 430, is used for:
According to picture material and the playback rate of the target frame animation of each pictorial element, play described First two field picture.
Optionally, also include position letter of the corresponding pictorial element in first two field picture in the configuration information Breath;
As shown in figure 5, the playing module 430 includes generating submodule 431 and plays submodule 432, wherein:
The generation submodule 431, in the image according to each pictorial element described in first two field picture Hold, and positional information of each pictorial element in first two field picture, generate first two field picture;
The broadcasting submodule 432, for playing first two field picture.
In the embodiment of the present invention, terminal can obtain mesh when first two field picture to be played of target frame animation is played The configuration information of each pictorial element in first two field picture to be played of mark frame animation, wherein, configuration information includes corresponding Benchmark image of picture material of the component identification and pictorial element of pictorial element in the first two field picture relative to pictorial element The change information of content, then according to the configuration information of each pictorial element, and the base in the target frame animation for prestoring Quasi- picture material and the corresponding relation of component identification, determine picture material of each pictorial element in the first two field picture, then According to picture material of each pictorial element in the first two field picture, the first two field picture is played.So, terminal is playing target frame During arbitrary two field picture of animation, it is possible to use the configuration information of the pictorial element that arbitrary two field picture includes, any frame figure is generated Picture, and the full content without each two field picture for needing caching of target frame animation, so as to be not result in the operation of application program The internal memory that deposits overflows.
It should be noted that:Above-described embodiment provide broadcasting frame animation device play frame animation when, only with above-mentioned The division of each functional module is illustrated, and in practical application, can distribute above-mentioned functions by different as desired Equipment is completed, will the internal structure of device be divided into different equipment, to complete all or part of function described above. In addition, above-described embodiment device for playing frame animation for providing and the embodiment of the method for playing frame animation belong to same design, its The process of implementing refers to embodiment of the method, repeats no more here.
Fig. 6 is refer to, the structural representation of the terminal involved by the embodiment of the present invention is it illustrates, the terminal can be intelligence Energy mobile phone, panel computer etc., can be used for the method for playing frame animation for implementing to provide in above-described embodiment.Specifically:
Terminal 600 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters The memory 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, the process for including or more than one processing core The part such as device 180 and power supply 190.It will be understood by those skilled in the art that the terminal structure illustrated in Fig. 6 do not constitute right The restriction of terminal, can include than illustrating more or less of part, or combine some parts, or different part cloth Put.Wherein:
RF circuits 110 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, transfer to one or more than one processor 180 is processed;In addition, will be related to up data is activation to Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..Additionally, RF circuits 110 can also be communicated with network and other equipment by radio communication.The radio communication can make With arbitrary communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 120 can be used to store software program and module, and processor 180 is stored in memory 120 by operation Software program and module, so as to execute various function application and data processing.Memory 120 mainly can include storing journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function etc.) etc.;Storage data field can be stored and use created number according to terminal 600 According to (such as voice data, phone directory etc.) etc..Additionally, memory 120 can include high-speed random access memory, can also wrap Include nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 is to memory 120 access.
Input block 130 can be used for the numeral of receives input or character information, and produce and user setup and function The relevant keyboard of control, mouse, action bars, optics or trace ball signal input.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect use Family thereon or neighbouring touch operation (such as user is using any suitable objects such as finger, stylus or annex in touch-sensitive table Operation on face 131 or near the Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.Optional , Touch sensitive surface 131 may include two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation brings is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then give processor 180, and can receiving processor 180 The order sent simultaneously is executed.Furthermore, it is possible to adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used to showing by user input information or be supplied to the information and terminal 600 of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 140 may include display floater 141, optionally, can adopt LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to be configuring display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 is detected thereon or neighbouring is touched After touching operation, processor 180 is sent to determine the type of touch event, with preprocessor 180 according to the type of touch event Corresponding visual output is provided on display floater 141.Although in figure 6, Touch sensitive surface 131 is conduct with display floater 141 Two independent parts realizing input and input function, but in some embodiments it is possible to by Touch sensitive surface 131 with show Panel 141 is integrated and realization is input into and output function.
Terminal 600 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to environment Adjusting the brightness of display floater 141, proximity transducer can cut out and show when terminal 600 is moved in one's ear the light and shade of light Panel 141 and/or backlight.Used as one kind of motion sensor, Gravity accelerometer can be detected in all directions (generally Three axles) acceleration size, can detect that size and the direction of gravity when static, can be used for recognize mobile phone attitude application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Extremely The other sensors such as the gyroscope that can also configure in terminal 600, barometer, hygrometer, thermometer, infrared ray sensor, here Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal 600.Audio frequency Electric signal after the voice data for receiving conversion can be transferred to loudspeaker 161, is converted to sound by loudspeaker 161 by circuit 160 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Voice data is converted to, then after voice data output processor 180 is processed, through RF circuits 110 being sent to such as another end End, or voice data is exported to memory 120 further to process.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal 600.
WiFi belongs to short range wireless transmission technology, and terminal 600 can help user's transceiver electronicses by WiFi module 170 Mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 6 is illustrated WiFi module 170, but it is understood that, which is simultaneously not belonging to must be configured into for terminal 600, can exist as needed completely Omit in the scope of the essence for not changing invention.
Processor 180 is the control centre of terminal 600, using each portion of various interfaces and connection whole mobile phone Point, software program and/or module in memory 120 is stored in by running or executing, and call and be stored in memory 120 Interior data, execute the various functions and processing data of terminal 600, so as to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modem processor, Wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Terminal 600 also includes the power supply 190 (such as battery) that powers to all parts, it is preferred that power supply can pass through electricity Management system is logically contiguous with processor 180, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal 600 can also include camera, bluetooth module etc., will not be described here.Specifically in this reality Apply in example, the display unit of terminal 600 is touch-screen display, terminal 600 also includes memory, and one or one Above program, one of them or more than one program storage in memory, and be configured to by one or one with Upper computing device states one or more than one program bag contains the instruction for being used for carrying out following operation:
The configuration information of each pictorial element in first two field picture to be played of target frame animation is obtained, wherein, described Configuration information is included in the image of the component identification of corresponding pictorial element and described image element in first two field picture Hold the change information of the benchmark image content relative to described image element;
According to the reference map in the configuration information of each pictorial element, and the target frame animation for prestoring As content and the corresponding relation of component identification, the picture material of each pictorial element in first two field picture is determined;
According to picture material of each pictorial element described in first two field picture, first two field picture is played.
Optionally, the configuration information of each pictorial element described in the basis, and the target frame for prestoring is dynamic Benchmark image content in picture and the corresponding relation of component identification, determine each pictorial element described in first two field picture Picture material, including:
For any image element in first two field picture, in the configuration information according to any image element The corresponding relation of the benchmark image content in component identification and the target frame animation that prestores and component identification, really The corresponding benchmark image content of the fixed any image element, according to the corresponding benchmark image content of any image element, And picture material of any image element in first two field picture is relative to any image elemental basis figure As the change information of content, picture material of any image element in first two field picture is determined.
Optionally, the change information includes transparency change information, scaling change information, color value change information, rotation Turn one or more of change information.
Optionally, also include the target frame in the corresponding configuration information of two field picture in the target frame animation foremost The playback rate of animation;
The picture material of each pictorial element described in the basis, plays first two field picture, including:
According to picture material and the playback rate of the target frame animation of each pictorial element, play described First two field picture.
Optionally, also include position letter of the corresponding pictorial element in first two field picture in the configuration information Breath;
Picture material of each pictorial element described in the basis in first two field picture, plays the first frame figure Picture, including:
According to picture material of each pictorial element described in first two field picture, and each pictorial element is in institute The positional information in the first two field picture is stated, first two field picture is generated;
Play first two field picture.
In the embodiment of the present invention, terminal can obtain mesh when first two field picture to be played of target frame animation is played The configuration information of each pictorial element in first two field picture to be played of mark frame animation, wherein, configuration information includes corresponding Benchmark image of picture material of the component identification and pictorial element of pictorial element in the first two field picture relative to pictorial element The change information of content, then according to the configuration information of each pictorial element, and the base in the target frame animation for prestoring Quasi- picture material and the corresponding relation of component identification, determine picture material of each pictorial element in the first two field picture, then According to picture material of each pictorial element in the first two field picture, the first two field picture is played.So, terminal is playing target frame During arbitrary two field picture of animation, it is possible to use the configuration information of the pictorial element that arbitrary two field picture includes, any frame figure is generated Picture, and the full content without each two field picture for needing caching of target frame animation, so as to be not result in the operation of application program The internal memory that deposits overflows.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware To complete, it is also possible to which the hardware for being instructed correlation by program is completed, and program can be stored in a kind of computer-readable storage medium In matter, storage medium mentioned above can be read-only storage, disk or CD etc..
Presently preferred embodiments of the present invention is these are only, not in order to limit the present invention, all in the spirit and principles in the present invention Within, any modification, equivalent substitution and improvements that is made etc. should be included within the scope of the present invention.

Claims (10)

1. a kind of play frame animation method, it is characterised in that methods described includes:
Obtain the configuration information of each pictorial element in first two field picture to be played of target frame animation, wherein, the configuration Information includes the picture material phase of the component identification of corresponding pictorial element and described image element in first two field picture Change information for the benchmark image content of described image element;
According in the benchmark image in the configuration information of each pictorial element, and the target frame animation for prestoring Hold the corresponding relation with component identification, determine the picture material of each pictorial element in first two field picture;
According to picture material of each pictorial element described in first two field picture, first two field picture is played.
2. method according to claim 1, it is characterised in that the configuration information of each pictorial element described in the basis, And the corresponding relation of the benchmark image content in the target frame animation for prestoring and component identification, determine described each Picture material of the pictorial element in first two field picture, including:
For any image element in first two field picture, according to the element in the configuration information of any image element Benchmark image content in the target frame animation for identifying and prestoring and the corresponding relation of component identification, determine institute State the corresponding benchmark image content of any image element, according to the corresponding benchmark image content of any image element and Picture material of any image element in first two field picture is relative in any image elemental basis image The change information of appearance, determines picture material of any image element in first two field picture.
3. method according to claim 1, it is characterised in that the change information includes transparency change information, scaling Change information, color value change information, one or more of rotationally-varying information.
4. method according to claim 1, it is characterised in that the two field picture in the target frame animation foremost is corresponding Also include the playback rate of the target frame animation in configuration information;
The picture material of each pictorial element described in the basis, plays first two field picture, including:
According to picture material and the playback rate of the target frame animation of each pictorial element, described first is played Two field picture.
5. method according to claim 1, it is characterised in that also include in the configuration information that corresponding pictorial element exists Positional information in first two field picture;
Picture material of each pictorial element described in the basis in first two field picture, plays first two field picture, Including:
According to picture material of each pictorial element described in first two field picture, and each pictorial element is described Positional information in one two field picture, generates first two field picture;
Play first two field picture.
6. a kind of play frame animation device, it is characterised in that described device includes:
Acquisition module, for obtaining the configuration information of each pictorial element in first two field picture to be played of target frame animation, Wherein, the configuration information includes the component identification and described image element of corresponding pictorial element in first two field picture In picture material relative to the benchmark image content of described image element change information;
Determining module, for the configuration information according to each pictorial element, and the target frame animation for prestoring In benchmark image content and component identification corresponding relation, determine described in each pictorial element in first two field picture Picture material;
Playing module, for the picture material according to each pictorial element described in first two field picture, plays described the One two field picture.
7. device according to claim 6, it is characterised in that the determining module, is used for:
For any image element in first two field picture, according to the element in the configuration information of any image element Benchmark image content in the target frame animation for identifying and prestoring and the corresponding relation of component identification, determine institute State the corresponding benchmark image content of any image element, according to the corresponding benchmark image content of any image element and Picture material of any image element in first two field picture is relative in any image elemental basis image The change information of appearance, determines picture material of any image element in first two field picture.
8. device according to claim 6, it is characterised in that the change information includes transparency change information, scaling Change information, color value change information, one or more of rotationally-varying information.
9. device according to claim 6, it is characterised in that the two field picture in the target frame animation foremost is corresponding Also include the playback rate of the target frame animation in configuration information;
The playing module, is used for:
According to picture material and the playback rate of the target frame animation of each pictorial element, described first is played Two field picture.
10. device according to claim 6, it is characterised in that also include corresponding pictorial element in the configuration information Positional information in first two field picture;
The playing module includes generating submodule and broadcasting submodule, wherein:
The generation submodule, for the picture material according to each pictorial element described in first two field picture, and Positional information of each pictorial element in first two field picture, generates first two field picture;
The broadcasting submodule, for playing first two field picture.
CN201610821248.3A 2016-09-13 2016-09-13 A kind of method and apparatus playing frame animation Active CN106504303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610821248.3A CN106504303B (en) 2016-09-13 2016-09-13 A kind of method and apparatus playing frame animation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610821248.3A CN106504303B (en) 2016-09-13 2016-09-13 A kind of method and apparatus playing frame animation

Publications (2)

Publication Number Publication Date
CN106504303A true CN106504303A (en) 2017-03-15
CN106504303B CN106504303B (en) 2019-11-26

Family

ID=58290052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610821248.3A Active CN106504303B (en) 2016-09-13 2016-09-13 A kind of method and apparatus playing frame animation

Country Status (1)

Country Link
CN (1) CN106504303B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107741850A (en) * 2017-09-29 2018-02-27 北京小米移动软件有限公司 Generation method, device and the storage medium of dynamic wall paper bag
CN108845777A (en) * 2018-06-11 2018-11-20 广州酷狗计算机科技有限公司 The method and apparatus for playing frame animation
CN110971958A (en) * 2018-09-30 2020-04-07 武汉斗鱼网络科技有限公司 Live broadcast gift banner frame-by-frame animation display method, storage medium, equipment and system
CN112435313A (en) * 2020-11-10 2021-03-02 北京百度网讯科技有限公司 Method and device for playing frame animation, electronic equipment and readable storage medium
WO2023061073A1 (en) * 2021-10-12 2023-04-20 Oppo广东移动通信有限公司 Animation playing method and apparatus, and storage medium and electronic device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411664A (en) * 1999-12-22 2003-04-16 爱慕特尔有限公司 System for moving image transmitting/receiving using wireless communication and method of same
CN1462982A (en) * 2002-05-29 2003-12-24 明日工作室股份有限公司 Intelligent method and system for creating motion pictures
CN1622618A (en) * 2004-12-24 2005-06-01 北京中星微电子有限公司 A screen broadcasting method
CN1949269A (en) * 2006-11-10 2007-04-18 北京金山软件有限公司 Cartoon realizing method and cartoon drawing system thereof
JP2008003673A (en) * 2006-06-20 2008-01-10 Oki Electric Ind Co Ltd Animation creation system and method
CN101685531A (en) * 2008-09-27 2010-03-31 盛乐信息技术(上海)有限公司 Method for processing computer game interface
CN102930580A (en) * 2011-09-27 2013-02-13 微软公司 Data frame animation
US20130136339A1 (en) * 2011-11-25 2013-05-30 Kyungpook National University Industry-Academic Cooperation Foundation System for real-time stereo matching
CN103268624A (en) * 2013-05-09 2013-08-28 四三九九网络股份有限公司 Method and device for generating animation with high-efficiency
CN105744281A (en) * 2016-03-28 2016-07-06 飞依诺科技(苏州)有限公司 Continuous image processing method and device
CN105843604A (en) * 2016-03-17 2016-08-10 北京麒麟合盛网络技术有限公司 Animation playing method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411664A (en) * 1999-12-22 2003-04-16 爱慕特尔有限公司 System for moving image transmitting/receiving using wireless communication and method of same
CN1462982A (en) * 2002-05-29 2003-12-24 明日工作室股份有限公司 Intelligent method and system for creating motion pictures
CN1622618A (en) * 2004-12-24 2005-06-01 北京中星微电子有限公司 A screen broadcasting method
JP2008003673A (en) * 2006-06-20 2008-01-10 Oki Electric Ind Co Ltd Animation creation system and method
CN1949269A (en) * 2006-11-10 2007-04-18 北京金山软件有限公司 Cartoon realizing method and cartoon drawing system thereof
CN101685531A (en) * 2008-09-27 2010-03-31 盛乐信息技术(上海)有限公司 Method for processing computer game interface
CN102930580A (en) * 2011-09-27 2013-02-13 微软公司 Data frame animation
US20130136339A1 (en) * 2011-11-25 2013-05-30 Kyungpook National University Industry-Academic Cooperation Foundation System for real-time stereo matching
CN103268624A (en) * 2013-05-09 2013-08-28 四三九九网络股份有限公司 Method and device for generating animation with high-efficiency
CN105843604A (en) * 2016-03-17 2016-08-10 北京麒麟合盛网络技术有限公司 Animation playing method and device
CN105744281A (en) * 2016-03-28 2016-07-06 飞依诺科技(苏州)有限公司 Continuous image processing method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107741850A (en) * 2017-09-29 2018-02-27 北京小米移动软件有限公司 Generation method, device and the storage medium of dynamic wall paper bag
CN108845777A (en) * 2018-06-11 2018-11-20 广州酷狗计算机科技有限公司 The method and apparatus for playing frame animation
CN108845777B (en) * 2018-06-11 2021-07-02 广州酷狗计算机科技有限公司 Method and device for playing frame animation
CN110971958A (en) * 2018-09-30 2020-04-07 武汉斗鱼网络科技有限公司 Live broadcast gift banner frame-by-frame animation display method, storage medium, equipment and system
CN112435313A (en) * 2020-11-10 2021-03-02 北京百度网讯科技有限公司 Method and device for playing frame animation, electronic equipment and readable storage medium
WO2023061073A1 (en) * 2021-10-12 2023-04-20 Oppo广东移动通信有限公司 Animation playing method and apparatus, and storage medium and electronic device

Also Published As

Publication number Publication date
CN106504303B (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN106454404B (en) A kind of methods, devices and systems playing live video
CN106933525B (en) A kind of method and apparatus showing image
CN104618217B (en) Share method, terminal, server and the system of resource
CN104519404B (en) The player method and device of graphic interchange format file
CN103390034B (en) Method, device, terminal and the server of picture presentation
CN105808060B (en) A kind of method and apparatus of playing animation
CN106488296B (en) A kind of method and apparatus showing video barrage
CN105828160B (en) Video broadcasting method and device
CN104133624B (en) Web animation display packing, device and terminal
CN104978115A (en) Content display method and device
CN103854298A (en) Method for integrating pictures with two-dimension codes and terminal
CN106504303B (en) A kind of method and apparatus playing frame animation
CN106792120A (en) The display methods of video pictures, device and terminal
CN103699309B (en) A kind of method for recording of synchronization video, device and mobile terminal
CN105491135B (en) Establish the method and device of data connection
CN103313139A (en) History display method and device and electronic device
CN104157007A (en) Video processing method and apparatus
CN104238893A (en) Video preview image displaying method and device
CN103853819A (en) Information acquisition method, terminal and system
CN104820546B (en) Function information methods of exhibiting and device
CN105447124A (en) Virtual article sharing method and device
CN106951139A (en) Message notifying frame display methods and device
CN107396193B (en) The method and apparatus of video playing
CN106791916A (en) A kind of methods, devices and systems of recommendation of audio data
CN106210838B (en) Caption presentation method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210111

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511449 29 / F, building B-1, Wanda Plaza, Wanbo business district, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170315

Assignee: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000053

Denomination of invention: A method and device for playing frame animation

Granted publication date: 20191126

License type: Common License

Record date: 20210208

EE01 Entry into force of recordation of patent licensing contract