C# Класс FluxJpeg.Core.JpegHuffmanTable

The JPEGHuffmanTable class represents a Huffman table read from a JPEG image file. The standard JPEG AC and DC chrominance and luminance values are provided as static fields.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
StdACChrominance JpegHuffmanTable
StdACLuminance JpegHuffmanTable
StdDCChrominance JpegHuffmanTable
StdDCLuminance JpegHuffmanTable

Открытые методы

Метод Описание
JpegHuffmanTable ( short lengths, short values ) : System

Construct and initialize a Huffman table. Copies are created of the array arguments. lengths[index] stores the number of Huffman values with Huffman codes of length index + 1. The values array stores the Huffman values in order of increasing code length. throws ArgumentException if either parameter is null, if lengths.Length > 16 or values.Length > 256, if any value in length or values is negative, or if the parameters do not describe a valid Huffman table

Приватные методы

Метод Описание
JpegHuffmanTable ( short lengths, short values, bool copy ) : System

Private constructor that avoids unnecessary copying and argument checking.

checkLengths ( short lengths ) : short[]
checkValues ( short values, short lengths ) : short[]

Описание методов

JpegHuffmanTable() публичный Метод

Construct and initialize a Huffman table. Copies are created of the array arguments. lengths[index] stores the number of Huffman values with Huffman codes of length index + 1. The values array stores the Huffman values in order of increasing code length. throws ArgumentException if either parameter is null, if lengths.Length > 16 or values.Length > 256, if any value in length or values is negative, or if the parameters do not describe a valid Huffman table
public JpegHuffmanTable ( short lengths, short values ) : System
lengths short an array of Huffman code lengths
values short a sorted array of Huffman values
Результат System

Описание свойств

StdACChrominance публичное статическое свойство

public static JpegHuffmanTable,FluxJpeg.Core StdACChrominance
Результат JpegHuffmanTable

StdACLuminance публичное статическое свойство

public static JpegHuffmanTable,FluxJpeg.Core StdACLuminance
Результат JpegHuffmanTable

StdDCChrominance публичное статическое свойство

public static JpegHuffmanTable,FluxJpeg.Core StdDCChrominance
Результат JpegHuffmanTable

StdDCLuminance публичное статическое свойство

public static JpegHuffmanTable,FluxJpeg.Core StdDCLuminance
Результат JpegHuffmanTable