CN106303722B - animation playing method and device - Google Patents

animation playing method and device Download PDF

Info

Publication number
CN106303722B
CN106303722B CN201610635678.6A CN201610635678A CN106303722B CN 106303722 B CN106303722 B CN 106303722B CN 201610635678 A CN201610635678 A CN 201610635678A CN 106303722 B CN106303722 B CN 106303722B
Authority
CN
China
Prior art keywords
view
pictures
playing
played
animation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610635678.6A
Other languages
Chinese (zh)
Other versions
CN106303722A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610635678.6A priority Critical patent/CN106303722B/en
Publication of CN106303722A publication Critical patent/CN106303722A/en
Application granted granted Critical
Publication of CN106303722B publication Critical patent/CN106303722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Abstract

the invention discloses a method for playing animation, which comprises the following steps: generating a view for playing the animation picture; acquiring N pictures which are played circularly within a total time t, wherein the time when the N pictures are played continuously once is a single-time circulating time t1, each picture in the N pictures comprises animation content, N is an integer greater than 1, t1 is greater than 0, and t is greater than t 1; controlling the N pictures to be played circularly in the view at the speed of N/t1 in the total time t; and when the N pictures are played circularly, controlling the view to move according to a predetermined track. The animation playing method provided by the embodiment of the invention can reduce the number of pictures in a picture circulating playing mode, thereby saving storage resources and processor resources.

Description

Animation playing method and device
Technical Field
the invention relates to the technical field of animation production, in particular to a method and a device for playing animation.
background
Some existing very complicated and gorgeous animations are generally realized by continuously playing pictures, a series of N pictures need to be provided by animation designers, and then the pictures are played from the 1 st picture to the Nth picture in a rotating manner within time t.
In the animation playing mode in the prior art, an animation designer needs to make a plurality of pictures, then the pictures are stored in the storage resource of the media device, and the pictures are processed by the processor resource of the media device, so that not only is the time of the animation designer wasted, but also the storage resource and the processor resource are wasted.
disclosure of Invention
in order to solve the problem of storage resource waste and processing resource waste caused by a large number of animation pictures in the prior art, embodiments of the present invention provide an animation playing method, which can reduce the number of pictures in a picture loop playing manner, thereby saving storage resources and processor resources. The embodiment of the invention also provides a corresponding device.
the invention provides a method for playing animation in a first aspect, which comprises the following steps:
generating a view for playing the animation picture;
Acquiring N pictures which are played circularly within a total time t, wherein the time when the N pictures are played continuously once is a single-time circulating time t1, each picture in the N pictures comprises animation content, N is an integer greater than 1, t1 is greater than 0, and t is greater than t 1;
controlling the N pictures to be played circularly in the view at the speed of N/t1 in the total time t;
and when the N pictures are played circularly, controlling the view to move according to a predetermined track.
The second aspect of the present invention provides an apparatus for playing animation, comprising:
A generating unit for generating a view for playing the animation picture;
An obtaining unit, configured to obtain N pictures played in a cycle within a total time t, where a time when the N pictures are played continuously once is a single cycle time t1, each of the N pictures includes animation content, N is an integer greater than 1, t1 is greater than 0, and t is greater than t 1;
a first control unit, configured to control the N pictures acquired by the acquisition unit to be played in a loop in the view generated by the generation unit at a speed of N/t1 within the total time t;
And the second control unit is used for controlling the view to move according to a predetermined track when the first control unit controls the N pictures to be played circularly.
Compared with the animation playing mode in the prior art, which requires that animation designers make a plurality of pictures, then the pictures are stored in the storage resources of the media equipment, and the pictures are processed by the processor resources of the media equipment, the animation playing method provided by the embodiment of the invention can reduce the number of the pictures in a picture circulating playing mode, thereby saving the storage resources and the processor resources.
Drawings
in order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is an exemplary illustration of animation playback;
FIG. 2 is a schematic diagram of an animation picture played in a loop according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an example of a scenario of loop play in an embodiment of the present invention;
FIG. 4 is another diagram illustrating an example of a scenario of loop play in an embodiment of the present invention;
FIG. 5 is another diagram illustrating an example of a scenario of loop play in an embodiment of the present invention;
FIG. 6 is a diagram of an embodiment of a method for playing animation according to an embodiment of the present invention;
FIG. 7 is another diagram illustrating an example of a scenario of loop play in an embodiment of the present invention;
FIG. 8 is another diagram illustrating an example of a scenario of loop play in an embodiment of the present invention;
FIG. 9 is another diagram illustrating an example of a scenario of loop play in an embodiment of the present invention;
FIG. 10 is another diagram illustrating an example of a scenario of loop play in an embodiment of the present invention;
FIG. 11 is a diagram of an embodiment of an apparatus for playing animation according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of an embodiment of an apparatus for playing animation according to an embodiment of the present invention;
fig. 13 is a schematic diagram of an embodiment of a playback device in an embodiment of the present invention.
Detailed Description
the embodiment of the invention provides an animation playing method, which can reduce the number of pictures in a picture circulating playing mode, thereby saving storage resources and processor resources. The embodiment of the invention also provides a corresponding device. The following are detailed below.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
animation is usually made of multiple pictures, and these pictures are played continuously at a certain speed, so that the animation effect is generated, and it is usually good that the animation contents in the multiple pictures are all the cyclic motion of the animation contents, for example: the small animals in the animation walk, run and ship on the sea, etc. It is possible that the main animation content on each picture is the same, with only slight differences in detail, and even that the animation content on many pictures may be identical, with only different positions in the pictures at different points in time, thus, if many pictures are made for continuous playback, the storage resources and processor resources are wasted without doubt.
for example: taking the yacht shown in fig. 1 as an example, if each picture is not multiplexed and 41 pictures are to be played within time t, the 41 pictures only need to be played at a speed of 41/t within time t until the 41 st picture is played, and the playing is completed. An animation is obtained in which the yacht shown in fig. 1 is exposed from the head from one side, then appears more and more, the yacht runs through the picture after all the yachts appear, and finally only the tail of the yacht is exposed from the other side. The example shown in fig. 1 requires making 41 pictures, storing the 41 pictures, and processing the 41 pictures by a processor during playing to finally obtain the animation playing process shown in fig. 1.
In order to reduce the number of pictures, in combination with the above example, the animation content in each picture in the above example is a yacht, and in order to better conform to wave fluctuation on the sea surface, in the embodiment of the present invention, 8 pictures as shown in fig. 2 are made in combination with the yacht and the wave flower, each picture includes the yacht and the wave flower in different states.
as can be seen from the comparison between fig. 2 and fig. 1, not only the number of pictures in fig. 2 is reduced, but also the size of the pictures in fig. 2 is reduced because it is considered that the animation content in each picture does not fill the whole picture, sometimes the animation content only occupies a small part of the picture, and the picture is filled with many blank transparent areas, which not only wastes memory, but also wastes the amount of computation of the processor. Therefore, the pictures in the embodiment of the invention reduce the repeated area of the non-animated content as much as possible on the basis of keeping the complete animated content. Thereby further reducing the occupation of memory resources and processor resources.
how to simulate the animation process of the 41 pictures shown in fig. 1 by using the 8 pictures shown in fig. 2 will be described below with reference to fig. 3 to 5.
as shown in fig. 3, taking the mobile phone playing the animation process that the yacht has traveled through as an example, starting from the first of 8 pictures, if the playing time required for playing 8 pictures is t1, the 8 pictures are played at the speed of 8/t1, one playing process of the 8 pictures is a loop, and after the playing of the first loop is completed, the playing of the second loop can be performed, that is, the 8 pictures are played repeatedly. If the two playing speeds of 41/t and 8/t1 are the same, then within the total time t, 5 loops can be played, and when the first picture of the 6 th loop is played, the whole animation playing process is finished, t1 is greater than 0, and t is greater than t 1.
Actually, the scheme for simulating the playing process of 41 pictures by using 8 pictures is to control the display position of the pictures, as shown in fig. 3, when the first picture in the 8 pictures is used for simulating the picture of the yacht just about to expose the head, only the display position of the picture needs to be controlled, only the head of the yacht of the picture appears on the display screen of the mobile phone, and other animation contents do not appear on the display screen of the mobile phone. The display of the second of the 8 pictures is then controlled in this way, each time according to a predetermined trajectory. Thus, when the 8 pictures are played at the speed of 8/t1, the picture of the yacht shown in fig. 4 displayed on the screen of the mobile phone is displayed on the screen of the mobile phone, and when the last picture of the whole animation playing process is played, the picture shown in fig. 5 is displayed on the screen of the mobile phone. The pictures shown in fig. 3 to 5 are only visible to the user on the screen of the mobile phone, and are not visible to the user outside the screen of the mobile phone. This realizes the process of simulating the 41 pictures shown in fig. 1 by using the 8 pictures shown in fig. 2.
Fig. 3 to 5 only list a few sequences in the yacht animation process, and the whole animation process can be understood by combining the pictures in fig. 1 with fig. 3 to 5.
In fact, the control scheme for controlling how much the picture is displayed on the display screen of the mobile phone is realized by controlling the view.
as shown in fig. 6, an embodiment of the method for playing an animation provided by the embodiment of the present invention includes:
101. and generating a view for playing the animation picture.
The view in the embodiment of the invention is used for loading the animation picture to be played.
102. acquiring N pictures which are played circularly in the total time t, wherein the time when the N pictures are played continuously once is a single-time circulating time t1, and each picture in the N pictures comprises animation content.
wherein N is an integer greater than 1, t1 is greater than 0, and t is greater than t 1.
103. And controlling the N pictures to be circularly played in the view at the speed of N/t1 in the total time t.
104. And when the N pictures are played circularly, controlling the view to move according to a predetermined track.
compared with the animation playing mode in the prior art, which requires that animation designers make a plurality of pictures, then the pictures are stored in the storage resources of the media equipment, and the pictures are processed by the processor resources of the media equipment, the animation playing method provided by the embodiment of the invention can reduce the number of the pictures in a picture circulating playing mode, thereby saving the storage resources and the processor resources.
Optionally, the generating a view for playing the animated picture may include:
Generating a first view and a second view for playing animation pictures, wherein the size of the first view is smaller than that of the second view, the size of the second view is matched with a display screen of a playing device, and the size of each picture in the N pictures is matched with that of the first view;
correspondingly, controlling the N pictures to be played circularly in the view at the speed of N/t1 during the total time t may include:
Controlling the N pictures to be played circularly in the first view at the speed of N/t1 in the total time t;
correspondingly, when the N pictures are played in a loop, controlling the view to move according to a predetermined track may include:
and when the N pictures are played circularly, controlling the track predetermined by the first view to move within the control range of the second view.
in the embodiment of the invention, the first view is a view matched with a picture to be played, and the second view is a view matched with a real screen, and considering that the background of the animation may not change basically, the second view is equivalent to a background screen, and is arranged at the position matched with a display screen of the playing device. The first view is used for loading the picture, so that the picture can be made to be matched with the first view only by means of the size of the picture, the making size of the picture can be reduced, and storage resources and processor resources are saved correspondingly.
when the pictures are controlled to be played circularly, the N pictures are controlled to be played circularly in the first view at the speed of N/t1, and then when the N pictures are played circularly, the predetermined track of the first view is controlled to move within the control range of the second view.
the above process can be understood by referring to fig. 7 to 9, as shown in fig. 7, including a first view 20 and a second view 30, the second view 30 is matched with the display screen, the first view 20 is loaded with the cyclically played pictures, and then the animation playing device controls the cyclically played pictures to cyclically play in the first view and move according to a predetermined track 40 during the cyclic playing. During the movement, the speed can be controlled according to the actual needs, such as: uniform speed or fast first and slow second, slow first and fast second, etc. Or setting the alpha value of the picture to change, such as running to the last gradual change and disappearing; or the size of the view of the motion process is controlled to change, and the like, so that more rich animation effects are achieved.
Optionally, the controlling, when the N pictures are played in a loop, a predetermined track of the first view to move within a control range of the second view may include:
determining a playing starting point and a playing end point of the first view;
And when the N pictures are played circularly, controlling the first view to move from the playing starting point to the playing end point.
In the embodiment of the present invention, as shown in fig. 10, a play start point 41 and a play end point 42 of a first view may be determined, where the determination of the play start point is to use a central point of the display screen as an origin of coordinates, and determine coordinates of the central point of a first picture in a first loop play as coordinates of the play start point; the determination of the playing end point is to use the central point of the display screen as the origin of coordinates, and determine the coordinates of the central point of the last picture in the last circular playing as the coordinates of the playing end point.
The above process can be described as a whole:
And generating a first view RoleAnamationView and a second view AnamationView. And loading N pictures, and defining the total playing time t. The size of RoleAnimationView is the same as the size of each frame picture. The size of the AnimationView is matched with the display screen, and the playing time of one cycle of the N pictures is t 1. In the above example of the yacht, N is 8, which is much less than 41, and the N pictures mainly form the yacht and dynamic wave effect. The picture size is also smaller, only needs the yacht to add the actual size of spoondrift just, does not need other blank transparent areas.
and after loading the pictures needing to be played circularly, continuously and circularly playing the N pictures within the total time t, and playing the N/t1 pictures at the speed of playing the N/t1 pictures within 1 second.
And determining a motion track path predetermined by RoleAnaimationView. In this example, the motion trajectory is a straight line from right to left, and includes coordinates of a start point (X1, Y1) and coordinates of an end point (X2, Y2), where (X1, Y1) is the origin of coordinates of a center point of the display screen, and the coordinates of the center point of the first picture in the first loop play are determined as the coordinates of the play start point.
(X2, Y2) is the coordinate origin of the center point of the display screen, and the coordinate of the center point of the last picture in the last loop playing is determined as the coordinate of the playing end point.
and controlling the first view RoleAnamationView to move around the motion track path within the limit range of the AnamationView view within the total time t of animation playing, thereby forming about the same animation effect as that of the 41 figures shown in the figure. And after playing for t time, ending the animation.
Consider that during animation playback, it is possible that the background screen is not a layer of constant, for example: in the embodiment of the present invention, when the N pictures are played in a loop, the second view can be updated, and the animation background is replaced by updating the second view, and of course, the number of updates and the update time are not limited and may be set as required.
The above is a description of the animation playback process, and the following describes an apparatus for playing animation in an embodiment of the present invention with reference to the drawings.
As shown in fig. 11, an embodiment of the apparatus 50 for playing an animation provided by the embodiment of the present invention includes:
A generating unit 501, configured to generate a view for playing an animation picture;
An obtaining unit 502, configured to obtain N pictures played in a loop within a total time t, where a time when the N pictures are played continuously once is a single loop time t1, each of the N pictures includes animation content, N is an integer greater than 1, t1 is greater than 0, and t is greater than t 1;
a first control unit 503, configured to control the N pictures acquired by the acquiring unit 502 to be played in a loop in the view generated by the generating unit 501 at a speed of N/t1 within the total time t;
a second control unit 503, configured to control the view to move according to a predetermined trajectory when the first control unit 503 controls the N pictures to be played in a loop.
in the embodiment of the present invention, the generating unit 501 generates a view for playing an animation picture; the obtaining unit 502 obtains N pictures played in a loop within a total time t, where the time when the N pictures are played continuously once is a single loop time t1, each of the N pictures includes animation content, N is an integer greater than 1, t1 is greater than 0, and t is greater than t 1; the first control unit 503 controls the N pictures acquired by the acquiring unit 502 to be played circularly in the view generated by the generating unit 501 at a speed of N/t1 within the total time t; when the first control unit 503 controls the N pictures to be played in a loop, the second control unit 503 controls the view to move according to a predetermined track. Compared with the animation playing mode in the prior art, which requires that animation designers make a plurality of pictures, then the pictures are stored in the storage resources of the media equipment, and the pictures are processed by the processor resources of the media equipment, the animation playing device provided by the embodiment of the invention can reduce the number of the pictures in a picture circulating playing mode, thereby saving the storage resources and the processor resources.
Optionally, the generating unit 501 is configured to generate a first view and a second view for playing an animation picture, where a size of the first view is smaller than a size of the second view, a size of the second view matches a display screen of a playing device, and a size of each of the N pictures matches the first view;
the first control unit 503 is configured to control the N pictures to be played in a loop in the first view at a speed of N/t1 within the total time t;
The second control unit 504 is configured to control a predetermined track of the first view to move within a control range of the second view when the N pictures are played in a loop.
In the embodiment of the invention, the first view is a view matched with a picture to be played, and the second view is a view matched with a real screen, and considering that the background of the animation may not change basically, the second view is equivalent to a background screen, and is arranged at the position matched with a display screen of the playing device. The first view is used for loading the picture, so that the picture can be made to be matched with the first view only by means of the size of the picture, the making size of the picture can be reduced, and storage resources and processor resources are saved correspondingly.
optionally, the second control unit 504 is configured to:
determining a playing starting point and a playing end point of the first view;
And when the N pictures are played circularly, controlling the first view to move from the playing starting point to the playing end point.
optionally, the second control unit 504 is configured to:
Determining the coordinate of the central point of the first picture in the first circular playing as the coordinate of the playing starting point by taking the central point of the display screen as the origin of coordinates;
and determining the coordinate of the central point of the last picture in the last circular playing as the coordinate of the playing end point by taking the central point of the display screen as the origin of coordinates.
Optionally, referring to fig. 12, in another embodiment of the apparatus 50 for playing animation provided in the embodiment of the present invention, the apparatus 50 further includes:
An updating unit 505, configured to update the second view when the first control unit 503 controls the N pictures to be played in a loop.
Consider that during animation playback, it is possible that the background screen is not a layer of constant, for example: in the embodiment of the present invention, when the N pictures are played in a loop, the second view can be updated, and the animation background is replaced by updating the second view, and of course, the number of updates and the update time are not limited and may be set as required.
The above-described animation playing device can be understood with reference to the related contents described in fig. 1 to fig. 10, and will not be described in detail herein.
the animation playing device in the embodiment of the invention can be a mobile phone, a tablet computer, a personal computer, a television and other playing equipment.
in the embodiment of the present invention, a case where the playback device is a mobile phone is taken as an example for description. As shown in fig. 13, for convenience of illustration, only the portion related to the embodiment of the present invention is shown, and the detailed technical details are not disclosed, please refer to the method portion of the embodiment of the present invention.
fig. 13 is a block diagram illustrating a partial structure of a playback device 800 according to an embodiment of the present invention. Referring to fig. 13, the playback apparatus includes: radio Frequency (RF) circuitry 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuitry 860, WiFi module 870, processor 880, and power supply 890. Those skilled in the art will appreciate that the playback device configuration shown in fig. 13 does not constitute a limitation of the playback device, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following specifically describes each component of the playback device with reference to fig. 13:
RF circuit 810 may be used to transceive signals;
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the playback device by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the playback device, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 830 may be used to receive operation instructions of a user, such as: plays the animation command, and generates a key signal input related to user setting and function control of the playing device 800. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, also referred to as a touch screen, can collect touch operations of a user (for example, operations of the user on the touch panel 831 or in the vicinity of the touch panel 831 using any suitable object or accessory such as a finger or a stylus pen) on or near the touch panel 831, and drive a corresponding connected playback device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., a touch detection playback device and a touch controller. The touch detection playing device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing playback device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 880, and can receive and execute commands sent by the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display animated pages. The Display unit 840 may include an indicator Light 841, and the indicator Light 841 may be optionally configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, touch panel 831 can cover indicator 841, and when touch panel 831 detects a touch operation thereon or nearby, it can transmit to processor 880 to determine the type of touch event, and then processor 880 can provide a corresponding visual output on indicator 841 according to the type of touch event. Although in fig. 13, the touch panel 831 and the indicator light 841 are implemented as two separate components to implement the input and output functions of the playback device, in some embodiments, the touch panel 831 and the indicator light 841 may be integrated to implement the input and output functions of the playback device.
The playback device 800 may also include at least one sensor 850.
Audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between the user and the playback device. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts collected sound signals into electrical signals, which are received by the audio circuit 860 and converted into audio data, which are then processed by the audio data output processor 880 and transmitted to, for example, another playback device via the RF circuit 810, or output to the memory 820 for further processing.
WiFi module 870 may be used for wireless communications.
the processor 880 is a control center of the playback device, connects various parts of the entire playback device by using various interfaces and lines, and performs various functions of the playback device and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby performing overall monitoring of the playback device. Optionally, processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
the playback device 800 also includes a power supply 890 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 880 via a power management system that may be used to manage charging, discharging, and power consumption.
although not shown, the playing device 800 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
in the embodiment of the present invention, the processor 880 included in the playing device in the process of implementing animation playing further has the following functions:
Generating a view for playing the animation picture;
Acquiring N pictures which are played circularly within a total time t, wherein the time when the N pictures are played continuously once is a single-time circulating time t1, each picture in the N pictures comprises animation content, N is an integer greater than 1, t1 is greater than 0, and t is greater than t 1;
Controlling the N pictures to be played circularly in the view at the speed of N/t1 in the total time t;
and when the N pictures are played circularly, controlling the view to move according to a predetermined track.
Optionally, the generating a view for playing an animated picture includes:
Generating a first view and a second view for playing animation pictures, wherein the size of the first view is smaller than that of the second view, the size of the second view is matched with a display screen of a playing device, and the size of each picture in the N pictures is matched with that of the first view;
Correspondingly, in the total time t, controlling the N pictures to be circularly played in the view at the speed of N/t1, including:
Controlling the N pictures to be played circularly in the first view at the speed of N/t1 in the total time t;
correspondingly, when the N pictures are played in a circulating manner, controlling the view to move according to a predetermined track includes:
and when the N pictures are played circularly, controlling the track predetermined by the first view to move within the control range of the second view.
Optionally, when the N pictures are played in a loop, controlling a predetermined track of the first view to move within a control range of the second view includes:
Determining a playing starting point and a playing end point of the first view;
and when the N pictures are played circularly, controlling the first view to move from the playing starting point to the playing end point.
Optionally, the determining a play start point and a play end point of the first view includes:
determining the coordinate of the central point of the first picture in the first circular playing as the coordinate of the playing starting point by taking the central point of the display screen as the origin of coordinates;
and determining the coordinate of the central point of the last picture in the last circular playing as the coordinate of the playing end point by taking the central point of the display screen as the origin of coordinates.
optionally, the method further comprises:
and updating the second view when the N pictures are played circularly.
The above-described playing device can be understood with reference to the related contents described in fig. 1 to fig. 10, and will not be described in detail herein.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
The method and the device for playing animation provided by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. a method of animation playback, comprising:
Generating a view for playing the animation picture;
acquiring N pictures which are played circularly in a total time t, wherein the time for playing the N pictures continuously once is a single-time circulating time t1, each picture in the N pictures comprises and only comprises animation content, N is an integer greater than 1, t1 is greater than 0, and t is greater than t 1;
controlling the N pictures to be played circularly in the view at the speed of N/t1 in the total time t;
when the N pictures are played circularly, controlling the view to move according to a predetermined track;
Wherein the generating a view for playing an animated picture comprises: generating a first view and a second view for playing animation pictures, wherein the size of the first view is smaller than that of the second view, the size of the second view is matched with a display screen of a playing device, and the size of each picture in the N pictures is matched with that of the first view;
wherein, in the total time t, controlling the N pictures to be played circularly in the view at the speed of N/t1 includes: and controlling the N pictures to be circularly played in the first view at the speed of N/t1 in the total time t.
2. The method of claim 1,
When the N pictures are played in a circulating manner, controlling the view to move according to a predetermined track includes:
and when the N pictures are played circularly, controlling the track predetermined by the first view to move within the control range of the second view.
3. The method according to claim 2, wherein said controlling the predetermined track of the first view to move within the control range of the second view when the N pictures are played in a loop comprises:
determining a playing starting point and a playing end point of the first view;
And when the N pictures are played circularly, controlling the first view to move from the playing starting point to the playing end point.
4. the method of claim 3, wherein determining a start point and an end point of the first view comprises:
determining the coordinate of the central point of the first picture in the first circular playing as the coordinate of the playing starting point by taking the central point of the display screen as the origin of coordinates;
And determining the coordinate of the central point of the last picture in the last circular playing as the coordinate of the playing end point by taking the central point of the display screen as the origin of coordinates.
5. the method according to any one of claims 2-4, further comprising:
And updating the second view when the N pictures are played circularly.
6. An apparatus for playing animation, comprising:
A generating unit for generating a view for playing the animation picture;
An obtaining unit, configured to obtain N pictures played in a cycle within a total time t, where a time when the N pictures are played continuously once is a single cycle time t1, each of the N pictures includes and only includes animation content, N is an integer greater than 1, t1 is greater than 0, and t is greater than t 1;
a first control unit, configured to control the N pictures acquired by the acquisition unit to be played in a loop in the view generated by the generation unit at a speed of N/t1 within the total time t;
the second control unit is used for controlling the view to move according to a predetermined track when the first control unit controls the N pictures to be played circularly;
The generating unit is used for generating a first view and a second view for playing animation pictures, the size of the first view is smaller than that of the second view, the size of the second view is matched with a display screen of a playing device, and the size of each picture in the N pictures is matched with that of the first view;
The first control unit is used for controlling the N pictures to be played circularly in the first view at the speed of N/t1 in the total time t.
7. the apparatus of claim 6,
And the second control unit is used for controlling the track predetermined by the first view to move within the control range of the second view when the N pictures are played circularly.
8. The apparatus of claim 7,
the second control unit is configured to:
Determining a playing starting point and a playing end point of the first view;
And when the N pictures are played circularly, controlling the first view to move from the playing starting point to the playing end point.
9. the apparatus of claim 8,
The second control unit is configured to:
Determining the coordinate of the central point of the first picture in the first circular playing as the coordinate of the playing starting point by taking the central point of the display screen as the origin of coordinates;
and determining the coordinate of the central point of the last picture in the last circular playing as the coordinate of the playing end point by taking the central point of the display screen as the origin of coordinates.
10. The apparatus of any of claims 7-9, further comprising:
and the updating unit is used for updating the second view when the first control unit controls the N pictures to be played circularly.
11. a playback device, comprising: a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory;
The computer program is for performing a method of animation playback as claimed in any one of claims 1 to 5.
12. a storage medium, characterized in that a computer program for executing the method of playing an animation according to any one of claims 1 to 5 is stored in the storage medium.
CN201610635678.6A 2016-08-04 2016-08-04 animation playing method and device Active CN106303722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610635678.6A CN106303722B (en) 2016-08-04 2016-08-04 animation playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610635678.6A CN106303722B (en) 2016-08-04 2016-08-04 animation playing method and device

Publications (2)

Publication Number Publication Date
CN106303722A CN106303722A (en) 2017-01-04
CN106303722B true CN106303722B (en) 2019-12-10

Family

ID=57665016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610635678.6A Active CN106303722B (en) 2016-08-04 2016-08-04 animation playing method and device

Country Status (1)

Country Link
CN (1) CN106303722B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933592A (en) * 2017-03-17 2017-07-07 武汉斗鱼网络科技有限公司 Interactive animation generation method and device
CN110881139A (en) * 2019-10-10 2020-03-13 深圳创维-Rgb电子有限公司 Display method and display device of boot animation and computer equipment
CN111273976A (en) * 2020-01-09 2020-06-12 北京金山安全软件有限公司 Animation carousel method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102842142A (en) * 2011-06-23 2012-12-26 汉王科技股份有限公司 Display method and display device of dynamic picture in document
CN103761132A (en) * 2014-01-26 2014-04-30 广州视源电子科技股份有限公司 Intelligent terminal starting-up animation play control method
CN104123742A (en) * 2014-07-21 2014-10-29 徐才 Method and player for translating static cartoon picture into two dimensional animation

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07222209A (en) * 1994-01-31 1995-08-18 Nippon Hoso Kyokai <Nhk> Recording medium for characteristic evaluation and characteristic adjusting method for down converter
KR100597406B1 (en) * 2004-06-29 2006-07-06 삼성전자주식회사 Settop box which is inputted for animation in On Screen Display and method thereof
DE102009018165A1 (en) * 2009-04-18 2010-10-21 Schreiber & Friends Method for displaying an animated object
CN102769720B (en) * 2012-03-26 2017-09-12 新奥特(北京)视频技术有限公司 It is a kind of to strengthen the method for picture display effect
CN102857826B (en) * 2012-09-24 2014-09-17 北京东方艾迪普科技发展有限公司 Method and device for image-text playing and based on circulation queue
CN105187887A (en) * 2015-07-29 2015-12-23 天脉聚源(北京)科技有限公司 Method and device for displaying lottery animation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102842142A (en) * 2011-06-23 2012-12-26 汉王科技股份有限公司 Display method and display device of dynamic picture in document
CN103761132A (en) * 2014-01-26 2014-04-30 广州视源电子科技股份有限公司 Intelligent terminal starting-up animation play control method
CN104123742A (en) * 2014-07-21 2014-10-29 徐才 Method and player for translating static cartoon picture into two dimensional animation

Also Published As

Publication number Publication date
CN106303722A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN110147231B (en) Combined special effect generation method and device and storage medium
US20220249949A1 (en) Method and apparatus for displaying virtual scene, device, and storage medium
CN108416825A (en) Generating means, method and the computer readable storage medium of Dynamic Graph
CN109062468B (en) Split screen display method and device, storage medium and electronic equipment
CN105447124B (en) Virtual objects sharing method and device
EP3553642A1 (en) Method for automatically setting wallpaper, terminal device and graphical user interface
CN106303722B (en) animation playing method and device
CN108958629B (en) Split screen quitting method and device, storage medium and electronic equipment
CN111771180A (en) Hybrid placement of objects in augmented reality environment
CN110231897A (en) A kind of object processing method and terminal device
CN108694073A (en) Control method, device, equipment and the storage medium of virtual scene
CN109697002A (en) A kind of method, relevant device and the system of the object editing in virtual reality
JP7186901B2 (en) HOTSPOT MAP DISPLAY METHOD, DEVICE, COMPUTER DEVICE AND READABLE STORAGE MEDIUM
CN108984142B (en) Split screen display method and device, storage medium and electronic equipment
CN110732136A (en) Method, device, terminal and storage medium for previewing in-office behavior in out-office environment
CN110471870B (en) Multi-system operation method and device, electronic equipment and storage medium
WO2020067124A1 (en) Program, electronic device, and method
CN109062469B (en) Split screen display method and device, storage medium and electronic equipment
CN107193551B (en) Method and device for generating image frame
CN108369726B (en) Method for changing graphic processing resolution according to scene and portable electronic device
CN108696642A (en) Arrange figure calibration method and mobile terminal
CN108881742A (en) A kind of video generation method and terminal device
WO2011119302A1 (en) Custom user interface presentation
CN108885556A (en) Control numeral input
CN108829329B (en) Operation object display method and device and readable medium

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