CrImage::JPEG::HuffmanTable
Inherits Struct / Value / Object
Huffman table for JPEG encoding/decoding
Constants
FAST_BITS = 12
FAST_SIZE = 1 << FAST_BITS
Constructors
new(bits : Array(UInt8), values : Array(UInt8))
SourceInstance methods
bits
Sourcebits=(bits : Array(UInt8))
Sourcecodes
Sourcecodes=(codes : Array(UInt16))
Sourcedecode(reader : BitReader) : UInt8
Decode the next Huffman symbol from the BitReader Returns the decoded symbol value (0-255)
encode_codes
Sourceencode_codes=(encode_codes : StaticArray(UInt16, 256))
Sourceencode_sizes
Sourceencode_sizes=(encode_sizes : StaticArray(UInt8, 256))
Sourcelook_fast
Sourcelook_fast=(look_fast : Slice(UInt16))
Sourcemaxcode
Sourcemaxcode=(maxcode : Array(Int32))
Sourcemincode
Sourcemincode=(mincode : Array(Int32))
Sourcesizes
Sourcesizes=(sizes : Array(UInt8))
Sourcevalptr
Sourcevalptr=(valptr : Array(Int32))
Sourcevalues
Sourcevalues=(values : Array(UInt8))
Source