Apparatus and method for decoding Huffman codes using leading one/zero string length detection
Abstract
Decoding Huffman codes is accomplished by identifying consecutive strings of high order ones or zeroes and following consecutive strings of high order ones or zeroes, retrieving a table entry for each string based on its run count and bit value, until the retrieved entry contains the decoding output symbol, or until the remaining bits of the code word number within a predetermined threshold. The remaining bits are used as an offset into a lookup table, but the dimensions of the table have been reduced through elimination of the leading ones and zeroes. The consecutive strings are preferably processed by a hardware accelerator to identify the repeated bit, count the bits in the string and return this information to the host processor. The efficiencies of decoding canonical codes are realized; yet, non-canonical codes can be decoded.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 48.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for decoding a code word in a series of variable length code words comprising the steps of: a) detecting the value of a bit in said code word; b) calculating a current count that starts with said bit and includes, from said series of variable length code words, subsequent, consecutive bits of the same value; c) based on the current count, retrieving an entry from a decoding table; and d) based on the retrieved entry, determining whether steps a) through d) are to be repeated for said code word using bits subsequent to those included in the one or more counts in step b).
- Claim 2Depends on #1
The method of claim 1 , wherein, if it is determined in step d) that steps a) through d) are not to be repeated, step d) further comprises determining whether the entry last retrieved contains an output symbol that c
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗