Property | Type | Description | |
---|---|---|---|
HUFFMAN_MAX_TABLES | int | ||
JPEG_AC_TABLE | byte | ||
JPEG_DC_TABLE | byte | ||
bitsList | List |
||
val | List |
Method | Description | |
---|---|---|
Decode ( |
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.
|
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 ( |
||
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.
|
public Decode ( |
||
JPEGStream | ||
return | int |
public static Extend ( int diff, int t ) : int | ||
diff | int | |
t | int | |
return | int |
public FlushBuffer ( Stream outStream ) : void | ||
outStream | Stream | |
return | void |