CN102364441B - The display methods of GIF pictures, apparatus and system - Google Patents
The display methods of GIF pictures, apparatus and system Download PDFInfo
- Publication number
- CN102364441B CN102364441B CN201110325946.1A CN201110325946A CN102364441B CN 102364441 B CN102364441 B CN 102364441B CN 201110325946 A CN201110325946 A CN 201110325946A CN 102364441 B CN102364441 B CN 102364441B
- Authority
- CN
- China
- Prior art keywords
- gif pictures
- gray scale
- alpha
- gif
- pictures
- 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.)
- Active
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of display methods of GIF pictures, apparatus and system, this method includes:Graphics engine determines to mark containing alpha path markings or gray scale in GIF pictures, wherein, alpha path markings are used to indicate that graphics engine carries out GIF pictures alpha overlap-add operations, and gray scale marks carries out gray scale display operation to GIF pictures for indicating graphics engine;Alpha overlap-add operations are carried out to GIF pictures, or gray scale display operation is carried out to GIF pictures;Show the GIF pictures after operation processing.The present invention can make GIF pictures support alpha passages, and the translucent display or gray scale for realizing GIF pictures are shown.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of display methods of GIF pictures, apparatus and system.
Background technology
GIF(Graphic Interchange format) (Graphics Interchange Format, referred to as GIF) is a kind of bitmap graphics file
Form, the image of RGB is reappeared with 8 colors (i.e. 256 kinds of colors).It is actually a kind of condensed document, is compressed using LZW
Algorithm (Lempel-Ziv-Welch Encoding) is encoded, effectively reduce image file transmission over networks when
Between.GIF is to be now widely used for one of picture format of network transmission, also has substantial amounts of application in IPTV fields.
But GIF forms exist one it is fatal the problem of can not exactly support alpha passages, if it is desired to realizing transparent effect
Fruit, Transparent color can only be used, translucent display effect can not be realized.
The content of the invention
For in correlation technique, GIF pictures can not support alpha passages, it is impossible to the problem of realizing translucent display effect
And the present invention is proposed, therefore, the invention provides a kind of display methods of GIF pictures, apparatus and system, it is above-mentioned at least to solve
Problem.
According to an aspect of the invention, there is provided a kind of display methods of GIF pictures, including:Graphics engine determines GIF
Marked in picture containing alpha path markings or gray scale, wherein, alpha path markings are used to indicate graphics engine to GIF pictures
Alpha overlap-add operations are carried out, gray scale marks carries out gray scale display operation to GIF pictures for indicating graphics engine;To GIF pictures
Alpha overlap-add operations are carried out, or gray scale display operation is carried out to GIF pictures;Show the GIF pictures after operation processing.
Preferably, before alpha path markings or gray scale mark is contained during graphics engine determines GIF pictures, including:It is right
GIF pictures are decoded.
Preferably, before alpha path markings or gray scale mark is contained during graphics engine determines GIF pictures, in addition to:
Image processing device defines application extension data block Application Extension Block;Determine that GIF pictures need to carry out
Alpha is superimposed or gray scale is shown;By alpha path markings or gray scale mark write-in application extension data block.
Preferably, in the case where graphics engine does not support application extension data block, GIF pictures are directly displayed.
Preferably, in the case of alpha path markings or gray scale mark are not contained in GIF pictures, GIF figures are directly displayed
Piece.
According to another aspect of the present invention, there is provided a kind of display device of GIF pictures, applied to graphics engine, including:
First determining module, for determining to mark containing alpha path markings or gray scale in GIF pictures, wherein, alpha path markings
For indicating that graphics engine carries out alpha overlap-add operations to GIF pictures, gray scale is marked for indicating graphics engine to GIF pictures
Carry out gray scale display operation;Execution module, gray scale is carried out for carrying out alpha overlap-add operations to GIF pictures, or to GIF pictures
Display operation;Display module, for show operation processing after GIF pictures.
Preferably, said apparatus also includes decoder module, for being decoded to GIF pictures.
Preferably, above-mentioned display module is additionally operable in the case where graphics engine does not support application extension data block, directly
Show GIF pictures.
Preferably, above-mentioned display module is additionally operable to the feelings that alpha path markings or gray scale mark are not contained in GIF pictures
Under condition, GIF pictures are directly displayed.
According to a further aspect of the invention, there is provided a kind of display system of GIF pictures, including graphics engine and picture
Processing equipment, wherein, graphics engine includes:First determining module, for determining in GIF pictures containing alpha path markings or
Gray scale marks, wherein, alpha path markings are used to indicate that graphics engine carries out alpha overlap-add operations, gray scale to GIF pictures
Remember and gray scale display operation is carried out to GIF pictures for indicating graphics engine;Execution module, folded for carrying out alpha to GIF pictures
Add operation, or gray scale display operation is carried out to GIF pictures;Display module, for show operation processing after GIF pictures.Picture
Processing equipment includes:Definition module, for the application extension data block Application Extension defined in GIF pictures
Block data blocks;Second determining module, for determining that GIF pictures need to support that carrying out the superposition of alpha passages and/or gray scale shows
Show;Writing module, for alpha path markings and/or gray scale mark to be write into application extension data block;
By the present invention, graphics engine determines alpha path markings or gray scale mark in GIF pictures be present, so as to carry out
Alpha overlap-add operations or gray scale display operation.Therefore, the present invention can make GIF pictures support alpha passages, realize GIF pictures
Translucent display or gray scale show.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structured flowchart of the display system of GIF pictures according to embodiments of the present invention;
Fig. 2 is the flow chart of the display methods of GIF pictures according to embodiments of the present invention;
Fig. 3, which is image processing device according to the preferred embodiment of the invention, carries out alpha passages to GIF pictures, at gray scale
The flow chart of reason;
Fig. 4 is that graphics engine according to the preferred embodiment of the invention carries out alpha passages to GIF pictures, gray scale parses
Flow chart;
Fig. 5 is the structured flowchart of the display device of GIF pictures according to embodiments of the present invention;
Fig. 6 is the structured flowchart of the display device of GIF pictures according to the preferred embodiment of the invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
The embodiments of the invention provide a kind of display system of GIF pictures, Fig. 1 is GIF figures according to embodiments of the present invention
The structured flowchart of the display system of piece, as shown in figure 1, including graphics engine 12 and image processing device 14.Below to its structure
It is described in detail.
Graphics engine 12 includes the first determining module 122, execution module 124 and display module 126.Wherein, first determine
Module 122, for determining to mark containing alpha path markings or gray scale in GIF pictures, wherein, alpha path markings are used to refer to
Show that graphics engine carries out alpha overlap-add operations to GIF pictures, gray scale is marked for indicating that graphics engine carries out ash to GIF pictures
Degree display operation;Execution module 124, the first determining module 122 is connected to, for carrying out alpha overlap-add operations to GIF pictures,
Or gray scale display operation is carried out to GIF pictures;Display module 126, execution module 124 is connected to, for showing execution module 124
GIF pictures after operation processing.
Image processing device 14 includes definition module 142, the second determining module 144 and writing module 146.Wherein, define
Module 142, for the application extension data block Application Extension Block data blocks defined in GIF pictures;The
Two determining modules 144, for determining that GIF pictures need to support that carrying out the superposition of alpha passages and/or gray scale shows;Writing module
146, the second determining module 144 is connected to, for alpha path markings and/or gray scale mark to be write into application extension data block.
Present invention also offers a kind of display methods of GIF pictures, the display methods of the GIF pictures is schemed based on above-mentioned GIF
The display system of piece is realized.Fig. 2 is the flow chart of the display methods of GIF pictures according to embodiments of the present invention, as shown in Fig. 2
Including steps S202 to step S206.
Step S202, graphics engine determine to mark containing alpha path markings or gray scale in GIF pictures, wherein, alpha
Path marking is used to indicate that graphics engine carries out GIF pictures alpha overlap-add operations, and gray scale is marked for indicating graphics engine pair
GIF pictures carry out gray scale display operation.
Step S204, alpha overlap-add operations are carried out to GIF pictures, or gray scale display operation is carried out to GIF pictures.
Step S206, the GIF pictures after display operation processing.
In correlation technique, GIF pictures can not support alpha passages, it is impossible to realize translucent display effect.The present invention is implemented
In example, graphics engine determines to exist in GIF pictures alpha path markings or gray scale mark, so as to carry out alpha overlap-add operations or
Gray scale display operation.Therefore, the present invention can make GIF pictures support alpha passages, realize translucent display or the gray scale of picture
Display.
Preferably, before step S202, also need to decode the GIF pictures encoded by image processing device.
Before graphics engine is handled GIF pictures, the present invention one special uses defined in GIF picture formats
To describe the data block of application extension information, some customized information can be write this data block.It will be used in the present invention
Wish alpha passages or the half-tone information write-in of graphics engine processing in family.Step is as follows:Define application extension data block
Application Extension Block;Determine that GIF pictures are needed to carry out alpha superpositions or gray scale is shown;Alpha is led to
Road marks or gray scale mark write-in application extension data block.
In addition, in the case of not containing alpha path markings or gray scale mark in GIF pictures, then GIF figures are directly displayed
Piece.
It should be noted that the compatibility on this extension, the situation of application extension data block is not supported in graphics engine
Under, directly display GIF pictures.GIF pictures are so directly displayed, the desired translucent effect of user can not be simply realized, have no
Other influences.
The present invention is specified corresponding by increasing customized data block in GIF pictures to each frame data in GIF pictures
Alpha value.Alpha passages numerical value is parsed when graphics engine decodes to GIF pictures and is carried out at corresponding alpha superpositions
Reason.It is also possible to the algorithm tag for carrying out specially treated will be needed to write self-defining data block, it is right after graphics engine parsing
Characteristic operation corresponding to frame data progress, as gray scale is shown.
The implementation process of the embodiment of the present invention is described in detail below in conjunction with example and accompanying drawing.
Fig. 3, which is image processing device according to the preferred embodiment of the invention, carries out alpha passages to GIF pictures, at gray scale
The flow chart of reason.As shown in figure 3, including steps S302 to step S312.
Step S302, image processing device judge whether GIF pictures need to support alpha passages.If the determination result is YES,
Then perform step S306;If judged result is no, step S312 is performed.
Step S304, image processing device judge whether GIF pictures need to support gray scale to show.If the determination result is YES,
Then perform step S306;If judged result is no, step S312 is performed.
It should be noted that step S302 and step S304 do not have sequencing.
Step S306, find the Application Extension Block in GIF pictures.
Step S308, alpha path markings are added (such as in Application Extension Block
ZTEALPHA), the alpha path markings are used for marking alpha channel values.
Step S310, gray scale mark (such as ZTEGRAY), the ash are added in Application Extension Block
Scale designation is used for marking half-tone information.
It should be noted that step S308 and step S310 do not have sequencing.
Step S312, GIF pictures are encoded.
Fig. 4 is that graphics engine according to the preferred embodiment of the invention carries out alpha passages to GIF pictures, gray scale parses
Flow chart.As shown in figure 4, including steps S402 to step S412.
Step S402, graphics engine decode to GIF pictures.
Step S404, judge whether contain alpha passages in the Application Extension Block of GIF pictures
Mark (such as ALPHA).If the determination result is YES, then step S408 is performed;If judged result is no, step S412 is performed.
Step S406, judge whether marked in the Application Extension Block of GIF pictures containing gray scale
(such as GRAY).If the determination result is YES, then step S410 is performed;If judged result is no, step S412 is performed.
It should be noted that step S404 and step S406 do not have sequencing.
Step S408, alpha overlap-add operations are carried out to the image data frame currently to be shown.
Step S410, gray scale display operation is carried out to the image data frame currently to be shown.
It should be noted that step S408 and step S410 do not have sequencing.
Step S412, show GIF pictures.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
The embodiment of the present invention additionally provides a kind of display device of GIF pictures, and the display device of the GIF pictures can be used for
Realize the display methods of above-mentioned GIF pictures.Fig. 5 is the structured flowchart of the display device of GIF pictures according to embodiments of the present invention,
As shown in figure 5, including the first determining module 52, execution module 54 and display module 56.
First determining module 52, for determining to mark containing alpha path markings or gray scale in GIF pictures, wherein,
Alpha path markings are used to indicate that graphics engine carries out GIF pictures alpha overlap-add operations, and gray scale is marked for indicating figure
Engine carries out gray scale display operation to GIF pictures;Execution module 54, the first determining module 52 is connected to, for entering to GIF pictures
Row alpha overlap-add operations, or gray scale display operation is carried out to GIF pictures;Display module 56, execution module 54 is connected to, is used for
Display execution module 54 carries out the GIF pictures after operation processing.
Preferably, it is necessary to be decoded to picture before graphics engine handles picture.Fig. 6 is according to of the invention preferred
The structured flowchart of the display device of the GIF pictures of embodiment, as shown in figure 5, said apparatus also includes decoder module 58, for pair
GIF pictures are decoded.
Implement it should be noted that the display device of the GIF pictures described in device embodiment corresponds to above-mentioned method
Example, its concrete implementation process had carried out detailed description in embodiment of the method, will not be repeated here.
In summary, according to the abovementioned embodiments of the present invention, there is provided a kind of display methods of GIF pictures, device and be
System.By the present invention, graphics engine determines alpha path markings or gray scale mark in GIF pictures be present, so as to carry out alpha
Overlap-add operation or gray scale display operation.Therefore, the present invention can make GIF pictures support alpha passages, realize the translucent of picture
Display effect or gray scale are shown.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (9)
- A kind of 1. display methods of GIF pictures, it is characterised in that including:Graphics engine determines to mark containing alpha path markings or gray scale in GIF pictures, wherein, the alpha path markings are used In indicating the graphics engine to GIF pictures progress alpha overlap-add operations, the gray scale, which marks, to be used to indicate the figure Engine carries out gray scale display operation to the GIF pictures;The alpha overlap-add operations are carried out to the GIF pictures, or the gray scale display operation is carried out to the GIF pictures;Show the GIF pictures after operation processing;Wherein, before alpha path markings or gray scale mark is contained during graphics engine determines GIF pictures, in addition to:At picture Manage device definition application extension data block Application Extension Block;Described in the image processing device determines GIF pictures need to carry out alpha superpositions or gray scale is shown;The image processing device is by the alpha path markings or gray scale Mark writes the application extension data block.
- 2. according to the method for claim 1, it is characterised in that contain alpha passages in graphics engine determines GIF pictures Before mark or gray scale mark, including:The GIF pictures are decoded.
- 3. according to the method for claim 1, it is characterised in that do not support the application extension data in the graphics engine In the case of block, the GIF pictures are directly displayed.
- 4. according to the method in any one of claims 1 to 3, it is characterised in that do not contained in the GIF pictures described In the case that alpha path markings or gray scale mark, the GIF pictures are directly displayed.
- A kind of 5. display device of GIF pictures, applied to graphics engine, it is characterised in that including:First determining module, for determining to mark containing alpha path markings or gray scale in GIF pictures, wherein, the alpha Path marking is used to indicate that the graphics engine carries out the GIF pictures alpha overlap-add operations, and the gray scale is marked for referring to Show that the graphics engine carries out gray scale display operation to the GIF pictures;Execution module, the ash is carried out for carrying out the alpha overlap-add operations to the GIF pictures, or to the GIF pictures Degree display operation;Display module, for show operation processing after the GIF pictures;Wherein, first determining module is also used before it is determined that being marked in GIF pictures containing alpha path markings or gray scale In definition application extension data block Application Extension Block;Determine that the GIF pictures need to carry out alpha Superposition or gray scale are shown;The alpha path markings or gray scale mark are write into the application extension data block.
- 6. device according to claim 5, it is characterised in that also including decoder module, for being carried out to the GIF pictures Decoding.
- 7. device according to claim 5, it is characterised in that the display module is additionally operable to not prop up in the graphics engine In the case of holding application extension data block, the GIF pictures are directly displayed.
- 8. the device according to any one of claim 5 to 7, it is characterised in that the display module is additionally operable to described In the case of the alpha path markings or gray scale mark are not contained in GIF pictures, the GIF pictures are directly displayed.
- 9. a kind of display system of GIF pictures, including graphics engine and image processing device, it is characterised in thatThe graphics engine includes:First determining module, for determining to mark containing alpha path markings or gray scale in GIF pictures, wherein, the alpha Path marking is used to indicate that the graphics engine carries out the GIF pictures alpha overlap-add operations, and the gray scale is marked for referring to Show that the graphics engine carries out gray scale display operation to the GIF pictures;Execution module, the ash is carried out for carrying out the alpha overlap-add operations to the GIF pictures, or to the GIF pictures Degree display operation;Display module, for show operation processing after the GIF pictures;The image processing device includes:Definition module, for the application extension data block defined in the GIF pictures;Second determining module, for determining that the GIF pictures need to support that carrying out the superposition of alpha passages and/or gray scale shows;Writing module, for the alpha path markings and/or gray scale mark to be write into the application extension data block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110325946.1A CN102364441B (en) | 2011-10-24 | 2011-10-24 | The display methods of GIF pictures, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110325946.1A CN102364441B (en) | 2011-10-24 | 2011-10-24 | The display methods of GIF pictures, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102364441A CN102364441A (en) | 2012-02-29 |
CN102364441B true CN102364441B (en) | 2017-12-05 |
Family
ID=45691007
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110325946.1A Active CN102364441B (en) | 2011-10-24 | 2011-10-24 | The display methods of GIF pictures, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102364441B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113326086B (en) * | 2021-05-18 | 2022-08-23 | 翱捷科技股份有限公司 | GIF picture display method and device based on LVGL |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056385A (en) * | 2007-04-29 | 2007-10-17 | 华为技术有限公司 | Video communication method, video synthesizing processor, terminal and server |
CN101119454A (en) * | 2006-08-02 | 2008-02-06 | 深圳Tcl新技术有限公司 | Television function interface transparent displaying method and device |
CN102036059A (en) * | 2009-09-25 | 2011-04-27 | 腾讯科技(深圳)有限公司 | Method, device and system for compressing and decompressing transparent images |
CN102231836A (en) * | 2011-06-27 | 2011-11-02 | 深圳市茁壮网络股份有限公司 | Graphics interchange format (GIF) file processing method and device for digital television system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060256380A1 (en) * | 2005-05-10 | 2006-11-16 | Klassen Gary D | Transparent digital images and method of processing and storing same |
-
2011
- 2011-10-24 CN CN201110325946.1A patent/CN102364441B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101119454A (en) * | 2006-08-02 | 2008-02-06 | 深圳Tcl新技术有限公司 | Television function interface transparent displaying method and device |
CN101056385A (en) * | 2007-04-29 | 2007-10-17 | 华为技术有限公司 | Video communication method, video synthesizing processor, terminal and server |
CN102036059A (en) * | 2009-09-25 | 2011-04-27 | 腾讯科技(深圳)有限公司 | Method, device and system for compressing and decompressing transparent images |
CN102231836A (en) * | 2011-06-27 | 2011-11-02 | 深圳市茁壮网络股份有限公司 | Graphics interchange format (GIF) file processing method and device for digital television system |
Also Published As
Publication number | Publication date |
---|---|
CN102364441A (en) | 2012-02-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8326051B1 (en) | Method and apparatus for progressive encoding for text transmission | |
US20090010533A1 (en) | Method and apparatus for displaying an encoded image | |
US9875519B2 (en) | Overlap aware reordering of rendering operations for efficiency | |
CN105447546A (en) | Two-dimensional code capable of being embedded with large-ratio graph as well as coding and decoding method and device therefor | |
CN101939984B (en) | Wide color gamut display system | |
JP2010079667A (en) | Image processor, image processing method, and image processing program | |
CN111553131A (en) | PSD file analysis method, device, equipment and readable storage medium | |
CN101621575B (en) | Embedded vector font color changing method | |
CN111222611B (en) | Color-based stacked three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium | |
CN102364441B (en) | The display methods of GIF pictures, apparatus and system | |
US8854385B1 (en) | Merging rendering operations for graphics processing unit (GPU) performance | |
CN105657295A (en) | Method of and apparatus for processing frames in a data processing system | |
US20190158697A1 (en) | Enhancing graph visualization with supplemental data | |
CN114677461A (en) | Method, device and equipment for generating special effect characters and storage medium | |
JP3768959B2 (en) | How to make file format compatible | |
US20050134601A1 (en) | Method and system to combine a digital graphics object and a digital picture | |
CN112445478A (en) | Graphic file processing method, device, equipment and medium | |
CN109766069A (en) | Auxiliary display method, device, electronic equipment and computer readable storage medium | |
AU2001261897A1 (en) | A method for enabling file format compatibility | |
CN113259712B (en) | Video processing method and related device | |
CN114143477B (en) | Image labeling method and device | |
CN104243999B (en) | A kind of method for video coding and platform side server | |
JP5033746B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2000287061A (en) | Image processing unit | |
CN106303531B (en) | Coding method, device and the image processing equipment of copy information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |