Struct HuffmanSpec
The Huffman encoding specifications.
Namespace: SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct HuffmanSpec
Constructors
| Improve this Doc 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
| Improve this Doc 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
| Improve this Doc View SourceCount
Gets the count[i] - The number of codes of length i bits.
Declaration
public readonly 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 readonly byte[] Values { get; }
Property Value
Type | Description |
---|---|
Byte[] |