Unlock instant, AI-driven research and patent intelligence for your innovation.

Animation playback method and device

A playback method and animation technology, applied in animation production, image data processing, instruments, etc., can solve the problems of slow playback speed, poor playback effect, easy to freeze, etc., and achieve the effect of increased playback speed

Active Publication Date: 2017-09-12
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art: due to the continuous complexity and functional diversification of the Flash animation file, the animation playback method of the existing Flash animation usually needs to occupy the CPU at full speed to process the data, Occupies a lot of resources for embedded terminals
Even so, the playback effect of Flash animation is still very poor, and the playback speed is slow and easy to get stuck. According to the analysis of the inventor, it can be seen that during the entire Flash playback process, the occupation of the CPU is particularly obvious in the rendering step, which is the cause of the existing Flash animation. One of the main reasons for the poor playback effect of the animation playback method of animation

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Animation playback method and device
  • Animation playback method and device
  • Animation playback method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] Please refer to figure 1 , which shows the method flowchart of the animation playing method provided in the first embodiment. The animation playback method is suitable for embedded devices containing multi-core processors, and the animation playback method includes:

[0072] Step 101, obtaining the data to be rendered of the current frame in the animation to be played;

[0073] When an animation file needs to be played, the animation file first needs to be loaded, and the animation file is usually a ShockWave Flash file, referred to as a SWF file. A SWF file usually includes a file header and a file body. The file header defines information such as the version, size, frame rate, and total number of frames of the Flash animation. The file body usually includes a large number of tags; then, parse and load it into The SWF file can obtain definition tags and control tags. Each definition tag is used to define an object in the animation or all the information of an object....

Embodiment 2

[0083] Please refer to figure 2 , which shows a method flow chart of the animation playing method provided in Embodiment 2 of the present invention. The animation playback method is suitable for embedded devices containing multi-core processors, and the animation playback method includes:

[0084] Step 201, loading the animation file of the animation to be played;

[0085] The animation file is also a SWF file. When a Flash animation needs to be played, the animation file of the Flash animation needs to be loaded. In a simple Flash animation, there may be only one animation file. In more complex Flash animations, there may be more than one animation file. For example, a Flash game may include a main animation file and several sub-animation files. It can correspond to the corresponding part of each level of the Flash game. The sub-animation file is not a part that must be loaded. Only when the user enters the level after playing the game will the corresponding sub-animation...

Embodiment 3

[0137] Please refer to image 3, which shows a structural block diagram of the animation playback device provided by Embodiment 3 of the present invention. The animation playback device may be suitable for embedded terminals containing multiple cores, and the animation playback device may include a data acquisition module 310 , a data splitting module 320 , a data rendering module 330 and a data playback module 340 .

[0138] The data acquisition module 310 is used to acquire the data to be rendered of the current frame in the animation to be played;

[0139] The data splitting module 320 is configured to split the data to be rendered of the current frame into at least two sub-image data according to a predetermined splitting method. According to the specific predetermined splitting method adopted, the data splitting module 320 may include any one of the following units: a region splitting unit 321, a core splitting unit 322, an object splitting unit 323, a type splitting uni...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an animation playing method and device, belonging to the field of graphics and image processing. The method includes: acquiring the data to be rendered of the current frame; splitting the data to be rendered of the current frame into at least two sub-image data according to a predetermined splitting method; respectively inputting the at least two sub-image data into each processing core for parallel processing; Rendering, obtaining rendered sub-image data; combining the rendered sub-image data into image data of the current frame for playback. The present invention splits the data to be rendered in the rendering process into multiple parts, and each processing core in the multi-core processor renders separately to achieve the effect of parallel rendering, so that the playback speed of the Flash animation is significantly improved, and the Flash animation is solved. A problem that often consumes CPU at full speed when playing.

Description

technical field [0001] The invention relates to the field of graphics and image processing, in particular to an animation playing method and device for playing Flash animation in an embedded terminal including a multi-core processor. Background technique [0002] Flash is the most widely used interactive multimedia animation in the Internet field. With the continuous development of Flash-related technologies, Flash is also becoming more and more complicated and its functions are diversified. At present, how to use the limited system resources of embedded terminals such as mobile phones or tablet computers to smoothly play Flash animation files is one of the hot research topics of modern Internet companies. [0003] In the prior art, most CPUs in embedded terminals are single-core. When playing a Flash animation file, a series of operations such as loading, parsing, rendering and playing need to be completed. When the Flash animation file is relatively complex and relative...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T13/00
Inventor 李庆美李孙长王传东
Owner TENCENT TECH (SHENZHEN) CO LTD