Package gov.nih.mipav.model.file
Class FileTiff.JPEGComponentInputStream
java.lang.Object
java.io.InputStream
gov.nih.mipav.model.file.FileTiff.JPEGComponentInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
FileTiff
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyDataUnit(byte[] buf, int off, int maxy, int maxx, int[] buffer) protected voidcopyDataUnit(int[] buf, int off, int maxy, int maxx, int[] buffer) protected voidcopyPixel(byte[] buf, int off, int maxy, int maxx, int b) protected voidcopyPixel(int[] buf, int off, int maxy, int maxx, int b) intgetId()intread()voidread(byte[] buf, int off, int maxy, int maxx) voidread(int[] buf, int off, int maxy, int maxx) voidrestart()voidsetBitsPerSample(int bps) voidsetDimensions(int h, int w) voidvoidsetMaxSamplingRate(int VMax, int HMax) voidsetQuantizationTable(int[] qt) voidsetSamplingRate(int Vf, int Hf) voidsetShift(int shift) toString()Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
id
protected int id -
shift
protected int shift -
height
protected int height -
width
protected int width -
bps
protected int bps -
Hf
protected int Hf -
Vf
protected int Vf -
HMax
protected int HMax -
VMax
protected int VMax -
Yf
protected int Yf -
Xf
protected int Xf -
qt
protected int[] qt -
in
-
-
Constructor Details
-
JPEGComponentInputStream
public JPEGComponentInputStream(int id)
-
-
Method Details
-
getId
public int getId() -
setShift
public void setShift(int shift) -
setBitsPerSample
public void setBitsPerSample(int bps) -
setDimensions
public void setDimensions(int h, int w) -
setSamplingRate
public void setSamplingRate(int Vf, int Hf) -
setMaxSamplingRate
public void setMaxSamplingRate(int VMax, int HMax) -
setQuantizationTable
public void setQuantizationTable(int[] qt) -
setHuffmanTables
public void setHuffmanTables(FileTiff.JPEGHuffmanInputStream dc, FileTiff.JPEGHuffmanInputStream ac) -
restart
- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
copyPixel
protected void copyPixel(int[] buf, int off, int maxy, int maxx, int b) -
copyDataUnit
protected void copyDataUnit(int[] buf, int off, int maxy, int maxx, int[] buffer) throws IOException - Throws:
IOException
-
read
- Throws:
IOException
-
copyPixel
protected void copyPixel(byte[] buf, int off, int maxy, int maxx, int b) -
copyDataUnit
protected void copyDataUnit(byte[] buf, int off, int maxy, int maxx, int[] buffer) throws IOException - Throws:
IOException
-
read
- Throws:
IOException
-
toString
-