Package gov.nih.mipav.model.file
Class FileTiff.JPEGDCTInputStream
- java.lang.Object
-
- java.io.InputStream
-
- gov.nih.mipav.model.file.FileTiff.JPEGACInputStream
-
- gov.nih.mipav.model.file.FileTiff.JPEGDCTInputStream
-
- All Implemented Interfaces:
FileTiff.JPEGConstants
,java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
FileTiff.JPEGFastDCTInputStream
- Enclosing class:
- FileTiff
public class FileTiff.JPEGDCTInputStream extends FileTiff.JPEGACInputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected FileTiff.JPEGDCInputStream
dc
protected int
levelshift
protected int[]
matr1
protected int
negclamp
protected int
posclamp
-
Fields inherited from class gov.nih.mipav.model.file.FileTiff.JPEGACInputStream
buffer, count, in, qt
-
Fields inherited from interface gov.nih.mipav.model.file.FileTiff.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 JPEGDCTInputStream(FileTiff.JPEGHuffmanInputStream dc, FileTiff.JPEGHuffmanInputStream ac, int[] qt, int bps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fillBuffer()
int[]
getBuffer()
void
inverseDCT(int[] buffer)
protected void
levelShift()
int
read()
void
restart()
-
-
-
Field Detail
-
dc
protected FileTiff.JPEGDCInputStream dc
-
levelshift
protected int levelshift
-
negclamp
protected int negclamp
-
posclamp
protected int posclamp
-
matr1
protected int[] matr1
-
-
Constructor Detail
-
JPEGDCTInputStream
public JPEGDCTInputStream(FileTiff.JPEGHuffmanInputStream dc, FileTiff.JPEGHuffmanInputStream ac, int[] qt, int bps)
-
-
Method Detail
-
restart
public void restart() throws java.io.IOException
- Overrides:
restart
in classFileTiff.JPEGACInputStream
- Throws:
java.io.IOException
-
getBuffer
public int[] getBuffer()
-
levelShift
protected void levelShift()
-
fillBuffer
public void fillBuffer() throws java.io.IOException
- Overrides:
fillBuffer
in classFileTiff.JPEGACInputStream
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classFileTiff.JPEGACInputStream
- Throws:
java.io.IOException
-
inverseDCT
public void inverseDCT(int[] buffer) throws java.io.IOException
- Throws:
java.io.IOException
-
-