C# Class NScumm.Core.Common.Huffman

Huffman bitstream decoding.
Mostrar archivo Open project: scemino/nscumm Class Usage Examples

Public Methods

Method Description
GetSymbol ( BitStream bits ) : uint

Return the next symbol in the bitstream.

Huffman ( byte maxLength, uint codeCount, uint codes, byte lengths, uint symbols = null ) : System

Creates a Huffman decoder.

Private Methods

Method Description
SetSymbols ( uint symbols = null ) : void

Modify the codes' symbols.

Method Details

GetSymbol() public method

Return the next symbol in the bitstream.
public GetSymbol ( BitStream bits ) : uint
bits BitStream The bitstream.
return uint

Huffman() public method

Creates a Huffman decoder.
public Huffman ( byte maxLength, uint codeCount, uint codes, byte lengths, uint symbols = null ) : System
maxLength byte Maximal code length. If 0, it's searched for
codeCount uint Number of codes
codes uint The actual codes
lengths byte Lengths of the individual codes
symbols uint The symbols. If null, assume they are identical to the code indices
return System