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