ECMA 222-1995 Adaptive Lossless Data Compression Algorithm《自适应的无损数据压缩算法》.pdf
《ECMA 222-1995 Adaptive Lossless Data Compression Algorithm《自适应的无损数据压缩算法》.pdf》由会员分享,可在线阅读,更多相关《ECMA 222-1995 Adaptive Lossless Data Compression Algorithm《自适应的无损数据压缩算法》.pdf(24页珍藏版)》请在麦多课文档分享上搜索。
1、Standard ECMA-222June 1995Standardizing Information and Communication SystemsPhone: +41 22 849.60.00 - Fax: +41 22 849.60.01 - URL: http:/www.ecma.ch - Internet: helpdeskecma.chAdaptive Lossless DataCompression Algorithm.Standard ECMA-222June 1995Standardizing Information and Communication SystemsPh
2、one: +41 22 849.60.00 - Fax: +41 22 849.60.01 - URL: http:/www.ecma.ch - Internet: helpdeskecma.chMB- Ecma-222.doc - 01.09.98 16:05Adaptive Lossless DataCompression Algorithm(ALDC).Brief HistoryIn the past decades ECMA have published numerous ECMA Standards for magnetic tapes, magnetic tape cassette
3、s andcartridges, as well as for optical disk cartridges. Those media developed recently have a very high physical recording density.In order to make optimal use of the resulting data capacity, lossless compression algorithms have been designed which allow areduction of the number of bits required fo
4、r the representation of user data.These compression algorithms are registered by ECMA, the International Registration Authority established by ISO/IEC. Theregistration consists in allocating to each registered algorithm a numerical identifier which will be recorded on the medium and,thus, indicate w
5、hich compression algorithm(s) has been used.This ECMA Standard is the third ECMA Standard for compression algorithms. The two previous standards are:ECMA-151 Data Compression for Information Interchange - Adaptive Coding with Embedded Dictionary - DCLZAlgorithm (June 1991)ECMA-159 Data Compression f
6、or Information Interchange - Binary Arithmetic Coding Algorithm - (December 1991)These ECMA Standards have been adopted under the fast-track procedure by ISO/IEC JTC 1 as International Standards 11558and ISO/IEC 12042, respectively.The present ECMA Standard has also been contributed to ISO/IEC for a
7、doption under the fast-track procedure as anInternational Standard.This ECMA Standard has been adopted by the ECMA General Assembly of June 1995.- i -Table of contents1 Scope 12 Conformance 13 Reference 14 Definitions 14.1 Compressed Data Stream 14.2 Copy Pointer 14.3 Current Address 14.4 Data Byte
8、14.5 Displacement Field 14.6 End Marker 14.7 History Buffer 14.8 Literal 14.9 Matching String 14.10 Match Count 14.11 Match Count Field 24.12 Pad Bits 25 Conventions and Notations 25.1 Representation of numbers 25.2 Names 26 ALDC compression algorithm 26.1 Encoding description for a 512-byte History
9、 Buffer 26.2 Description of the Compressed Data Stream 3Annex A - ALDC encoding format 5Annex B - ALDC Overview 7Annex C - ALDC Encoding Flow Chart 9Annex D - Bibliography 13- ii -.1 ScopeThis ECMA standard specifies a lossless compression algorithm to reduce the number of bytes required to represen
10、tdata. The algorithm is known as Adaptive Lossless Data Compression algorithm (ALDC). The numerical identifiersaccording to ISO/IEC 11576 allocated to this algorithm are:ALDC 512-Byte History Buffer: 3ALDC 1024-Byte History Buffer: 4ALDC 2048-Byte History Buffer: 52 ConformanceA compression algorith
11、m shall be in conformance with this ECMA Standard if its output data stream satisfies therequirements of this ECMA Standard.3 ReferenceISO/IEC 11576:1993, Information Technology - Procedure for the Registration of Algorithms for the LosslessCompression of Data4 DefinitionsFor the purposes of this EC
12、MA Standard, the following definitions apply.4.1 Compressed Data StreamThe output stream after encoding.4.2 Copy PointerA part of the Compressed Data Stream which represents a group of two or more consecutive bytes for which therealready exists an identical group in the History Buffer. It comprises
13、a Length Code Field and a Displacement Field.4.3 Current AddressThe location within the History Buffer where the Data Byte is written.4.4 Data ByteThe current byte of incoming data which is written into the History Buffer and is compared to all data bytespreviously written into the History Buffer.4.
14、5 Displacement FieldThat part of the Copy Pointer which specifies the location within the History Buffer of the first byte of a MatchingString.4.6 End MarkerA string of 12 ONEs indicating the end of the Compressed Data Stream.4.7 History BufferA data structure where incoming data bytes are stored fo
15、r use in the compression and decompression process.4.8 LiteralA Data Byte for which no match was found in the History Buffer.4.9 Matching StringA sequence of bytes in the incoming data which is identical with a sequence of bytes in the History Buffer.4.10 Match CountThe number of bytes in a Matching
16、 String.- 2 -4.11 Match Count FieldThat part of the Copy Pointer which specifies the number of consecutive bytes for which a match was found in theHistory Buffer.4.12 Pad BitsBits set to ZERO and included in the Compressed Data Stream, as required, to maintain an 8-bit byte boundary.5 Conventions an
17、d Notations5.1 Representation of numbersThe following conventions and notations apply in this Standard, unless otherwise stated.G01 The setting of binary bits is denoted by ZERO and ONE.G01 Numbers in binary notation and bit combinations are represented by ZEROs and ONEs with the most significantbit
18、 to the left.G01 All other numbers shall be in decimal form.5.2 NamesThe names of entities are given with a capital initial letter.6 ALDC compression algorithmAn overview of the ALDC encoding process is given in annex B, and a flow chart is contained in annex C.6.1 Encoding description for a 512-byt
19、e History BufferAt the start of encoding, all bytes of the History Buffer shall be reset to all ZEROs. Data bytes shall be stored insequence in the History Buffer, starting with a Current Address of 0.The encoder processes the incoming data stream one byte at a time. The current byte being processed
20、 is referred toas the Data Byte. When a Data Byte is received from the input data stream, it shall be written into the History Bufferat the Current Address. Then the Current Address shall be incremented by 1. If it exceeds the maximum address,which is 511 for a History Buffer size of 512 bytes, it s
21、hall be reset to 0.Step 1The Data Byte shall be compared with each byte previously written into the History Buffer to identify any identicalbytes.Step 2If the Data Byte does not match any byte in the History Buffer, the process shall continue at step 6.G01 If the Data Byte matches one or more bytes
22、in the History Buffer, for every matching byte it shall be notedwhether this matching byte is a continuation of a previous sequence of matching bytes or not.G01 If it is not a continuation, the Displacement Field of the matching byte shall be noted and recorded as having aMatch Count of one byte.G01
23、 If the matching byte is a continuation of a previous string, the Match Count for that string shall be incrementedby 1.Step 3If a Match Count equals 271, the corresponding bytes shall be identified by a Copy Pointer, which shall be added tothe Compressed Data Stream. Its Match Count Field and Displa
24、cement Field shall be specified as defined in 6.2.The next Data Byte shall then be read and the process shall continue at Step 1.If there is no more data to be read, the process shall continue at Step 7.Note: The value of 271 was chosen for implementation reasons.- 3 -Step 4If the Match Count has no
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ECMA2221995ADAPTIVELOSSLESSDATACOMPRESSIONALGORITHM 自适应 无损 数据压缩 算法 PDF

链接地址:http://www.mydoc123.com/p-704687.html