class

CrImage::WEBP::HuffmanCode

Inherits Reference / Object

HuffmanCode represents a Huffman code with its symbol, bit pattern, and depth.

Stores a single Huffman code mapping a symbol to its bit representation. WebP uses reversed bit order (LSB first).

Properties:

  • symbol : The value being encoded (0-255 for colors, etc.)
  • bits : The bit pattern (reversed for WebP)
  • depth : Code length in bits (0 = unused, -1 = single symbol alphabet)

Constructors

new(symbol : Int32, bits : Int32, depth : Int32)
Source

Instance methods

bits
Source
bits=(bits : Int32)
Source
depth
Source
depth=(depth : Int32)
Source
symbol
Source
symbol=(symbol : Int32)
Source