Class JPEGLosslessDecoder
java.lang.Object
com.twelvemonkeys.imageio.plugins.jpeg.JPEGLosslessDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[][]private final int[][]private final Frameprivate final int[][][]private final List<HuffmanTable> private static final int[]private final int[]private final ImageInputStreamprivate final JPEGImageReaderprivate intprivate intprivate intprivate static final intprivate static final intprivate final int[]private intprivate int[][]private final int[][]private final QuantizationTableprivate static final intprivate static final intprivate booleanprivate intprivate Scanprivate intprivate intprivate intprivate intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionJPEGLosslessDecoder(List<Segment> segments, ImageInputStream data, JPEGImageReader listenerDelegate) -
Method Summary
Modifier and TypeMethodDescription(package private) int[][]decode()private intdecode(int[] prev, int[] temp, int[] index) private intdecode0(int[] prev, int[] temp, int[] index) private intdecodeAny(int[] prev, int[] temp, int[] index) private intdecodeRGB(int[] prev, int[] temp, int[] index) private intdecodeSingle(int[] prev, int[] temp, int[] index) private <T> Tprivate <T> List<T> private Frame.ComponentgetComponentSpec(Frame.Component[] components, int sel) (package private) intgetDimX()(package private) intgetDimY()private intgetHuffmanValue(int[] table, int[] temp, int[] index) private intgetn(int[] pred, int n, int[] temp, int[] index) (package private) int(package private) intprivate intgetPreviousX(int[] data) private intgetPreviousXY(int[] data) private intgetPreviousY(int[] data) private booleanprivate booleanprivate voidoutput(int[] pred) private voidoutputAny(int[] pred) private voidoutputRGB(int[] pred) private voidoutputSingle(int[] pred) private voidprocessWarningOccured(String warning) private intprivate ScanreadScan()private booleanuseACForDC(int dcTabSel)
-
Field Details
-
input
-
listenerDelegate
-
frame
-
huffTables
-
quantTable
-
scan
-
HuffTab
private final int[][][] HuffTab -
IDCT_Source
private final int[] IDCT_Source -
nBlock
private final int[] nBlock -
acTab
private final int[][] acTab -
dcTab
private final int[][] dcTab -
qTab
private final int[][] qTab -
restarting
private boolean restarting -
marker
private int marker -
markerIndex
private int markerIndex -
numComp
private int numComp -
restartInterval
private int restartInterval -
selection
private int selection -
xDim
private int xDim -
yDim
private int yDim -
xLoc
private int xLoc -
yLoc
private int yLoc -
mask
private int mask -
outputData
private int[][] outputData -
IDCT_P
private static final int[] IDCT_P -
RESTART_MARKER_BEGIN
private static final int RESTART_MARKER_BEGIN- See Also:
-
RESTART_MARKER_END
private static final int RESTART_MARKER_END- See Also:
-
MAX_HUFFMAN_SUBTREE
private static final int MAX_HUFFMAN_SUBTREE- See Also:
-
MSB
private static final int MSB- See Also:
-
-
Constructor Details
-
JPEGLosslessDecoder
JPEGLosslessDecoder(List<Segment> segments, ImageInputStream data, JPEGImageReader listenerDelegate)
-
-
Method Details
-
getDimX
int getDimX() -
getDimY
int getDimY() -
getAll
-
get
-
decode
- Throws:
IOException
-
processWarningOccured
-
useACForDC
private boolean useACForDC(int dcTabSel) -
isLossless
private boolean isLossless() -
getComponentSpec
-
readScan
- Throws:
IOException
-
decode
- Throws:
IOException
-
decodeSingle
- Throws:
IOException
-
decodeRGB
- Throws:
IOException
-
decodeAny
- Throws:
IOException
-
decode0
- Throws:
IOException
-
getHuffmanValue
- Throws:
IOException
-
getn
- Throws:
IOException
-
getPreviousX
private int getPreviousX(int[] data) -
getPreviousXY
private int getPreviousXY(int[] data) -
getPreviousY
private int getPreviousY(int[] data) -
isLastPixel
private boolean isLastPixel() -
output
private void output(int[] pred) -
outputSingle
private void outputSingle(int[] pred) -
outputRGB
private void outputRGB(int[] pred) -
outputAny
private void outputAny(int[] pred) -
readNumber
- Throws:
IOException
-
getNumComponents
int getNumComponents() -
getPrecision
int getPrecision()
-