CN108876882A - A kind of acyclic gif file playback method of picture and system - Google Patents
A kind of acyclic gif file playback method of picture and system Download PDFInfo
- Publication number
- CN108876882A CN108876882A CN201810666677.7A CN201810666677A CN108876882A CN 108876882 A CN108876882 A CN 108876882A CN 201810666677 A CN201810666677 A CN 201810666677A CN 108876882 A CN108876882 A CN 108876882A
- Authority
- CN
- China
- Prior art keywords
- sequence
- gif file
- frame
- acyclic
- played
- 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/80—2D [Two Dimensional] animation, e.g. using sprites
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
A kind of acyclic gif file playback method of picture provided by the invention and system, including:S101, increase sequence starts identifier and the sequence ends identifier in gif file to be played;S102, gif file to be played is ranked up, so that gif file is at least made of a sequence, each sequence is at least made of a frame;S103, a sequence in gif file, all frames in the played in order sequence are randomly selected;Start identifier and the sequence ends identifier by increasing sequence in gif file to be played, make etc. it is to be loaded in the case where, the cardon of acyclic broadcasting can mitigate impatience psychology when user waits, and acyclic gif file has richer animation effect and application scenarios compared with the gif file of loop play, and practicability is extremely strong.
Description
Technical field
The invention belongs to the technical fields of gif file production, and in particular to a kind of acyclic gif file production of picture and
Playback method.
Background technique
Gif file is generally made of a frame or multiple image, one when it is made of multiple image, we are played
As by the way of loop play, final presentation the result is that a loop play animation.Such as some etc. to be loaded
The GIF cardon of a loop play, if not having any progress prompt during this, some users would generally be presented in situation to user
It can feel to wait not within the foreseeable future and generate impatient psychology.
Summary of the invention
The present invention overcomes the shortcomings of the prior art, and technical problem to be solved is:There is provided a kind of animation effect it is good,
The acyclic gif file playback method of application scenarios picture abundant and system.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:A kind of acyclic gif file of picture is broadcast
Method is put, including:S101, increase sequence starts identifier and the sequence ends identifier in gif file to be played;S102,
Gif file to be played is ranked up, so that gif file is at least made of a sequence, each sequence is at least by a frame
Composition;S103, a sequence in gif file, all frames in the played in order sequence are randomly selected.
Preferably, certain sequence in the parsing gif file, all frames in the played in order sequence, specifically includes:Parsing
The image data of a certain frame image in gif file;Judge whether the packaging domain thresholding in the frame graphic extension block is equal to 4;To this
Frame is stored;Judging whether gif file parses terminates.
Preferably, the described pair of frame stores, and specifically includes:It stores the frame in the sequence created in memory, makes
Total sequence number increases by 1;It stores the frame in the sequence where present frame.
Preferably, the sequence that increases in gif file to be played starts identifier and the sequence ends identifier, specifically
Including:Increase identifier in the packaging domain of Graph Control extension blocks in gif file to be played, defining thresholding 4 indicates sequence
Start frame, defining thresholding 5 indicates the sequence ends frame.
Correspondingly, the acyclic gif file play system of a kind of picture, including:Marking unit:In GIF text to be played
Increase sequence in part and starts identifier and the sequence ends identifier;Sequencing unit:For gif file to be played to be arranged
Sequence, so that gif file is at least made of a sequence, each sequence is at least made of a frame;Broadcast unit:For selecting at random
Take a sequence in gif file, all frames in the played in order sequence.
Preferably, the broadcast unit, specifically includes:Image analysis module:For parsing a certain frame image in gif file
Image data;First judging unit:For judging whether the packaging domain thresholding in the frame graphic extension block is equal to 4;Storage is single
Member:For being stored to the frame;Second judgment unit:Terminate for judging whether gif file parses.
Preferably, the storage unit includes:First storage unit:For storing the frame in the sequence created in memory
In, so that total sequence number is increased by 1;Second storage unit:For storing the frame in the sequence where present frame.
Preferably, the marking unit, specifically includes:The packaging of Graph Control extension blocks in gif file to be played
Increase identifier in domain, defining thresholding 4 indicates sequence start frame, and defining thresholding 5 indicates the sequence ends frame.
The present invention has the advantages that compared with prior art:
A kind of acyclic gif file playback method of picture provided by the invention and system, by gif file to be played
Increase sequence and start identifier and the sequence ends identifier, make etc. it is to be loaded in the case where, the cardon of acyclic broadcasting can subtract
Impatience psychology when light user waits, and acyclic gif file has richer animation to imitate compared with the gif file of loop play
Fruit and application scenarios;The gif file production of acyclic broadcasting is simple, the GIF decoding for the gif file support standard made
Device plays(No acyclic result of broadcast is played with the GIF decoder of standard), while with acyclic gif file as described herein
Playback method be also compatible with the gif file of playing standard.
Detailed description of the invention
The present invention will be further described in detail with reference to the accompanying drawing;
Fig. 1 is a kind of flow diagram for the acyclic gif file playback method of picture that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram for the acyclic gif file play system of picture that the embodiment of the present invention one provides;
Fig. 3 is a kind of structural schematic diagram of the acyclic gif file play system of picture provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of structural schematic diagram for the acyclic gif file play system of picture that the embodiment of the present invention three provides;
Wherein:101 be marking unit, and 102 be sequencing unit, and 103 be broadcast unit, and 1031 be image analysis module, and 1032 are
First judging unit, 1033 be storage unit, and 10331 be the first storage unit, and 10332 be the second storage unit, and 1034 be the
Two judging units.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiments of the present invention, instead of all the embodiments;Based on the embodiments of the present invention, ordinary skill people
Member's every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow diagram for the acyclic GIF playback method of picture that the embodiment of the present invention one provides, and is such as schemed
Shown in 1, a kind of acyclic gif file playback method of picture, including:
S101, increase sequence starts identifier and the sequence ends identifier in gif file to be played;It specifically includes:To
Increase identifier in the gif file of broadcasting in the packaging domain of Graph Control extension blocks, defining thresholding 4 indicates sequence start frame, fixed
Adopted thresholding 5 indicates the sequence ends frame.
S102, gif file to be played is ranked up, so that gif file is at least made of a sequence, each sequence
At least it is made of a frame;
S103, a sequence in gif file, all frames in the played in order sequence are randomly selected.
Further, certain sequence in the parsing gif file, all frames in the played in order sequence, specifically includes:Solution
Analyse the image data of a certain frame image in gif file;Judge whether the packaging domain thresholding in the frame graphic extension block is equal to 4;It is right
The frame is stored;Judging whether gif file parses terminates.
Further, the described pair of frame stores, and specifically includes:It stores the frame in the sequence created in memory,
Total sequence number is set to increase by 1;It stores the frame in the sequence where present frame.
Fig. 2 is a kind of structural schematic diagram for the acyclic gif file play system of picture that the embodiment of the present invention one provides,
As shown in Fig. 2, a kind of acyclic gif file play system of picture, including:
Marking unit 101:Increase sequence in gif file to be played and starts identifier and the sequence ends identifier;Specific packet
It includes:Increase identifier in the packaging domain of Graph Control extension blocks in gif file to be played, defining thresholding 4 indicates that sequence is opened
Beginning frame, defining thresholding 5 indicates the sequence ends frame.
Sequencing unit 102:For gif file to be played to be ranked up, so that gif file is at least by a sequence group
At each sequence is at least made of a frame;
Broadcast unit 103:All frames for randomly selecting a sequence in gif file, in the played in order sequence.
Fig. 3 is a kind of structural schematic diagram of the acyclic gif file play system of picture provided by Embodiment 2 of the present invention,
As shown in figure 3, on the basis of example 1, the broadcast unit 103 specifically includes:
Image analysis module 1031:For parsing the image data of a certain frame image in gif file;
First judging unit 1032:For judging whether the packaging domain thresholding in the frame graphic extension block is equal to 4;
Storage unit 1033:For being stored to the frame;
Second judgment unit 1034:Terminate for judging whether gif file parses.
Fig. 4 is a kind of structural schematic diagram for the acyclic gif file play system of picture that the embodiment of the present invention three provides,
As shown in figure 4, on the basis of example 2, the storage unit 1033 specifically includes:
First storage unit 10331:For storing the frame in the sequence created in memory, total sequence number is made to increase by 1;
Second storage unit 10332:For storing the frame in the sequence where present frame.
Specifically, gif file to be played is opened, and reads a certain frame in some sequence, parses the frame image
Image data, judges whether the packaging domain thresholding in the frame graphic extension block is equal to 4, when packing domain thresholding equal to 4, then means
The frame be a sequence beginning, an array or chained list are created by the first storage unit 10331 in memory, for depositing
Store up the frame sequence, it is assumed that former total sequence is fln, then now sequence sum is:fln+1;When packing domain thresholding not equal to 4, then lead to
It crosses in the sequence where the second storage unit 10332 stores the frame in present frame;Then sentenced by second judgment unit 1034
Whether disconnected gif file, which parses, terminates, if gif file, which does not parse, to be terminated, continues to read a certain frame in some sequence, directly
Into gif file, all sequences parsing terminates.
A kind of acyclic gif file playback method of picture provided by the invention and system, by GIF text to be played
Increase sequence in part and start identifier and the sequence ends identifier, make etc. it is to be loaded in the case where, the cardon of acyclic broadcasting can
To mitigate impatience psychology when user waits, and acyclic gif file has richer move compared with the gif file of loop play
Draw effect and application scenarios;The gif file production of acyclic broadcasting is simple, the GIF for the gif file support standard made
Decoder plays(No acyclic result of broadcast is played with the GIF decoder of standard), while with acyclic GIF as described herein
The playback method of file is also compatible with the gif file of playing standard.
A kind of acyclic gif file playback method of picture provided by the invention and system, using acyclic mode or with
Machine mode plays gif file, other play gif file also in the scope of this patent, such as using puppet by similar approach
Random fashion plays gif file;Pass through a kind of acyclic GIF of the insetion sequence beginning and end identifier in gif file
Documenting method, other be inserted into gif file by similar means also belong to the scope of this patent similar to identifier
It is interior, be including but not limited to inserted into identifier in other fields, be inserted into the definition value of identifier with this patent describe it is inconsistent but
Act on situations such as consistent.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, those skilled in the art should understand that:Its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (8)
1. a kind of acyclic gif file playback method of picture, it is characterised in that:Including:
S101, increase sequence starts identifier and the sequence ends identifier in gif file to be played;
S102, gif file to be played is ranked up, so that gif file is at least made of a sequence, each sequence is at least
It is made of a frame;
S103, a sequence in gif file, all frames in the played in order sequence are randomly selected.
2. the acyclic gif file playback method of a kind of picture according to claim 1, it is characterised in that:The parsing
Certain sequence in gif file, all frames in the played in order sequence, specifically includes:
Parse the image data of a certain frame image in gif file;
Judge whether the packaging domain thresholding in the frame graphic extension block is equal to 4;
The frame is stored;
Judging whether gif file parses terminates.
3. the acyclic gif file playback method of a kind of picture according to claim 2, it is characterised in that:Described pair should
Frame is stored, and is specifically included:
It stores the frame in the sequence created in memory, total sequence number is made to increase by 1;
It stores the frame in the sequence where present frame.
4. the acyclic gif file playback method of a kind of picture according to claim 1, it is characterised in that:It is described to
Increase sequence in the gif file of broadcasting and start identifier and the sequence ends identifier, specifically includes:In gif file to be played
Increase identifier in the packaging domain of middle Graph Control extension blocks, defining thresholding 4 indicates sequence start frame, and defining thresholding 5 indicates sequence
Column end frame.
5. a kind of acyclic gif file play system of picture, it is characterised in that:Including:
Marking unit(101):Increase sequence in gif file to be played and starts identifier and the sequence ends identifier;
Sequencing unit(102):For gif file to be played to be ranked up, so that gif file is at least by a sequence group
At each sequence is at least made of a frame;
Broadcast unit(103):All frames for randomly selecting a sequence in gif file, in the played in order sequence.
6. the acyclic gif file play system of a kind of picture according to claim 5, it is characterised in that:The broadcasting
Unit(103), specifically include:
Image analysis module(1031):For parsing the image data of a certain frame image in gif file;
First judging unit(1032):For judging whether the packaging domain thresholding in the frame graphic extension block is equal to 4;
Storage unit(1033):For being stored to the frame;
Second judgment unit(1034):Terminate for judging whether gif file parses.
7. the acyclic gif file play system of a kind of picture according to claim 6, it is characterised in that:The storage
Unit(1033)Including:
First storage unit(10331):For storing the frame in the sequence created in memory, total sequence number is made to increase by 1;
Second storage unit(10332):For storing the frame in the sequence where present frame.
8. the acyclic gif file play system of a kind of picture according to claim 5, it is characterised in that:The label
Unit specifically includes:Increase identifier in the packaging domain of Graph Control extension blocks in gif file to be played, defines thresholding 4
Indicate sequence start frame, defining thresholding 5 indicates the sequence ends frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810666677.7A CN108876882A (en) | 2018-06-26 | 2018-06-26 | A kind of acyclic gif file playback method of picture and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810666677.7A CN108876882A (en) | 2018-06-26 | 2018-06-26 | A kind of acyclic gif file playback method of picture and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108876882A true CN108876882A (en) | 2018-11-23 |
Family
ID=64295669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810666677.7A Pending CN108876882A (en) | 2018-06-26 | 2018-06-26 | A kind of acyclic gif file playback method of picture and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108876882A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101438585A (en) * | 2006-01-30 | 2009-05-20 | 克里尔普雷有限公司 | Synchronizing filter metadata with a multimedia presentation |
CN102186105A (en) * | 2011-04-20 | 2011-09-14 | 深圳创维数字技术股份有限公司 | Digital television program playing system, method and digital television receiving terminal |
US20170134796A1 (en) * | 2015-05-21 | 2017-05-11 | Boe Technology Group Co., Ltd. | Display, Display Device, Player, Playing Device, and Playing Display System |
CN107005715A (en) * | 2014-10-14 | 2017-08-01 | 诺基亚技术有限公司 | Coding image sequences and the device of decoding, method and computer program |
CN107431810A (en) * | 2015-02-09 | 2017-12-01 | 诺基亚技术有限公司 | Device, method and computer program for image coding and decoding |
-
2018
- 2018-06-26 CN CN201810666677.7A patent/CN108876882A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101438585A (en) * | 2006-01-30 | 2009-05-20 | 克里尔普雷有限公司 | Synchronizing filter metadata with a multimedia presentation |
CN102186105A (en) * | 2011-04-20 | 2011-09-14 | 深圳创维数字技术股份有限公司 | Digital television program playing system, method and digital television receiving terminal |
CN107005715A (en) * | 2014-10-14 | 2017-08-01 | 诺基亚技术有限公司 | Coding image sequences and the device of decoding, method and computer program |
CN107431810A (en) * | 2015-02-09 | 2017-12-01 | 诺基亚技术有限公司 | Device, method and computer program for image coding and decoding |
US20170134796A1 (en) * | 2015-05-21 | 2017-05-11 | Boe Technology Group Co., Ltd. | Display, Display Device, Player, Playing Device, and Playing Display System |
Non-Patent Citations (2)
Title |
---|
JAMIALAHMADI, OVEIS等: "BiKEGG: a COBRA toolbox extension for bridging the BiGG and KEGG databases", 《MOLECULAR BIOSYSTEMS》 * |
边弘宇 等: "低压缩码率下JPEG编码器的设计", 《中国优秀硕士学位论文全文数据库 (基础科学辑)》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8364011B2 (en) | System and method for providing a personalized media consumption experience | |
RU2009134736A (en) | RECORDING MEDIA ON WHICH THE 3D VIDEO WAS RECORDED, RECORDING MEDIA FOR RECORDING THE THREE-DIMENSIONAL VIDEO AND PLAYBACK DEVICE AND METHOD FOR PLAYING THE THREE-DIMENSIONAL VIDEO | |
CN101964202B (en) | Audio data file playback processing method mixed with multiple encoded formats | |
Nakano | Who initiates a global flow? Japanese popular culture in Asia | |
CN106162298B (en) | Method and system for realizing bullet screen | |
CN101072313A (en) | Storage medium having interactive graphic stream and apparatus for reproducing the same | |
CN104093084B (en) | A kind of method and device for playing video | |
CN105589816B (en) | Compiling formula scene interactive animation makes and playback method | |
CN105187896A (en) | Multi-segment media file playing method and system | |
CN103517131A (en) | Method for playing segmental videos in gapless mode in television set and television set | |
CN110446114A (en) | Processing unit, method, electronic equipment and the storage medium of multi-medium data | |
KR100604831B1 (en) | Audio and video player synchronizing ancillary word and image to audio and method thereof | |
CN104902145B (en) | A kind of player method and device of live stream video | |
WO2023051068A1 (en) | Video display method and apparatus, and computer device and storage medium | |
CN107454447A (en) | A kind of plug-in loading method of player, device and television set | |
CN108876882A (en) | A kind of acyclic gif file playback method of picture and system | |
CN104902297B (en) | The method and device that a kind of program plays | |
CN106231402A (en) | A kind of method in terminal, multiple video seamless connections play | |
CN106993230A (en) | Intelligence based on plot plays interaction control method | |
CN106162304A (en) | The player method of a kind of barrage information and system | |
CN107231578A (en) | The system and method that video file is quickly played | |
CN108966000B (en) | Playing method and device, medium and terminal thereof | |
CN105307045A (en) | Method and apparatus for displaying interaction information on video program | |
CN105679213A (en) | Split-screen displaying and playing method of display screen and player | |
JP2010537353A (en) | Metadata generation method, access method and apparatus in media file format |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181123 |