Package gov.nih.mipav.model.file
Class FileSVS.JPEGFastDCTInputStream
- java.lang.Object
-
- java.io.InputStream
-
- gov.nih.mipav.model.file.FileSVS.JPEGACInputStream
-
- gov.nih.mipav.model.file.FileSVS.JPEGDCTInputStream
-
- gov.nih.mipav.model.file.FileSVS.JPEGFastDCTInputStream
-
- All Implemented Interfaces:
FileSVS.JPEGConstants
,java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- FileSVS
public class FileSVS.JPEGFastDCTInputStream extends FileSVS.JPEGDCTInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private static int
ALLBITS
private int
C4
private int
C4C6
private int
C4Q
private int
C4R
private int
C6
private static int
CONST_BITS
protected int[]
matr2
private int
Q
private int
R
private static int
TWO
private static int
VAL_BITS
-
Fields inherited from class gov.nih.mipav.model.file.FileSVS.JPEGDCTInputStream
dc, levelshift, matr1, negclamp, posclamp
-
Fields inherited from class gov.nih.mipav.model.file.FileSVS.JPEGACInputStream
buffer, count, in, qt
-
Fields inherited from interface gov.nih.mipav.model.file.FileSVS.JPEGConstants
APP0, APP1, APP10, APP11, APP12, APP13, APP14, APP15, APP2, APP3, APP4, APP5, APP6, APP7, APP8, APP9, COM, CQT, CQT2, DAC, DCTBlockSize, DCTSize, DHP, DHT, DNL, DQT, DRI, EOI, EXP, HCACTable, HCDCTable, HLACTable, HLDCTable, IZigZagTable, JPG, JPG0, JPG1, JPG10, JPG11, JPG12, JPG13, JPG2, JPG3, JPG4, JPG5, JPG6, JPG7, JPG8, JPG9, LQT, LQT2, MARK, RST0, RST1, RST2, RST3, RST4, RST5, RST6, RST7, SOF0, SOF1, SOF10, SOF11, SOF13, SOF14, SOF15, SOF2, SOF3, SOF5, SOF6, SOF7, SOF9, SOI, SOS, TEM, ZigZagTable
-
-
Constructor Summary
Constructors Constructor Description JPEGFastDCTInputStream(FileSVS.JPEGHuffmanInputStream dc, FileSVS.JPEGHuffmanInputStream ac, int[] qt, int bps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
compute(double val)
void
inverseDCT(int[] buffer)
(package private) void
normalize(int[] qt)
-
Methods inherited from class gov.nih.mipav.model.file.FileSVS.JPEGDCTInputStream
fillBuffer, getBuffer, levelShift, read, restart
-
-
-
-
Field Detail
-
CONST_BITS
private static final int CONST_BITS
- See Also:
- Constant Field Values
-
VAL_BITS
private static final int VAL_BITS
- See Also:
- Constant Field Values
-
ALLBITS
private static final int ALLBITS
- See Also:
- Constant Field Values
-
TWO
private static final int TWO
- See Also:
- Constant Field Values
-
C6
private final int C6
-
C4C6
private final int C4C6
-
C4
private final int C4
-
Q
private final int Q
-
C4Q
private final int C4Q
-
R
private final int R
-
C4R
private final int C4R
-
matr2
protected int[] matr2
-
-
Constructor Detail
-
JPEGFastDCTInputStream
public JPEGFastDCTInputStream(FileSVS.JPEGHuffmanInputStream dc, FileSVS.JPEGHuffmanInputStream ac, int[] qt, int bps)
-
-
Method Detail
-
compute
private int compute(double val)
-
inverseDCT
public void inverseDCT(int[] buffer)
- Overrides:
inverseDCT
in classFileSVS.JPEGDCTInputStream
-
normalize
void normalize(int[] qt)
-
-