Class YCbCr16UpsamplerStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.twelvemonkeys.imageio.plugins.tiff.YCbCr16UpsamplerStream
- All Implemented Interfaces:
Closeable, AutoCloseable
Input stream that provides on-the-fly upsampling of TIFF subsampled YCbCr 16 bit samples.
- Version:
- $Id: YCbCrUpsamplerStream.java,v 1.0 31.01.13 09:25 haraldk Exp$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[](package private) int(package private) intprivate final int(package private) int(package private) intprivate final byte[]private final intprivate final intprivate final intprivate final intprivate final intprivate final intFields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionYCbCr16UpsamplerStream(InputStream stream, int[] chromaSub, int yCbCrPos, int columns, ByteOrder byteOrder) -
Method Summary
Methods inherited from class FilterInputStream
available, close, mark, readMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
horizChromaSub
private final int horizChromaSub -
vertChromaSub
private final int vertChromaSub -
yCbCrPos
private final int yCbCrPos -
columns
private final int columns -
units
private final int units -
unitSize
private final int unitSize -
padding
private final int padding -
decodedRows
private final byte[] decodedRows -
decodedLength
int decodedLength -
decodedPos
int decodedPos -
buffer
private final byte[] buffer -
bufferLength
int bufferLength -
bufferPos
int bufferPos
-
-
Constructor Details
-
YCbCr16UpsamplerStream
public YCbCr16UpsamplerStream(InputStream stream, int[] chromaSub, int yCbCrPos, int columns, ByteOrder byteOrder)
-
-
Method Details
-
fetch
- Throws:
IOException
-
decodeRows
- Throws:
EOFException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-