Package gov.nih.mipav.model.file
Class FileTiff.JPEGInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
gov.nih.mipav.model.file.FileTiff.IntFilterInputStream
gov.nih.mipav.model.file.FileTiff.JPEGInputStream
- All Implemented Interfaces:
FileTiff.JPEGConstants,Closeable,AutoCloseable
- Enclosing class:
FileTiff
public class FileTiff.JPEGInputStream
extends FileTiff.IntFilterInputStream
implements FileTiff.JPEGConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileTiff.JPEGHuffmanInputStream[]protected intprotected FileTiff.JPEGComponentInputStream[]protected FileTiff.JPEGHuffmanInputStream[]protected int(package private) FileTiff.JPEGBitInputStreamprotected intprotected intprotected intprotected intprotected intprotected intprivate int[][]protected intprotected FileTiff.JPEGComponentInputStream[]protected intprotected intFields 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
ConstructorsConstructorDescriptionJPEGInputStream(InputStream input) JPEGInputStream(InputStream input, int[][] qts, FileTiff.JPEGHuffmanInputStream[] dcins, FileTiff.JPEGHuffmanInputStream[] acins) -
Method Summary
Modifier and TypeMethodDescriptionvoidapp0(InputStream in) voidapp1(InputStream in) voidapp10(InputStream in) voidapp11(InputStream in) voidapp12(InputStream in) voidapp13(InputStream in) voidapp14(InputStream in) voidapp15(InputStream in) voidapp2(InputStream in) voidapp3(InputStream in) voidapp4(InputStream in) voidapp5(InputStream in) voidapp6(InputStream in) voidapp7(InputStream in) voidapp8(InputStream in) voidapp9(InputStream in) voidcomment(InputStream in) voidvoidvoiddefineHuffmanTables(InputStream tables) voidvoidvoidprotected voiddump(InputStream in) voidvoidgetACIns()getDCIns()intintint[][]getQTs()intgetWidth()(package private) voidnormalize(int[] qt) intread()intread(byte[] buf, int off, int len) intread(int[] buf, int off, int len) protected intreadIn(InputStream in) voidrestartIntervalTermination(int no) voidstartOfFrame(InputStream in, int mode) voidvoidMethods inherited from class gov.nih.mipav.model.file.FileTiff.IntFilterInputStream
read, setInMethods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
in
-
bps
protected int bps -
height
protected int height -
width
protected int width -
maxHor
protected int maxHor -
maxVert
protected int maxVert -
mcuHeight
protected int mcuHeight -
mcuWidth
protected int mcuWidth -
mcuRows
protected int mcuRows -
mcuCols
protected int mcuCols -
spp
protected int spp -
qts
private int[][] qts -
dcins
-
acins
-
compins
-
scanins
-
Ri
protected int Ri
-
-
Constructor Details
-
JPEGInputStream
- Throws:
IOException
-
JPEGInputStream
public JPEGInputStream(InputStream input, int[][] qts, FileTiff.JPEGHuffmanInputStream[] dcins, FileTiff.JPEGHuffmanInputStream[] acins) throws IOException - Throws:
IOException
-
-
Method Details
-
getQTs
public int[][] getQTs() -
getDCIns
-
getACIns
-
getHeight
public int getHeight() -
getWidth
public int getWidth() -
getNumComponents
public int getNumComponents() -
readIn
- Throws:
IOException
-
startOfFrame
- Throws:
IOException
-
defineHuffmanTables
- Throws:
IOException
-
defineArithmeticConditioning
- Throws:
IOException
-
restartIntervalTermination
- Throws:
IOException
-
startOfImage
public void startOfImage() -
endOfImage
public void endOfImage() -
startOfScan
- Throws:
IOException
-
defineQuantizationTables
- Throws:
IOException
-
normalize
void normalize(int[] qt) -
defineNumberOfLines
- Throws:
IOException
-
defineRestartInterval
- Throws:
IOException
-
defineHierarchicalProgression
- Throws:
IOException
-
expandReferenceComponents
- Throws:
IOException
-
dump
- Throws:
IOException
-
app0
- Throws:
IOException
-
app1
- Throws:
IOException
-
app2
- Throws:
IOException
-
app3
- Throws:
IOException
-
app4
- Throws:
IOException
-
app5
- Throws:
IOException
-
app6
- Throws:
IOException
-
app7
- Throws:
IOException
-
app8
- Throws:
IOException
-
app9
- Throws:
IOException
-
app10
- Throws:
IOException
-
app11
- Throws:
IOException
-
app12
- Throws:
IOException
-
app13
- Throws:
IOException
-
app14
- Throws:
IOException
-
app15
- Throws:
IOException
-
comment
- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Specified by:
readin classFileTiff.IntFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-