Class YCbCrPlanarUpsamplerStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.twelvemonkeys.imageio.plugins.tiff.YCbCrPlanarUpsamplerStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
final class YCbCrPlanarUpsamplerStream extends java.io.FilterInputStream
Input 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) int
bufferLength
(package private) int
bufferPos
private int
columns
(package private) int
decodedLength
(package private) int
decodedPos
private byte[]
decodedRows
private int
horizChromaSub
private int
units
private int
vertChromaSub
private int
yCbCrPos
-
Constructor Summary
Constructors Constructor Description YCbCrPlanarUpsamplerStream(java.io.InputStream stream, int[] chromaSub, int yCbCrPos, int columns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
decodeRows()
private void
fetch()
boolean
markSupported()
int
read()
int
read(byte[] b, int off, int len)
void
reset()
long
skip(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
-
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:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException
- Overrides:
skip
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classjava.io.FilterInputStream
-
reset
public void reset() throws java.io.IOException
- Overrides:
reset
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
-