CN102364441A - Method, device and system for displaying GIF (Graphic Interchange Format) picture - Google Patents

Method, device and system for displaying GIF (Graphic Interchange Format) picture Download PDF

Info

Publication number
CN102364441A
CN102364441A CN2011103259461A CN201110325946A CN102364441A CN 102364441 A CN102364441 A CN 102364441A CN 2011103259461 A CN2011103259461 A CN 2011103259461A CN 201110325946 A CN201110325946 A CN 201110325946A CN 102364441 A CN102364441 A CN 102364441A
Authority
CN
China
Prior art keywords
gif picture
picture
gray scale
alpha
gif
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.)
Granted
Application number
CN2011103259461A
Other languages
Chinese (zh)
Other versions
CN102364441B (en
Inventor
陆刚
尹成水
孙锶辉
路芳芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201110325946.1A priority Critical patent/CN102364441B/en
Publication of CN102364441A publication Critical patent/CN102364441A/en
Application granted granted Critical
Publication of CN102364441B publication Critical patent/CN102364441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method, device and system for displaying a GIF (Graphic Interchange Format) picture. The method comprises the following steps of: confirming whether a GIF picture contains an alpha channel mark or grayscale mark or not by a graphic engine, wherein the alpha channel mark is used for indicating the graphic engine to carry out alpha laminating operation on the GIF picture, and the grayscale mark is used for indicating the graphic engine to carry out grayscale display operation on the GIF picture; carrying out alpha laminating operation on the GIF picture or carrying out grayscale display operation on the GIF picture; and displaying the operated and processed GIF picture. The method, device and system for displaying a GIF picture can ensure that the GIF picture supports the alpha channel and realize the semitransparent display or grayscale display of the GIF picture.

Description

The display packing of GIF picture, Apparatus and system
Technical field
The present invention relates to the communications field, in particular to a kind of display packing, Apparatus and system of GIF picture.
Background technology
GIF(Graphic Interchange format) (Graphics Interchange Format abbreviates GIF as) is a kind of bga, reappears the image of RGB with 8 looks (i.e. 256 kinds of colors).It is actually a kind of condensed document, adopts LZW compression algorithm (Lempel-Ziv-Welch Encoding) to encode, and has reduced the time of image file in transmission over networks effectively.GIF is one of picture format that is widely used at present Network Transmission, in the IPTV field number of applications is arranged also.
But the GIF form exists a fatal problem can't support the alpha passage exactly, if want to realize transparent effect, can only use Transparent color, can't realize translucent display effect.
Summary of the invention
In correlation technique, the GIF picture can't be supported the alpha passage, can not realize the problem of translucent display effect and proposes the present invention, for this reason, the invention provides a kind of display packing, Apparatus and system of GIF picture, to address the above problem at least.
According to an aspect of the present invention; A kind of display packing of GIF picture is provided; Comprise: graphics engine confirms to contain in the GIF picture alpha path marking or gray scale mark; Wherein, the alpha path marking is used for the indicating graphic engine GIF picture is carried out the alpha overlap-add operation, and the gray scale mark is used in reference to diagrammatic sketch shape engine the GIF picture is carried out the gray scale display operation; The GIF picture is carried out the alpha overlap-add operation, or the GIF picture is carried out the gray scale display operation; GIF picture after display operation is handled.
Preferably, before graphics engine confirms to contain alpha path marking or gray scale mark in the GIF picture, comprising: the GIF picture is decoded.
Preferably, before graphics engine confirms to contain alpha path marking or gray scale mark in the GIF picture, also comprise: picture treatment facility definition application extension data block Application Extension Block; Confirm that the GIF picture need carry out the alpha stack or gray scale shows; Alpha path marking or gray scale mark are write the application extension data block.
Preferably, do not support at graphics engine directly to show the GIF picture under the situation of application extension data block.
Preferably, in the GIF picture, do not contain under the situation of alpha path marking or gray scale mark, directly show the GIF picture.
According to a further aspect in the invention; A kind of display device of GIF picture is provided, has been applied to graphics engine, having comprised: first determination module; Be used for confirming that the GIF picture contains alpha path marking or gray scale mark; Wherein, the alpha path marking is used for the indicating graphic engine GIF picture is carried out the alpha overlap-add operation, and the gray scale mark is used in reference to diagrammatic sketch shape engine the GIF picture is carried out the gray scale display operation; Execution module is used for the GIF picture is carried out the alpha overlap-add operation, or the GIF picture is carried out the gray scale display operation; Display module is used for the GIF picture after display operation is handled.
Preferably, said apparatus also comprises decoder module, is used for the GIF picture is decoded.
Preferably, above-mentioned display module also is used for not supporting directly to show the GIF picture under the situation of application extension data block at graphics engine.
Preferably, above-mentioned display module also is used for not containing under the situation of alpha path marking or gray scale mark at the GIF picture, directly shows the GIF picture.
According to a further aspect of the invention, a kind of display system of GIF picture is provided, has comprised graphics engine and picture treatment facility; Wherein, Graphics engine comprises: first determination module is used for confirming that the GIF picture contains alpha path marking or gray scale mark, wherein; The alpha path marking is used for the indicating graphic engine GIF picture is carried out the alpha overlap-add operation, and the gray scale mark is used in reference to diagrammatic sketch shape engine the GIF picture is carried out the gray scale display operation; Execution module is used for the GIF picture is carried out the alpha overlap-add operation, or the GIF picture is carried out the gray scale display operation; Display module is used for the GIF picture after display operation is handled.The picture treatment facility comprises: definition module is used for the data block at GIF picture definition application extension data block Application Extension Block; Second determination module is used for confirming that the GIF picture need support to carry out the stack of alpha passage and/or gray scale shows; Writing module is used for alpha path marking and/or gray scale mark are write the application extension data block;
Through the present invention, graphics engine is confirmed to have alpha path marking or gray scale mark in the GIF picture, thereby carries out alpha overlap-add operation or gray scale display operation.Therefore, the present invention can make the GIF picture support the alpha passage, realizes that the translucent demonstration of GIF picture or gray scale show.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the structured flowchart according to the display system of the GIF picture of the embodiment of the invention;
Fig. 2 is the process flow diagram according to the display packing of the GIF picture of the embodiment of the invention;
Fig. 3 is that the picture treatment facility carries out the process flow diagram that alpha passage, gray scale are handled to the GIF picture according to the preferred embodiment of the invention;
Fig. 4 is that graphics engine carries out the process flow diagram that alpha passage, gray scale are resolved to the GIF picture according to the preferred embodiment of the invention;
Fig. 5 is the structured flowchart according to the display device of the GIF picture of the embodiment of the invention;
Fig. 6 is the structured flowchart of the display device of GIF picture according to the preferred embodiment of the invention.
Embodiment
Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.Below with reference to accompanying drawing and combine embodiment to specify the present invention.
The embodiment of the invention provides a kind of display system of GIF picture, and Fig. 1 is the structured flowchart according to the display system of the GIF picture of the embodiment of the invention, and is as shown in Figure 1, comprises graphics engine 12 and picture treatment facility 14.Be described in detail in the face of its structure down.
Graphics engine 12 comprises first determination module 122, execution module 124 and display module 126.Wherein, First determination module 122 is used for confirming that the GIF picture contains alpha path marking or gray scale mark, wherein; The alpha path marking is used for the indicating graphic engine GIF picture is carried out the alpha overlap-add operation, and the gray scale mark is used in reference to diagrammatic sketch shape engine the GIF picture is carried out the gray scale display operation; Execution module 124 is connected to first determination module 122, is used for the GIF picture is carried out the alpha overlap-add operation, or the GIF picture is carried out the gray scale display operation; Display module 126 is connected to execution module 124, is used to show the GIF picture after execution module 124 operational processes.
Picture treatment facility 14 comprises definition module 142, second determination module 144 and writing module 146.Wherein, definition module 142 is used for the data block at GIF picture definition application extension data block Application Extension Block; Second determination module 144 is used for confirming that the GIF picture need support to carry out the stack of alpha passage and/or gray scale shows; Writing module 146 is connected to second determination module 144, is used for alpha path marking and/or gray scale mark are write the application extension data block.
The present invention also provides a kind of display packing of GIF picture, and the display packing of this GIF picture realizes based on the display system of above-mentioned GIF picture.Fig. 2 is the process flow diagram according to the display packing of the GIF picture of the embodiment of the invention, and is as shown in Figure 2, comprises that following step S202 is to step S206.
Step S202; Graphics engine confirms to contain in the GIF picture alpha path marking or gray scale mark; Wherein, the alpha path marking is used for the indicating graphic engine GIF picture is carried out the alpha overlap-add operation, and the gray scale mark is used in reference to diagrammatic sketch shape engine the GIF picture is carried out the gray scale display operation.
Step S204 carries out the alpha overlap-add operation to the GIF picture, or the GIF picture is carried out the gray scale display operation.
Step S206, the GIF picture after display operation is handled.
In the correlation technique, the GIF picture can't be supported the alpha passage, can not realize translucent display effect.In the embodiment of the invention, graphics engine is confirmed to have alpha path marking or gray scale mark in the GIF picture, thereby carries out alpha overlap-add operation or gray scale display operation.Therefore, the present invention can make the GIF picture support the alpha passage, realizes that the translucent demonstration of picture or gray scale show.
Preferably, before step S202, also need being decoded by the GIF picture of picture treatment facility coding.
Before graphics engine was handled the GIF picture, the present invention had defined a data block that is used for describing application extension information specially in the GIF picture format, can some self-defining information be write this data block.Among the present invention the user being hoped that alpha passage that graphics engine is handled or half-tone information write gets final product.Step is following: definition application extension data block Application Extension Block; Confirm that the GIF picture need carry out the alpha stack or gray scale shows; Alpha path marking or gray scale mark are write the application extension data block.
In addition, in the GIF picture, do not contain under the situation of alpha path marking or gray scale mark, then directly show the GIF picture.
Need to prove,, do not support at graphics engine directly to show the GIF picture under the situation of application extension data block about the compatibility of this expansion.Such GIF picture that directly shows just can not be realized the translucent effect of user expectation not having other influences.
The present invention specifies corresponding alpha value through in the GIF picture, increasing self-defining data block to each frame data in the GIF picture.When graphics engine is decoded to the GIF picture, parse alpha passage numerical value and carry out corresponding alpha overlap-add procedure.Simultaneously, also can the algorithm tag that needs carry out special processing be write the self-defining data piece, resolve the back at graphics engine these frame data are carried out the corresponding characteristics operation, show like gray scale.
To combine instance and accompanying drawing that the implementation procedure of the embodiment of the invention is described in detail below.
Fig. 3 is that the picture treatment facility carries out the process flow diagram that alpha passage, gray scale are handled to the GIF picture according to the preferred embodiment of the invention.As shown in Figure 3, comprise that following step S302 is to step S312.
Step S302, picture treatment facility judge whether the GIF picture need support the alpha passage.If judged result is for being, execution in step S306 then; If judged result is not, then execution in step S312.
Step S304, picture treatment facility judge whether the GIF picture need support gray scale to show.If judged result is for being, execution in step S306 then; If judged result is not, then execution in step S312.
It should be noted that step S302 and step S304 do not have sequencing.
Step S306 finds the Application Extension Block in the GIF picture.
Step S308 adds alpha path marking (like ZTEALPHA) in Application Extension Block, this alpha path marking is used for mark alpha channel value.
Step S310 adds gray scale mark (like ZTEGRAY) in Application Extension Block, this gray scale mark is used for the mark half-tone information.
It should be noted that step S308 and step S310 do not have sequencing.
Step S312 encodes to the GIF picture.
Fig. 4 is that graphics engine carries out the process flow diagram that alpha passage, gray scale are resolved to the GIF picture according to the preferred embodiment of the invention.As shown in Figure 4, comprise that following step S402 is to step S412.
Step S402, graphics engine is decoded to the GIF picture.
Step S404 judges among the Application Extension Block of GIF picture whether contain alpha path marking (like ALPHA).If judged result is for being, execution in step S408 then; If judged result is not, then execution in step S412.
Step S406 judges among the Application Extension Block of GIF picture whether contain gray scale mark (like GRAY).If judged result is for being, execution in step S410 then; If judged result is not, then execution in step S412.
It should be noted that step S404 and step S406 do not have sequencing.
Step S408 carries out the alpha overlap-add operation to the current images displayed Frame of wanting.
Step S410 carries out the gray scale display operation to the current images displayed Frame of wanting.
It should be noted that step S408 and step S410 do not have sequencing.
Step S412 shows the GIF picture.
Need to prove; Can in computer system, carry out in the step shown in the process flow diagram of accompanying drawing such as a set of computer-executable instructions; And; Though logical order has been shown in process flow diagram, in some cases, can have carried out step shown or that describe with the order that is different from here.
The embodiment of the invention also provides a kind of display device of GIF picture, and the display device of this GIF picture can be used to realize the display packing of above-mentioned GIF picture.Fig. 5 is the structured flowchart according to the display device of the GIF picture of the embodiment of the invention, and is as shown in Figure 5, comprises first determination module 52, execution module 54 and display module 56.
First determination module 52; Be used for confirming that the GIF picture contains alpha path marking or gray scale mark; Wherein, the alpha path marking is used for the indicating graphic engine GIF picture is carried out the alpha overlap-add operation, and the gray scale mark is used in reference to diagrammatic sketch shape engine the GIF picture is carried out the gray scale display operation; Execution module 54 is connected to first determination module 52, is used for the GIF picture is carried out the alpha overlap-add operation, or the GIF picture is carried out the gray scale display operation; Display module 56 is connected to execution module 54, is used to show the GIF picture after execution module 54 carries out operational processes.
Preferably, before graphics engine is handled picture, need decode to picture.Fig. 6 is the structured flowchart of the display device of GIF picture according to the preferred embodiment of the invention, and as shown in Figure 5, said apparatus also comprises decoder module 58, is used for the GIF picture is decoded.
Need to prove that the display device of the GIF picture of describing among the device embodiment is corresponding to above-mentioned method embodiment, its concrete implementation procedure had been carried out detailed description in method embodiment, repeat no more at this.
In sum, according to the abovementioned embodiments of the present invention, a kind of display packing, Apparatus and system of GIF picture is provided.Through the present invention, graphics engine is confirmed to have alpha path marking or gray scale mark in the GIF picture, thereby carries out alpha overlap-add operation or gray scale display operation.Therefore, the present invention can make the GIF picture support the alpha passage, realizes that the translucent display effect of picture or gray scale show.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the memory storage and carry out, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize by calculation element.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the display packing of a GIF picture is characterized in that comprising:
Graphics engine confirms to contain in the GIF picture alpha path marking or gray scale mark; Wherein, Said alpha path marking is used to indicate said graphics engine that said GIF picture is carried out the alpha overlap-add operation, and said gray scale mark is used in reference to and shows that said graphics engine carries out the gray scale display operation to said GIF picture;
Said GIF picture is carried out said alpha overlap-add operation, or said GIF picture is carried out said gray scale display operation;
Said GIF picture after display operation is handled.
2. method according to claim 1 is characterized in that, before graphics engine confirms to contain alpha path marking or gray scale mark in the GIF picture, comprising: said GIF picture is decoded.
3. method according to claim 1 is characterized in that, before graphics engine confirms to contain alpha path marking or gray scale mark in the GIF picture, also comprises:
Picture treatment facility definition application extension data block Application Extension Block;
Said picture treatment facility confirms that said GIF picture need carry out the alpha stack or gray scale shows;
Said picture treatment facility writes said application extension data block with said alpha path marking or gray scale mark.
4. method according to claim 3 is characterized in that, does not support at said graphics engine under the situation of said application extension data block, directly shows said GIF picture.
5. according to each described method in the claim 1 to 4, it is characterized in that, in said GIF picture, do not contain under the situation of said alpha path marking or gray scale mark, directly show said GIF picture.
6. the display device of a GIF picture is applied to graphics engine, it is characterized in that comprising:
First determination module; Be used for confirming that the GIF picture contains alpha path marking or gray scale mark; Wherein, Said alpha path marking is used to indicate said graphics engine that said GIF picture is carried out the alpha overlap-add operation, and said gray scale mark is used in reference to and shows that said graphics engine carries out the gray scale display operation to said GIF picture;
Execution module is used for said GIF picture is carried out said alpha overlap-add operation, or said GIF picture is carried out said gray scale display operation;
Display module is used for the said GIF picture after display operation is handled.
7. device according to claim 6 is characterized in that, also comprises decoder module, is used for said GIF picture is decoded.
8. device according to claim 6 is characterized in that, said display module also is used for not supporting under the situation of application extension data block at said graphics engine, directly shows said GIF picture.
9. according to each described device in the claim 6 to 8, it is characterized in that said display module also is used for not containing under the situation of said alpha path marking or gray scale mark at said GIF picture, directly shows said GIF picture.
10. the display system of a GIF picture comprises graphics engine and picture treatment facility, it is characterized in that,
Said graphics engine comprises:
First determination module; Be used for confirming that the GIF picture contains alpha path marking or gray scale mark; Wherein, Said alpha path marking is used to indicate said graphics engine that said GIF picture is carried out the alpha overlap-add operation, and said gray scale mark is used in reference to and shows that said graphics engine carries out the gray scale display operation to said GIF picture;
Execution module is used for said GIF picture is carried out said alpha overlap-add operation, or said GIF picture is carried out said gray scale display operation;
Display module is used for the said GIF picture after display operation is handled;
Said picture treatment facility comprises:
Definition module is used for the data block at the said Application Extension of said GIF picture definition application extension data block Block;
Second determination module is used for confirming that said GIF picture need support to carry out the stack of alpha passage and/or gray scale shows;
Writing module is used for said alpha path marking and/or gray scale mark are write said application extension data block.
CN201110325946.1A 2011-10-24 2011-10-24 The display methods of GIF pictures, apparatus and system Active CN102364441B (en)

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 true CN102364441A (en) 2012-02-29
CN102364441B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326086A (en) * 2021-05-18 2021-08-31 翱捷科技股份有限公司 GIF picture display method and device based on LVGL

Citations (5)

* Cited by examiner, † Cited by third party
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
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113326086A (en) * 2021-05-18 2021-08-31 翱捷科技股份有限公司 GIF picture display method and device based on LVGL

Also Published As

Publication number Publication date
CN102364441B (en) 2017-12-05

Similar Documents

Publication Publication Date Title
CN111784812B (en) Rendering method and device, storage medium and electronic equipment
US9743084B2 (en) Image encoding and decoding method and apparatus
CN105447546A (en) Two-dimensional code capable of being embedded with large-ratio graph as well as coding and decoding method and device therefor
CN105308672A (en) Electronic device and method for video decoding
CN105894071B (en) Quick Response Code mixes generation method
US11395010B2 (en) Massive picture processing method converting decimal element in matrices into binary element
CN102298763A (en) Method and system for generating picture identifying code
US20170359589A1 (en) Video data processing system
CN106104668A (en) Display device, the driver of display device, include display device and the electronic equipment of driver and display system
CN104424498B (en) A kind of method and device of high speed transformation two dimensional code coding
CN115190360B (en) Video receiver and method for generating display data
CN112185291A (en) Display device and operation method thereof
CN102811347A (en) Image processing device, image processing method, and program
CN105657295A (en) Method of and apparatus for processing frames in a data processing system
CN102364441A (en) Method, device and system for displaying GIF (Graphic Interchange Format) picture
CN102682465A (en) 3D format conversion systems and methods
KR101470505B1 (en) Apparatus for compressing spatial data and method thereof, and apparatus for decompressing spatial data and method thereof
CN102572207A (en) Color space transformation method suitable for joint photographic experts group (JPEG) image
CN104408503A (en) Processing method and system for two-dimensional code
US20070183510A1 (en) Method and apparatus for decoding video that alternately store lines of picture in pixel units and method of storing reference picture
US20220414828A1 (en) Electronic apparatus, control method thereof and electronic system
CN102185612A (en) Run-length coding and decoding methods and devices
CN115576513A (en) Target image display method, display device, electronic device, and storage medium
CN109996077B (en) Logical image decompression method suitable for display panel detection
CN106874979B (en) Bar code processing, displaying and reading method and device

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