Class YCbCrUpsamplerStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.twelvemonkeys.imageio.plugins.tiff.YCbCrUpsamplerStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
final class YCbCrUpsamplerStream extends java.io.FilterInputStreamInput stream that provides on-the-fly upsampling of TIFF subsampled YCbCr samples.- Version:
- $Id: YCbCrUpsamplerStream.java,v 1.0 31.01.13 09:25 haraldk Exp$
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]buffer(package private) intbufferLength(package private) intbufferPosprivate intcolumns(package private) intdecodedLength(package private) intdecodedPosprivate byte[]decodedRowsprivate inthorizChromaSubprivate intpaddingprivate intunitsprivate intunitSizeprivate intvertChromaSubprivate intyCbCrPos
-
Constructor Summary
Constructors Constructor Description YCbCrUpsamplerStream(java.io.InputStream stream, int[] chromaSub, int yCbCrPos, int columns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddecodeRows()private voidfetch()booleanmarkSupported()intread()intread(byte[] b, int off, int len)voidreset()longskip(long n)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
fetch
private void fetch() throws java.io.IOException- Throws:
java.io.IOException
-
decodeRows
private void decodeRows() throws java.io.EOFException- Throws:
java.io.EOFException
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classjava.io.FilterInputStream
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
-