Method of and apparatus for decoding variable-length codes having length-indicating prefixes
    1.
    发明授权
    Method of and apparatus for decoding variable-length codes having length-indicating prefixes 失效
    用于解码具有长度指示前缀的可变长度编码的方法和装置

    公开(公告)号:US3701111A

    公开(公告)日:1972-10-24

    申请号:US3701111D

    申请日:1971-02-08

    Applicant: IBM

    CPC classification number: H03M7/4025 H03M7/425

    Abstract: This code conversion method enables data which has been coded in the form of variable-length bit strings for data compaction purposes to be processed by hardware units of conventional design that handle data in the form of fixed-length bit strings. The coding scheme is such that in the bit string of each variablelength code whose length exceeds a certain fixed number of bits N, the first N bits constitute a ''''length prefix'''' which uniquely designates the code length. This N-bit prefix is decoded by a first decoding table to give a base address in a second decoding table. The remaining bits of the variable-length code, whose number is known from the length prefix, then are decoded to give a displacement value relative to the base address for locating the address at which the decoded fixed-length word is found. Concurrently with the execution of this second decoding step, the first step in the decoding of the next variable-length code is performed. If a variable-length code does not have more than N bits, it is decoded in one step by the first decoding table, which stores the decoded word at every address therein which may be designated by all possible N-bit combinations containing the aforesaid variable-length code as their leading portion. A length indication read out of the first table then shifts the address register contents by an appropriate amount to bring the next succeeding variable-length code into the leading position therein.

    Abstract translation: 该代码转换方法使得以用于数据压缩目的的可变长度比特串形式的数据能够以处理固定长度比特串形式的数据的常规设计的硬件单元来处理。 编码方案是这样的,即在长度超过某个固定数量的比特数N的每个可变长度码的比特串中,前N个比特构成唯一地指定码长的“长度前缀”。 该N比特前缀由第一解码表解码,以在第二解码表中给出基地址。 从长度前缀知道其可编号码的其余位然后被解码,以给出相对于基址的位移值,用于定位找到解码的固定长度字的地址。 与第二解码步骤的执行同时执行下一个可变长度码的解码的第一步骤。 如果可变长度码不超过N位,则通过第一解码表在一个步骤中解码,该第一解码表将解码字存储在其中可以由包含上述变量的所有可能的N位组合指定的每个地址 长度代码作为其主要部分。 从第一表读出的长度指示然后将地址寄存器内容移动适当的量,以使下一个后续的可变长度代码进入其中的前导位置。

Patent Agency Ranking