C# Class FluxJpeg.Core.HuffmanTable

Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
HUFFMAN_MAX_TABLES int
JPEG_AC_TABLE byte
JPEG_DC_TABLE byte
bitsList List
val List

Public Methods

Method 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

Method 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 method

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

Extend() public static method

Figure F.12
public static Extend ( int diff, int t ) : int
diff int
t int
return int

FlushBuffer() public method

public FlushBuffer ( Stream outStream ) : void
outStream Stream
return void

initHuf() public method

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
return void

Property Details

HUFFMAN_MAX_TABLES public static property

public static int HUFFMAN_MAX_TABLES
return int

JPEG_AC_TABLE public static property

public static byte JPEG_AC_TABLE
return byte

JPEG_DC_TABLE public static property

public static byte JPEG_DC_TABLE
return byte

bitsList public property

public List bitsList
return List

val public property

public List val
return List