C# Class FluxJpeg.Core.HuffmanTable

Afficher le fichier Open project: prepare/HTML-Renderer Class Usage Examples

Méthodes publiques

Свойство Type Description
HUFFMAN_MAX_TABLES int
JPEG_AC_TABLE byte
JPEG_DC_TABLE byte
bitsList List
val List

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

Decode() public méthode

Figure F.16 - Reads the huffman code bit-by-bit.
public Decode ( JPEGBinaryReader JPEGStream ) : int
JPEGStream FluxJpeg.Core.IO.JPEGBinaryReader
Résultat int

Extend() public static méthode

Figure F.12
public static Extend ( int diff, int t ) : int
diff int
t int
Résultat int

FlushBuffer() public méthode

public FlushBuffer ( Stream outStream ) : void
outStream Stream
Résultat void

initHuf() public méthode

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
Résultat void

Property Details

HUFFMAN_MAX_TABLES public_oe static_oe property

public static int HUFFMAN_MAX_TABLES
Résultat int

JPEG_AC_TABLE public_oe static_oe property

public static byte JPEG_AC_TABLE
Résultat byte

JPEG_DC_TABLE public_oe static_oe property

public static byte JPEG_DC_TABLE
Résultat byte

bitsList public_oe property

public List bitsList
Résultat List

val public_oe property

public List val
Résultat List