Struct HuffmanSpec
The Huffman encoding specifications.
Inherited Members
Namespace: SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct HuffmanSpec
Constructors
| Edit this page View SourceHuffmanSpec(byte[], byte[])
Initializes a new instance of the HuffmanSpec struct.
Declaration
public HuffmanSpec(byte[] count, byte[] values)
Parameters
Type | Name | Description |
---|---|---|
byte[] | count | The number of codes. |
byte[] | values | The decoded values. |
Fields
| Edit this page View SourceChrominanceAC
Huffman talbe specification for chrominance DC.
Declaration
public static readonly HuffmanSpec ChrominanceAC
Field Value
Type | Description |
---|---|
HuffmanSpec |
Remarks
This is an example specification taken from the jpeg specification paper.
ChrominanceDC
Huffman talbe specification for chrominance DC.
Declaration
public static readonly HuffmanSpec ChrominanceDC
Field Value
Type | Description |
---|---|
HuffmanSpec |
Remarks
This is an example specification taken from the jpeg specification paper.
LuminanceAC
Huffman talbe specification for luminance AC.
Declaration
public static readonly HuffmanSpec LuminanceAC
Field Value
Type | Description |
---|---|
HuffmanSpec |
Remarks
This is an example specification taken from the jpeg specification paper.
LuminanceDC
Huffman talbe specification for luminance DC.
Declaration
public static readonly HuffmanSpec LuminanceDC
Field Value
Type | Description |
---|---|
HuffmanSpec |
Remarks
This is an example specification taken from the jpeg specification paper.
Properties
| Edit this page View SourceCount
Gets the count[i] - The number of codes of length i bits.
Declaration
public byte[] Count { get; }
Property Value
Type | Description |
---|---|
byte[] |
Values
Gets the value[i] - The decoded value of the codeword at the given index.
Declaration
public byte[] Values { get; }
Property Value
Type | Description |
---|---|
byte[] |