Class JPEGHuffmanTable
java.lang.Object
org.eclipse.swt.internal.image.JPEGSegment
org.eclipse.swt.internal.image.JPEGVariableSizeSegment
org.eclipse.swt.internal.image.JPEGHuffmanTable
JPEGHuffmanTable class actually represents two types of object:
1) A DHT (Define Huffman Tables) segment, which may represent
as many as 4 Huffman tables. In this case, the tables are
stored in the allTables array.
2) A single Huffman table. In this case, the allTables array
will be null.
The 'reference' field is stored in both types of object, but
'initialize' is only called if the object represents a DHT.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static byte[](package private) static byte[](package private) JPEGHuffmanTable[](package private) static byte[](package private) static byte[](package private) int[](package private) int[](package private) int[](package private) int[](package private) byte[](package private) int[](package private) int(package private) intFields inherited from class JPEGSegment
reference -
Constructor Summary
ConstructorsConstructorDescriptionJPEGHuffmanTable(byte[] reference) JPEGHuffmanTable(LEDataInputStream byteStream) -
Method Summary
Modifier and TypeMethodDescriptionstatic JPEGHuffmanTablestatic JPEGHuffmanTablestatic JPEGHuffmanTablestatic JPEGHuffmanTableint[]int[]int[]int[]intint(package private) voidintMethods inherited from class JPEGSegment
getSegmentLength, getSegmentMarker, setSegmentLength, setSegmentMarker, verify, writeToStream
-
Field Details
-
allTables
JPEGHuffmanTable[] allTables -
tableClass
int tableClass -
tableIdentifier
int tableIdentifier -
dhMaxCodes
int[] dhMaxCodes -
dhMinCodes
int[] dhMinCodes -
dhValPtrs
int[] dhValPtrs -
dhValues
int[] dhValues -
ehCodes
int[] ehCodes -
ehCodeLengths
byte[] ehCodeLengths -
DCLuminanceTable
static byte[] DCLuminanceTable -
DCChrominanceTable
static byte[] DCChrominanceTable -
ACLuminanceTable
static byte[] ACLuminanceTable -
ACChrominanceTable
static byte[] ACChrominanceTable
-
-
Constructor Details
-
JPEGHuffmanTable
public JPEGHuffmanTable(byte[] reference) -
JPEGHuffmanTable
-
-
Method Details
-
getAllTables
-
getDefaultACChrominanceTable
-
getDefaultACLuminanceTable
-
getDefaultDCChrominanceTable
-
getDefaultDCLuminanceTable
-
getDhMaxCodes
public int[] getDhMaxCodes() -
getDhMinCodes
public int[] getDhMinCodes() -
getDhValPtrs
public int[] getDhValPtrs() -
getDhValues
public int[] getDhValues() -
getTableClass
public int getTableClass() -
getTableIdentifier
public int getTableIdentifier() -
initialize
void initialize() -
signature
public int signature()- Overrides:
signaturein classJPEGSegment
-