SVGA animation analysis method and device and storage medium

An analysis method and animation technology, applied in the field of data analysis, can solve the problems of difficulty in realizing real-time animation display and low analysis efficiency, and achieve the effect of realizing real-time display, improving analysis efficiency and reducing memory usage.

Pending Publication Date: 2019-06-14
武汉斗鱼鱼乐网络科技有限公司
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

SVG file is a file in xml format. At present, the commonly used parsing scheme is to use DOM parsing or SAX parsing. When the SVG file contains key frames, vector paths and styles at the same time, these two methods are parsed in sequence. It will lead to low parsing efficiency and it is difficult to realize real-time display 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
  • SVGA animation analysis method and device and storage medium
  • SVGA animation analysis method and device and storage medium
  • SVGA animation analysis method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] see figure 1 , a schematic flow chart of the SVGA animation analysis method provided by the embodiment of the present invention, including:

[0027] S101. Define the data type in the SVGA animation information flow;

[0028] Wherein, the data type includes a start element and an end element, and may also include attribute data and character data. The start element may refer to a start tag or a start element in a markup language, the end element may be an end tag or an end mark in a markup language, and the attribute data refers to a tag attribute, such as type, name, src, etc. The character data refers to data content or attribute content represented by characters, for example, "Material Design" is a character data segment named "style" (that is, style) as an element.

[0029] The SVGA animation information flow refers to an internal representation of an SVG format file for xml parsing. In the embodiment of the present invention, the SVGA animation information flow is...

Embodiment 2

[0051] exist figure 1 Based on the following combination figure 1 Another implementation process of an SVGA animation analysis method is described in detail, including:

[0052] S201. SVGA animation information flow boundary division;

[0053] Before the boundary division, the data types in the SVGA animation information flow are defined in advance.

[0054] Exemplarily, the SVGA animation information flow is defined as start element, attribute data, character data and end element respectively, wherein, the element name of the start element (start of element or SE) of the information flow is "Order", and the attribute data (attribute or A), if the attribute data is date "1999-1-1", the character data is represented by "CD" (character data), such as "Material Design" is a character named "style" (that is, style) In the data segment, the end element is represented by "EE" (end of element).

[0055] When performing boundary division, design boundary recognition rules accordin...

Embodiment 3

[0066] image 3 Another schematic flow diagram of the SVGA animation analysis method provided by Embodiment 3 of the present invention. On the basis of Embodiment 1, the analysis process after step S103 is further described, which includes the following:

[0067] In step S103 traversing to acquire all the data blocks in adjacent boundaries, and parsing the data blocks in parallel, when the parsed data is incomplete, it is necessary to perform post-processing on the incomplete parsing elements.

[0068] S301. Search for unresolved elements in the parsed data block, and add the unresolved elements to the element list;

[0069] In the parsed data block, there may be a problem that the start element does not match the end element. For the problem of unmatched elements or the problem that the element attribute prefix cannot be found, it can be put into the post-processing stage for unified search and matching.

[0070] The unresolved elements may be unmatched start elements or end...

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 embodiment of the invention discloses an SVGA animation analysis method and device and a storage medium, and belongs to the technical field of live broadcast. The method comprises the following steps: defining a data type in SVGA animation information flow; searching a starting element and an ending element by matching predetermined characters, so as to perform boundary division on the SVGA animation information flow, marking a boundary position; traversing the SVGA animation information flow to obtain data blocks in all adjacent boundaries, and analyzing the data blocks in parallel. Through the technical scheme, the SVGA animation analysis efficiency can be improved, and memory occupation is reduced.

Description

technical field [0001] The invention relates to the field of data analysis, in particular to an SVGA animation analysis method, device and storage medium. Background technique [0002] On general web pages or video interfaces, you can often see cool animations. These animations are mostly realized by gif, attribute animation, OpenGL loading, and SVGA. The first three solutions are due to large resource occupation or poor rendering effect. problem and is less used in live video animation. [0003] The principle of SVGA animation is to parse files in SVG format into data such as key frames, vector paths, and styles, and then act on image resources. SVG file is a file in xml format. At present, the commonly used parsing scheme is to use DOM parsing or SAX parsing. When the SVG file contains key frames, vector paths and styles at the same time, these two methods are parsed in sequence. It will lead to low parsing efficiency, and it is difficult to realize real-time display of ...

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 Applications(China)
IPC IPC(8): G06T13/00G06F8/41
Inventor 尹成
Owner 武汉斗鱼鱼乐网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products