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) int
private final int
(package private) int
(package private) int
private final byte[]
private final int
private final int
private final int
private final int
private final int
private final int
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorsConstructorDescriptionYCbCr16UpsamplerStream
(InputStream stream, int[] chromaSub, int yCbCrPos, int columns, ByteOrder byteOrder) -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, read
Methods inherited from class java.io.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:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classFilterInputStream
-
reset
- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
-