⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gif89.txt

📁 giflib-4.1.6.tar.gz,最新的GIF 解码库
💻 TXT
📖 第 1 页 / 共 5 页
字号:
    Cover Sheet for the GIF89a Specification    DEFERRED CLEAR CODE IN LZW COMPRESSION    There has been confusion about where clear codes can be found in the    data stream.  As the specification says, they may appear at anytime.  There    is not a requirement to send a clear code when the string table is full.    It is the encoder's decision as to when the table should be cleared.  When    the table is full, the encoder can chose to use the table as is, making no    changes to it until the encoder chooses to clear it.  The encoder during    this time sends out codes that are of the maximum Code Size.    As we can see from the above, when the decoder's table is full, it must    not change the table until a clear code is received.  The Code Size is that    of the maximum Code Size.  Processing other than this is done normally.    Because of a large base of decoders that do not handle the decompression in    this manner, we ask developers of GIF encoding software to NOT implement    this feature until at least January 1991 and later if they see that their    particular market is not ready for it.  This will give developers of GIF    decoding software time to implement this feature and to get it into the    hands of their clients before the decoders start "breaking" on the new    GIF's.  It is not required that encoders change their software to take    advantage of the deferred clear code, but it is for decoders.    APPLICATION EXTENSION BLOCK - APPLICATION IDENTIFIER    There will be a Courtesy Directory file located on CompuServe in the PICS    forum.  This directory will contain Application Identifiers for Application    Extension Blocks that have been used by developers of GIF applications.    This file is intended to help keep developers that wish to create    Application Extension Blocks from using the same Application Identifiers.    This is not an official directory; it is for voluntary participation only    and does not guarantee that someone will not use the same identifier.    E-Mail can be sent to Larry Wood (forum manager of PICS) indicating the    request for inclusion in this file with an identifier.                        GRAPHICS INTERCHANGE FORMAT(sm)                                  Version 89a                            (c)1987,1988,1989,1990                                   Copyright                            CompuServe Incorporated                                Columbus, OhioCompuServe Incorporated                           Graphics Interchange FormatDocument Date : 31 July 1990                            Programming Reference                               Table of ContentsDisclaimer.................................................................  1Foreword...................................................................  1Licensing..................................................................  1About the Document.........................................................  2General Description........................................................  2Version Numbers............................................................  2The Encoder................................................................  3The Decoder................................................................  3Compliance.................................................................  3About Recommendations......................................................  4About Color Tables.........................................................  4Blocks, Extensions and Scope...............................................  4Block Sizes................................................................  5Using GIF as an embedded protocol..........................................  5Data Sub-blocks............................................................  5Block Terminator...........................................................  6Header.....................................................................  7Logical Screen Descriptor..................................................  8Global Color Table......................................................... 10Image Descriptor........................................................... 11Local Color Table.......................................................... 13Table Based Image Data..................................................... 14Graphic Control Extension.................................................. 15Comment Extension.......................................................... 17Plain Text Extension....................................................... 18Application Extension...................................................... 21Trailer.................................................................... 23Quick Reference Table...................................................... 24GIF Grammar................................................................ 25Glossary................................................................... 27Conventions................................................................ 28Interlaced Images.......................................................... 29Variable-Length-Code LZW Compression....................................... 30On-line Capabilities Dialogue.............................................. 33                                                                         11. Disclaimer.The information provided herein is subject to change without notice. In noevent will CompuServe Incorporated be liable for damages, including any loss ofrevenue, loss of profits or other incidental or consequential damages arisingout of the use or inability to use the information; CompuServe Incorporatedmakes no claim as to the suitability of the information.2. Foreword.This document defines the Graphics Interchange Format(sm). The specificationgiven here defines version 89a, which is an extension of version 87a.The Graphics Interchange Format(sm) as specified here should be consideredcomplete; any deviation from it should be considered invalid, including but notlimited to, the use of reserved or undefined fields within control or datablocks, the inclusion of extraneous data within or between blocks, the use ofmethods or algorithms not specifically listed as part of the format, etc. Ingeneral, any and all deviations, extensions or modifications not specified inthis document should be considered to be in violation of the format and shouldbe avoided.3. Licensing.The Graphics Interchange Format(c) is the copyright property of CompuServeIncorporated. Only CompuServe Incorporated is authorized to define, redefine,enhance, alter, modify or change in any way the definition of the format.CompuServe Incorporated hereby grants a limited, non-exclusive, royalty-freelicense for the use of the Graphics Interchange Format(sm) in computersoftware; computer software utilizing GIF(sm) must acknowledge ownership of theGraphics Interchange Format and its Service Mark by CompuServe Incorporated, inUser and Technical Documentation. Computer software utilizing GIF, which isdistributed or may be distributed without User or Technical Documentation mustdisplay to the screen or printer a message acknowledging ownership of theGraphics Interchange Format and the Service Mark by CompuServe Incorporated; inthis case, the acknowledgement may be displayed in an opening screen or leadingbanner, or a closing screen or trailing banner. A message such as the followingmay be used:      "The Graphics Interchange Format(c) is the Copyright property of      CompuServe Incorporated. GIF(sm) is a Service Mark property of      CompuServe Incorporated."For further information, please contact :      CompuServe Incorporated      Graphics Technology Department      5000 Arlington Center Boulevard      Columbus, Ohio  43220      U. S. A.CompuServe Incorporated maintains a mailing list with all those individuals andorganizations who wish to receive copies of this document when it is corrected                                                                         2or revised. This service is offered free of charge; please provide us with yourmailing address.4. About the Document.This document describes in detail the definition of the Graphics InterchangeFormat.  This document is intended as a programming reference; it isrecommended that the entire document be read carefully before programming,because of the interdependence of the various parts. There is an individualsection for each of the Format blocks. Within each section, the sub-sectionlabeled Required Version refers to the version number that an encoder will haveto use if the corresponding block is used in the Data Stream. Within eachsection, a diagram describes the individual fields in the block; the diagramsare drawn vertically; top bytes in the diagram appear first in the Data Stream.Bits within a byte are drawn most significant on the left end.  Multi-bytenumeric fields are ordered Least Significant Byte first. Numeric constants arerepresented as Hexadecimal numbers, preceded by "0x".  Bit fields within a byteare described in order from most significant bits to least significant bits.5. General Description.The Graphics Interchange Format(sm) defines a protocol intended for the on-linetransmission and interchange of raster graphic data in a way that isindependent of the hardware used in their creation or display.The Graphics Interchange Format is defined in terms of blocks and sub-blockswhich contain relevant parameters and data used in the reproduction of agraphic. A GIF Data Stream is a sequence of protocol blocks and sub-blocksrepresenting a collection of graphics. In general, the graphics in a DataStream are assumed to be related to some degree, and to share some controlinformation; it is recommended that encoders attempt to group together relatedgraphics in order to minimize hardware changes during processing and tominimize control information overhead. For the same reason, unrelated graphicsor graphics which require resetting hardware parameters should be encodedseparately to the extent possible.A Data Stream may originate locally, as when read from a file, or it mayoriginate remotely, as when transmitted over a data communications line. TheFormat is defined with the assumption that an error-free Transport LevelProtocol is used for communications; the Format makes no provisions forerror-detection and error-correction.The GIF Data Stream must be interpreted in context, that is, the applicationprogram must rely on information external to the Data Stream to invoke thedecoder process.6. Version Numbers.The version number in the Header of a Data Stream is intended to identify theminimum set of capabilities required of a decoder in order to fully process the

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -