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

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
HUFFMAN_MAX_TABLES int
JPEG_AC_TABLE byte
JPEG_DC_TABLE byte
bitsList List
val List

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

Метод Описание
Decode ( JPEGBinaryReader JPEGStream ) : int

Figure F.16 - Reads the huffman code bit-by-bit.

Extend ( int diff, int t ) : int

Figure F.12

FlushBuffer ( Stream outStream ) : void
initHuf ( ) : void

Initialisation of the Huffman codes for Luminance and Chrominance. This code results in the same tables created in the IJG Jpeg-6a library.

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

Метод Описание
GenerateCodeTable ( ) : void

See Figure C.2

GenerateDecoderTables ( ) : void

See figure F.15

GenerateSizeTable ( ) : void

See Figure C.1

HuffmanBlockEncoder ( Stream outStream, int zigzag, int prec, int DCcode, int ACcode ) : void

HuffmanBlockEncoder run length encodes and Huffman encodes the quantized data.

HuffmanTable ( JpegHuffmanTable table ) : System
bufferIt ( Stream outStream, int code, int size ) : void

Uses an integer long (32 bits) buffer to store the Huffman encoded bits and sends them to outStream by the byte.

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

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

Figure F.16 - Reads the huffman code bit-by-bit.
public Decode ( JPEGBinaryReader JPEGStream ) : int
JPEGStream FluxJpeg.Core.IO.JPEGBinaryReader
Результат int

Extend() публичный статический Метод

Figure F.12
public static Extend ( int diff, int t ) : int
diff int
t int
Результат int

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

public FlushBuffer ( Stream outStream ) : void
outStream Stream
Результат void

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

Initialisation of the Huffman codes for Luminance and Chrominance. This code results in the same tables created in the IJG Jpeg-6a library.
public initHuf ( ) : void
Результат void

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

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

public static int HUFFMAN_MAX_TABLES
Результат int

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

public static byte JPEG_AC_TABLE
Результат byte

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

public static byte JPEG_DC_TABLE
Результат byte

bitsList публичное свойство

public List bitsList
Результат List

val публичное свойство

public List val
Результат List