CN109887059A - A kind of SVGA animation analytic method, device and storage medium - Google Patents
A kind of SVGA animation analytic method, device and storage medium Download PDFInfo
- Publication number
- CN109887059A CN109887059A CN201910143147.9A CN201910143147A CN109887059A CN 109887059 A CN109887059 A CN 109887059A CN 201910143147 A CN201910143147 A CN 201910143147A CN 109887059 A CN109887059 A CN 109887059A
- Authority
- CN
- China
- Prior art keywords
- svga
- unresolved
- animation
- data block
- data
- 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.)
- Pending
Links
- 238000004458 analytical method Methods 0.000 title claims abstract description 21
- 238000000034 method Methods 0.000 claims abstract description 27
- 238000004590 computer program Methods 0.000 claims description 14
- 238000010899 nucleation Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 9
- 238000009434 installation Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000013461 design Methods 0.000 description 4
- 238000012805 post-processing Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 240000001436 Antirrhinum majus Species 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000002224 dissection Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000011056 performance test Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The embodiment of the invention discloses a kind of SVGA animation analytic method, device and storage mediums, belong to direct seeding technique field.This method comprises: defining data type in SVGA animation information stream;Start element and closure element are searched by matching predetermined character, is divided with flowing into row bound to the SVGA animation information, and mark boundaries position;It traverses the SVGA animation information stream and obtains data block in all adjacent boundaries, parse the data block parallel.By the technical solution, SVGA animation analyzing efficiency can be improved, reduce EMS memory occupation.
Description
Technical field
The present invention relates to data parsing field more particularly to a kind of SVGA animation analytic method, device and storage mediums.
Background technique
On general webpage or video clip, it can usually see and dazzle cruel animation, these animations are mostly moved by gif, attribute
It draws, OpenGL is loaded and the several ways such as SVGA realize that first three scheme is since big there are resource occupation or rendering effect is poor
The problem of, less use is obtained in net cast animation.
The principle of SVGA animation is by the document analysis of SVG format be the data such as key frame, vector path and pattern then
Act on picture resource.SVG file is a kind of xml formatted file, and currently used parsing scheme is using DOM parsing or SAX
Parsing, when SVG file includes key frame, vector path and pattern simultaneously, both methods is all successively to carry out in order
Parsing, it is lower to will lead to analyzing efficiency, it is difficult to realize the real-time exhibition of animation in this way.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of SVGA animation analytic method, device and storage medium, to ensure
The analyzing efficiency of SVGA animation.
In conjunction with the embodiment of the present invention in a first aspect, providing a kind of SVGA animation analytic method, comprising:
Define data type in SVGA animation information stream, wherein include start element and end member in the data type
Element;
Start element and closure element are searched by matching predetermined character, to flow into row bound to the SVGA animation information
It divides, and mark boundaries position;
It traverses the SVGA animation information stream and obtains data block in all adjacent boundaries, parse the data field parallel
Block.
In conjunction with the second aspect of the embodiment of the present invention, a kind of micro services gateway optimization device is provided, comprising:
Definition module, for defining data type in SVGA animation information stream, wherein include starting in the data type
Element and closure element;
Division module, for searching start element and closure element by matching predetermined character, to the SVGA animation
Information flow carries out boundary demarcation, and mark boundaries position;
Parsing module obtains data block in all adjacent boundaries for traversing the SVGA animation information stream, parallel
Parse the data block.
In conjunction with the third aspect of the embodiment of the present invention, a kind of device is provided, including memory, processor and be stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
It realizes such as the step of first aspect of embodiment of the present invention the method.
The fourth aspect of the embodiment of the present invention, provides a kind of computer readable storage medium, described computer-readable to deposit
Storage media is stored with computer program, realizes that first aspect of the embodiment of the present invention mentions when the computer program is executed by processor
The step of the method for confession.
5th aspect of the embodiment of the present invention, provides a kind of computer program product, the computer program product packet
Computer program is included, realizes that first aspect of the embodiment of the present invention mentions when the computer program is executed by one or more processors
The step of the method for confession.
The data type of SVGA animation information stream is defined, then first in embodiments of the present invention by searching for boundary element pair
Information flow is divided, and the content-data block finally obtained between boundary is parsed parallel.So that SVG formatted file data can
To be parsed parallel, guarantee key frame, vector path and pattern data can synchronous parsing obtain, thus, it is dynamic to improve SVGA
Analyzing efficiency is drawn, realizes the real-time exhibition of video cartoon.It, can be new slow to avoid opening up meanwhile by the mark of boundary position
Deposit space, it is possible to reduce EMS memory occupation.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for SVGA animation analytic method that the embodiment of the present invention one provides;
Fig. 2 is a kind of another flow diagram of SVGA animation analytic method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of another flow diagram for SVGA animation analytic method that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for SVGA animation resolver that the embodiment of the present invention four provides
Fig. 5 is a kind of structural schematic diagram for terminal installation that the embodiment of the present invention five provides.
Fig. 6 is the performance test figure of SVGA animation analytic method provided in an embodiment of the present invention;
Specific embodiment
The embodiment of the invention provides a kind of SVGA animation analytic method, device and storage mediums, dynamic for parsing SVGA
It draws, guarantees SVG formatted file analyzing efficiency.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention
Range.
Embodiment one
Referring to Fig. 1, the flow diagram of SVGA animation analytic method provided in an embodiment of the present invention, comprising:
S101, data type in SVGA animation information stream is defined;
Wherein, include start element and closure element in the data type, can also include attribute data and number of characters
According to.The start element can be markup language with beginning label or starting elemental, the closure element in digit synbol language
In end-tag or end mark, the attribute data refer to tag attributes, such as type, name, src, the character
The data content or property content that data are referred to character representation, such as " Material Design " be entitled " style " (i.e.
Pattern) be element character data section.
The SVGA animation information stream refers to that SVG formatted file carries out a kind of internal representation of xml parsing, of the invention real
It applies in example, SVGA animation information stream is made of a series of cachings.Animation information stream applies in general to setting for the low memory of high-performance
It is standby.
It should be noted that necessarily including start element and closure element in the SVGA animation information stream.
Can be in order to boundary demarcation by defining data type in data flow, and parsed for follow-up data and foundation is provided,
Facilitate data composition analysis.
S102, start element and closure element are searched by matching predetermined character, to flow into the SVGA animation information
Row bound divides, and mark boundaries position;
The predetermined character refers to can be in markup language or xml, it can be assumed that being start element or closure element
Spcial character mark.In general, the predetermined character can be "<" or "/>" character, can also be "? ", "!" etc. marking
The boundary character that data processing starts or terminates can be indicated in language.It in the present invention is implemented, can according to xml language feature
Design it is a set of compared by character, the identification process of start element or closure element is carried out, illustratively, as according to after " < "
Character judge XML tag types, if followed by be "/" or "? " or "!", then do further judgement.
The boundary demarcation is referred to according to the location of start element and closure element, for moving the SVGA
It draws information flow and is divided into several data blocks, the data block is SVGA animation information stream key data, and the main of parsing is appointed
Business obtains content-data in the data block.
The mark position can refer to boundary element (start or closure element) relative position in the buffer or address letter
Breath, can also be identified, it is not limited here by spcial character.
Optionally, the SVGA animation letter is judged by matching with the predetermined character according to XML tag node diagnostic
Whether all characters are start element or closure element in breath stream;
The position of start element and closure element in the buffer zone of the SVGA animation information stream is marked, to divide
State content-data block in SVGA animation information stream.
It should be noted that in embodiments of the present invention, start element and closure element be it is existing in pairs, that is, have one
When start element, necessarily there is the closure element of a same type.
By start element and closure element, boundary demarcation is carried out, data in animation information stream are carried out parallel
Parsing.
S103, traversal obtain data block in all adjacent boundaries, parse the data block parallel.
It is boundary that the adjacent boundary, which is by start element and closure element, in xml start-tag and end-tag it
Between, it include the attribute data of one or more labels, the attribute data, that is, SVGA animation information stream content-data.The number
It is content-data according to block, it may include having the effects of key frame, vector path and pattern in figure that data block, which generally has multiple,
SVGA animation information stream is divided into multiple data blocks by the data of piece, can be convenient parallel data parsing.
Optionally, the unresolved element in the data block after search parsing, by the unresolved element addition element chain
Table;It checks the element chained list, searches element corresponding with unresolved element.
Further, the storehouse of the global unresolved start element of creation, when the unresolved element searched is to terminate
Element, then a start element for obtaining the storehouse top layer are matched with the closure element;It is described unresolved when what is searched
Element is start element, then the start element is added in the storehouse.
Optionally, when the unresolved element searched is attribute prefix, then described in the acquisition of storehouse described in global search
The unresolved corresponding attribute prefix of element.
Preferably, an idle element list is created to prejudge when being added in the storehouse start element
The free time element list whether there is idle item, if it exists idle item, then obtains idle item and store corresponding start element.
Preferably, the core buffer that default size is disposably opened up for each data block, for parsing the memory
Block.
Content-data after boundary demarcation can be parsed parallel, effectively increase analyzing efficiency.
In the above scheme, by identifying boundary, SVGA animation information stream is divided into multiple blocks, is convenient for solving parallel
Analysis, can effectively improve SVGA animation analyzing efficiency.Further, handling unresolved element by post-processing stages can be reduced
The consumption of match time guarantees that the real-time quick parsing of animation is shown.
Scheme based on the embodiment of the present invention, by SAMSUNG Galaxy S9 (SM-G9600), 4GB (RAM),
The hardware type of Qualcomm Snapdragon 845 is tested, and equipment Running System is Samsung Experience
9.0 (Android 8.0), the super large SVGA file for being 32M for a size, this programme fast resolving scheme (Parallel
Method Producing Info Stream, PMPIS) with SAX parsing scheme compared in analyzing efficiency, especially exist
Under multithreading situation, in conjunction with Fig. 6 as can be seen that PMPIS is low compared to SAX time-consuming.
Embodiment two
On the basis of Fig. 1, a kind of another implementation process of SVGA animation analytic method is described in detail below with reference to Fig. 1, comprising:
S201, SVGA animation information stream boundary demarcation;
Before the boundary demarcation, data type in the SVGA animation information stream is defined in advance.
Illustratively, the SVGA animation information stream is respectively defined as start element, attribute data, character data and knot
Shu Yuansu, wherein the element of the start element (start of element or SE) of information flow is entitled " Order ", attribute number
It is date " 1999-1-1 " according to (attribute or A), such as attribute data, character data is with " CD " (character data)
Indicate, such as " Material Design " be entitled " style " (i.e. pattern) be element character data section, closure element with
" EE " (end of element) is indicated.
When carrying out boundary demarcation, according in xml grammer, the meaning of kinds of characters character characterization, plan boundary identification is advised
Then.Specifically, judging whether it is boundary element by identifying all " < " characters and its neighbouring character.
Illustratively, since each xml label node is using " < " character as beginning character, as a result, from first " < "
Start, after recognizing " < ", XML tag type is judged according to the character after " < ".If followed by be "/" or
"? " or "!", then it is further processed;Otherwise, it is determined that finding a start element.If being followed by "/" character, table
Show and finds a closure element.
Since above-mentioned search matching process need to only carry out character match comparison, mark boundaries position, without carrying out data
The operation such as arrangement, boundary demarcation process resource occupancy is less, has light weight level characteristics.
The parsing of S202, SVGA animation information flow data.
According to boundary demarcation, SVGA animation information stream can be divided into multiple data blocks, include in the data block
There are one or more information, obtaining the information by parsing can be used for controlling the displaying of SVGA animation.
Preferably, the stage is divided according to the SVGA animation information stream, each affiliated type of boundary node analyzes adjacent edge
The information type for including between boundary.It include start element, attribute data between adjacent boundary such as when boundary position is start element
And character data etc..Illustratively, the information for including between adjacent boundary, is as follows:
In the data buffer storage of SVGA animation information stream mark boundary position after, parallel to the data block of boundary demarcation into
The parallel dissection process of row, parses data based on storehouse layer by layer.Specifically, successively being taken out from storehouse after getting boundary element
Content-data is constituted according to xml formatted data, reads tag attributes, character data, processing order etc. respectively.
Optionally, when the data block of parsing is imperfect, such as matched start element or closure element are not found, no
It can determine parsing error, but Incomplete information is recorded in event data structure, then be solved in last handling process.Tool
Body, after data block is resolved, successively the unresolved element in the data block after search parsing, unresolved element is added
Enter into unresolved element chained list, which is a kind of linear Linked Storage Structure, each node of chained list
Unresolved element, the unresolved element, that is, imperfect or not matched parsing data can be stored.When being post-processed, inspection
The element in unresolved element chained list is looked into, different from the unresolved element of traditional global search, the present embodiment can to post-process
Search time be greatly reduced.
In the technical solution of embodiment, design predetermined character matching is simply easily achieved, reduces simultaneously to search boundary
The frequent data copy caching of pretreatment stage, greatly reduces EMS memory occupation.Meanwhile the boundary of label can be directly to each content
Data block parses parallel, and on the basis of to increase EMS memory occupation, analyzing efficiency is effectively promoted.
Embodiment three
Fig. 3 is another flow diagram for the SVGA animation analytic method that the embodiment of the present invention three provides, in embodiment one
On the basis of, the resolving after step S103 is further described below comprising as follows:
Data block in all adjacent boundaries is obtained in step S103 traversal, during parsing the data block parallel,
When parsing data are imperfect, need to post-process incomplete parsing element.
The unresolved element in data block after S301, search parsing, by the unresolved element addition element chained list;
Start element and the unmatched problem of closure element are likely to occur in the data block of parsing, for failing to match
Element or the problem of element property prefix can not be found, post-processing stages can be put into and carry out unified searching matching.
The unresolved element can be unmatched start element or closure element, be also possible to attribute prefix or other
Element is not solved in parsing, it is numerous to list herein.The element chained list is a kind of storage organization of chain sheet form, for storing
Unsolved element.
S302, check that the element chained list matches in the element chained list according to each unresolved affiliated type of element
Unresolved element.
A storehouse is created, which traverses element chained list, judge element for storing all unsolved start elements
Type described in element is not solved in chained list can match, adds or search for the storehouse according to the difference of type, to handle not
Solve element.
Specifically, the storehouse of the global unresolved start element of creation, when the unresolved element searched is to terminate member
Element, then a start element for obtaining the storehouse top layer are matched with the closure element;
When the unresolved element searched be start element, then the start element is added in the storehouse.
When the unresolved element searched is attribute prefix, then retrieves the storehouse and obtain the unresolved element pair
The attribute prefix answered.
Preferably, an idle element list is created to prejudge when being added in the storehouse start element
The free time element list whether there is idle item, if it exists idle item, then obtains idle item and store corresponding start element.This
Place creates an idle element list (Free Element List, FEL), can temporarily store the element obtained in storehouse,
Or temporarily store the element being added in storehouse, it is possible to reduce the expense that stack memory is opened up, while while improving post-processing, does not solve
Certainly element searches for matching efficiency.
Preferably, the core buffer that default size is disposably opened up for each data block, for parsing the memory
Block.Operation can be opened up to avoid frequent memory by disposably opening up sufficiently large memory headroom, reduce Thread Count, when ensureing parsing
Computer performance.
Element processing method is not solved provided by the embodiment of the present invention, not only can solve element mismatch problem, and
And EMS memory occupation can be reduced, improve efficiency of post treatment.
Example IV
Fig. 4 is a kind of structural schematic diagram of SVGA animation resolver provided in an embodiment of the present invention, which includes:
Definition module 410, for defining data type in SVGA animation information stream, wherein in the data type at least
Including start element and closure element;
Division module 420, for searching start element and closure element by matching predetermined character, with dynamic to the SVGA
It draws information flow and carries out boundary demarcation, and mark boundaries position;
Optionally, the division module 420 includes:
Judging unit, for judging the SVGA by matching with the predetermined character according to XML tag node diagnostic
Whether all characters are start element or closure element in animation information stream;
Division unit, for marking start element and closure element in the buffer zone of the SVGA animation information stream
Position, to divide content-data block in the SVGA animation information stream.
Parsing module 430 obtains data block in all adjacent boundaries for traversing, parses the data block parallel.
Optionally, the parsing module 430 includes:
Connection unit, the unresolved element for searching in the data block after parsing, connects the unresolved element group
At element chained list;
Matching unit, according to each unresolved affiliated type of element, matches the element for checking the element chained list
Unresolved element in chained list.
Further, the matching unit includes:
Creation one includes the storehouse of global unresolved start element, when the unresolved element searched is to terminate
Element, then a start element for obtaining the storehouse top layer are matched with the closure element;
When the unresolved element searched be start element, then the start element is added in the storehouse.
When the unresolved element searched is attribute prefix, then retrieves the storehouse and obtain the unresolved element pair
The attribute prefix answered.
Optionally, an idle element list is created to prejudge when being added in the storehouse start element
The free time element list whether there is idle item, if it exists idle item, then obtains idle item and store corresponding start element.
Preferably, the traversal obtains data block in all adjacent boundaries, parses the data block parallel further include:
The core buffer that default size is disposably opened up for each data block, for parsing the memory block.
The SVGA animation resolver can carry out simultaneously SVGA animation by division module 410, parsing module 420
Row parsing, not only can be improved animation analyzing efficiency, but also can reduce EMS memory occupation.
Unit described above and module are based on the division in software function, and each unit and module not necessarily have elder generation
Afterwards or subordinate relation.
Embodiment five
Fig. 5 is the structural schematic diagram of the terminal installation for the micro services gateway optimization that one embodiment of the invention provides.The end
End device, to have the computer equipment of touch screen, including but not limited to smart phone, smartwatch, notebook, plate electricity
Brain, POS machine include even vehicle-mounted computer.As shown in figure 5, the terminal installation 5 of the embodiment includes: memory 510, processor
520 and system bus 530, the memory 510 includes the program 5101 run of storage thereon, those skilled in the art
Member is appreciated that terminal installation structure shown in Fig. 5 does not constitute the restriction to terminal installation, may include more than illustrating
Or less component, perhaps combine certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 5 to terminal installation:
Memory 510 can be used for storing software program and module, and processor 520 is stored in memory 510 by operation
Software program and module, thereby executing the various function application and data processing of terminal.Memory 510 can mainly include
Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function
Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for server
Data (such as audio data, phone directory etc.) etc..In addition, memory 510 may include high-speed random access memory, may be used also
To include nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states
Part.
Program 5101 is run comprising network request method on memory 510, and the program 5101 that runs can be with
It is divided into one or more module/units, one or more of module/units are stored in the memory 510, and
It is executed by processor 520, to optimize micro services gateway, one or more of module/units, which can be, can complete specific function
The series of computation machine program instruction section of energy, the instruction segment is for describing the computer program 5101 in the server 4
Implementation procedure.For example, the computer program 5101 can be divided into collection module, distribution module, enlargement module and deposit
Store up module.
Processor 520 is the control centre of server, utilizes each of various interfaces and the entire terminal device of connection
Part by running or execute the software program and/or module that are stored in memory 510, and calls and is stored in memory
Data in 510 execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Optionally, processor
520 may include one or more processing units;Preferably, processor 520 can integrate application processor and modem processor,
Wherein, the main processing operation system of application processor, application program etc., modem processor mainly handles wireless communication.It can
With understanding, above-mentioned modem processor can not also be integrated into processor 520.
System bus 530 is for connection to each functional component of computer-internal, can with data information, address information,
Information is controlled, type can be such as pci bus, isa bus, VESA bus.The instruction of processor 520 is passed by bus
It is handed to memory 510,510 feedback data of memory is responsible for processor 520 and memory to processor 520, system bus 530
Data, instruction interaction between 510.Certain system total 530 can also access other equipment, such as network interface, display equipment
Deng.
The terminal installation should include at least network interface card, output equipment etc., and details are not described herein for other component parts.
In embodiments of the present invention, what processor 520 included by the terminal installation executed runs program specifically:
A kind of SVGA animation analytic method, comprising:
Define data type in SVGA animation information stream, wherein include start element and end member in the data type
Element;
Start element and closure element are searched by matching predetermined character, to flow into row bound to the SVGA animation information
It divides, and mark boundaries position;
It traverses the SVGA animation information stream and obtains data block in all adjacent boundaries, parse the data field parallel
Block.
Further, described that start element and closure element are searched by matching predetermined character, to the SVGA animation
Information flow carries out boundary demarcation, and mark boundaries position specifically:
Institute in the SVGA animation information stream is judged by matching with the predetermined character according to XML tag node diagnostic
Have whether character is start element or closure element;
The position of start element and closure element in the buffer zone of the SVGA animation information stream is marked, to divide
State content-data block in SVGA animation information stream.
Further, the traversal obtains data block in all adjacent boundaries, parses the data block parallel and also wraps
It includes:
The unresolved element in data block after search parsing, by the unresolved element addition element chained list;
It checks the element chained list, according to each unresolved affiliated type of element, matches not solving in the element chained list
Certainly element.
Further, described to check that the element chained list matches the element according to each unresolved affiliated type of element
Unresolved element in chained list specifically:
Creation one includes the storehouse of global unresolved start element, when the unresolved element searched is to terminate
Element, then a start element for obtaining the storehouse top layer are matched with the closure element;
When the unresolved element searched be start element, then the start element is added in the storehouse.
Further, the unresolved element searched of working as is start element, then the start element is added
Into the storehouse further include:
When the unresolved element searched is attribute prefix, then storehouse described in global search obtains the unresolved member
The corresponding attribute prefix of element.
Further, the unresolved element searched of working as is start element, then the start element is added
Into the storehouse further include:
It creates an idle element list and prejudges the sky when being added in the storehouse start element
Not busy element list whether there is idle item, if it exists idle item, then obtains idle item and store corresponding start element.
Further, the traversal obtains data block in all adjacent boundaries, parses the data block parallel and also wraps
It includes:
The core buffer that default size is disposably opened up for each data block, for parsing the memory block.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of SVGA animation analytic method characterized by comprising
Define data type in SVGA animation information stream, wherein include start element and closure element in the data type;
Start element and closure element are searched by matching predetermined character, is drawn with flowing into row bound to the SVGA animation information
Point, and mark boundaries position;
It traverses the SVGA animation information stream and obtains data block in all adjacent boundaries, parse the data block parallel.
2. the method according to claim 1, wherein described search start element and knot by matching predetermined character
Shu Yuansu is divided with flowing into row bound to the SVGA animation information, and mark boundaries position specifically:
All words in the SVGA animation information stream are judged by matching with the predetermined character according to XML tag node diagnostic
Whether symbol is start element or closure element;
The position of start element and closure element in the buffer zone of the SVGA animation information stream is marked, described in dividing
Content-data block in SVGA animation information stream.
3. the method according to claim 1, wherein the traversal obtains data block in all adjacent boundaries,
The data block is parsed parallel further include:
The unresolved element in data block after search parsing, by the unresolved element addition element chained list;
It checks the element chained list, according to each unresolved affiliated type of element, matches the unresolved member in the element chained list
Element.
4. according to the method described in claim 3, it is characterized in that, described check the element chained list, according to each unresolved
The affiliated type of element matches the unresolved element in the element chained list specifically:
Creation one includes the storehouse of global unresolved start element, when the unresolved element searched is to terminate member
Element, then a start element for obtaining the storehouse top layer are matched with the closure element;
When the unresolved element searched be start element, then the start element is added in the storehouse.
5. according to the method described in claim 4, it is characterized in that, described first to start when the unresolved element searched
The start element is then added in the storehouse by element further include:
When the unresolved element searched is attribute prefix, then storehouse described in global search obtains the unresolved element pair
The attribute prefix answered.
6. according to the method described in claim 4, it is characterized in that, described first to start when the unresolved element searched
The start element is then added in the storehouse by element further include:
An idle element list is created, when being added in the storehouse start element, prejudges the idle member
Plain list whether there is idle item, if it exists idle item, then obtains idle item and store corresponding start element.
7. the method according to claim 1, wherein the traversal obtains data block in all adjacent boundaries,
The data block is parsed parallel further include:
The core buffer that default size is disposably opened up for each data block, for parsing the memory block.
8. a kind of SVGA animation resolver characterized by comprising
Definition module, for defining data type in SVGA animation information stream, wherein include start element in the data type
And closure element;
Division module, for searching start element and closure element by matching predetermined character, to the SVGA animation information
Flow into row bound division, and mark boundaries position;
Parsing module parses the data block for traversing the data block obtained in all adjacent boundaries parallel.
9. a kind of device, including memory, processor and storage can be run in the memory and on the processor
Computer program, which is characterized in that the processor is realized when executing the computer program as appointed in claim 1 to 7
The step of one SVGA animation analytic method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realization SVGA animation analytic method as described in any one of claims 1 to 7 when the computer program is executed by processor
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910143147.9A CN109887059A (en) | 2019-02-26 | 2019-02-26 | A kind of SVGA animation analytic method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910143147.9A CN109887059A (en) | 2019-02-26 | 2019-02-26 | A kind of SVGA animation analytic method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109887059A true CN109887059A (en) | 2019-06-14 |
Family
ID=66929538
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910143147.9A Pending CN109887059A (en) | 2019-02-26 | 2019-02-26 | A kind of SVGA animation analytic method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109887059A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114157734A (en) * | 2021-12-06 | 2022-03-08 | 北京天融信网络安全技术有限公司 | Data analysis method and device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103020176A (en) * | 2012-11-28 | 2013-04-03 | 方跃坚 | Data block dividing method in XML parsing and XML parsing method |
CN107291476A (en) * | 2017-06-27 | 2017-10-24 | 北京微影时代科技有限公司 | Canvas code generating methods, device, electronic equipment and storage medium |
-
2019
- 2019-02-26 CN CN201910143147.9A patent/CN109887059A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103020176A (en) * | 2012-11-28 | 2013-04-03 | 方跃坚 | Data block dividing method in XML parsing and XML parsing method |
US20140149851A1 (en) * | 2012-11-28 | 2014-05-29 | Yuejian Fang | Method for data chunk partitioning in xml parsing and method for xml parsing |
CN107291476A (en) * | 2017-06-27 | 2017-10-24 | 北京微影时代科技有限公司 | Canvas code generating methods, device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
朱学芳等: "XML及SVG在图像信息表示中的应用及研究现状分析", 《中国图书馆学报》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114157734A (en) * | 2021-12-06 | 2022-03-08 | 北京天融信网络安全技术有限公司 | Data analysis method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105335133B (en) | Method and apparatus for generating business rule model | |
CN109344223A (en) | A kind of Building Information Model management system and method based on cloud computing technology | |
CN104750825B (en) | A kind of intelligent substation SCD file fast resolving method | |
CN101192234A (en) | Searching system and method based on web page extraction | |
CN110334346A (en) | A kind of information extraction method and device of pdf document | |
CN106547534A (en) | The device and method of displayed page extension point | |
CN103020176A (en) | Data block dividing method in XML parsing and XML parsing method | |
CN102651002A (en) | Webpage information extracting method and system | |
US20130124684A1 (en) | Visual separator detection in web pages using code analysis | |
CN103166981A (en) | Wireless webpage transcoding method and device | |
CN107220098A (en) | The implementation method and device of regulation engine | |
CN107291827A (en) | A kind of data comparison method and system | |
CN103491116A (en) | Method and device for processing text-related structural data | |
CN106708506A (en) | Method and device for optimizing starting speed of Android applications visually | |
CN105094775A (en) | Webpage generation method and apparatus | |
CN110377371B (en) | Style sheet system management method based on Web tag | |
CN103064849B (en) | Treatment method and device for cascading style sheet (CSS) | |
CN110286903A (en) | Construction method, device, equipment and the storage medium of user information list | |
CN103838792A (en) | Method for determining webpage theme | |
CN101770367B (en) | Compressing method and compressing device of .NET file | |
CN110347390A (en) | A kind of method quickly generating WEB page, storage medium, equipment and system | |
CN109887059A (en) | A kind of SVGA animation analytic method, device and storage medium | |
US10180931B2 (en) | Using a template processor to determine context nodes | |
CN110162301A (en) | A kind of list rendering method, device and storage medium | |
CN115599367A (en) | Method for collecting and sorting energy big data and establishing visual platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190614 |