public class TIFFJPEGDecompressor extends TIFFDecompressor
Modifier and Type | Field and Description |
---|---|
protected static int |
EOI |
protected boolean |
hasJPEGTables |
protected javax.imageio.ImageReadParam |
JPEGParam |
protected javax.imageio.ImageReader |
JPEGReader |
protected static int |
SOI |
protected byte[] |
tables |
activeSrcHeight, activeSrcMinX, activeSrcMinY, activeSrcWidth, bitsPerSample, byteCount, colorConverter, colorMap, compression, destinationBands, dstHeight, dstMinX, dstMinY, dstWidth, dstXOffset, dstYOffset, extraSamples, image, metadata, offset, photometricInterpretation, planar, rawImage, reader, sampleFormat, samplesPerPixel, sourceBands, sourceXOffset, sourceYOffset, srcHeight, srcMinX, srcMinY, srcWidth, stream, subsampleX, subsampleY
Constructor and Description |
---|
TIFFJPEGDecompressor() |
Modifier and Type | Method and Description |
---|---|
void |
beginDecoding()
This routine is called prior to a sequence of calls to the
decode method, in order to allow any necessary
tables or other structures to be initialized based on metadata
values. |
void |
decodeRaw(byte[] b,
int dstOffset,
int bitsPerPixel,
int scanlineStride)
Decodes the source data into the provided
byte
array b , starting at the offset given by
dstOffset . |
protected void |
finalize() |
createRawImage, decode, decodeRaw, decodeRaw, decodeRaw, getRawImageType, getRawImageTypeSpecifier, setActiveSrcHeight, setActiveSrcMinX, setActiveSrcMinY, setActiveSrcWidth, setBitsPerSample, setByteCount, setColorConverter, setColorMap, setCompression, setDestinationBands, setDstHeight, setDstMinX, setDstMinY, setDstWidth, setDstXOffset, setDstYOffset, setExtraSamples, setImage, setMetadata, setOffset, setPhotometricInterpretation, setPlanar, setReader, setSampleFormat, setSamplesPerPixel, setSourceBands, setSourceXOffset, setSourceYOffset, setSrcHeight, setSrcMinX, setSrcMinY, setSrcWidth, setStream, setSubsampleX, setSubsampleY
protected static final int SOI
protected static final int EOI
protected javax.imageio.ImageReader JPEGReader
protected javax.imageio.ImageReadParam JPEGParam
protected boolean hasJPEGTables
protected byte[] tables
public void beginDecoding()
TIFFDecompressor
decode
method, in order to allow any necessary
tables or other structures to be initialized based on metadata
values. This routine is guaranteed to be called any time the
metadata values have changed.
The default implementation computes tables used by the
decode
method to rescale components to different
bit depths. Thus, if this method is overridden, it is
important for the subclass method to call super()
,
unless it overrides decode
as well.
beginDecoding
in class TIFFDecompressor
public void decodeRaw(byte[] b, int dstOffset, int bitsPerPixel, int scanlineStride) throws java.io.IOException
TIFFDecompressor
byte
array b
, starting at the offset given by
dstOffset
. Each pixel occupies
bitsPerPixel
bits, with no padding between pixels.
Scanlines are separated by scanlineStride
byte
s.decodeRaw
in class TIFFDecompressor
b
- a byte
array to be written.dstOffset
- the starting offset in b
to be
written.bitsPerPixel
- the number of bits for each pixel.scanlineStride
- the number of byte
s to
advance between that starting pixels of each scanline.java.io.IOException
- if an error occurs reading from the source
ImageInputStream
.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright © 2014 Open Microscopy Environment