ISO IEC 12042-1993 Information technology data compression for information interchange binary arithmetic coding algorithm《信息技术 信息交换用数据压缩 二进制运算编码算法》.pdf
《ISO IEC 12042-1993 Information technology data compression for information interchange binary arithmetic coding algorithm《信息技术 信息交换用数据压缩 二进制运算编码算法》.pdf》由会员分享,可在线阅读,更多相关《ISO IEC 12042-1993 Information technology data compression for information interchange binary arithmetic coding algorithm《信息技术 信息交换用数据压缩 二进制运算编码算法》.pdf(24页珍藏版)》请在麦多课文档分享上搜索。
1、INTERNATIONAL STANDARD ISOJIEC 12042 First edition 1993-12-15 Information technology - Data compression for information interchange - Binary arithmetic coding algorithm Technologies de Iinformation - Compression de don in Run Mode it is a byte; in Normal Mode it is a bit. 6.6 Logical Data Record: Th
2、e data entity that is the input to the data compressor. 6.7 trailer: data appended to a block after. compression and addition of pad bits. 6.8 Unique Table Pair: The last of the 256 Table Pairs. used only in Run Mode. 7 List of acronyms cv Current Value EV l3timated Value LDR Logical Data Record TIJ
3、 Table Pair 8 Compression algorithm 8.1 General The LDR is transformed to a Code String by a one-pass, adaptive encoding technique designed to provide lossless data compression. By the use of a suitable decoding technique the exact original LDR can be recovered from the Code String. 8.2 Encoders The
4、 LDR shall be divided into 512-byte blocks, except for the last block, which may be of any length less than, or equal to, 512 bytes. The blocks shall be routed sequentially to eight encoders, numbered from 0 to 7, commencing with encoder 0. If the LDR contains more than 4 096 bytes the compressor sh
5、all return to encoder 0 and repeat the process (see figure 2). 8.3 Formation of a Code Block The output of each encoder is a Code Block (see figure 1). I I 1 Pad bits Compressed Block 1 for last 1 data 1 byte Trailer Trailer Byte 1 Byte 2 0 Pad Byte if byte count odd (W Figure 1 - Code Block lso/lEc
6、 12842: 1993 (E) Since the degree of compression achieved in an encoder depends upon the relative frequency of the bit patterns in the LDR, and upon the presence of sequences of identical bytes, the length of the Compressed Block cannot be predicted. Pad bits set to ZERO shall be added at the end to
7、 form an integral number of g-bit bytes. The Code Block shall be completed by appending a trailer. The trailer shall consist of two Trailer Bytes possibly followed by a Pad Byte. Trailer Byte 1 shall be set to (FF). Trailer Byte 2 Bits 1 to4 shall be set to 1100 if the Code Block has been generated
8、from the last block of the LDR. shall be 1001 for all other Code Blocks. Bit 5 shall be set to ZERO if the number of bytes after encoding is even. shall be set to ONE if the number of bytes after encoding is odd. Bits6to8 shall specify the number of pad bits that have been added to form an integral
9、number of bytes. If the number of bytes in the Compressed Block plus the pad bits, is odd, a Pad Byte set to (00) shall be appended after Trailer Byte 2 to give an even number of bytes. 8.4 Code String The Code String shall be assembled from the outputs of the encoders, with the first portion being
10、that generated by encoder 0, the second that generated by encoder 1, and so on (see figure 2). 8.5 Table Pairs Each encoder shall be allocated a table of 256 pairs of numbers, numbered from 1 to 256. The first number of each Table Pair shall be the estimated value (EV) of the Input Event to be encod
11、ed; it shall be 1 or 0. The second number (K) shall be a measure of the probability of the Input Event being equal to the EV. K shall have the value 1, 2, 3 or 4, with the probability shown in table I. Table l- Probability values of K I K I Probability 111 l-2 2 2-4 3 4-8 4 8- 16 The probabilities s
12、hall be a measure of how much more likely it is that the value of the Input Event is equal to the EV rather than being unequal (e.g. for K=2 the probability that the Input Event is equal to the EV shall be 2 to 4 limes as great as the probability that it would not be equal). Before commencing the en
13、coding of the LDR alI EVs shall be set to ZERO and all values of K shall be set to ONE. 8.6 Encoding The data shall first be examined on a byte basis. Bytes shall be fetched sequentially from the block, starting with the first byte, and compared with the previous byte. The fust byte in a block shall
14、 be compared with (40). Run Mode (see 8.6.2) shall be disabled when the first byte is fetched. If the current byte differs from the previous byte and Run Mode is not enabled, then the byte shall be encoded, bit by bit, in Normal Mode (see 8.6.1). If the current byte differs from the previous byte an
15、d Run Mode is enabled, then encoding shall proceed as defined in 8.6.2.2. 3 IsOhEC 12042: 1993 (E) If the two bytes are identical and Run Mode is not enabled, then Run Mode shall be enabled and the byte shall be encoded, bit by bit, in Normal Mode. If the two bytes are identical and Run Mode is enab
16、led, then encoding shall proceed as defined in 8.6.2.1. 8.6.1 Normal Mode The first (most significant) bit of the byte shall be compared with the EV in the fmt Table Pair. Depending upon the result of this comparison, one of two actions, which are described in 8.6.1.1, shall result. The choice of wh
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ISOIEC120421993INFORMATIONTECHNOLOGYDATACOMPRESSIONFORINFORMATIONINTERCHANGEBINARYARITHMETICCODINGALGORITHM

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