Method for efficient variable length decoding
Abstract
Embodiments of the present invention perform efficient decoding of variable length codes statically defined by a coding standard for a wide range of source data. According to the disclosed method, special data structures (decoding tables) are created. A bit set size is associated with each decoding table. Each decoding table contains a decoded value, actual code length, reference to another table (from the set of created tables), and validity indicator for each bit combination that can be formed from the number of bits equal to the bit set size. An active decoding table is selected. Then the number of bits equal to the bit set size associated with the active decoding table is read from a bit stream. The active decoding table is indexed with the actual value of bits read to obtain the decoded value, actual code length, reference to another table, and validity indicator. The validity indicator is then checked to determine whether the decoded value obtained is valid. If the decoded value is indicated to be invalid, the decoding table that is referenced by the currently active table is selected to become active, and the decoding process continues. Otherwise, the bit steam is adjusted i
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 9.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
In a system for decoding variable length codes in a bit stream, a method comprising: creating a set of data structures; selecting an active data structure; retrieving a bit set size associated with the active data structure, the bit set size being the maximal number of bits used to index the active data structure; reading a number of bits equal to the bit set size from the bit stream; and obtaining, from the active data structure, in accordance with an actual value of the bits read from the bit stream, a decoded value, actual code length, reference to another data structure, and validity indic
- Claim 2Depends on #1
The method of claim 1 , wherein selecting the active data structure, retrieving the bit set size, reading the number of bits, and obtaining the decoded value, actual code length, reference to another data structure, and val
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (9 of 9 total)
References Cited — Backward Prior Art (12)
Non-Patent Literature (1)
- International Application No. PCT/RU2003/000339, International Search Report, 5 pages mailed date Apr. 8, 2004.