Variable length decoding using lookup tables
Abstract
One embodiment of the present invention provides a method and an apparatus for decoding a variable length code using lookup tables. This embodiment improves lookup performing by allowing multiple symbols to be retrieved in a single lookup, and allowing lookups into different tables to proceed in parallel. Another embodiment of the present invention provides for multiple secondary lookup tables to be selected based upon a prefix value decoded by a primary lookup table. Thus, one embodiment of the present invention can be characterized as an apparatus for decoding a variable length code. This apparatus includes an input from an encoded bitstream, the input including a first set of bits and a second set of bits. This apparatus also includes a first table indexed by the first set of bits, which includes entries containing decoded symbols corresponding to variable length codewords in the first set of bits. At least one entry contains multiple symbols for the case where the first set of bits contains multiple codewords. Another embodiment includes a second table indexed by the second set of bits. This second table includes entries containing decoded symbols corresponding to variable leng
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 63.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for decoding a variable length code, comprising: receiving a first set of bits from an encoded bitstream; using the first set of bits to index to an entry in a first table, the first table containing decoded symbols corresponding to variable length codewords in the first set of bits; returning multiple decoded symbols from the indexed entry if the first set of bits contains multiple codewords; returning a single decoded symbol from the indexed entry if the first set of bits contains only a single codeword; and returning at most a partial decoded symbol from the indexed entry i
- Claim 2Depends on #1
The method of claim 1, including if the first set of bits contains only a partial codeword: retrieving a second set of bits from the encoded bit stream; and using the second set
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗