CN106127840A - A kind of processing method and processing device of flash animation - Google Patents
A kind of processing method and processing device of flash animation Download PDFInfo
- Publication number
- CN106127840A CN106127840A CN201610512275.2A CN201610512275A CN106127840A CN 106127840 A CN106127840 A CN 106127840A CN 201610512275 A CN201610512275 A CN 201610512275A CN 106127840 A CN106127840 A CN 106127840A
- Authority
- CN
- China
- Prior art keywords
- animation
- data message
- flash
- material file
- file
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/20—3D [Three Dimensional] animation
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention discloses the processing method of a kind of flash animation, and described method includes: extract the data message in each animation frame in flash animation;By described data information memory in material file, and generate the configuration file corresponding with described material file;According to described configuration file, the data message in described material file is rendered to the bitmaps animation that described flash animation is corresponding.The flash animation of swf form can be processed into the bitmaps animation that can run on relatively low configuration computer by the method utilizing the present invention to provide, and meets the relatively low configuration computer broadcasting demand to the flash animation of swf form.
Description
Technical field
The present invention relates to data processing field, be specifically related to the processing method and processing device of a kind of flash animation.
Background technology
The flash animation of swf form is a kind of vector format animation, and system CPU needs according to certain process logic are
User presents the various animation information prestored.Owing to the disposal ability to system CPU of playing of vector format animation has one
Fixed requirement, so, the flash animation of swf form is not normally functioning in the computer of relatively low configuration.
Play demand to meet the flash animation of relatively low configuration computer, need a kind of settling mode at present badly.
Summary of the invention
The invention provides the processing method of a kind of flash animation, the flash animation of swf form is processed into and can transport
Row, in the bitmaps animation of relatively low configuration computer, meets the relatively low configuration computer broadcasting need to the flash animation of swf form
Ask.
The invention provides the processing method of a kind of flash animation, described method includes:
Extract the data message in each animation frame in flash animation;
By described data information memory in material file, and generate the configuration file corresponding with described material file;
According to described configuration file, the data message in described material file is rendered to described flash animation corresponding
Bitmaps animation.
Preferably, before by described data information memory in material file, also include:
Judge that whether there is data message in described flash animation meets the animation frame of default duplicate removal condition;
Accordingly, described by described data information memory in material file, including:
Meet the animation frame of default duplicate removal condition if there is data message, then extract in a described animation frame and meet institute
State the data message of duplicate removal condition, and by described data information memory in material file;
By the data information memory in the animation frame being unsatisfactory for described duplicate removal condition in described material file.
Preferably, described judge that whether there is data message in described flash animation meets the animation of default duplicate removal condition
Frame, specifically includes:
Judge whether described flash animation exists the animation frame meeting the identical data message of preset area.
Preferably, described according to described configuration file, the data message in described material file is rendered to described flash
The bitmaps animation that animation is corresponding, including:
For different application platforms, call and corresponding with described application platform render functional interface;
According to described configuration file, render functional interface described in utilization, the data message in described material file is rendered
Become the bitmaps animation that described flash animation is corresponding.
Preferably, described material file is the bitmap of a png form.
Present invention also offers the processing means of a kind of flash animation, described device includes:
Extraction module, for extracting the data message of each animation frame in flash animation;
Memory module, is used for described data information memory in material file;
Generation module, for generating the configuration file corresponding with described material file;
Rendering module, for according to described configuration file, is rendered to described by the data message in described material file
The bitmaps animation that flash animation is corresponding.
Preferably, described device also includes:
Judge module, for judging that whether there is data message in described flash animation meets the dynamic of default duplicate removal condition
Draw frame;
Accordingly, described memory module includes:
First sub module stored, for when there is the animation frame that data message meets default duplicate removal condition, extracts portion
Described animation frame meets the data message of described duplicate removal condition, and by described data information memory in material file;
Second sub module stored, is used for the data information memory in the animation frame being unsatisfactory for described duplicate removal condition in described
In material file.
Preferably, described judge module, specifically for:
Judge whether described flash animation exists the animation frame meeting the identical data message of preset area.
Preferably, described rendering module, including:
Call submodule, for for different application platforms, call the render function corresponding with described application platform and connect
Mouthful;
Render submodule, for according to described configuration file, described in utilization, render functional interface, by described material file
Data message be rendered to the bitmaps animation that described flash animation is corresponding.
The processing method of the flash animation that the present invention provides, the data first extracted in flash animation in each animation frame
Information.Secondly, by described data information memory in material file, and generate the configuration file corresponding with described material file.
Finally, according to described configuration file, the data message in described material file is rendered to bitmaps animation.The present invention is by flash
Animation process becomes to run on the bitmaps animation of relatively low configuration system, and the flash animation meeting relatively low configuration system plays need
Ask.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present application, in embodiment being described below required for make
Accompanying drawing be briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the application, for
From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain it according to these accompanying drawings
His accompanying drawing.
The process flow figure of a kind of flash animation that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the processing method of the another kind of flash animation that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the processing means of a kind of flash animation that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the processing means of the another kind of flash animation that Fig. 4 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete
Describe, it is clear that described embodiment is only some embodiments of the present application rather than whole embodiments wholely.Based on
Embodiment in the application, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of the application protection.
Swf is a kind of Flash animation file based on vector, typically creates and generate swf tray with FLASH software
Formula, it is also possible to the types such as PDF are converted to swf form by corresponding software.It is attracting that swf formatted file is widely used in establishment
Application program, they comprise abundant video, sound, figure and animation.Original contents can be created or from it in Flash
Its Adobe application program (such as Photoshop or Illustrator) imports them, quickly designs simple animation, and uses
Adobe AcitonScript 3.0 develops senior interactive item.
Hereinafter carry out the introduction of embodiment particular content.
Embodiments provide the processing method of a kind of flash animation, with reference to Fig. 1, provide for the embodiment of the present invention
The process flow figure of a kind of flash animation, described method includes:
S101: system extracts the data message in flash animation in each animation frame.
Flash animation in the embodiment of the present invention refers to the flash animation of swf form, owing to flash animation is general
It is made up of some animation frame, so, the embodiment of the present invention, after determining pending flash animation, first extracts this flash
All animation frame that animation includes, secondly extract the data message in these animation frame.
In practical operation, owing to each animation frame is a bitmap, it is made up of m*n (m, n are natural number) individual pixel,
So, the embodiment of the present invention is to the extraction of data message in each animation frame, actually to each pixel in animation frame
The extraction of data message, and be utilized respectively two-dimensional array the data message extracted in each animation frame is stored.
S102: by described data information memory in material file, and generate the configuration literary composition corresponding with described material file
Part.
The data message extracted from each animation frame of described flash animation is stored in element by the embodiment of the present invention
In material file, generating the configuration file corresponding with this material file, described configuration file is used for describing described material file simultaneously
In the data message that comprises, such as color change information, matrix change information etc..Concrete, described configuration file is generally XML literary composition
Part, described material file can be the bitmap of a png form.
Data message in described material file, according to described configuration file, is rendered to described flash and is moved by S103: system
Draw corresponding bitmaps animation.
Owing to configuration file is for describing the data message comprised in described material file, so, the embodiment of the present invention can
With the configuration file corresponding according to described material file, the data message comprised is rendered to bitmap moves in described material file
Draw.
Flash animation is carried out form conversion by the embodiment of the present invention, will be converted into bitmaps animation by flash animation.Due to
Playing of bitmaps animation is less demanding to the disposal ability of CPU, the particularly less than flash animation requirement to the disposal ability of CPU,
So, play out in the computer of relatively low configuration after flash animation is converted into bitmaps animation, it is possible to overcome flash to move
Draw the broadcasting demand to higher configured computer.
Present invention also offers the processing method of a kind of flash animation, with reference to Fig. 2, for the embodiment of the present invention provide another
A kind of flow chart of the processing method of flash animation.Described method includes:
S201: obtain the totalframes of pending flash animation, and extract in described flash animation in each animation frame
Data message.
In practical operation, the most each animation frame creates a two-dimensional array, say, that for described flash animation
Create k two-dimensional array (k represents totalframes), be respectively used to store the data message of each pixel in each animation frame,
The data message of each pixel is as an element in described two-dimensional array.
S202: judge that whether there is data message in described flash animation meets the animation frame of default duplicate removal condition;If
Exist, then perform S203.
S203: extract the data message meeting described duplicate removal condition in a described animation frame, and by described data message
It is stored in material file.
S204: by the data information memory in the animation frame being unsatisfactory for described duplicate removal condition in described material file.
The embodiment of the present invention after the data message in each animation frame, compares each in extracting described flash animation
Whether the data message in animation frame exists the region of repetition.Concrete, the size of repeat region can be pre-set, when two
Or the region repeated of the data message in multiple animation frame is when meeting the size of default repeat region, by said two or multiple
Animation frame is defined as duplicate removal object.Concrete, the data message of repeat region in duplicate removal object is only extracted and stores portion, and
By the data information memory of extraction in material file.It addition, for being unsatisfactory for the data message in the animation frame of duplicate removal condition,
The embodiment of the present invention is also extracted and is stored in described material file.
In order to reduce the consumption to storage resource, the embodiment of the present invention uses deduplication operation, exists in each animation frame
Repeat the region of data message, the data message that only storage portion repeats, save storage resource.
S205: generate the configuration file corresponding with described material file.
In the embodiment of the present invention, when by the data information memory in the animation frame of flash animation in material file, accordingly
The configuration file generated for describing data message in described material file, as describing the data in each animation frame
Color change information of information etc..Follow-up, according to the content in configuration file, flash animation can be reduced, or will
Flash animation shows with another kind of animated format (such as bitmaps animation form).
S206: according to described configuration file, the data message in described material file is rendered to described flash animation pair
The bitmaps animation answered.
In actual application, the bitmaps animation that flash animation is converted into can be applied to different platforms, such as Android
Application platform, IOS application platform etc..For different application platforms, it is flat that the embodiment of the present invention can call each application respectively
What platform was corresponding renders functional interface, and the data message in material file is rendered to be applied to the bitmap of described application platform
Animation.
In the processing method of the flash animation that the embodiment of the present invention provides, during first flash animation is extracted in acquisition, each moves
Draw the data message on frame.Secondly, by described data information memory in material file, and generate corresponding with described material file
Configuration file.Finally, according to described configuration file, the data message in described material file is rendered to described flash and moves
Draw corresponding bitmaps animation.The flash animation of swf form is changed into the meter that can run on relatively low configuration by the embodiment of the present invention
The bitmaps animation of calculation machine, it is possible to the animation of the computer meeting relatively low configuration plays demand.
Embodiments provide the processing means of a kind of flash animation, with reference to Fig. 3, provide for the embodiment of the present invention
The structural representation of processing means of a kind of flash animation, described device includes:
Extraction module 301, for extracting the data message of each animation frame in flash animation;
Memory module 302, is used for described data information memory in material file;
Generation module 303, for generating the configuration file corresponding with described material file;
Rendering module 304, for according to described configuration file, is rendered to described by the data message in described material file
The bitmaps animation that flash animation is corresponding.
In order to save storage resource, the processing means of the flash animation that the embodiment of the present invention provides also includes duplicate removal function,
Concrete, as shown in Figure 4, described device not only includes that the modules in Fig. 3, described device can also include:
Judge module 401, for judging that whether there is data message in described flash animation meets default duplicate removal condition
Animation frame;
Accordingly, described memory module 302 includes:
First sub module stored 4021, for when there is the animation frame that data message meets default duplicate removal condition, extracts
A described animation frame meets the data message of described duplicate removal condition, and by described data information memory in material file;
Second sub module stored 4022, for by the data information memory in the animation frame being unsatisfactory for described duplicate removal condition in
In described material file.
In actual application, described judge module 401, specifically for:
Judge whether described flash animation exists the animation frame meeting the identical data message of preset area.
It addition, described rendering module 304, including:
Call submodule 4031, for for different application platforms, call and corresponding with described application platform render merit
Can interface;
Render submodule 4032, for according to described configuration file, described in utilization, render functional interface, by described material literary composition
Data message in part is rendered to the bitmaps animation that described flash animation is corresponding.
The processing means of the flash animation that the embodiment of the present invention provides is capable of following functions: obtains extraction flash and moves
Data message in each animation frame in picture;By described data information memory in material file, and generate and described material literary composition
The configuration file that part is corresponding;According to described configuration file, the data message in described material file is rendered to described flash and moves
Draw corresponding bitmaps animation.The flash animation of swf form is changed into the meter that can run on relatively low configuration by the embodiment of the present invention
The bitmaps animation of calculation machine, it is possible to the animation of the computer meeting relatively low configuration plays demand.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact
The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component
The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also
It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality
Need to select some or all of module therein to realize the purpose of the present embodiment scheme.Those of ordinary skill in the art are not
In the case of paying creative work, i.e. it is appreciated that and implements.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality
Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating
Relation or order in any this reality.And, term " includes ", " comprising " or its any other variant are intended to
Comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that those are wanted
Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that
Including process, method, article or the equipment of described key element there is also other identical element.
The processing method and processing device of a kind of flash animation provided the embodiment of the present invention above has carried out detailed Jie
Continuing, principle and the embodiment of the present invention are set forth by specific case used herein, and the explanation of above example is only
It is the method and core concept thereof being adapted to assist in and understanding the present invention;Simultaneously for one of ordinary skill in the art, according to this
Bright thought, the most all will change, and in sum, this specification content should not be managed
Solve as limitation of the present invention.
Claims (9)
1. the processing method of a flash animation, it is characterised in that described method includes:
Extract the data message in each animation frame in flash animation;
By described data information memory in material file, and generate the configuration file corresponding with described material file;
According to described configuration file, the data message in described material file is rendered to the bitmap that described flash animation is corresponding
Animation.
Method the most according to claim 1, it is characterised in that by described data information memory in material file it
Before, also include:
Judge that whether there is data message in described flash animation meets the animation frame of default duplicate removal condition;
Accordingly, described by described data information memory in material file, including:
Meet the animation frame of default duplicate removal condition if there is data message, then extract and go described in a described animation frame meets
The data message of weight condition, and by described data information memory in material file;
By the data information memory in the animation frame being unsatisfactory for described duplicate removal condition in described material file.
Method the most according to claim 2, it is characterised in that described judge whether there are data in described flash animation
Information meets the animation frame of default duplicate removal condition, specifically includes:
Judge whether described flash animation exists the animation frame meeting the identical data message of preset area.
Method the most according to claim 1, it is characterised in that described according to described configuration file, by described material file
In data message be rendered to the bitmaps animation that described flash animation is corresponding, including:
For different application platforms, call and corresponding with described application platform render functional interface;
According to described configuration file, render functional interface described in utilization, the data message in described material file is rendered to institute
State the bitmaps animation that flash animation is corresponding.
Method the most according to claim 1, it is characterised in that described material file is the bitmap of a png form.
6. the processing means of a flash animation, it is characterised in that described device includes:
Extraction module, for extracting the data message of each animation frame in flash animation;
Memory module, is used for described data information memory in material file;
Generation module, for generating the configuration file corresponding with described material file;
Rendering module, for according to described configuration file, is rendered to described flash by the data message in described material file and moves
Draw corresponding bitmaps animation.
Device the most according to claim 6, it is characterised in that described device also includes:
Judge module, for judging that whether there is data message in described flash animation meets the animation frame of default duplicate removal condition;
Accordingly, described memory module includes:
First sub module stored, for when there is the animation frame that data message meets default duplicate removal condition, extracts a described
Animation frame meets the data message of described duplicate removal condition, and by described data information memory in material file;
Second sub module stored, is used for the data information memory in the animation frame being unsatisfactory for described duplicate removal condition in described material
In file.
Device the most according to claim 7, it is characterised in that described judge module, specifically for:
Judge whether described flash animation exists the animation frame meeting the identical data message of preset area.
Device the most according to claim 6, it is characterised in that described rendering module, including:
Call submodule, for for different application platforms, call and corresponding with described application platform render functional interface;
Render submodule, for according to described configuration file, described in utilization, render functional interface, by the number in described material file
It is believed that breath is rendered to the bitmaps animation that described flash animation is corresponding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610512275.2A CN106127840A (en) | 2016-06-30 | 2016-06-30 | A kind of processing method and processing device of flash animation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610512275.2A CN106127840A (en) | 2016-06-30 | 2016-06-30 | A kind of processing method and processing device of flash animation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106127840A true CN106127840A (en) | 2016-11-16 |
Family
ID=57468932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610512275.2A Pending CN106127840A (en) | 2016-06-30 | 2016-06-30 | A kind of processing method and processing device of flash animation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106127840A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881997A (en) * | 2018-07-24 | 2018-11-23 | 北京奇艺世纪科技有限公司 | Animation file generates and playback method, device and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207774A (en) * | 2007-12-04 | 2008-06-25 | 欧阳泳春 | System for conversing SWF format file to video file and implementation method thereof |
US20100035226A1 (en) * | 2008-08-05 | 2010-02-11 | BAIS Education & Technology Co., Ltd. | Computerized education device, multimedia production device and associated methods to support distance learning |
CN104700022A (en) * | 2015-03-31 | 2015-06-10 | 北京奇艺世纪科技有限公司 | Dynamic identifying code generation method and dynamic identifying code generation device |
CN104933747A (en) * | 2015-06-10 | 2015-09-23 | 北京奇虎科技有限公司 | Method and device for converting vector animation into bitmap animation |
-
2016
- 2016-06-30 CN CN201610512275.2A patent/CN106127840A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207774A (en) * | 2007-12-04 | 2008-06-25 | 欧阳泳春 | System for conversing SWF format file to video file and implementation method thereof |
US20100035226A1 (en) * | 2008-08-05 | 2010-02-11 | BAIS Education & Technology Co., Ltd. | Computerized education device, multimedia production device and associated methods to support distance learning |
CN104700022A (en) * | 2015-03-31 | 2015-06-10 | 北京奇艺世纪科技有限公司 | Dynamic identifying code generation method and dynamic identifying code generation device |
CN104933747A (en) * | 2015-06-10 | 2015-09-23 | 北京奇虎科技有限公司 | Method and device for converting vector animation into bitmap animation |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881997A (en) * | 2018-07-24 | 2018-11-23 | 北京奇艺世纪科技有限公司 | Animation file generates and playback method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106095437B (en) | The implementation method and device of the user interface layout type of RTL from right to left | |
CN102122502B (en) | Method and related device for displaying three-dimensional (3D) font | |
CN104850388B (en) | web page rendering method and device | |
CN105096368B (en) | Three dimensional object processing method and relevant apparatus | |
CN109636885B (en) | Sequential frame animation production method and system for H5 page | |
CN102902535A (en) | Picture self-adaption method, system and terminal equipment | |
CN106055294B (en) | A kind of figure layer synthesis optimizing method and apparatus | |
CN105528207A (en) | Virtual reality system, and method and apparatus for displaying Android application images therein | |
CN107578367B (en) | Method and device for generating stylized image | |
CN109766949A (en) | Convolutional neural networks light weight method, device and electronic equipment | |
CN105867944B (en) | Web front end data operation layer and its implementation | |
CN110533594A (en) | Model training method, image rebuilding method, storage medium and relevant device | |
CN105144243A (en) | Data visualization | |
CN109964204A (en) | For handling the method and system of figure | |
US8881002B2 (en) | Trial based multi-column balancing | |
CN104391896A (en) | Plane printed product typesetting method and system based on webpage | |
CN103309695A (en) | Icon loading method and terminal | |
CN104346170A (en) | Canvas-based topological graph generating method and device | |
KR20150106846A (en) | Improvements in and relating to rendering of graphics on a display device | |
CN104008565B (en) | System and method for playing Flash bitmap animation by using cocos2d-x and HE engines | |
CN106127840A (en) | A kind of processing method and processing device of flash animation | |
CN111639523B (en) | Target detection method, device, computer equipment and storage medium | |
CN108399156A (en) | The composition method and device of formula in a kind of pdf document | |
CN105447010A (en) | Text rendering method and system | |
CN109523588B (en) | User-defined parquet method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20170823 Address after: 200030 Leshan Road, Shanghai, No. 701, room 3, building 33 Applicant after: Shanghai Zhongyuan Network Co., Ltd. Address before: A 100080 street Beijing city Haidian District North No. 2, building 10, 11 layers of Goldtron expand Applicant before: Beijing Qiyi Century Technology Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161116 |